NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the frequency of the Turion 64 X2 TL-62? | CREATE TABLE table_name_8 (frequency VARCHAR, model_number VARCHAR) | SELECT frequency FROM table_name_8 WHERE model_number = "turion 64 x2 tl-62" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
30989,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7321,
13,
8,
2740,
16310,
6687,
3,
4,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7321,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
4317,
106,
6687,
3,
226,
357,
3,
17,
40,
18,
4056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of top-25s for the major that has 11 top-10s? | CREATE TABLE table_name_95 (
top_25 VARCHAR,
top_10 VARCHAR
) | SELECT COUNT(top_25) FROM table_name_95 WHERE top_10 = 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
420,
834,
1828,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
420,
14855,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2916,
834,
1828,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
420,
834,
1714,
3274,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the score on December 1? | CREATE TABLE table_34723 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_34723 WHERE "Date" = 'december 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4177,
2773,
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,
2962,
18901,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
519,
4177,
2773,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest goals for more than 30 games played? | CREATE TABLE table_name_88 (
goals_for INTEGER,
played INTEGER
) | SELECT MIN(goals_for) FROM table_name_88 WHERE played > 30 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
1766,
834,
1161,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
1766,
21,
72,
145,
604,
1031,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
839,
5405,
834,
1161,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1944,
2490,
604,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the highest gold when the nation is total and the total is less than 24? | CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR) | SELECT MAX(gold) FROM table_name_8 WHERE nation = "total" AND "total" < 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
14910,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
2045,
116,
8,
2982,
19,
792,
11,
8,
792,
19,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2982,
3274,
96,
235,
1947,
121,
3430,
96,
235,
1947,
121,
3,
2,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the home team on February 18 that had a visitor of the Chicago Black Hawks? | CREATE TABLE table_name_56 (
home VARCHAR,
visitor VARCHAR,
date VARCHAR
) | SELECT home FROM table_name_56 WHERE visitor = "chicago black hawks" AND date = "february 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
234,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
30,
2083,
507,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
7019,
3274,
96,
1436,
658,
839,
1001,
3,
14400,
7,
121,
3430,
833,
3274,
96,
89,
15,
9052,
1208,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Pie chart. how old is the youngest person for each job? | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT job, MIN(age) FROM Person GROUP BY job | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5780,
41,
564,
3,
4331,
4059,
599,
1755,
201,
1246,
3,
21342,
17966,
6,
690,
3,
3463,
4,
382,
6,
7285,
3,
3463,
4,
382,
6,
613,
3,
3463,
4,
382,
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,
613,
6,
3,
17684,
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,... |
Who was the opponent in the final on 5 July 1992? | CREATE TABLE table_name_46 (opponent_in_the_final VARCHAR, date VARCHAR) | SELECT opponent_in_the_final FROM table_name_46 WHERE date = "5 july 1992" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
32,
102,
9977,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
833,
3274,
96,
755,
3,
2047,
120,
9047,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the captain of the team in Southampton? | CREATE TABLE table_18461635_1 (captain VARCHAR, location VARCHAR) | SELECT captain FROM table_18461635_1 WHERE location = "Southampton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4448,
2938,
2469,
834,
536,
41,
4010,
17,
9,
77,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
14268,
13,
8,
372,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14268,
21680,
953,
834,
2606,
4448,
2938,
2469,
834,
536,
549,
17444,
427,
1128,
3274,
96,
22081,
265,
11632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients are admitted under elective type and use 5% dextrose (excel bag)? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "5% Dextrose (EXCEL BAG)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the score in the game where the Blazers were the home team? | CREATE TABLE table_35208 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Score" FROM table_35208 WHERE "Home" = 'blazers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
23946,
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,
2796,
9,
26,
53,
2604,
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,
134,
9022,
121,
21680,
953,
834,
2469,
23946,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
21020,
52,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the accreditation type of Vodacom Group PTY LTD (Vodafone group)? | CREATE TABLE table_name_22 (
accreditation_type VARCHAR,
company_name VARCHAR
) | SELECT accreditation_type FROM table_name_22 WHERE company_name = "vodacom group pty ltd (vodafone group)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
24513,
834,
6137,
584,
4280,
28027,
6,
349,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
24513,
686,
13,
3152,
26,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24513,
834,
6137,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
349,
834,
4350,
3274,
96,
1621,
26,
9,
287,
563,
3,
102,
17,
63,
3,
40,
17,
26,
41,
1621,
26,
9,
89,
782,
563,
61,
121,
1,
-100,
-100,
-100,... |
What was the placing when the jockey was Damien Oliver? | CREATE TABLE table_3162 (
"Saddle cloth" real,
"Horse" text,
"Trainer" text,
"Jockey" text,
"Weight (kg)" text,
"Barrier [b ]" real,
"Placing" text
) | SELECT "Placing" FROM table_3162 WHERE "Jockey" = 'Damien Oliver' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
4056,
41,
96,
134,
9,
8437,
10366,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
9402,
4899,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
1326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
9700,
53,
121,
21680,
953,
834,
3341,
4056,
549,
17444,
427,
96,
683,
3961,
15,
63,
121,
3274,
3,
31,
308,
3690,
35,
15865,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is part 4 when the class is 5? | CREATE TABLE table_name_37 (
part_4 VARCHAR,
class VARCHAR
) | SELECT part_4 FROM table_name_37 WHERE class = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
294,
834,
591,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
294,
314,
116,
8,
853,
19,
305,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
294,
834,
591,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
853,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every record for the team Boston? | CREATE TABLE table_23248869_10 (record VARCHAR, team VARCHAR) | SELECT record FROM table_23248869_10 WHERE team = "Boston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
4060,
3951,
834,
1714,
41,
60,
7621,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
1368,
21,
8,
372,
5053,
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,
1368,
21680,
953,
834,
2773,
2266,
4060,
3951,
834,
1714,
549,
17444,
427,
372,
3274,
96,
279,
32,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who were the partners in 2012? | CREATE TABLE table_2259502_2 (partner VARCHAR, year VARCHAR) | SELECT partner FROM table_2259502_2 WHERE year = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20489,
25188,
357,
834,
357,
41,
12300,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
3222,
16,
1673,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2397,
21680,
953,
834,
20489,
25188,
357,
834,
357,
549,
17444,
427,
215,
3274,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the run 3 for the team in rank 12? | CREATE TABLE table_47138 (
"Rank" text,
"Team" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Run 4" text,
"Final" text
) | SELECT "Run 3" FROM table_47138 WHERE "Rank" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
22744,
41,
96,
22557,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
448,
202,
209,
121,
1499,
6,
96,
448,
202,
204,
121,
1499,
6,
96,
448,
202,
220,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
202,
220,
121,
21680,
953,
834,
4177,
22744,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for january 14, 2008 | CREATE TABLE table_name_19 (
result VARCHAR,
date VARCHAR
) | SELECT result FROM table_name_19 WHERE date = "january 14, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
741,
21,
3,
7066,
76,
1208,
11363,
2628,
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,
741,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
11363,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many episodes are numbered 4 in the season? | CREATE TABLE table_26561506_1 (
patient_portrayer VARCHAR,
_number VARCHAR
) | SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
41,
1868,
834,
1493,
2866,
49,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10061,
834,
1493,
2866,
49,
61,
21680,
953,
834,
2688,
4834,
1808,
5176,
834,
536,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tg ( triglyceride ) greater than 400 mg / dl | CREATE TABLE table_train_113 (
"id" int,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"body_weight" float,
"diastolic_blood_pressure_dbp" int,
"body_mass_index_bmi" float,
"triglyceride_tg" float,
"NOUSE" float
) | SELECT * FROM table_train_113 WHERE triglyceride_tg >= 400 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
20522,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
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,
1429,
21680,
953,
834,
9719,
834,
20522,
549,
17444,
427,
3,
17,
3380,
120,
2110,
1599,
834,
17,
122,
2490,
2423,
4837,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is total number of laps for bikes manufactured by KTM with a time of +3.578 and a grid number larger than 4? | CREATE TABLE table_name_22 (
laps VARCHAR,
grid VARCHAR,
manufacturer VARCHAR,
time_retired VARCHAR
) | SELECT COUNT(laps) FROM table_name_22 WHERE manufacturer = "ktm" AND time_retired = "+3.578" AND grid > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
14941,
7,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
4818,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
4818,
3274,
96,
157,
17,
51,
121,
3430,
97,
834,
10682,
1271,
3274,
96,
1220,
9285,
3940,
121,
3430,
8634,
2490,
314,
1,
-100,
-100,
... |
What was the last year that they had less than 16 points in class 500cc? | CREATE TABLE table_name_11 (
year INTEGER,
points VARCHAR,
class VARCHAR
) | SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = "500cc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
215,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
336,
215,
24,
79,
141,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
979,
3,
2,
898,
3430,
853,
3274,
96,
2560,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many titles have the name 'quick callanetics'? | CREATE TABLE table_165 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
) | SELECT COUNT("Catalog Number") FROM table_165 WHERE "Title" = 'Quick Callanetics' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22823,
41,
96,
476,
2741,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13076,
26,
23,
32,
121,
1499,
6,
96,
1649,
40,
14608,
7678,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
18610,
9,
2152,
7720,
8512,
21680,
953,
834,
22823,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
5991,
3142,
2571,
152,
7578,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which elementary schools list Cort Monroe as the principal from 2013 to 2014? | CREATE TABLE table_19206 (
"Elementary Schools" text,
"Mascot" text,
"Address" text,
"Principal (2013-2014)" text,
"Assistant Principal (2013-2014)" text
) | SELECT "Elementary Schools" FROM table_19206 WHERE "Principal (2013-2014)" = 'Cort Monroe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
24643,
41,
96,
427,
3335,
1208,
13255,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
20773,
9377,
121,
1499,
6,
96,
7855,
29,
3389,
138,
41,
11138,
18,
10218... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
3335,
1208,
13255,
121,
21680,
953,
834,
2294,
24643,
549,
17444,
427,
96,
7855,
29,
3389,
138,
41,
11138,
18,
10218,
61,
121,
3274,
3,
31,
13026,
17,
25182,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is The Melbourne with a No- Gold Coast | CREATE TABLE table_name_67 (
melbourne VARCHAR,
gold_coast VARCHAR
) | SELECT melbourne FROM table_name_67 WHERE gold_coast = "no" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3,
2341,
26255,
584,
4280,
28027,
6,
2045,
834,
25500,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
37,
9396,
28,
3,
9,
465,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2341,
26255,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
2045,
834,
25500,
3274,
96,
29,
32,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
did chicago win more or less than cal berkeley ? | CREATE TABLE table_204_879 (
id number,
"year" number,
"host / location" text,
"division i overall" text,
"division i undergraduate" text,
"division ii overall" text,
"division ii community college" text
) | SELECT (SELECT COUNT(*) FROM table_204_879 WHERE "division i overall" = 'chicago') > (SELECT COUNT(*) FROM table_204_879 WHERE "division i overall" = 'cal-berkeley') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
4440,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
12675,
3,
87,
1128,
121,
1499,
6,
96,
26,
23,
6610,
3,
23,
1879,
121,
1499,
6,
96,
26,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
927,
4440,
549,
17444,
427,
96,
26,
23,
6610,
3,
23,
1879,
121,
3274,
3,
31,
1436,
658,
839,
31,
61,
2490,
41,
23143,
14196,
2847,
17161,
... |
What is the largest amount of sunlight hours for the City of Pontevedra? | CREATE TABLE table_name_23 (
sunlight_hours INTEGER,
city_town VARCHAR
) | SELECT MAX(sunlight_hours) FROM table_name_23 WHERE city_town = "pontevedra" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
16285,
834,
5842,
7,
3,
21342,
17966,
6,
690,
834,
3540,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
866,
13,
16285,
716,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
7,
202,
2242,
834,
5842,
7,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
690,
834,
3540,
3274,
96,
5041,
17,
15,
162,
3515,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
At what event did he fight matt eckerle? | CREATE TABLE table_name_55 (
event VARCHAR,
opponent VARCHAR
) | SELECT event FROM table_name_55 WHERE opponent = "matt eckerle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
605,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
605,
410,
3,
88,
2870,
6928,
17,
3,
15,
3383,
109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
15264,
3274,
96,
3357,
17,
3,
15,
3383,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hepatic disease ( transaminase > 3 times normal ) or cirrhosis | CREATE TABLE table_train_173 (
"id" int,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"hepatitis_c" bool,
"hepatitis_b" bool,
"cirrhosis" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"allergy_to_egg" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"NOUSE" float
) | SELECT * FROM table_train_173 WHERE hepatic_disease = 1 OR cirrhosis = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2517,
519,
41,
96,
23,
26,
121,
16,
17,
6,
96,
107,
23,
208,
834,
77,
17856,
121,
3,
12840,
40,
6,
96,
6015,
32,
14063,
77,
834,
9,
536,
75,
834,
107,
115,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2517,
519,
549,
17444,
427,
3,
88,
7768,
75,
834,
26,
159,
14608,
3274,
209,
4674,
3,
15357,
52,
11982,
159,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the elevation of Vanuatu, when the rank is smaller than 3? | CREATE TABLE table_name_22 (
elevation__m_ INTEGER,
country VARCHAR,
rank VARCHAR
) | SELECT AVG(elevation__m_) FROM table_name_22 WHERE country = "vanuatu" AND rank < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
16417,
834,
834,
51,
834,
3,
21342,
17966,
6,
684,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1641... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
15,
10912,
257,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
684,
3274,
96,
2132,
76,
144,
76,
121,
3430,
11003,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the host of Horrid Henry? | CREATE TABLE table_name_74 (host VARCHAR, country VARCHAR) | SELECT host FROM table_name_74 WHERE country = "horrid henry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
12675,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2290,
13,
6766,
4055,
7780,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2290,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
684,
3274,
96,
107,
127,
4055,
3,
3225,
651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If the driver is Milka Duno, what is the name of the team? | CREATE TABLE table_21872 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT "Team" FROM table_21872 WHERE "Driver" = 'Milka Duno' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4225,
357,
41,
96,
371,
77,
5,
13995,
121,
490,
6,
96,
6936,
465,
535,
490,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2658,
4225,
357,
549,
17444,
427,
96,
20982,
52,
121,
3274,
3,
31,
329,
173,
1258,
6393,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which keys (x modes) have a Supplier of wolfking? | CREATE TABLE table_name_55 (
keys__x_modes_ VARCHAR,
supplier VARCHAR
) | SELECT keys__x_modes_ FROM table_name_55 WHERE supplier = "wolfking" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
9060,
834,
834,
226,
834,
14930,
7,
834,
584,
4280,
28027,
6,
8106,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
9060,
41,
226,
12632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9060,
834,
834,
226,
834,
14930,
7,
834,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
8106,
3274,
96,
19747,
1765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When 24:31 is the run time how many millions of viewers are there? | CREATE TABLE table_2410 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) | SELECT "Viewers (in millions)" FROM table_2410 WHERE "Run time" = '24:31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
1714,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
279,
8635,
5254,
833,
121,
1499,
6,
96,
448,
202,
97,
121,
1499,
6,
96,
15270,
277,
41,
77,
4040,
61,
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,
15270,
277,
41,
77,
4040,
61,
121,
21680,
953,
834,
2266,
1714,
549,
17444,
427,
96,
448,
202,
97,
121,
3274,
3,
31,
2266,
10,
3341,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which tournament has an Outcome of winner, and a Opponent of dia evtimova? | CREATE TABLE table_52753 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Tournament" FROM table_52753 WHERE "Outcome" = 'winner' AND "Opponent" = 'dia evtimova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3072,
519,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
5373,
3072,
519,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
26,
23,
9,
3,
15,
208,
2998,
6... |
Find Nationality and the average of ID , and group by attribute Nationality, and visualize them by a bar chart, and I want to display in ascending by the Y. | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
) | SELECT Nationality, AVG(ID) FROM swimmer GROUP BY Nationality ORDER BY AVG(ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
868,
485,
6,
71,
17217,
599,
4309,
61,
21680,
27424,
350,
4630,
6880,
272,
476,
868,
485,
4674,
11300,
272,
476,
71,
17217,
599,
4309,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the nickname of the students of the school founded in 1933? | CREATE TABLE table_1973816_1 (nickname VARCHAR, founded VARCHAR) | SELECT nickname FROM table_1973816_1 WHERE founded = 1933 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3747,
2938,
834,
536,
41,
11191,
4350,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
24649,
13,
8,
481,
13,
8,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
24649,
21680,
953,
834,
27181,
3747,
2938,
834,
536,
549,
17444,
427,
5710,
3274,
26957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson? | CREATE TABLE table_29225103_2 (hp_winning_team VARCHAR, ep_winning_team VARCHAR, gm_winning_team VARCHAR) | SELECT hp_winning_team FROM table_29225103_2 WHERE ep_winning_team = "Hans Zereis" AND gm_winning_team = "Charles Gibson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
20489,
17864,
834,
357,
41,
107,
102,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
15,
102,
834,
8163,
834,
11650,
584,
4280,
28027,
6,
3,
122,
51,
834,
8163,
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,
3,
107,
102,
834,
8163,
834,
11650,
21680,
953,
834,
3166,
20489,
17864,
834,
357,
549,
17444,
427,
3,
15,
102,
834,
8163,
834,
11650,
3274,
96,
566,
3247,
1027,
10340,
7,
121,
3430,
3,
122,
51,
834,
8163,
834,
11... |
Which Senior status has Appointed by of l. johnson category:articles with hcards, and Born/Died of 1918 2009? | CREATE TABLE table_59402 (
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
) | SELECT "Senior status" FROM table_59402 WHERE "Appointed by" = 'l. johnson category:articles with hcards' AND "Born/Died" = '1918–2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
2445,
357,
41,
96,
134,
4748,
121,
1499,
6,
96,
279,
127,
29,
87,
8639,
26,
121,
1499,
6,
96,
13035,
15,
313,
121,
1499,
6,
96,
3541,
23,
15,
89,
12330,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
35,
23,
127,
2637,
121,
21680,
953,
834,
3390,
2445,
357,
549,
17444,
427,
96,
9648,
32,
2429,
26,
57,
121,
3274,
3,
31,
40,
5,
3,
27341,
739,
3295,
10,
8372,
7,
28,
3,
107,
6043,
7,
31,
3430,
96,
2... |
Which country placed t5? | CREATE TABLE table_name_6 (
country VARCHAR,
place VARCHAR
) | SELECT country FROM table_name_6 WHERE place = "t5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
684,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
684,
2681,
3,
17,
755,
58,
1,
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,
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... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
286,
3274,
96,
17,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many people attended the game whose score was 1-1? | CREATE TABLE table_name_62 (
attendance VARCHAR,
record VARCHAR
) | SELECT attendance FROM table_name_62 WHERE record = "1-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
11364,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
151,
5526,
8,
467,
3,
2544,
2604,
47,
209,
2292,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
1368,
3274,
96,
536,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission year is less than 2144 and lab test name is heparin, lmw? | 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2144" AND lab.label = "Heparin, LMW" | [
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,... |
Return the apartment number and the number of rooms for each apartment by a bar chart, and show by the y-axis from high to low. | CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
) | SELECT apt_number, room_count FROM Apartments ORDER BY room_count DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
834,
371,
9,
13067,
3010,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
3064,
834,
4978,
3,
28027,
599,
1808,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6789,
834,
5525,
1152,
6,
562,
834,
13362,
21680,
15970,
7,
4674,
11300,
272,
476,
562,
834,
13362,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
List all the name of organizations in order of the date formed. | CREATE TABLE party_services (
booking_id number,
customer_id number,
service_id number,
service_datetime time,
booking_made_date time
)
CREATE TABLE party_forms (
party_id number,
form_id number,
date_completion_started time,
form_status_code text,
date_fully_completed time
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
town_city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE forms (
form_id number,
form_type_code text,
service_id number,
form_number text,
form_name text,
form_description text
)
CREATE TABLE services (
service_id number,
service_type_code text,
service_name text,
service_descriptio text
)
CREATE TABLE parties (
party_id number,
payment_method_code text,
party_phone text,
party_email text
)
CREATE TABLE organization_contact_individuals (
individual_id number,
organization_id number,
date_contact_from time,
date_contact_to time
)
CREATE TABLE individuals (
individual_id number,
individual_first_name text,
individual_middle_name text,
inidividual_phone text,
individual_email text,
individual_address text,
individual_last_name text
)
CREATE TABLE party_addresses (
party_id number,
address_id number,
date_address_from time,
address_type_code text,
date_address_to time
)
CREATE TABLE organizations (
organization_id number,
date_formed time,
organization_name text,
uk_vat_number text
) | SELECT organization_name FROM organizations ORDER BY date_formed | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
834,
5114,
7,
41,
5038,
834,
23,
26,
381,
6,
884,
834,
23,
26,
381,
6,
313,
834,
23,
26,
381,
6,
313,
834,
5522,
715,
97,
6,
5038,
834,
4725,
834,
5522,
97,
3,
61,
3,
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,
1470,
834,
4350,
21680,
2371,
4674,
11300,
272,
476,
833,
834,
10816,
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,
-1... |
What played has 3 as the losing bonus? | CREATE TABLE table_37839 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text
) | SELECT "Played" FROM table_37839 WHERE "Losing bonus" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3940,
3288,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
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,
15800,
15,
26,
121,
21680,
953,
834,
519,
3940,
3288,
549,
17444,
427,
96,
434,
32,
7,
53,
4023,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
I want to know the pens with conv of 6 | CREATE TABLE table_name_10 (pens VARCHAR, conv VARCHAR) | SELECT pens FROM table_name_10 WHERE conv = "6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
3801,
584,
4280,
28027,
6,
975,
208,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
3,
3801,
28,
975,
208,
13,
431,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
3801,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
975,
208,
3274,
96,
948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the naems of all the projects, and how many scientists were assigned to each of them, rank in descending by the Y. | CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
) | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
3636,
7435,
10820,
6,
5570,
7435,
599,
1752,
201,
10768,
7,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21166,
7,
41,
180,
8544,
16,
17,
6,
557... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
282,
15532,
3696,
6157,
332,
357,
9191,
332,
5411,
22737,
3274,
332,
4416,
3174,
11827,
350,
4630,
6880,
272,
476,
332,
5411,
23954,... |
What was the lowest draw when the against was larger than 2638? | CREATE TABLE table_name_50 (
draws INTEGER,
against INTEGER
) | SELECT MIN(draws) FROM table_name_50 WHERE against > 2638 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
14924,
3,
21342,
17966,
6,
581,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
3314,
116,
8,
581,
47,
2186,
145,
2208,
3747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
581,
2490,
2208,
3747,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Unit has Authors of dalla vecchia, wild, & reitner? | CREATE TABLE table_6911 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
) | SELECT "Unit" FROM table_6911 WHERE "Authors" = 'dalla vecchia, wild, & reitner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
2596,
41,
96,
23954,
121,
1499,
6,
96,
4168,
4911,
17,
63,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
5110,
155,
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,
5110,
155,
121,
21680,
953,
834,
3951,
2596,
549,
17444,
427,
96,
23602,
127,
7,
121,
3274,
3,
31,
26,
1748,
9,
3,
162,
75,
1436,
9,
6,
3645,
6,
3,
184,
3,
60,
155,
687,
31,
1,
-100,
-100,
-100,
-100,
-1... |
Which player is from Sweden? | CREATE TABLE table_37418 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team" text
) | SELECT "Player" FROM table_37418 WHERE "Nationality" = 'sweden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4581,
2606,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15800,
49,
121,
21680,
953,
834,
519,
4581,
2606,
549,
17444,
427,
96,
24732,
485,
121,
3274,
3,
31,
7,
1123,
537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest score of the team with 19 points and less than 18 played? | CREATE TABLE table_name_82 (scored INTEGER, points VARCHAR, played VARCHAR) | SELECT MIN(scored) FROM table_name_82 WHERE points = 19 AND played < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3523,
1271,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
2604,
13,
8,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3523,
1271,
61,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
979,
3274,
957,
3430,
1944,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Location Attendance has a Game larger than 5? | CREATE TABLE table_name_32 (
location_attendance VARCHAR,
game INTEGER
) | SELECT location_attendance FROM table_name_32 WHERE game > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
10450,
22497,
663,
65,
3,
9,
4435,
2186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
467,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the campus fee of 'San Jose State University' in year 2000. | CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
) | SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Jose State University" AND t1.year = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17938,
7,
41,
4730,
381,
6,
215,
381,
6,
792,
35,
4046,
297,
834,
9,
63,
381,
6,
3,
89,
17,
15,
834,
9,
63,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
799... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
5411,
25532,
89,
15,
15,
21680,
3,
75,
7,
76,
834,
89,
15,
15,
7,
6157,
3,
17,
536,
3,
15355,
3162,
25784,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25532,
3274,
3,
17,
4416,
23,
26,
549,
17444,
427,
3,
... |
Name the polyunsaturated fat with total fat of 100g and saturated fat of 7g | CREATE TABLE table_53751 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
) | SELECT "Polyunsaturated fat" FROM table_53751 WHERE "Total fat" = '100g' AND "Saturated fat" = '7g' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
3072,
536,
41,
96,
3696,
1947,
2886,
121,
1499,
6,
96,
134,
6010,
920,
2886,
121,
1499,
6,
96,
9168,
32,
202,
7,
6010,
920,
2886,
121,
1499,
6,
96,
8931,
63,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8931,
63,
202,
7,
6010,
920,
2886,
121,
21680,
953,
834,
4867,
3072,
536,
549,
17444,
427,
96,
3696,
1947,
2886,
121,
3274,
3,
31,
2915,
122,
31,
3430,
96,
134,
6010,
920,
2886,
121,
3274,
3,
31,
940,
122,
3... |
What is the tie with a win of 0? | CREATE TABLE table_44179 (
"Season" text,
"Division" text,
"Wins" text,
"Ties" text,
"Final Position" text
) | SELECT "Ties" FROM table_44179 WHERE "Wins" = '0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
26593,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
18455,
7,
121,
1499,
6,
96,
382,
725,
121,
1499,
6,
96,
371,
10270,
14258,
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,
382,
725,
121,
21680,
953,
834,
3628,
26593,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what's the current country of location with operational period of summer of 1941 to 28 june 1944 | CREATE TABLE table_16056 (
"Camp" text,
"Estimated deaths" text,
"Operational" text,
"Occupied territory" text,
"Current country of location" text,
"Primary means for mass killings" text
) | SELECT "Current country of location" FROM table_16056 WHERE "Operational" = 'Summer of 1941 to 28 June 1944' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19129,
4834,
41,
96,
24626,
121,
1499,
6,
96,
14997,
603,
920,
14319,
121,
1499,
6,
96,
667,
883,
257,
138,
121,
1499,
6,
96,
667,
75,
4658,
5973,
9964,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
450,
5320,
684,
13,
1128,
121,
21680,
953,
834,
19129,
4834,
549,
17444,
427,
96,
667,
883,
257,
138,
121,
3274,
3,
31,
134,
440,
935,
13,
24822,
12,
2059,
1515,
21930,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the M1A1 when the M60A3 was T (Short Tons)? | CREATE TABLE table_61158 (
"Lince" text,
"Leopard 2A4" text,
"Leclerc" text,
"M1A1 Abrams" text,
"M60A3 Patton" text
) | SELECT "M1A1 Abrams" FROM table_61158 WHERE "M60A3 Patton" = 't (short tons)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
26556,
41,
96,
434,
77,
565,
121,
1499,
6,
96,
2796,
32,
1893,
26,
204,
188,
20364,
1499,
6,
96,
2796,
75,
1171,
75,
121,
1499,
6,
96,
329,
536,
188,
536,
891,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
536,
188,
536,
891,
2375,
7,
121,
21680,
953,
834,
4241,
26556,
549,
17444,
427,
96,
329,
3328,
188,
519,
5192,
17,
106,
121,
3274,
3,
31,
17,
41,
7,
14184,
8760,
61,
31,
1,
-100,
-100,
-100,
-100,
-100... |
how many total representatives have there been ? | CREATE TABLE table_203_778 (
id number,
"representative" text,
"title" text,
"presentation\nof credentials" text,
"termination\nof mission" text,
"appointed by" text
) | SELECT COUNT(DISTINCT "representative") FROM table_203_778 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
3940,
41,
3,
23,
26,
381,
6,
96,
60,
12640,
1528,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
12640,
257,
2,
29,
858,
17500,
121,
1499,
6,
96,
6544,
257... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
60,
12640,
1528,
8512,
21680,
953,
834,
23330,
834,
940,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What format does Japan use? | CREATE TABLE table_name_34 (
format VARCHAR,
country VARCHAR
) | SELECT format FROM table_name_34 WHERE country = "japan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
1910,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1910,
405,
3411,
169,
58,
1,
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,
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... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
684,
3274,
96,
1191,
2837,
121,
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 Result that has the New York Rangers as the Offer Team and Adam Graves as the Player? | CREATE TABLE table_name_79 (result VARCHAR, offer_team VARCHAR, player VARCHAR) | SELECT result FROM table_name_79 WHERE offer_team = "new york rangers" AND player = "adam graves" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
462,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
462,
834,
11650,
3274,
96,
5534,
25453,
620,
52,
7,
121,
3430,
1959,
3274,
96,
9,
7812,
7808,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
male and female , > 18 years but < 75 years old. | CREATE TABLE table_dev_44 (
"id" int,
"gender" string,
"arterial_ph" float,
"systolic_blood_pressure_sbp" int,
"serum_bicarbonate" int,
"anion_gap" int,
"diabetic" string,
"diabetic_ketoacidosis" bool,
"blood_glucose" int,
"diastolic_blood_pressure_dbp" int,
"positive_serum_ketones" bool,
"serum_osmolarity" int,
"serum_creatinine" float,
"metformin" bool,
"hyperosmolar_hyperglycemic_state" bool,
"hypertension" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_dev_44 WHERE (gender = 'male' OR gender = 'female') AND (age > 18 AND age < 75) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9776,
834,
3628,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
1408,
15,
12042,
834,
102,
107,
121,
3,
12660,
6,
96,
7,
63,
7,
235,
2176,
834,
2779... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9776,
834,
3628,
549,
17444,
427,
41,
122,
3868,
3274,
3,
31,
13513,
31,
4674,
7285,
3274,
3,
31,
89,
15,
13513,
31,
61,
3430,
41,
545,
2490,
507,
3430,
1246,
3,
2,
6374,
61,
1,
-100,
-100... |
Which American has British of m? | CREATE TABLE table_78711 (
"Ending" text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
) | SELECT "American" FROM table_78711 WHERE "British" = 'ɛm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
4450,
536,
41,
96,
8532,
26,
53,
121,
1499,
6,
96,
8778,
121,
1499,
6,
96,
279,
13224,
7,
107,
121,
1499,
6,
96,
31971,
29,
121,
1499,
6,
96,
5420,
9,
9208,
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,
0... | [
3,
23143,
14196,
96,
8778,
121,
21680,
953,
834,
3940,
4450,
536,
549,
17444,
427,
96,
279,
13224,
7,
107,
121,
3274,
3,
31,
2,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
count the number of patients whose diagnoses icd9 code is 29690 and lab test abnormal status is abnormal? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "29690" AND lab.flag = "abnormal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What's the date of the first airing of the episode with series number 63? | CREATE TABLE table_10718192_2 (original_air_date VARCHAR, no_in_series VARCHAR) | SELECT original_air_date FROM table_10718192_2 WHERE no_in_series = 63 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
2606,
19978,
834,
357,
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,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
926,
834,
2256,
834,
5522,
21680,
953,
834,
18057,
2606,
19978,
834,
357,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
3,
3891,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What rank did the dallara chassis finish in 2000? | CREATE TABLE table_80275 (
"Year" text,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text
) | SELECT "Rank" FROM table_80275 WHERE "Year" = '2000' AND "Chassis" = 'dallara' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
25988,
41,
96,
476,
2741,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22557,
121,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
22557,
121,
21680,
953,
834,
2079,
25988,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
13527,
31,
3430,
96,
3541,
6500,
7,
121,
3274,
3,
31,
26,
1748,
2551,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What away team plays at Victoria Park? | CREATE TABLE table_name_60 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_60 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
550,
372,
4805,
44,
7488,
1061,
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,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the rank of the team having 3 bronzes and 0 silver? | CREATE TABLE table_name_79 (
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR
) | SELECT rank FROM table_name_79 WHERE bronze = 3 AND silver = 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11003,
13,
8,
372,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
13467,
3274,
220,
3430,
4294,
3274,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize the title and and the average star rating of the movie using a bar chart, display from low to high by the y-axis. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title ORDER BY AVG(stars) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
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,
2233,
6,
71,
17217,
599,
3624,
7,
61,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
2233,
4674,
11300,
272,
476... |
count the number of patients whose procedure long title is continuous invasive mechanical ventilation for less than 96 consecutive hours and lab test category is blood gas. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE 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 (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Continuous invasive mechanical ventilation for less than 96 consecutive hours" AND lab."CATEGORY" = "Blood Gas" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
3388,
18206... |
What is the maximum McCain population turnout number? | CREATE TABLE table_20684390_1 (mccain_number INTEGER) | SELECT MAX(mccain_number) FROM table_20684390_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3651,
4906,
2394,
834,
536,
41,
51,
12464,
77,
834,
5525,
1152,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2411,
27463,
2074,
919,
670,
381,
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,
4800,
4,
599,
51,
12464,
77,
834,
5525,
1152,
61,
21680,
953,
834,
1755,
3651,
4906,
2394,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total of attendance at Venue h when Auxerre were playing? | CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR) | SELECT SUM(attendance) FROM table_name_14 WHERE venue = "h" AND opponent = "auxerre" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
15116,
663,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
13,
11364,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
5669,
3274,
96,
107,
121,
3430,
15264,
3274,
96,
1724,
49,
60,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which game at most has the most high rebounds ? | CREATE TABLE table_204_833 (
id number,
"game" number,
"date" text,
"team" text,
"score" text,
"high points" text,
"high rebounds" text,
"high assists" text,
"location\nattendance" text,
"record" text
) | SELECT "game" FROM table_204_833 ORDER BY "high rebounds" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4591,
519,
41,
3,
23,
26,
381,
6,
96,
7261,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
11650,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
6739,
979,
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,
1... | [
3,
23143,
14196,
96,
7261,
121,
21680,
953,
834,
26363,
834,
4591,
519,
4674,
11300,
272,
476,
96,
6739,
3,
23768,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which player from Tucson, Arizona won the Championship? | CREATE TABLE table_32522 (
"Year" real,
"Champion" text,
"Score" text,
"Runner-Up" text,
"Arena" text,
"City" text,
"Tournament MVP" text
) | SELECT "Champion" FROM table_32522 WHERE "City" = 'tucson, arizona' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
1828,
2884,
41,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
11161,
121,
1499,
6,
96,
188,
1536,
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,
96,
254,
1483,
12364,
121,
21680,
953,
834,
519,
1828,
2884,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
17,
76,
75,
739,
6,
3,
1665,
8892,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who was hired before 2002-06-21, show me about the distribution of job_id and the average of salary , and group by attribute job_id in a bar chart, could you list the average of salary in desc order please? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(SALARY) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
350,
4630,
6880,
272,
476,
446,
10539,
834,
4309,
... |
What is the share value of the episode 'sins of the father | CREATE TABLE table_27201 (
"#" real,
"Episode" text,
"Air Date" text,
"Timeslot (EST)" text,
"Rating" text,
"Share" real,
"18-49 (Rating/Share)" text,
"Viewers (m)" text,
"Weekly Rank (#)" text
) | SELECT MAX("Share") FROM table_27201 WHERE "Episode" = 'Sins of the Father' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
22772,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
20162,
7678,
121,
1499,
6,
96,
13368,
7,
3171,
41,
6038,
61,
121,
1499,
6,
96,
448... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
24501,
8512,
21680,
953,
834,
2555,
22772,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
134,
77,
7,
13,
8,
6946,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number of years did the red bull sauber petronas have greater than 6 points? | CREATE TABLE table_name_90 (year VARCHAR, entrant VARCHAR, points VARCHAR) | SELECT COUNT(year) FROM table_name_90 WHERE entrant = "red bull sauber petronas" AND points > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
1201,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
13,
203,
410,
8,
1131... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
3,
295,
3569,
3274,
96,
1271,
8434,
24007,
158,
6255,
9,
7,
121,
3430,
979,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the former province with area (km 2 ) being 12,245.9 | CREATE TABLE table_1404456_1 (
former_province VARCHAR,
area__km_2__ VARCHAR
) | SELECT former_province FROM table_1404456_1 WHERE area__km_2__ = "12,245.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
3628,
4834,
834,
536,
41,
1798,
834,
1409,
2494,
565,
584,
4280,
28027,
6,
616,
834,
834,
5848,
834,
357,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
1798,
834,
1409,
2494,
565,
21680,
953,
834,
22012,
3628,
4834,
834,
536,
549,
17444,
427,
616,
834,
834,
5848,
834,
357,
834,
834,
3274,
96,
2122,
6,
2266,
9125,
1298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the date for motogp winner of casey stoner and grand prix of valencian grand prix | CREATE TABLE table_name_15 (date VARCHAR, motogp_winner VARCHAR, grand_prix VARCHAR) | SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
5522,
584,
4280,
28027,
6,
3,
11188,
122,
102,
834,
3757,
687,
584,
4280,
28027,
6,
1907,
834,
2246,
226,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
11188,
122,
102,
834,
3757,
687,
3274,
96,
6701,
63,
3372,
52,
121,
3430,
1907,
834,
2246,
226,
3274,
96,
2165,
35,
4915,
29,
1907,
3407,
121,
1,
-100,
-1... |
What score did the away team receive against home team Port Adelaide? | CREATE TABLE table_16388478_3 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_16388478_3 WHERE home_team = "Port Adelaide" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3747,
4608,
3940,
834,
519,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
410,
8,
550,
372... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
2938,
3747,
4608,
3940,
834,
519,
549,
17444,
427,
234,
834,
11650,
3274,
96,
14714,
24272,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Channel has an Aspect of 4:3 and a Programming of me-tv? | CREATE TABLE table_name_10 (channel VARCHAR, aspect VARCHAR, programming VARCHAR) | SELECT channel FROM table_name_10 WHERE aspect = "4:3" AND programming = "me-tv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
19778,
584,
4280,
28027,
6,
2663,
584,
4280,
28027,
6,
6020,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
9916,
65,
46,
71,
5628,
13,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4245,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
2663,
3274,
96,
591,
10,
519,
121,
3430,
6020,
3274,
96,
526,
18,
17,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was Team 1 Junior's points? | CREATE TABLE table_27603010_14 (points VARCHAR, team__number1 VARCHAR) | SELECT points FROM table_27603010_14 WHERE team__number1 = "Junior" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3328,
1458,
1714,
834,
2534,
41,
2700,
7,
584,
4280,
28027,
6,
372,
834,
834,
5525,
1152,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
2271,
209,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
21680,
953,
834,
2555,
3328,
1458,
1714,
834,
2534,
549,
17444,
427,
372,
834,
834,
5525,
1152,
536,
3274,
96,
683,
202,
23,
127,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance when South Melbourne played as the home team? | CREATE TABLE table_name_21 (
crowd INTEGER,
home_team VARCHAR
) | SELECT MIN(crowd) FROM table_name_21 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
4374,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
116,
1013,
9396,
1944,
38,
8,
234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
670,
107,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many male patients had the lab test name potassium, whole blood? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Potassium, Whole Blood" | [
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,... |
What PBA team is the player from Ateneo college and a pick of 17? | CREATE TABLE table_name_10 (
pba_team VARCHAR,
college VARCHAR,
pick VARCHAR
) | SELECT pba_team FROM table_name_10 WHERE college = "ateneo" AND pick = 17 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
3,
102,
115,
9,
834,
11650,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
6,
1432,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
276,
488... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
102,
115,
9,
834,
11650,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1900,
3274,
96,
9,
324,
15,
32,
121,
3430,
1432,
3274,
1003,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of founder and the sum of revenue , and group by attribute founder, and sort Y in desc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY SUM(Revenue) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19145,
6,
180,
6122,
599,
1649,
15098,
61,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
3,
... |
What did the home team score when Carlton played as the Away team? | CREATE TABLE table_name_30 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team AS score FROM table_name_30 WHERE away_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
410,
8,
234,
372,
2604,
116,
3,
303... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the level name of the cheapest catalog (in USD)? | CREATE TABLE catalog_structure (
catalog_level_name VARCHAR,
catalog_level_number VARCHAR
)
CREATE TABLE catalog_contents (
catalog_level_number VARCHAR,
price_in_dollars VARCHAR
) | SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10173,
834,
16180,
41,
10173,
834,
4563,
834,
4350,
584,
4280,
28027,
6,
10173,
834,
4563,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
4416,
2138,
9,
2152,
834,
4563,
834,
4350,
21680,
10173,
834,
14819,
7,
6157,
3,
17,
536,
3,
15355,
3162,
10173,
834,
16180,
6157,
3,
17,
357,
9191,
3,
17,
5411,
2138,
9,
2152,
834,
4563,
834,
5525,
1152,
... |
What grad has a Time/Retired of + 1:24.3? | CREATE TABLE table_name_74 (
grid VARCHAR,
time_retired VARCHAR
) | SELECT grid FROM table_name_74 WHERE time_retired = "+ 1:24.3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
3987,
65,
3,
9,
2900,
87,
1649,
11809,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8634,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
30651,
21841,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player from the United States played for the Grizzlies from 1997-1998? | CREATE TABLE table_name_83 (
player VARCHAR,
nationality VARCHAR,
years_for_grizzlies VARCHAR
) | SELECT player FROM table_name_83 WHERE nationality = "united states" AND years_for_grizzlies = "1997-1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1959,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
203,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
3,
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,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
203,
834,
1161,
834,
3496,
5271,
4664,
3274,
96,
2294,
4327,
4481,
3916,
121,
1,
-100,
-100,
-100,
-100,
... |
How many buildings are there? | CREATE TABLE institution (
institution_id text,
institution text,
location text,
founded number,
type text,
enrollment number,
team text,
primary_conference text,
building_id text
)
CREATE TABLE building (
building_id text,
name text,
street_address text,
years_as_tallest text,
height_feet number,
floors number
)
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage number,
accession_number text,
sequence_length number,
sequence_identity_to_human_protein text,
institution_id text
) | SELECT COUNT(*) FROM building | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6568,
41,
6568,
834,
23,
26,
1499,
6,
6568,
1499,
6,
1128,
1499,
6,
5710,
381,
6,
686,
1499,
6,
17938,
381,
6,
372,
1499,
6,
2329,
834,
28496,
1499,
6,
740,
834,
23,
26,
1499,
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,
1935,
61,
21680,
740,
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,
-1... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and revenue , and group by attribute name, display in asc by the X. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
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,
332,
5411,
23954,
6,
332,
4416,
1649,
15098,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5... |
What is the report corresponding to the game that had the Townsville Crocodiles as home team? | CREATE TABLE table_47218 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
) | SELECT "Report" FROM table_47218 WHERE "Home team" = 'townsville crocodiles' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
357,
2606,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
1649,
1493,
121,
21680,
953,
834,
4177,
357,
2606,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3540,
9727,
3,
2771,
509,
26,
699,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of price , and group by attribute name, show by the x axis in descending. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23954,
6,
332,
5411,
345,
4920,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
541... |
What is the average Silver, when Gold is less than 0? | CREATE TABLE table_name_47 (silver INTEGER, gold INTEGER) | SELECT AVG(silver) FROM table_name_47 WHERE gold < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
7,
173,
624,
3,
21342,
17966,
6,
2045,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
5642,
6,
116,
2540,
19,
705,
145,
3,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2045,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many lanes have a Nationality of united states, and a Name of aaron peirsol? | CREATE TABLE table_name_28 (lane VARCHAR, nationality VARCHAR, name VARCHAR) | SELECT COUNT(lane) FROM table_name_28 WHERE nationality = "united states" AND name = "aaron peirsol" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
8102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
50,
1496,
43,
3,
9,
868,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8102,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1157,
485,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
564,
3274,
96,
9,
291,
106,
158,
23,
52,
4099,
121,
1,
-100,
-100,
-100,
-100,
-1... |
Which years did Michigan state university come in third place? | CREATE TABLE table_2331549_1 (
year VARCHAR,
third_place VARCHAR
) | SELECT year FROM table_2331549_1 WHERE third_place = "Michigan State University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20879,
1808,
3647,
834,
536,
41,
215,
584,
4280,
28027,
6,
1025,
834,
4687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
203,
410,
5847,
538,
3819,
369,
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... | [
3,
23143,
14196,
215,
21680,
953,
834,
20879,
1808,
3647,
834,
536,
549,
17444,
427,
1025,
834,
4687,
3274,
96,
329,
362,
12588,
1015,
636,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which number is the player from Minnesota? | CREATE TABLE table_11545282_12 (no INTEGER, school_club_team VARCHAR) | SELECT MAX(no) FROM table_11545282_12 WHERE school_club_team = "Minnesota" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15660,
2128,
2577,
357,
834,
2122,
41,
29,
32,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
381,
19,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
29,
32,
61,
21680,
953,
834,
15660,
2128,
2577,
357,
834,
2122,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
12858,
1496,
32,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the womens singles for korea open super series | CREATE TABLE table_14496232_2 (womens_singles VARCHAR, tour VARCHAR) | SELECT womens_singles FROM table_14496232_2 WHERE tour = "Korea Open Super Series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
4314,
23188,
834,
357,
41,
210,
32,
904,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
1552,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
887,
7,
712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
887,
7,
834,
7,
53,
965,
21680,
953,
834,
20885,
4314,
23188,
834,
357,
549,
17444,
427,
1552,
3274,
96,
439,
32,
864,
2384,
2011,
4531,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When phonetic realisation is [[[|u]]], what is the variant with niqqud? | CREATE TABLE table_name_84 (variant__with_niqqud__ VARCHAR, phonetic_realisation VARCHAR) | SELECT variant__with_niqqud__ FROM table_name_84 WHERE phonetic_realisation = "[[[|u]]]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
9504,
288,
834,
834,
4065,
834,
29,
23,
1824,
2436,
26,
834,
834,
584,
4280,
28027,
6,
951,
1225,
834,
6644,
2121,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6826,
834,
834,
4065,
834,
29,
23,
1824,
2436,
26,
834,
834,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
951,
1225,
834,
6644,
2121,
3274,
96,
6306,
6306,
6306,
9175,
76,
908,
908,
908,
121,
1,
-100,
-100,
... |
Which Record has a February smaller than 8, and an Opponent of montreal canadiens? | CREATE TABLE table_name_51 (record VARCHAR, february VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_51 WHERE february < 8 AND opponent = "montreal canadiens" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
60,
7621,
584,
4280,
28027,
6,
29976,
76,
1208,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
11392,
65,
3,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
29976,
76,
1208,
3,
2,
505,
3430,
15264,
3274,
96,
4662,
6644,
27114,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.