NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Find the average age of students living in each dorm and the name of dorm. | CREATE TABLE lives_in (
stuid VARCHAR,
dormid VARCHAR
)
CREATE TABLE student (
age INTEGER,
stuid VARCHAR
)
CREATE TABLE dorm (
dorm_name VARCHAR,
dormid VARCHAR
) | SELECT AVG(T1.age), T3.dorm_name FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid GROUP BY T3.dorm_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1342,
834,
77,
41,
21341,
23,
26,
584,
4280,
28027,
6,
103,
52,
6983,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
1246,
3,
21342,
17966,
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,
71,
17217,
599,
382,
5411,
545,
201,
332,
5787,
26,
127,
51,
834,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
1342,
834,
77,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
7,
17,
76,... |
Name the years in orlando for penn state | CREATE TABLE table_15621965_1 (years_in_orlando VARCHAR, school_club_team VARCHAR) | SELECT years_in_orlando FROM table_15621965_1 WHERE school_club_team = "Penn State" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4056,
2294,
4122,
834,
536,
41,
1201,
7,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
1808,
4056,
2294,
4122,
834,
536,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
345,
35,
29,
1015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart about what is average age for different job title? | CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | SELECT job, AVG(age) FROM Person GROUP BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
17701,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1565,
3,
4331,
4059,
599,
1755,
201,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
613,
6,
71,
17217,
599,
545,
61,
21680,
5780,
350,
4630,
6880,
272,
476,
613,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Rank of the Guam Player? | CREATE TABLE table_65448 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT AVG("Rank") FROM table_65448 WHERE "Country" = 'guam' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
3707,
41,
96,
22557,
121,
490,
6,
96,
188,
189,
109,
1422,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
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,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
4122,
591,
3707,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
1744,
265,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What color is the super-soft compound? | CREATE TABLE table_68529 (
"Compound name" text,
"Colour" text,
"Tread" text,
"Driving conditions" text,
"Dry Type*" text,
"Grip" text,
"Durability" text
) | SELECT "Colour" FROM table_68529 WHERE "Compound name" = 'super-soft' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
755,
3166,
41,
96,
5890,
8861,
564,
121,
1499,
6,
96,
9939,
1211,
121,
1499,
6,
96,
382,
5236,
121,
1499,
6,
96,
308,
5927,
53,
1124,
121,
1499,
6,
96,
308,
651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
1211,
121,
21680,
953,
834,
3651,
755,
3166,
549,
17444,
427,
96,
5890,
8861,
564,
121,
3274,
3,
31,
21771,
18,
12369,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which Pada 4 has a Pada 2 of tha? | CREATE TABLE table_75563 (
"Name" text,
"Pada 1" text,
"Pada 2" text,
"Pada 3" text,
"Pada 4" text
) | SELECT "Pada 4" FROM table_75563 WHERE "Pada 2" = 'थ tha' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
4834,
519,
41,
96,
23954,
121,
1499,
6,
96,
21853,
9,
209,
121,
1499,
6,
96,
21853,
9,
204,
121,
1499,
6,
96,
21853,
9,
220,
121,
1499,
6,
96,
21853,
9,
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,
21853,
9,
3,
20364,
21680,
953,
834,
3072,
4834,
519,
549,
17444,
427,
96,
21853,
9,
204,
121,
3274,
3,
31,
2,
3,
189,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many companies had an april 2013 cumulative ranking of 3? | CREATE TABLE table_23950611_2 (
market_cap_march_15__mil_usd__ VARCHAR,
april_2013_cum_rank VARCHAR
) | SELECT COUNT(market_cap_march_15__mil_usd__) FROM table_23950611_2 WHERE april_2013_cum_rank = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
41,
512,
834,
4010,
834,
51,
7064,
834,
1808,
834,
834,
51,
173,
834,
302,
26,
834,
834,
584,
4280,
28027,
6,
3,
9,
2246,
40,
834,
11138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8809,
834,
4010,
834,
51,
7064,
834,
1808,
834,
834,
51,
173,
834,
302,
26,
834,
834,
61,
21680,
953,
834,
2773,
3301,
5176,
2596,
834,
357,
549,
17444,
427,
3,
9,
2246,
40,
834,
11138,
834,
6361... |
What are the lowest points from 1992 with a Chassis of Minardi m192? | CREATE TABLE table_name_89 (
points INTEGER,
year VARCHAR,
chassis VARCHAR
) | SELECT MIN(points) FROM table_name_89 WHERE year = 1992 AND chassis = "minardi m192" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
979,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
7402,
979,
45,
9047,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
215,
3274,
9047,
3430,
22836,
3274,
96,
1109,
986,
23,
3,
51,
19978,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Please show different types of artworks with the corresponding number of artworks of each type. | CREATE TABLE artwork (
TYPE VARCHAR
) | SELECT TYPE, COUNT(*) FROM artwork GROUP BY TYPE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7924,
41,
3,
12016,
5668,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
863,
504,
315,
1308,
13,
7924,
7,
28,
8,
3,
9921,
381,
13,
7924,
7,
13,
284,
686,
5,
1,
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,
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,
3,
12016,
5668,
6,
2847,
17161,
599,
1935,
61,
21680,
7924,
350,
4630,
6880,
272,
476,
3,
12016,
5668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who won Stage 7? | CREATE TABLE table_22917458_15 (
winner VARCHAR,
stage VARCHAR
) | SELECT winner FROM table_22917458_15 WHERE stage = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3166,
27693,
3449,
834,
1808,
41,
4668,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
751,
13578,
489,
58,
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,
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,
4668,
21680,
953,
834,
357,
3166,
27693,
3449,
834,
1808,
549,
17444,
427,
1726,
3274,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao? | CREATE TABLE table_62703 (
"Season" real,
"Winners" text,
"Runners-up" text,
"Third-place" text,
"fourth-placed" text,
"Number of clubs" real
) | SELECT AVG("Number of clubs") FROM table_62703 WHERE "fourth-placed" = 'shenzhen jianlibao' AND "Season" < '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
2518,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18455,
687,
7,
121,
1499,
6,
96,
23572,
7,
18,
413,
121,
1499,
6,
96,
382,
9288,
26,
18,
4687,
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,
71,
17217,
599,
121,
567,
5937,
49,
13,
8122,
8512,
21680,
953,
834,
4056,
2518,
519,
549,
17444,
427,
96,
12521,
189,
18,
4687,
26,
121,
3274,
3,
31,
7,
3225,
172,
3225,
3,
354,
23,
152,
6856,
9,
32,
31,
3430,
... |
What is the number for evening gown in kansas with less than 9.357 interviews? | CREATE TABLE table_11619 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) | SELECT SUM("Evening Gown") FROM table_11619 WHERE "State" = 'kansas' AND "Interview" < '9.357' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20159,
2294,
41,
96,
134,
4748,
121,
1499,
6,
96,
17555,
4576,
121,
490,
6,
96,
134,
210,
603,
7628,
121,
490,
6,
96,
427,
1926,
53,
350,
9197,
121,
490,
6,
96,
188,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
1926,
53,
350,
9197,
8512,
21680,
953,
834,
20159,
2294,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
3304,
7,
9,
7,
31,
3430,
96,
17555,
4576,
121,
3,
2,
3,
31,
8797,
519,
3436,
... |
what is the monthly minimum value of patient 004-32407's weight on the first hospital encounter? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... | SELECT MIN(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-32407' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1) AND NOT patient.admissionweight IS NULL GROUP... | [
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,
3,
17684,
599,
10061,
5,
9,
26,
5451,
9378,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
21680,
1868,
549,
17444,
... |
What season had 6th position and 36 points? | CREATE TABLE table_63304 (
"Season" text,
"Div." text,
"Pos." text,
"Pld." text,
"Pts." text
) | SELECT "Season" FROM table_63304 WHERE "Pos." = '6th' AND "Pts." = '36' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
23702,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
21313,
535,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
345,
40,
26,
535,
1499,
6,
96,
345,
17,
7,
535,
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,
9,
739,
121,
21680,
953,
834,
3891,
23702,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
948,
189,
31,
3430,
96,
345,
17,
7,
535,
3274,
3,
31,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
provide me the number of patients admitted before the year 2162 who have been diagnosed with blood in feces. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2162" AND diagnoses.short_title = "Blood in stool" | [
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,
5... |
Who are the candidates in Washington 1 district? | CREATE TABLE table_1419 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"2008 Candidates" text,
"Results" text
) | SELECT "2008 Candidates" FROM table_1419 WHERE "District" = 'Washington 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
2294,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
15,
26,
121,
490,
6,
96,
134,
17,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16128,
20763,
121,
21680,
953,
834,
2534,
2294,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
518,
3198,
6029,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many titles are there for season 8 | CREATE TABLE table_11951237_4 (
title VARCHAR,
season__number VARCHAR
) | SELECT COUNT(title) FROM table_11951237_4 WHERE season__number = 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
24163,
4118,
834,
591,
41,
2233,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8342,
33,
132,
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,
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,
21869,
61,
21680,
953,
834,
19993,
24163,
4118,
834,
591,
549,
17444,
427,
774,
834,
834,
5525,
1152,
3274,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the number of times newcastle united is listed as an opponent on this chart ? | CREATE TABLE table_203_368 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text
) | SELECT COUNT(*) FROM table_203_368 WHERE "opponent" = 'newcastle united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
519,
3651,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
15098,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
3,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
23330,
834,
519,
3651,
549,
17444,
427,
96,
32,
102,
9977,
121,
3274,
3,
31,
5534,
5254,
109,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is marital status and ethnicity of subject id 76446? | 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 demographic.marital_status, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "76446" | [
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,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
15,
189,
2532,
485,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3959,
591,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Sub-Parish (Sogn) is in the Parish (Prestegjeld) of hafslo parish and has a church called Hafslo Kyrkje? | CREATE TABLE table_59787 (
"Parish (Prestegjeld)" text,
"Sub-Parish (Sogn)" text,
"Church Name" text,
"Year Built" real,
"Location of the Church" text
) | SELECT "Sub-Parish (Sogn)" FROM table_59787 WHERE "Parish (Prestegjeld)" = 'hafslo parish' AND "Church Name" = 'hafslo kyrkje' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
3940,
940,
41,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
1499,
6,
96,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
1499,
6,
96,
3541,
450,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25252,
18,
13212,
1273,
41,
5231,
122,
29,
61,
121,
21680,
953,
834,
3390,
3940,
940,
549,
17444,
427,
96,
13212,
1273,
41,
10572,
849,
122,
354,
8804,
61,
121,
3274,
3,
31,
1024,
89,
7,
40,
32,
14961,
31,
3... |
how many medicare insurance patients were admitted for more than 13 days in hospital? | 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.insurance = "Medicare" AND demographic.days_stay > "13" | [
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,
29441,
3274,
96,
15789,
355,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
2490,
96,
2368,
121,
1,
-... |
What's the Representative listed that has a Presentation of Credentials of August 25, 1851? | CREATE TABLE table_name_80 (representative VARCHAR, presentation_of_credentials VARCHAR) | SELECT representative FROM table_name_80 WHERE presentation_of_credentials = "august 25, 1851" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
60,
12640,
1528,
584,
4280,
28027,
6,
3831,
834,
858,
834,
17216,
7220,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
13517,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6978,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3831,
834,
858,
834,
17216,
7220,
7,
3274,
96,
402,
17198,
14105,
507,
5553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Series with a High rebounds with gasol (10)? | CREATE TABLE table_name_54 (
series VARCHAR,
high_rebounds VARCHAR
) | SELECT series FROM table_name_54 WHERE high_rebounds = "gasol (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
939,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4531,
28,
3,
9,
1592,
3,
23768,
28,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
939,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
306,
834,
23768,
3274,
96,
122,
9,
4099,
41,
16968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what were his points when he was in 8th position? | CREATE TABLE table_24998088_1 (
points VARCHAR,
position VARCHAR
) | SELECT points FROM table_24998088_1 WHERE position = "8th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3264,
2079,
4060,
834,
536,
41,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
130,
112,
979,
116,
3,
88,
47,
16,
505,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
21680,
953,
834,
2266,
3264,
2079,
4060,
834,
536,
549,
17444,
427,
1102,
3274,
96,
927,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average number of laps when Gerhard Berger is the driver? | CREATE TABLE table_55753 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Laps") FROM table_55753 WHERE "Driver" = 'gerhard berger' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
3072,
519,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
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,
121,
3612,
102,
7,
8512,
21680,
953,
834,
3769,
3072,
519,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
1304,
5651,
3,
16170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Tom Kite's to par? | CREATE TABLE table_name_71 (to_par VARCHAR, player VARCHAR) | SELECT to_par FROM table_name_71 WHERE player = "tom kite" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
235,
834,
1893,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
3059,
5747,
15,
31,
7,
12,
260,
58,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
1959,
3274,
96,
235,
51,
3650,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Gold larger than 0, and a Bronze larger than 1 includes what total number of silver? | CREATE TABLE table_name_31 (silver VARCHAR, gold VARCHAR, bronze VARCHAR) | SELECT COUNT(silver) FROM table_name_31 WHERE gold > 0 AND bronze > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
7,
173,
624,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2540,
2186,
145,
8014,
11,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
2045,
2490,
3,
632,
3430,
13467,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the introductory phrase for the episode with the production bode 6026? | CREATE TABLE table_25691838_2 (introductory_phrase VARCHAR, production_code VARCHAR) | SELECT introductory_phrase FROM table_25691838_2 WHERE production_code = 6026 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3951,
2606,
3747,
834,
357,
41,
23594,
834,
27111,
584,
4280,
28027,
6,
999,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3,
23594,
9261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
23594,
834,
27111,
21680,
953,
834,
1828,
3951,
2606,
3747,
834,
357,
549,
17444,
427,
999,
834,
4978,
3274,
1640,
2688,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the even when the location is tokyo, japan and the record is 6-1? | CREATE TABLE table_name_7 (
event VARCHAR,
location VARCHAR,
record VARCHAR
) | SELECT event FROM table_name_7 WHERE location = "tokyo, japan" AND record = "6-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
605,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
237,
116,
8,
1128,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1128,
3274,
96,
235,
3781,
32,
6,
2662,
2837,
121,
3430,
1368,
3274,
96,
948,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is under segment C when s cuckoo clock is under segment B? | CREATE TABLE table_name_22 (segment_c VARCHAR, segment_b VARCHAR) | SELECT segment_c FROM table_name_22 WHERE segment_b = "s cuckoo clock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
7,
15,
122,
297,
834,
75,
584,
4280,
28027,
6,
5508,
834,
115,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
365,
5508,
205,
116,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5508,
834,
75,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
5508,
834,
115,
3274,
96,
7,
123,
2406,
32,
32,
6702,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the finish for 4-4 | CREATE TABLE table_25920798_2 (finish VARCHAR, vote VARCHAR) | SELECT finish FROM table_25920798_2 WHERE vote = "4-4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4508,
4560,
3916,
834,
357,
41,
25535,
584,
4280,
28027,
6,
2902,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1992,
21,
314,
4278,
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,
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,
1992,
21680,
953,
834,
1828,
4508,
4560,
3916,
834,
357,
549,
17444,
427,
2902,
3274,
96,
591,
18,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What label released a CD in 1988? | CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR) | SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
40,
10333,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3783,
1883,
3,
9,
3190,
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,
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,
4118,
549,
17444,
427,
833,
3274,
96,
2294,
4060,
121,
3430,
1910,
3274,
96,
75,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What soap opera was on 1960–1965, 1965–1983, 1984–2010? | CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR) | SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
7,
32,
9,
102,
834,
18140,
584,
4280,
28027,
6,
203,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
10758,
6329,
47,
30,
8754,
104,
2294,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10758,
834,
18140,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
203,
3274,
96,
2294,
3328,
104,
2294,
4122,
6,
19201,
104,
24151,
6355,
13480,
104,
14926,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the youngest employee in the company? List employee's first and last name. | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, birth_date VARCHAR) | SELECT first_name, last_name FROM employees ORDER BY birth_date DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1652,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
6,
3879,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
19147,
3490,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
4350,
6,
336,
834,
4350,
21680,
1652,
4674,
11300,
272,
476,
3879,
834,
5522,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the winning team lmpc in rnd 3? | CREATE TABLE table_24037660_2 (lmpc_winning_team VARCHAR, rnd VARCHAR) | SELECT lmpc_winning_team FROM table_24037660_2 WHERE rnd = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11944,
4118,
27720,
834,
357,
41,
40,
1167,
75,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
52,
727,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
344... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
40,
1167,
75,
834,
8163,
834,
11650,
21680,
953,
834,
11944,
4118,
27720,
834,
357,
549,
17444,
427,
3,
52,
727,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many rounds were 2r? | CREATE TABLE table_11326124_3 (
result VARCHAR,
round VARCHAR
) | SELECT COUNT(result) FROM table_11326124_3 WHERE round = "2R" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
2688,
22504,
834,
519,
41,
741,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
130,
204,
52,
58,
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,
2847,
17161,
599,
60,
7,
83,
17,
61,
21680,
953,
834,
20522,
2688,
22504,
834,
519,
549,
17444,
427,
1751,
3274,
96,
357,
448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which League Cup that has a Total of 19 and a League smaller than 15? | CREATE TABLE table_43115 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
) | SELECT AVG("League Cup") FROM table_43115 WHERE "Total" = '19' AND "League" < '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
15660,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
4795,
3802,
121,
490,
6,
96,
4795,
26912,
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,
2796,
9,
5398,
3802,
8512,
21680,
953,
834,
4906,
15660,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
2294,
31,
3430,
96,
2796,
9,
5398,
121,
3,
2,
3,
31,
1808,
31,
1,
-100,
-100,
-100... |
Name the entrant for benedicto campos | CREATE TABLE table_24676 (
"No" real,
"Driver" text,
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text
) | SELECT "Entrant" FROM table_24676 WHERE "Driver" = 'Benedicto Campos' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4448,
3959,
41,
96,
4168,
121,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
16924,
3569,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
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,
16924,
3569,
121,
21680,
953,
834,
357,
4448,
3959,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
279,
4632,
447,
235,
4594,
32,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the resurrection of 144,000 date with a Christ made king date in 1914, a separting sheep & goats date during Christ's presence, and a judgment of religion date in 1878? | CREATE TABLE table_7479 (
"LastDays begin" text,
"Startof Christ's Presence" text,
"Christ madeKing" text,
"Resurrection of144,000" text,
"Judgmentof Religion" text,
"Separating Sheep &Goats" text,
"Great Tribulation" text
) | SELECT "Resurrection of144,000" FROM table_7479 WHERE "Christ madeKing" = '1914' AND "Separating Sheep &Goats" = 'during christ''s presence' AND "Judgmentof Religion" = '1878' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4440,
41,
96,
3612,
7,
17,
16803,
7,
1731,
121,
1499,
6,
96,
7681,
17,
858,
2144,
31,
7,
10131,
1433,
121,
1499,
6,
96,
20941,
263,
439,
53,
121,
1499,
6,
96,
164... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1649,
3042,
60,
4985,
13,
2534,
13161,
121,
21680,
953,
834,
4581,
4440,
549,
17444,
427,
96,
20941,
263,
439,
53,
121,
3274,
3,
31,
2294,
2534,
31,
3430,
96,
134,
15,
1893,
1014,
451,
15,
102,
3,
184,
6221,
... |
which city has the same number of barangays as teresa ? | CREATE TABLE table_204_987 (
id number,
"city/municipality" text,
"no. of\nbarangays" number,
"area\n(km2)" number,
"population\n(2010 census)" number,
"pop. density\n(per km2)" number
) | SELECT "city/municipality" FROM table_204_987 WHERE "city/municipality" <> 'teresa' AND "no. of\nbarangays" = (SELECT "no. of\nbarangays" FROM table_204_987 WHERE "city/municipality" = 'teresa') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
940,
41,
3,
23,
26,
381,
6,
96,
6726,
87,
11760,
3389,
10355,
121,
1499,
6,
96,
29,
32,
5,
13,
2,
29,
1047,
1468,
9,
63,
7,
121,
381,
6,
96,
498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6726,
87,
11760,
3389,
10355,
121,
21680,
953,
834,
26363,
834,
3916,
940,
549,
17444,
427,
96,
6726,
87,
11760,
3389,
10355,
121,
3,
2,
3155,
3,
31,
449,
15,
7,
9,
31,
3430,
96,
29,
32,
5,
13,
2,
29,
1047... |
tell me the diagnosis cost of bacteremia - gram negative rod in a patient? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'bacteremia - gram negative rod') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
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,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
Bar chart, X is bed type and the Y-axis is their appearance frequency, I want to list by the y-axis in desc. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT bedType, COUNT(bedType) FROM Rooms WHERE decor = "traditional" GROUP BY bedType ORDER BY COUNT(bedType) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1953,
25160,
6,
2847,
17161,
599,
4143,
25160,
61,
21680,
4181,
7,
549,
17444,
427,
4469,
3274,
96,
26374,
121,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
2847,
17161,
599,
4143,
25160,
61,
309,
25... |
Name the average for assists per game | CREATE TABLE table_26611679_3 (
average VARCHAR,
category VARCHAR
) | SELECT average FROM table_26611679_3 WHERE category = "Assists per game" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
20159,
4440,
834,
519,
41,
1348,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
21,
13041,
399,
467,
1,
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,
1348,
21680,
953,
834,
357,
3539,
20159,
4440,
834,
519,
549,
17444,
427,
3295,
3274,
96,
188,
7,
7,
343,
7,
399,
467,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Jeremy Hill's hometown? | CREATE TABLE table_11677691_1 (hometown VARCHAR, player VARCHAR) | SELECT hometown FROM table_11677691_1 WHERE player = "Jeremy Hill" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
3708,
3959,
4729,
834,
536,
41,
5515,
3540,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
3,
18540,
3588,
31,
7,
22295,
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,
22295,
21680,
953,
834,
2596,
3708,
3959,
4729,
834,
536,
549,
17444,
427,
1959,
3274,
96,
18540,
3588,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the pseudoknot prediction of the software named tfold? | CREATE TABLE table_38132 (
"Name" text,
"Number of sequences Number of sequences: ." text,
"Alignment Alignment: predicts an alignment , ." text,
"Structure Structure: predicts structure , ." text,
"Knots Knots: Pseudoknot prediction, ." text,
"Link" text
) | SELECT "Knots Knots: Pseudoknot prediction, ." FROM table_38132 WHERE "Name" = 'tfold' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
23757,
41,
96,
23954,
121,
1499,
6,
96,
567,
5937,
49,
13,
5932,
7,
7720,
13,
5932,
7,
10,
3,
535,
1499,
6,
96,
188,
2825,
29,
297,
901,
3191,
297,
10,
9689,
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,
439,
2264,
7,
10624,
17,
7,
10,
276,
7,
15,
76,
26,
1825,
2264,
21332,
6,
3,
535,
21680,
953,
834,
3747,
23757,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
10533,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What was the smallest crowd size for the home team at St Kilda? | CREATE TABLE table_10105 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_10105 WHERE "Home team" = 'st kilda' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
12869,
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,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
1714,
12869,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
7,
17,
3,
157,
173,
26,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What member is in the liberal party and has an electorate of bruce? | CREATE TABLE table_name_73 (
member VARCHAR,
party VARCHAR,
electorate VARCHAR
) | SELECT member FROM table_name_73 WHERE party = "liberal" AND electorate = "bruce" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
1144,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
11924,
127,
342,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1144,
19,
16,
8,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1144,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
1088,
3274,
96,
10661,
138,
121,
3430,
11924,
127,
342,
3274,
96,
9052,
565,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
how many patients whose admission type is emergency and admission year is less than 2166? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.admityear < "2166" | [
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,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
20466,
17,
1201,
... |
For what total was 37.410 (4) the 1st run? | CREATE TABLE table_13393 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
) | SELECT "Total" FROM table_13393 WHERE "1st run" = '37.410 (4)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
4271,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
536,
7,
17,
661,
121,
1499,
6,
96,
357,
727,
661,
121,
1499,
6,
96,
519,
52,
26,
661,
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,
3696,
1947,
121,
21680,
953,
834,
22974,
4271,
549,
17444,
427,
96,
536,
7,
17,
661,
121,
3274,
3,
31,
4118,
5,
24175,
3,
10820,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the champion for 3rd place being 4 and 2nd place being larger than 4.0 | CREATE TABLE table_633 (
"Season" real,
"Champion" text,
"Motorcycle" text,
"Wins" real,
"2nd pl." real,
"3rd pl." real,
"Team" text
) | SELECT "Champion" FROM table_633 WHERE "3rd pl." = '4' AND "2nd pl." > '4.0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
519,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
329,
32,
17,
127,
10136,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
357,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
1483,
12364,
121,
21680,
953,
834,
3891,
519,
549,
17444,
427,
96,
519,
52,
26,
4752,
535,
3274,
3,
31,
591,
31,
3430,
96,
357,
727,
4752,
535,
2490,
3,
31,
15021,
31,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Which bike had fewer than 23 laps and a grid number of 4? | CREATE TABLE table_name_15 (
bike VARCHAR,
laps VARCHAR,
grid VARCHAR
) | SELECT bike FROM table_name_15 WHERE laps < 23 AND grid = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3724,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3724,
141,
3,
10643,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
14941,
7,
3,
2,
1902,
3430,
8634,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what stage did Jaime Vergara won, Team Classification was given to EPM-Une and Mountain Classification winner was Oscar Solis? | CREATE TABLE table_28853064_15 (stage VARCHAR, winner VARCHAR, team_classification VARCHAR, mountains_classification VARCHAR) | SELECT stage FROM table_28853064_15 WHERE team_classification = "EPM-UNE" AND mountains_classification = "Oscar Solis" AND winner = "Jaime Vergara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4433,
1458,
4389,
834,
1808,
41,
10705,
584,
4280,
28027,
6,
4668,
584,
4280,
28027,
6,
372,
834,
4057,
2420,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1726,
21680,
953,
834,
2577,
4433,
1458,
4389,
834,
1808,
549,
17444,
427,
372,
834,
4057,
2420,
3274,
96,
427,
6218,
18,
13227,
121,
3430,
8022,
834,
4057,
2420,
3274,
96,
667,
7,
1720,
5175,
159,
121,
3430,
4668,
... |
weight greater than 120 kg | CREATE TABLE table_train_107 (
"id" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"modified_hachinski_ischemia_scale" int,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_107 WHERE body_weight > 120 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
18057,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6965,
834,
9378,
121,
3,
1266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18057,
549,
17444,
427,
643,
834,
9378,
2490,
5864,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give the admission and discharge locations of gonzalo wasson. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT demographic.admission_location, demographic.discharge_location FROM demographic WHERE demographic.name = "Gonzalo Wasson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
14836,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
517,
106,
172,
138,
32,
2751,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
At what venue did Sigurd Rushfeldt score 1 point in the 2006 FIFA World Cup Qualification competition? | CREATE TABLE table_name_53 (
venue VARCHAR,
scored VARCHAR,
competition VARCHAR
) | SELECT venue FROM table_name_53 WHERE scored = 1 AND competition = "2006 fifa world cup qualification" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
5669,
584,
4280,
28027,
6,
5799,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
5669,
410,
28432,
26,
20710... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
5799,
3274,
209,
3430,
2259,
3274,
96,
21196,
361,
89,
9,
296,
4119,
15513,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total pick with Bill Duffy? | CREATE TABLE table_name_12 (
pick INTEGER,
player VARCHAR
) | SELECT SUM(pick) FROM table_name_12 WHERE player = "bill duffy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1432,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
1432,
28,
3259,
970,
20334,
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,
180,
6122,
599,
17967,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
1959,
3274,
96,
3727,
40,
146,
20334,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the ids and names of the architects who built at least 3 bridges . Show the proportion. | CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
type text,
built_year int,
notes text
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE bridge (
architect_id int,
id int,
name text,
location t... | SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3293,
41,
13188,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
1128,
1499,
6,
564,
1499,
6,
686,
1499,
6,
1192,
834,
1201,
16,
17,
6,
3358,
1499,
3,
61,
3,
32102,
32103,
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,
332,
5411,
4350,
6,
332,
5411,
23,
26,
21680,
13188,
6157,
332,
536,
3,
15355,
3162,
4716,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
7064,
23,
5822,
17,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100... |
What is the team that lost with 77 tries against? | CREATE TABLE table_name_5 (
lost VARCHAR,
tries_against VARCHAR
) | SELECT lost FROM table_name_5 WHERE tries_against = "77" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
1513,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
24,
1513,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1513,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
4013,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date had a margin victory of 2 strokes? | CREATE TABLE table_name_91 (date VARCHAR, margin_of_victory VARCHAR) | SELECT date FROM table_name_91 WHERE margin_of_victory = "2 strokes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
5522,
584,
4280,
28027,
6,
6346,
834,
858,
834,
7287,
10972,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
141,
3,
9,
6346,
6224,
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,
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,
4729,
549,
17444,
427,
6346,
834,
858,
834,
7287,
10972,
3274,
96,
357,
9529,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell me the total number of decile with a roll showing 251. | CREATE TABLE table_name_90 (decile VARCHAR, roll VARCHAR) | SELECT COUNT(decile) FROM table_name_90 WHERE roll = 251 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
24223,
109,
584,
4280,
28027,
6,
3812,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
817,
140,
8,
792,
381,
13,
7908,
109,
28,
3,
9,
3812,
2924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3812,
3274,
944,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is gender of subject id 76446? | 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 demographic.gender FROM demographic WHERE demographic.subject_id = "76446" | [
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,
122,
3868,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
3959,
591,
4448,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes? | CREATE TABLE table_23602 (
"Title" text,
"Author" text,
"Reader" text,
"Format" text,
"Company" text,
"Release Date" text,
"Notes" text
) | SELECT "Notes" FROM table_23602 WHERE "Reader" = 'Briggs, Nicholas Nicholas Briggs' AND "Title" = 'Paradox Lost' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19208,
357,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
23602,
127,
121,
1499,
6,
96,
19915,
49,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
5890,
2837,
63,
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,
10358,
15,
7,
121,
21680,
953,
834,
357,
19208,
357,
549,
17444,
427,
96,
19915,
49,
121,
3274,
3,
31,
279,
23983,
7,
6,
22509,
22509,
22965,
122,
7,
31,
3430,
96,
382,
155,
109,
121,
3274,
3,
31,
13212,
9,
... |
What's the lowest DCSF number in Aycliffe Drive but an Ofsted number smaller than 117335? | CREATE TABLE table_name_77 (
dcsf_number INTEGER,
name VARCHAR,
ofsted_number VARCHAR
) | SELECT MIN(dcsf_number) FROM table_name_77 WHERE name = "aycliffe drive" AND ofsted_number < 117335 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
3,
26,
75,
7,
89,
834,
5525,
1152,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
13,
6265,
834,
5525,
1152,
584,
4280,
28027,
3,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
26,
75,
7,
89,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
564,
3274,
96,
9,
63,
12591,
15,
1262,
121,
3430,
13,
6265,
834,
5525,
1152,
3,
2,
850,
4552,
2469,
1,
-100,
... |
how many white patients had overdose as the primary disease? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.diagnosis = "OVERDOSE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
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,
15,
189,
2532,
485,
3274,
96,
15313,
14871,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
23288... |
what country won the most medals ? | CREATE TABLE table_203_206 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_206 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24643,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
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,
29,
257,
121,
21680,
953,
834,
23330,
834,
24643,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
find the number of patients whose lab test item id is 50935 and age is below 31 years. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "31" AND lab.itemid = "50935" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Show the number of companies without a gas station in each main industry with a bar chart. | CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank i... | SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE NOT Company_ID IN (SELECT Company_ID FROM station_company) GROUP BY Main_Industry | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1807,
834,
6682,
41,
5939,
834,
4309,
16,
17,
6,
2384,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
3440,
834,
23954,
1499,
6,
8236,
834,
27272,
834,
23954,
1499,
6,
13517,
834,
23954,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5140,
834,
1570,
8655,
8224,
6,
2847,
17161,
599,
21978,
29,
834,
1570,
8655,
8224,
61,
21680,
349,
549,
17444,
427,
4486,
1958,
834,
4309,
3388,
41,
23143,
14196,
1958,
834,
4309,
21680,
2478,
834,
29179,
61,
350,
46... |
Who is the home team when melbourne is the away team? | CREATE TABLE table_74771 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_74771 WHERE "Away team" = 'melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
4013,
536,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19040,
372,
2604,
121,
21680,
953,
834,
4581,
4013,
536,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What FCC info is listed for the ERP W of 2? | CREATE TABLE table_name_96 (
fcc_info VARCHAR,
erp_w VARCHAR
) | SELECT fcc_info FROM table_name_96 WHERE erp_w = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
3,
89,
75,
75,
834,
9583,
584,
4280,
28027,
6,
3,
49,
102,
834,
210,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
377,
2823,
2845,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
89,
75,
75,
834,
9583,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
3,
49,
102,
834,
210,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the surface of 2 december 1974 | CREATE TABLE table_4322 (
"Date" text,
"Location" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
) | SELECT "Surface" FROM table_4322 WHERE "Date" = '2 december 1974' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
2884,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
16,
8,
804,
121,
1499,
6,
96,
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,
96,
134,
450,
4861,
121,
21680,
953,
834,
4906,
2884,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
357,
20,
75,
18247,
17184,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What city is the school that had less than 17 titles in boys basketball with the last title being after 2005? | CREATE TABLE table_name_86 (
city VARCHAR,
sport VARCHAR,
_number_of_titles VARCHAR,
last VARCHAR
) | SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = "boys basketball" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
690,
584,
4280,
28027,
6,
2600,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
834,
858,
834,
21869,
7,
584,
4280,
28027,
6,
336,
584,
4280,
28027,
3,
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,
690,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
3,
834,
5525,
1152,
834,
858,
834,
21869,
7,
3,
2,
1003,
3430,
336,
2490,
3105,
3430,
2600,
3274,
96,
7531,
7,
8498,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many points did Team Rothmans International have after 1975 when their Chassis was a March 771? | CREATE TABLE table_name_91 (points VARCHAR, chassis VARCHAR, year VARCHAR, entrant VARCHAR) | SELECT points FROM table_name_91 WHERE year > 1975 AND entrant = "team rothmans international" AND chassis = "march 771" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2700,
7,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
295,
3569,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
979,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
215,
2490,
16312,
3430,
3,
295,
3569,
3274,
96,
11650,
3,
2719,
107,
348,
7,
1038,
121,
3430,
22836,
3274,
96,
51,
7064,
489,
4450,
121,
1,
-100,
-100,
-100,
... |
What is Visitor, when Date is 'May 9'? | CREATE TABLE table_62264 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_62264 WHERE "Date" = 'may 9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
26755,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
3,
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,
553,
159,
155,
127,
121,
21680,
953,
834,
4056,
26755,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
13726,
668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What position did the celebrity finish that entered on day 1 and exited on day 19? | CREATE TABLE table_name_16 (
finished VARCHAR,
exited VARCHAR,
entered VARCHAR
) | SELECT finished FROM table_name_16 WHERE exited = "day 19" AND entered = "day 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2369,
584,
4280,
28027,
6,
7189,
15,
26,
584,
4280,
28027,
6,
5136,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
410,
8,
17086,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2369,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
7189,
15,
26,
3274,
96,
1135,
957,
121,
3430,
5136,
3274,
96,
1135,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what are the number of times the location was in madrid ? | CREATE TABLE table_204_132 (
id number,
"year" number,
"location" text,
"men's individual" text,
"women's individual" text,
"men's team" text,
"women's team" text,
"mixed team" text,
"ref" number
) | SELECT COUNT(*) FROM table_204_132 WHERE "location" = 'madrid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
23757,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
14836,
121,
1499,
6,
96,
904,
31,
7,
928,
121,
1499,
6,
96,
210,
32,
904,
31,
7,
928,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
23757,
549,
17444,
427,
96,
14836,
121,
3274,
3,
31,
11374,
4055,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Record of 11-10-3 is what sum of game #? | CREATE TABLE table_34039 (
"Game #" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
) | SELECT SUM("Game #") FROM table_34039 WHERE "Record" = '11-10-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21129,
3288,
41,
96,
23055,
1713,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
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,
180,
6122,
599,
121,
23055,
1713,
8512,
21680,
953,
834,
21129,
3288,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
2596,
4536,
3486,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List all the services in the alphabetical order. | CREATE TABLE services (
service_name VARCHAR
) | SELECT service_name FROM services ORDER BY service_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
364,
41,
313,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
8,
364,
16,
8,
20688,
1950,
455,
5,
1,
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,
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... | [
3,
23143,
14196,
313,
834,
4350,
21680,
364,
4674,
11300,
272,
476,
313,
834,
4350,
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,... |
What date did series number 32 premiere? | CREATE TABLE table_2667438_5 (original_air_date VARCHAR, no_in_series VARCHAR) | SELECT original_air_date FROM table_2667438_5 WHERE no_in_series = 32 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
4581,
3747,
834,
755,
41,
21878,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
357,
3539,
4581,
3747,
834,
755,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3538,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the percentage for Zares on May 21 22? | CREATE TABLE table_name_87 (
zares VARCHAR,
date VARCHAR
) | SELECT zares FROM table_name_87 WHERE date = "may 21–22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3,
7061,
15,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5294,
21,
24374,
15,
7,
30,
932,
1401,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
7061,
15,
7,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
833,
3274,
96,
13726,
1401,
104,
2884,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission year is less than 2151 and lab test fluid is pleural? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2151" AND lab.fluid = "Pleural" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Give me a stacked bar chart for showing the total number of each ship type and categorize it by ship nationality, and rank Y from low to high order. | CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) | SELECT Type, COUNT(Type) FROM ship GROUP BY Nationality, Type ORDER BY COUNT(Type) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2253,
41,
8960,
834,
4309,
16,
17,
6,
15508,
834,
4309,
16,
17,
6,
3636,
1499,
6,
17113,
15,
26,
834,
476,
2741,
16,
17,
6,
10450,
1499,
6,
9913,
834,
157,
2264,
7,
16,
17,
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,
6632,
6,
2847,
17161,
599,
25160,
61,
21680,
4383,
350,
4630,
6880,
272,
476,
868,
485,
6,
6632,
4674,
11300,
272,
476,
2847,
17161,
599,
25160,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who had the fasted lap in motorsport arena oschersleben? | CREATE TABLE table_21321935_2 (fastest_lap VARCHAR, circuit VARCHAR) | SELECT fastest_lap FROM table_21321935_2 WHERE circuit = "Motorsport Arena Oschersleben" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2668,
2294,
2469,
834,
357,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
1006,
15,
26,
14941... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
21680,
953,
834,
2658,
2668,
2294,
2469,
834,
357,
549,
17444,
427,
4558,
3274,
96,
329,
32,
5535,
1493,
14904,
411,
11575,
7,
8766,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the sum of the heights in meters for the commerzbank tower built after 1984? | CREATE TABLE table_47886 (
"Name" text,
"Height (m)" real,
"Height (ft)" real,
"Location" text,
"Year built" real
) | SELECT SUM("Height (m)") FROM table_47886 WHERE "Year built" > '1984' AND "Name" = 'commerzbank tower' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3940,
3840,
41,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
41,
51,
61,
121,
490,
6,
96,
3845,
2632,
41,
89,
17,
61,
121,
490,
6,
96,
434,
32,
75,
257,
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,
180,
6122,
599,
121,
3845,
2632,
41,
51,
61,
8512,
21680,
953,
834,
591,
3940,
3840,
549,
17444,
427,
96,
476,
2741,
1192,
121,
2490,
3,
31,
2294,
4608,
31,
3430,
96,
23954,
121,
3274,
3,
31,
287,
935,
172,
4739,
... |
Who is the August playmate with the October playmate Shannon Long? | CREATE TABLE table_name_51 (
august VARCHAR,
october VARCHAR
) | SELECT august FROM table_name_51 WHERE october = "shannon long" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
14663,
584,
4280,
28027,
6,
3,
32,
75,
235,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
1660,
577,
5058,
28,
8,
1797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14663,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3,
32,
75,
235,
1152,
3274,
96,
7,
107,
17805,
307,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many laps does jean-christophe boullion have with a time/retired of +1 lap? | CREATE TABLE table_name_67 (
laps VARCHAR,
time_retired VARCHAR,
driver VARCHAR
) | SELECT laps FROM table_name_67 WHERE time_retired = "+1 lap" AND driver = "jean-christophe boullion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
14941,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14941,
7,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
18446,
14941,
121,
3430,
2535,
3274,
96,
26459,
18,
15294,
10775,
15,
3005,
83,
7325,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose year of death is less than or equal to 2126 and drug code is d5w100? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2126.0" AND prescriptions.formulary_drug_cd = "D5W100" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7? | CREATE TABLE table_11251601_2 (carbon_dioxide_emissions_per_year__10_6_tons___2006_ VARCHAR, carbon_dioxide_emissions_per_year__tons_per_person___2007_ VARCHAR) | SELECT carbon_dioxide_emissions_per_year__10_6_tons___2006_ FROM table_11251601_2 WHERE carbon_dioxide_emissions_per_year__tons_per_person___2007_ = "1.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1828,
19129,
536,
834,
357,
41,
17089,
834,
26,
23,
6778,
15,
834,
15,
5451,
7,
834,
883,
834,
1201,
834,
834,
1714,
834,
948,
834,
8057,
834,
834,
834,
21196,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4146,
834,
26,
23,
6778,
15,
834,
15,
5451,
7,
834,
883,
834,
1201,
834,
834,
1714,
834,
948,
834,
8057,
834,
834,
834,
21196,
834,
21680,
953,
834,
2596,
1828,
19129,
536,
834,
357,
549,
17444,
427,
4146,
834,
26... |
Who received gold when the event is road race details and silver is max weber germany (ger)? | CREATE TABLE table_name_96 (
gold VARCHAR,
event VARCHAR,
silver VARCHAR
) | SELECT gold FROM table_name_96 WHERE event = "road race details" AND silver = "max weber germany (ger)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
2045,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
1204,
2045,
116,
8,
605,
19,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2045,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
605,
3274,
96,
8635,
1964,
1030,
121,
3430,
4294,
3274,
96,
9128,
765,
49,
13692,
63,
41,
1304,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964? | CREATE TABLE table_25216791_3 (january_15_16 VARCHAR, june_10_11 VARCHAR) | SELECT january_15_16 FROM table_25216791_3 WHERE june_10_11 = "June 10, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2658,
3708,
4729,
834,
519,
41,
7066,
76,
1208,
834,
1808,
834,
2938,
584,
4280,
28027,
6,
3,
6959,
15,
834,
1714,
834,
2596,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
7066,
76,
1208,
834,
1808,
834,
2938,
21680,
953,
834,
1828,
2658,
3708,
4729,
834,
519,
549,
17444,
427,
3,
6959,
15,
834,
1714,
834,
2596,
3274,
96,
683,
444,
10372,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,... |
What number was manufactured 1 in 1841? | CREATE TABLE table_name_43 (
number_s_ VARCHAR,
quantity VARCHAR,
year_s__of_manufacture VARCHAR
) | SELECT number_s_ FROM table_name_43 WHERE quantity = "1" AND year_s__of_manufacture = "1841" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
381,
834,
7,
834,
584,
4280,
28027,
6,
8708,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
584,
4280,
28027,
3,
61,
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,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
381,
834,
7,
834,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
8708,
3274,
96,
536,
121,
3430,
215,
834,
7,
834,
834,
858,
834,
348,
76,
8717,
1462,
3274,
96,
2606,
4853,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Name the incumbent for kentucky 9 | CREATE TABLE table_1342393_16 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342393_16 WHERE district = "Kentucky 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2773,
4271,
834,
2938,
41,
77,
75,
5937,
295,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
28406,
21,
3,
2217,
17,
4636,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28406,
21680,
953,
834,
23747,
2773,
4271,
834,
2938,
549,
17444,
427,
3939,
3274,
96,
439,
295,
4636,
63,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many heats had 2 lanes, a rank above 75, and nationality of Madagascar? | CREATE TABLE table_33596 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text
) | SELECT COUNT("Heat") FROM table_33596 WHERE "Lane" = '2' AND "Rank" > '75' AND "Nationality" = 'madagascar' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2469,
4314,
41,
96,
22557,
121,
490,
6,
96,
3845,
144,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
3,
61,
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,
3845,
144,
8512,
21680,
953,
834,
519,
2469,
4314,
549,
17444,
427,
96,
434,
152,
15,
121,
3274,
3,
31,
357,
31,
3430,
96,
22557,
121,
2490,
3,
31,
3072,
31,
3430,
96,
24732,
485,
121,
3274,... |
List the clubs that have at least a member with advisor '1121'. | CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdes... | SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.advisor = 1121 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
21341,
23,
26,
381,
6,
1886,
23,
26,
381,
6,
1102,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
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,
3,
15438,
25424,
6227,
3,
17,
5411,
13442,
4350,
21680,
1886,
6157,
3,
17,
536,
3,
15355,
3162,
1144,
834,
858,
834,
13442,
6157,
3,
17,
357,
9191,
3,
17,
5411,
13442,
23,
26,
3274,
3,
17,
4416,
13442,
23,
26,
3... |
How many years were they nominated for outstanding musical? | CREATE TABLE table_name_93 (
year VARCHAR,
nominee VARCHAR
) | SELECT COUNT(year) FROM table_name_93 WHERE nominee = "outstanding musical" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
215,
584,
4280,
28027,
6,
21077,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
130,
79,
150,
1109,
920,
21,
4590,
4183,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
21077,
3274,
96,
670,
11018,
4183,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the type and nationality of ships? | CREATE TABLE ship (
TYPE VARCHAR,
Nationality VARCHAR
) | SELECT TYPE, Nationality FROM ship | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4383,
41,
3,
12016,
5668,
584,
4280,
28027,
6,
868,
485,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
686,
11,
1157,
485,
13,
10911,
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,
3,
12016,
5668,
6,
868,
485,
21680,
4383,
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,
-100,
... |
What tournament had a 1 point margin of victory? | CREATE TABLE table_9532 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Tournament" FROM table_9532 WHERE "Margin of victory" = '1 point' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
2668,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
96,
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,
382,
1211,
20205,
17,
121,
21680,
953,
834,
3301,
2668,
549,
17444,
427,
96,
7286,
122,
77,
13,
6224,
121,
3274,
3,
31,
536,
500,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart for what are the different ship flags, and how many ships have each?, and list the total number in asc order please. | CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
) | SELECT Flag, COUNT(*) FROM Ship GROUP BY Flag ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15508,
41,
15508,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6632,
1499,
6,
14862,
834,
476,
2741,
490,
6,
4501,
1499,
6,
17016,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17016,
6,
2847,
17161,
599,
1935,
61,
21680,
15508,
350,
4630,
6880,
272,
476,
17016,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the procedure icd9 code for subject id 813. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | SELECT procedures.icd9_code FROM procedures WHERE procedures.subject_id = "813" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
1... | [
3,
23143,
14196,
4293,
5,
447,
26,
1298,
834,
4978,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
927,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the value for utah when colorado and new mexico are bush? | CREATE TABLE table_62537 (
"Year" text,
"Arizona" text,
"California" text,
"Colorado" text,
"Nevada" text,
"New Mexico" text,
"Oklahoma" text,
"Texas" text,
"Utah" text
) | SELECT "Utah" FROM table_62537 WHERE "Colorado" = 'bush' AND "New Mexico" = 'bush' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
1828,
4118,
41,
96,
476,
2741,
121,
1499,
6,
96,
188,
13266,
106,
9,
121,
1499,
6,
96,
14318,
99,
127,
29,
23,
9,
121,
1499,
6,
96,
9939,
32,
19042,
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,
1265,
17,
9,
107,
121,
21680,
953,
834,
948,
1828,
4118,
549,
17444,
427,
96,
9939,
32,
19042,
121,
3274,
3,
31,
3465,
107,
31,
3430,
96,
6861,
4726,
121,
3274,
3,
31,
3465,
107,
31,
1,
-100,
-100,
-100,
-10... |
What is the total number of attendence has points greater than 40, and detroit as the home? | CREATE TABLE table_name_99 (
attendance VARCHAR,
points VARCHAR,
home VARCHAR
) | SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
11364,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
2467,
1433... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
979,
2490,
1283,
3430,
234,
3274,
96,
26,
15252,
155,
121,
1,
-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.