NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
When Fred Funk had a to par of E, what was the score? | CREATE TABLE table_45066 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_45066 WHERE "To par" = 'e' AND "Player" = 'fred funk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10593,
3539,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
10593,
3539,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
15,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
89,
1271,
3,
15668,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many wrestlers are recorded for the chamber that's method of elimination was pinned after being hit by a lead pipe? | CREATE TABLE table_24628683_2 (
wrestler VARCHAR,
method_of_elimination VARCHAR
) | SELECT COUNT(wrestler) FROM table_24628683_2 WHERE method_of_elimination = "Pinned after being hit by a lead pipe" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4056,
3840,
4591,
834,
357,
41,
26033,
52,
584,
4280,
28027,
6,
1573,
834,
858,
834,
15,
40,
23,
14484,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
210,
6216,
1171,
61,
21680,
953,
834,
2266,
4056,
3840,
4591,
834,
357,
549,
17444,
427,
1573,
834,
858,
834,
15,
40,
23,
14484,
3274,
96,
345,
14029,
26,
227,
271,
1560,
57,
3,
9,
991,
7119,
121... |
who won the men's doubles in 1933? | CREATE TABLE table_68946 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Men's doubles" FROM table_68946 WHERE "Year" = '1933' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4240,
948,
41,
96,
476,
2741,
121,
1499,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
35,
31,
7,
1486,
7,
121,
21680,
953,
834,
3651,
4240,
948,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4201,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn? | CREATE TABLE table_25246990_5 (
us_viewers__millions_ VARCHAR,
written_by VARCHAR
) | SELECT us_viewers__millions_ FROM table_25246990_5 WHERE written_by = "Lazar Saric & Jed Spingarn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2266,
3951,
2394,
834,
755,
41,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
21680,
953,
834,
1828,
2266,
3951,
2394,
834,
755,
549,
17444,
427,
1545,
834,
969,
3274,
96,
3612,
7061,
1138,
2234,
3,
184,
1022,
26,
10792,
1478,
29,
121,
1,
-100,
... |
What is the highest gold a team with less than 3 silver and more than 5 bronze medals has? | CREATE TABLE table_name_76 (
gold INTEGER,
silver VARCHAR,
bronze VARCHAR
) | SELECT MAX(gold) FROM table_name_76 WHERE silver < 3 AND bronze > 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
2045,
3,
21342,
17966,
6,
4294,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
2045,
3,
9,
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,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14910,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
4294,
3,
2,
220,
3430,
13467,
2490,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0? | CREATE TABLE table_name_16 (
total VARCHAR,
nation VARCHAR,
gold VARCHAR
) | SELECT COUNT(total) FROM table_name_16 WHERE nation = "kazakhstan (kaz)" AND gold > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
792,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
9273,
65,
3,
9,
11046,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
2982,
3274,
96,
1258,
172,
18965,
5627,
41,
1258,
172,
61,
121,
3430,
2045,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for the last time since 3 years ago, when did patient 022-3713 come to the hospital? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,... | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '022-3713' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4305,
7412,
4118,
2368,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
61,
2490,
2423,
30... |
What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio? | CREATE TABLE table_name_12 (
release_date VARCHAR,
company VARCHAR,
writer VARCHAR
) | SELECT release_date FROM table_name_12 WHERE company = "bbc audio" AND writer = "ford, phil phil ford" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
349,
584,
4280,
28027,
6,
4346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
349,
3274,
96,
115,
115,
75,
2931,
121,
3430,
4346,
3274,
96,
2590,
6,
3,
18118,
3,
18118,
21,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many jurisdictions are of the metropolitan archdiocese type ? | CREATE TABLE table_204_876 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
) | SELECT COUNT("ecclesiastical jurisdictions") FROM table_204_876 WHERE "type" = 'metropolitan archdiocese' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3959,
41,
3,
23,
26,
381,
6,
96,
15,
75,
2482,
7,
23,
10057,
138,
10185,
7,
121,
1499,
6,
96,
14098,
564,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
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,
2847,
17161,
599,
121,
15,
75,
2482,
7,
23,
10057,
138,
10185,
7,
8512,
21680,
953,
834,
26363,
834,
927,
3959,
549,
17444,
427,
96,
6137,
121,
3274,
3,
31,
51,
15252,
21631,
29,
11508,
26,
25985,
31,
1,
-100,
-10... |
Who Playoffs has a Regular Season of on hiatus.? | CREATE TABLE table_name_99 (playoffs VARCHAR, regular_season VARCHAR) | SELECT playoffs FROM table_name_99 WHERE regular_season = "on hiatus." | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
4895,
1647,
7,
584,
4280,
28027,
6,
1646,
834,
9476,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
2911,
1647,
7,
65,
3,
9,
17116,
7960,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15289,
7,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
1646,
834,
9476,
3274,
96,
106,
7102,
144,
302,
535,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How had the high points when the high assists were from J. Johnson (7)? | CREATE TABLE table_11961582_10 (
high_points VARCHAR,
high_assists VARCHAR
) | SELECT high_points FROM table_11961582_10 WHERE high_assists = "J. Johnson (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4314,
1808,
4613,
834,
1714,
41,
306,
834,
2700,
7,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
2700,
7,
21680,
953,
834,
2596,
4314,
1808,
4613,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
683,
5,
5891,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
find out the number of alive patients with diagnosis icd9 code 4260. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.icd9_code = "4260" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Name the sum of total for gold less than 1 and bronze of 3 | CREATE TABLE table_name_56 (total INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
235,
1947,
3,
21342,
17966,
6,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4505,
13,
792,
21,
2045,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
2045,
3,
2,
209,
3430,
13467,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the number of ends lost for 6 stolen ends | CREATE TABLE table_26745426_2 (Ends VARCHAR, stolen_ends VARCHAR) | SELECT COUNT(Ends) AS lost FROM table_26745426_2 WHERE stolen_ends = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
4581,
5062,
2688,
834,
357,
41,
8532,
26,
7,
584,
4280,
28027,
6,
14244,
834,
989,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
5542,
151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8532,
26,
7,
61,
6157,
1513,
21680,
953,
834,
2688,
4581,
5062,
2688,
834,
357,
549,
17444,
427,
14244,
834,
989,
7,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the score of the match with an attendance of 2248? | CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR) | SELECT score FROM table_name_66 WHERE attendance = 2248 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
7,
9022,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
1588,
28,
46,
11364,
13,
1630,
3707,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
11364,
3274,
1630,
3707,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who won the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles? | CREATE TABLE table_38124 (
"Year" real,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
) | SELECT "Men's doubles" FROM table_38124 WHERE "Year" < '1979' AND "Women's doubles" = 'carol silman prina ben shushan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
22504,
41,
96,
476,
2741,
121,
490,
6,
96,
329,
35,
31,
7,
712,
7,
121,
1499,
6,
96,
518,
32,
904,
31,
7,
712,
7,
121,
1499,
6,
96,
329,
35,
31,
7,
1486,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
35,
31,
7,
1486,
7,
121,
21680,
953,
834,
3747,
22504,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4440,
31,
3430,
96,
518,
32,
904,
31,
7,
1486,
7,
121,
3274,
3,
31,
658,
3491,
108,
40,... |
What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points? | CREATE TABLE table_name_64 (
played INTEGER,
points VARCHAR,
position VARCHAR,
goals_for VARCHAR,
draws VARCHAR
) | SELECT AVG(played) FROM table_name_64 WHERE goals_for < 43 AND draws > 9 AND position > 17 AND points = "30-8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
1944,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1766,
834,
1161,
3,
2,
8838,
3430,
14924,
2490,
668,
3430,
1102,
2490,
1003,
3430,
979,
3274,
96,
1458,
6039,
121,
1,
-100,
-100,
... |
What is the lowest number of draws of the team with 9 wins and less than 0 byes? | CREATE TABLE table_name_41 (draws INTEGER, wins VARCHAR, byes VARCHAR) | SELECT MIN(draws) FROM table_name_41 WHERE wins = 9 AND byes < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
19489,
7,
3,
21342,
17966,
6,
9204,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
9204,
3274,
668,
3430,
57,
15,
7,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which College/Junior/Club Team (league) does Matthew Bartkowski play for? | CREATE TABLE table_49733 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "College/Junior/Club Team (League)" FROM table_49733 WHERE "Player" = 'matthew bartkowski' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4552,
519,
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,
9939,
7883,
87,
683,
202,
23,
127,
87,
254,
11158,
2271,
41,
2796,
9,
5398,
61,
121,
21680,
953,
834,
3647,
4552,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
3357,
532,
210,
1207,
17,
27077,
31,
1... |
Who was the top picki n the draft? | CREATE TABLE table_10360656_1 (choice INTEGER) | SELECT MIN(choice) FROM table_10360656_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
3420,
5176,
4834,
834,
536,
41,
3995,
867,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
420,
1432,
23,
3,
29,
8,
6488,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3995,
867,
61,
21680,
953,
834,
1714,
3420,
5176,
4834,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the least amount of wins earlier than 1964 with more than 7 points? | CREATE TABLE table_name_49 (
wins INTEGER,
year VARCHAR,
points VARCHAR
) | SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
9204,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
709,
866,
13,
9204,
2283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
215,
3,
2,
18969,
3430,
979,
2490,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What special notes are included for the windfarm with a capacity (MW) of 343? | CREATE TABLE table_56501 (
"Wind farm" text,
"Capacity (MW)" real,
"Country" text,
"State/Province" text,
"Notes" text
) | SELECT "Notes" FROM table_56501 WHERE "Capacity (MW)" = '343' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
20176,
41,
96,
18455,
26,
3797,
121,
1499,
6,
96,
19566,
9,
6726,
41,
16027,
61,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
4748,
87,
3174,
2494,
565,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10358,
15,
7,
121,
21680,
953,
834,
4834,
20176,
549,
17444,
427,
96,
19566,
9,
6726,
41,
16027,
61,
121,
3274,
3,
31,
3710,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where did the teams play on October 16, 1977? | CREATE TABLE table_18034 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Game site" FROM table_18034 WHERE "Date" = 'October 16, 1977' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
3710,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
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,
1... | [
3,
23143,
14196,
96,
23055,
353,
121,
21680,
953,
834,
20829,
3710,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
28680,
11940,
16433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who left office in June 2011? | CREATE TABLE table_41063 (
"Name" text,
"Born-Died" text,
"Took Office" text,
"Left Office" text,
"Country" text
) | SELECT "Name" FROM table_41063 WHERE "Left Office" = 'june 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
3891,
41,
96,
23954,
121,
1499,
6,
96,
279,
127,
29,
18,
8639,
26,
121,
1499,
6,
96,
3696,
1825,
2126,
121,
1499,
6,
96,
2796,
89,
17,
2126,
121,
1499,
6,
96,
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,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
24175,
3891,
549,
17444,
427,
96,
2796,
89,
17,
2126,
121,
3274,
3,
31,
6959,
15,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin? | CREATE TABLE table_name_75 (staffel_a VARCHAR, staffel_b VARCHAR, staffel_d VARCHAR, staffel_c VARCHAR) | SELECT staffel_a FROM table_name_75 WHERE staffel_d = "energie cottbus" AND staffel_c = "chemie leipzig" AND staffel_b = "1. fc union berlin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2427,
16387,
834,
9,
584,
4280,
28027,
6,
871,
15,
40,
834,
115,
584,
4280,
28027,
6,
871,
15,
40,
834,
26,
584,
4280,
28027,
6,
871,
15,
40,
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,
871,
15,
40,
834,
9,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
871,
15,
40,
834,
26,
3274,
96,
26407,
3,
10405,
3465,
121,
3430,
871,
15,
40,
834,
75,
3274,
96,
1033,
2720,
4628,
102,
9389,
121,
3430,
8... |
In which location was the method decision (split)? | CREATE TABLE table_7980 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_7980 WHERE "Method" = 'decision (split)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
2079,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
4440,
2079,
549,
17444,
427,
96,
23351,
107,
32,
26,
121,
3274,
3,
31,
221,
18901,
41,
7,
5900,
17,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who are all the writers of episodes in season 24? | CREATE TABLE table_28116 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
) | SELECT "Writer(s)" FROM table_28116 WHERE "Season #" = '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
20159,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
24965,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24965,
49,
599,
7,
61,
121,
21680,
953,
834,
2577,
20159,
549,
17444,
427,
96,
134,
15,
9,
739,
1713,
121,
3274,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many NHL teams are there in the Phoenix, Arizona area? | CREATE TABLE table_1205598_1 (
nhl_team_s_ VARCHAR,
metropolitan_area VARCHAR
) | SELECT COUNT(nhl_team_s_) FROM table_1205598_1 WHERE metropolitan_area = "Phoenix, Arizona" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3769,
3916,
834,
536,
41,
3,
29,
107,
40,
834,
11650,
834,
7,
834,
584,
4280,
28027,
6,
25233,
834,
498,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
107,
40,
834,
11650,
834,
7,
834,
61,
21680,
953,
834,
15518,
3769,
3916,
834,
536,
549,
17444,
427,
25233,
834,
498,
3274,
96,
345,
107,
32,
35,
2407,
6,
7601,
121,
1,
-100,
-100,
-100,
-100... |
What stadium was used on November 13? | CREATE TABLE table_name_45 (
stadium VARCHAR,
date VARCHAR
) | SELECT stadium FROM table_name_45 WHERE date = "november 13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
14939,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
14939,
47,
261,
30,
1671,
1179,
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,
14939,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
1179,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the result in the Arkansas 5 district election? | CREATE TABLE table_1341897_6 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1341897_6 WHERE district = "Arkansas 5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
2606,
4327,
834,
948,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
16,
8,
16622,
305,
3939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
23747,
2606,
4327,
834,
948,
549,
17444,
427,
3939,
3274,
96,
188,
52,
3304,
7,
9,
7,
3,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the right ascension of Pegasus with a 7343 NGC? | CREATE TABLE table_77643 (
"NGC number" text,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
) | SELECT "Right ascension ( J2000 )" FROM table_77643 WHERE "Constellation" = 'pegasus' AND "NGC number" = '7343' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
4389,
519,
41,
96,
12531,
254,
381,
121,
1499,
6,
96,
17057,
686,
121,
1499,
6,
96,
4302,
7,
6714,
257,
121,
1499,
6,
96,
448,
2632,
38,
75,
35,
1938,
41,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
2632,
38,
75,
35,
1938,
41,
446,
13527,
3,
61,
121,
21680,
953,
834,
4013,
4389,
519,
549,
17444,
427,
96,
4302,
7,
6714,
257,
121,
3274,
3,
31,
855,
5556,
302,
31,
3430,
96,
12531,
254,
381,
121,
3274,... |
give the number of patients whose admission type is urgent and lab test name is potassium, whole blood. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Potassium, Whole Blood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
For those employees who was hired before 2002-06-21, what is the relationship between salary and department_id ? | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 regions (
REGION_ID decimal(5,0),
... | SELECT SALARY, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
4090,
24721,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who has the event of 36 arrow finals? | CREATE TABLE table_name_81 (
name VARCHAR,
event VARCHAR
) | SELECT name FROM table_name_81 WHERE event = "36 arrow finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
564,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
65,
8,
605,
13,
4475,
3,
6770,
804,
7,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
605,
3274,
96,
3420,
3,
6770,
804,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total grid number with laps that are larger than 27? | CREATE TABLE table_name_17 (
grid VARCHAR,
laps INTEGER
) | SELECT COUNT(grid) FROM table_name_17 WHERE laps > 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
8634,
584,
4280,
28027,
6,
14941,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
8634,
381,
28,
14941,
7,
24,
33,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
14941,
7,
2490,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the campus fee of "San Francisco State University" in year 1996? | CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) | SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Francisco State University" AND T2.year = 1996 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
75,
7,
76,
834,
89,
15,
15,
7,
41,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
25784,
41,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
4730,
89,
15,
15,
21680,
25784,
6157,
332,
536,
3,
15355,
3162,
3,
75,
7,
76,
834,
89,
15,
15,
7,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
3,
17,
4416,
25532,
549,
17444,
427,
3,
17,
5411,
25532,
3274,
9... |
Who was the opponent when the record recorded was 64-78? | CREATE TABLE table_name_51 (opponent VARCHAR, record VARCHAR) | SELECT opponent FROM table_name_51 WHERE record = "64-78" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
116,
8,
1368,
4381,
47,
6687,
18,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1368,
3274,
96,
4389,
18,
3940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? | CREATE TABLE table_name_62 (
cuts_made INTEGER,
top_10 VARCHAR,
wins VARCHAR,
top_5 VARCHAR
) | SELECT SUM(cuts_made) FROM table_name_62 WHERE wins < 1 AND top_5 = 1 AND top_10 > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
8620,
834,
4725,
3,
21342,
17966,
6,
420,
834,
1714,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
420,
834,
755,
584,
4280,
28027,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
9204,
3,
2,
209,
3430,
420,
834,
755,
3274,
209,
3430,
420,
834,
1714,
2490,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose discharge location is snf and procedure long title is combined right and left heart cardiac catheterization? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "SNF" AND procedures.long_title = "Combined right and left heart cardiac catheterization" | [
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,
549,
17444,... |
What is the reunion weight of the contestant who lost 74.4 lbs at the finale? | CREATE TABLE table_28654454_5 (
reunion_weight VARCHAR,
lbs_lost_finale VARCHAR
) | SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_finale = "74.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
4122,
3628,
5062,
834,
755,
41,
22774,
834,
9378,
584,
4280,
28027,
6,
3,
9949,
834,
2298,
17,
834,
12406,
15,
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,
1,
0,
0... | [
3,
23143,
14196,
22774,
834,
9378,
21680,
953,
834,
2577,
4122,
3628,
5062,
834,
755,
549,
17444,
427,
3,
9949,
834,
2298,
17,
834,
12406,
15,
3274,
96,
4581,
5,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return the poll resource associated with the most candidates. | CREATE TABLE people (
people_id number,
sex text,
name text,
date_of_birth text,
height number,
weight number
)
CREATE TABLE candidate (
candidate_id number,
people_id number,
poll_source text,
date text,
support_rate number,
consider_rate number,
oppose_rate number,... | SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
151,
834,
23,
26,
381,
6,
3,
7,
994,
1499,
6,
564,
1499,
6,
833,
834,
858,
834,
20663,
1499,
6,
3902,
381,
6,
1293,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5492,
834,
7928,
21680,
4775,
350,
4630,
6880,
272,
476,
5492,
834,
7928,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show all advisors and corresponding number of students. | CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT advisor, COUNT(*) FROM student GROUP BY advisor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
65,
834,
11211,
122,
63,
41,
21341,
23,
26,
381,
6,
23886,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
834,
6137,
41,
23886,
1499,
6,
23886,
6137,
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,
8815,
6,
2847,
17161,
599,
1935,
61,
21680,
1236,
350,
4630,
6880,
272,
476,
8815,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who's the Winning team with a Pole position of robby gordon, and a Date of june 11? | CREATE TABLE table_name_81 (
winning_team VARCHAR,
pole_position VARCHAR,
date VARCHAR
) | SELECT winning_team FROM table_name_81 WHERE pole_position = "robby gordon" AND date = "june 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
3447,
834,
11650,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
31,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
11650,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
5840,
969,
281,
52,
2029,
121,
3430,
833,
3274,
96,
6959,
15,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden? | CREATE TABLE table_43793 (
"Region (year)" text,
"No. 1" text,
"No. 2" text,
"No. 3" text,
"No. 4" text,
"No. 5" text,
"No. 6" text,
"No. 7" text,
"No. 8" text,
"No. 9" text,
"No. 10" text
) | SELECT "No. 10" FROM table_43793 WHERE "No. 8" = 'jackson' AND "No. 9" = 'jayden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4118,
4271,
41,
96,
17748,
23,
106,
41,
1201,
61,
121,
1499,
6,
96,
4168,
5,
209,
121,
1499,
6,
96,
4168,
5,
204,
121,
1499,
6,
96,
4168,
5,
220,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4168,
5,
335,
121,
21680,
953,
834,
591,
4118,
4271,
549,
17444,
427,
96,
4168,
5,
505,
121,
3274,
3,
31,
9325,
739,
31,
3430,
96,
4168,
5,
668,
121,
3274,
3,
31,
1191,
63,
537,
31,
1,
-100,
-100,
-100,
-1... |
Who is the winning driver of the race on 2 June with a.z.k./roc-comp tition a.z.k./roc-comp tition as the winning team? | CREATE TABLE table_name_15 (
winning_driver VARCHAR,
winning_team VARCHAR,
date VARCHAR
) | SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
9,
5,
172,
5,
157,
5,
87,
7818,
18,
7699,
17678,
1575,
3,
9,
5,
172,
5,
157,
5,
87,
7818,
18,
7699,
17678,
1... |
Who lost to moyer (9–4)? | CREATE TABLE table_name_26 (opponent VARCHAR, loss VARCHAR) | SELECT opponent FROM table_name_26 WHERE loss = "moyer (9–4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1513,
12,
2288,
7975,
14156,
104,
7256,
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,
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,
15264,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1453,
3274,
96,
51,
32,
7975,
14156,
104,
7256,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest Loss for the player named total that has a long greater than 55? | CREATE TABLE table_50096 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
) | SELECT MIN("Loss") FROM table_50096 WHERE "Name" = 'total' AND "Long" > '55' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4314,
41,
96,
23954,
121,
1499,
6,
96,
517,
9,
77,
121,
490,
6,
96,
434,
32,
7,
7,
121,
490,
6,
96,
434,
2444,
121,
490,
6,
96,
188,
208,
122,
87,
517,
121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
434,
32,
7,
7,
8512,
21680,
953,
834,
2560,
4314,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
235,
1947,
31,
3430,
96,
434,
2444,
121,
2490,
3,
31,
3769,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the first name, last name, and phone of the customer with card 4560596484842. | CREATE TABLE Customers (
customer_first_name VARCHAR,
customer_last_name VARCHAR,
customer_phone VARCHAR,
customer_id VARCHAR
)
CREATE TABLE Customers_cards (
customer_id VARCHAR,
card_number VARCHAR
) | SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
884,
834,
14672,
834,
4350,
584,
4280,
28027,
6,
884,
834,
5064,
834,
4350,
584,
4280,
28027,
6,
884,
834,
6399,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
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,
332,
4416,
25697,
49,
834,
14672,
834,
4350,
6,
332,
4416,
25697,
49,
834,
5064,
834,
4350,
6,
332,
4416,
25697,
49,
834,
6399,
21680,
16423,
834,
6043,
7,
6157,
332,
536,
3,
15355,
3162,
16423,
6157,
332,
357,
9191... |
How many rounds were there of the Bosch Spark Plug Grand Prix? | CREATE TABLE table_10725629_2 (rnd VARCHAR, race_name VARCHAR) | SELECT COUNT(rnd) FROM table_10725629_2 WHERE race_name = "Bosch Spark Plug Grand Prix" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
19337,
3166,
834,
357,
41,
52,
727,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14419,
130,
132,
13,
8,
22698,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
52,
727,
61,
21680,
953,
834,
18057,
19337,
3166,
834,
357,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
279,
32,
860,
15036,
24324,
2698,
12942,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the competition when the result is won and the date is september 13, 1996? | CREATE TABLE table_63978 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Competition" FROM table_63978 WHERE "Result" = 'won' AND "Date" = 'september 13, 1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
21441,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
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,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3891,
21441,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
106,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
7,
6707,
18247,
10670,
6911,
31,
1,
-100,
-100,
-100,
-100... |
Where was the game where attendance was 51478? | CREATE TABLE table_17848578_1 (
game_site VARCHAR,
attendance VARCHAR
) | SELECT game_site FROM table_17848578_1 WHERE attendance = 51478 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4608,
4433,
3940,
834,
536,
41,
467,
834,
3585,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
213,
11364,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
834,
3585,
21680,
953,
834,
2517,
4608,
4433,
3940,
834,
536,
549,
17444,
427,
11364,
3274,
305,
2534,
3940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the theme of the Year 2002 which was created by Artist Dan Fell? | CREATE TABLE table_name_86 (
theme VARCHAR,
year VARCHAR,
artist VARCHAR
) | SELECT theme FROM table_name_86 WHERE year = 2002 AND artist = "dan fell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
3800,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3800,
13,
8,
2929,
4407,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3800,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
215,
3274,
4407,
3430,
2377,
3274,
96,
3768,
4728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose drug route is nu? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.route = "NU" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me the trend about manager_id over hire_date with a line chart. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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),... | SELECT HIRE_DATE, MANAGER_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2,
3... |
What is the earliest date for the bronze medal? | CREATE TABLE table_13994 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" real
) | SELECT MIN("Date") FROM table_13994 WHERE "Medal" = 'bronze' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24090,
4240,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
308,
342,
121,
490,
3,
61,
3,
32102,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
121,
308,
342,
8512,
21680,
953,
834,
24090,
4240,
549,
17444,
427,
96,
20123,
138,
121,
3274,
3,
31,
13711,
776,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
\What is the class of the station with the call sign w254ah? | CREATE TABLE table_71453 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT "Class" FROM table_71453 WHERE "Call sign" = 'w254ah' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
2128,
519,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
490,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21486,
121,
21680,
953,
834,
4450,
2128,
519,
549,
17444,
427,
96,
254,
1748,
1320,
121,
3274,
3,
31,
210,
1828,
591,
9,
107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the height in ft and m of the regions bank building? | CREATE TABLE table_name_90 (
height_ft__m_ VARCHAR,
name VARCHAR
) | SELECT height_ft__m_ FROM table_name_90 WHERE name = "regions bank building" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
3902,
834,
89,
17,
834,
834,
51,
834,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3902,
16,
3,
89,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3902,
834,
89,
17,
834,
834,
51,
834,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
564,
3274,
96,
18145,
7,
2137,
740,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the tournament in 2012 results that has a 2003 results of 2r and played at Wimbledon? | CREATE TABLE table_name_6 (tournament VARCHAR) | SELECT 2012 FROM table_name_6 WHERE 2003 = "2r" AND tournament = "wimbledon" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5892,
16,
1673,
772,
24,
65,
3,
9,
3888,
772,
13,
204,
52,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1673,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3888,
3274,
96,
357,
52,
121,
3430,
5892,
3274,
96,
210,
603,
2296,
2029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the drawn with points for being 350 | CREATE TABLE table_19111 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | SELECT "Drawn" FROM table_19111 WHERE "Points for" = '350' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
15866,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
518,
106,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
10936,
29,
121,
21680,
953,
834,
2294,
15866,
549,
17444,
427,
96,
22512,
7,
21,
121,
3274,
3,
31,
16975,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When was the date of appointment for St. Johnstone's manager? | CREATE TABLE table_20537 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) | SELECT "Date of appointment" FROM table_20537 WHERE "Team" = 'St. Johnstone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23201,
4118,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
13,
4141,
121,
21680,
953,
834,
23201,
4118,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
17,
5,
1079,
3009,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which state was Dai from? | CREATE TABLE table_45177 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) | SELECT "State" FROM table_45177 WHERE "Name" = 'dai' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
26793,
41,
96,
134,
4748,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
448,
32,
63,
138,
629,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
4748,
121,
21680,
953,
834,
2128,
26793,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
26,
9,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show different carriers of phones together with the number of phones with each carrier. | CREATE TABLE phone_market (
market_id number,
phone_id text,
num_of_stock number
)
CREATE TABLE phone (
name text,
phone_id number,
memory_in_g number,
carrier text,
price number
)
CREATE TABLE market (
market_id number,
district text,
num_of_employees number,
num_of_sh... | SELECT carrier, COUNT(*) FROM phone GROUP BY carrier | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
834,
8809,
41,
512,
834,
23,
26,
381,
6,
951,
834,
23,
26,
1499,
6,
3,
5525,
834,
858,
834,
7149,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
951,
41,
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,
9568,
6,
2847,
17161,
599,
1935,
61,
21680,
951,
350,
4630,
6880,
272,
476,
9568,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which school is in Riverside, CA? | CREATE TABLE table_77982 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "School" FROM table_77982 WHERE "Hometown" = 'riverside, ca' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
3916,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
3845,
2632,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
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,
29364,
121,
21680,
953,
834,
4013,
3916,
357,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
5927,
49,
1583,
6,
212,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Where did the Vit ria de Set bal club place in the 2006-2007 season? | CREATE TABLE table_51904 (
"Club" text,
"Head Coach" text,
"City" text,
"Stadium" text,
"2006-2007 season" text
) | SELECT "2006-2007 season" FROM table_51904 WHERE "Club" = 'vitória de setúbal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
11776,
591,
41,
96,
254,
11158,
121,
1499,
6,
96,
3845,
9,
26,
9493,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
21196,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21196,
18,
20615,
774,
121,
21680,
953,
834,
755,
11776,
591,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
5566,
4922,
52,
23,
9,
20,
356,
2,
3849,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me the type of admission and health insurance for the patient with patient id 17595. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.admission_type, demographic.insurance FROM demographic WHERE demographic.subject_id = "17595" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
14798,
5,
29441,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
2517,
3390,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show me about the distribution of Sex and the sum of Height , and group by attribute Sex in a bar chart, could you display from low to high by the y axis? | CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate re... | SELECT Sex, SUM(Height) FROM people GROUP BY Sex ORDER BY SUM(Height) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
2449,
834,
4309,
16,
17,
6,
679,
226,
1499,
6,
5570,
1499,
6,
7678,
834,
858,
834,
279,
23,
52,
189,
1499,
6,
24231,
490,
6,
14230,
490,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
180,
6122,
599,
3845,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
180,
6122,
599,
3845,
2632,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the most number | CREATE TABLE table_74049 (
"No." real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | SELECT MAX("No.") FROM table_74049 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2445,
3647,
41,
96,
4168,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
134,
10972,
57,
121,
1499,
6,
96,
382,
400,
4895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4168,
5,
8512,
21680,
953,
834,
940,
2445,
3647,
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 recipients and nominees have outstanding achievement in drama as the category with 1994 as the year? | CREATE TABLE table_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR) | SELECT recipients_and_nominees FROM table_name_93 WHERE category = "outstanding achievement in drama" AND year = 1994 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
60,
3389,
4741,
7,
834,
232,
834,
3114,
630,
15,
7,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
215,
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,
19297,
834,
232,
834,
3114,
630,
15,
7,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3295,
3274,
96,
670,
11018,
10970,
16,
6616,
121,
3430,
215,
3274,
7520,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against? | CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) | SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
4895,
15,
26,
3,
21342,
17966,
6,
581,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
1513,
3274,
220,
3430,
979,
2490,
668,
3430,
1102,
3274,
305,
3430,
581,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the number of patients whose admission location is hosp/extram and procedure icd9 code is 4131. | CREATE TABLE procedures (
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 WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.icd9_code = "4131" | [
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,
549,
17444,... |
Pick # 3 works for which brand? | CREATE TABLE table_78879 (
"Pick #" real,
"Brand (to)" text,
"Employee (Real name)" text,
"Role" text,
"Brand (from)" text
) | SELECT "Brand (from)" FROM table_78879 WHERE "Pick #" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
927,
4440,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
18304,
727,
41,
235,
61,
121,
1499,
6,
96,
427,
51,
7379,
63,
15,
15,
41,
1649,
138,
564,
61,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18304,
727,
41,
7152,
61,
121,
21680,
953,
834,
3940,
927,
4440,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many are the Race 2 points when Race 1 was 12? | CREATE TABLE table_25929 (
"SF Round" real,
"Country" text,
"Location" text,
"Date" text,
"Driver" text,
"Race 1(pts)" real,
"Race 2(pts)" real,
"Race 3" text,
"Race Total(pts)" real
) | SELECT "Race 2(pts)" FROM table_25929 WHERE "Race 1(pts)" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3390,
3166,
41,
96,
7016,
9609,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
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,
448,
3302,
204,
599,
102,
17,
7,
61,
121,
21680,
953,
834,
357,
3390,
3166,
549,
17444,
427,
96,
448,
3302,
209,
599,
102,
17,
7,
61,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when 50,514 people were in attendance? | CREATE TABLE table_name_54 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_54 WHERE attendance = "50,514" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
116,
943,
6,
755,
2534,
151,
130,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
11364,
3274,
96,
1752,
6,
5553,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the high assists for december 14 | CREATE TABLE table_15869204_5 (
high_assists VARCHAR,
date VARCHAR
) | SELECT high_assists FROM table_15869204_5 WHERE date = "December 14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26556,
3951,
26363,
834,
755,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
306,
13041,
21,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
26556,
3951,
26363,
834,
755,
549,
17444,
427,
833,
3274,
96,
29835,
968,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Japanese title for Fantasy? | CREATE TABLE table_11839306_2 (japanese_title VARCHAR, english_title VARCHAR) | SELECT japanese_title FROM table_11839306_2 WHERE english_title = "Fantasy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
3288,
1458,
948,
834,
357,
41,
1191,
2837,
15,
7,
15,
834,
21869,
584,
4280,
28027,
6,
22269,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2662,
2837,
15,
7,
15,
834,
21869,
21680,
953,
834,
20056,
3288,
1458,
948,
834,
357,
549,
17444,
427,
22269,
834,
21869,
3274,
96,
371,
288,
9,
7,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the song for draw less than 7 and artists of martin & johannes | CREATE TABLE table_name_42 (song VARCHAR, draw VARCHAR, artist VARCHAR) | SELECT song FROM table_name_42 WHERE draw < 7 AND artist = "martin & johannes" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
7,
2444,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2324,
21,
3314,
705,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2324,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
3314,
3,
2,
489,
3430,
2377,
3274,
96,
1635,
17,
77,
3,
184,
3,
1927,
2618,
1496,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, find hire_date and the average of employee_id bin hire_date by time, and visualize them by a bar chart, and could you rank y-axis from high to low order please? | 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 locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
... |
What batting team played in Chittagong in 2003? | CREATE TABLE table_8802 (
"Runs" text,
"Wicket" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
) | SELECT "Batting team" FROM table_8802 WHERE "Venue" = 'chittagong' AND "Season" = '2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4060,
4305,
41,
96,
448,
202,
7,
121,
1499,
6,
96,
518,
447,
8044,
121,
1499,
6,
96,
279,
9,
6031,
3222,
121,
1499,
6,
96,
279,
9,
6031,
372,
121,
1499,
6,
96,
3183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
9,
6031,
372,
121,
21680,
953,
834,
4060,
4305,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
1436,
17,
2408,
2444,
31,
3430,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
23948,
31,
1,
-100,
-100,... |
Name the 2004 which has a 2003 of 36,026? | CREATE TABLE table_name_19 (
Id VARCHAR
) | SELECT 2004 FROM table_name_19 WHERE 2003 = "36,026" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
4406,
84,
65,
3,
9,
3888,
13,
4475,
6,
632,
2688,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4406,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
3888,
3274,
96,
3420,
6,
632,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many seasons for Monaco? | CREATE TABLE table_23013 (
"Name" text,
"Country" text,
"Seasons" text,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" real
) | SELECT "Seasons" FROM table_23013 WHERE "Country" = 'Monaco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
2368,
41,
96,
23954,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
1499,
6,
96,
254,
1483,
12364,
2009,
11029,
7,
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,
96,
134,
15,
9,
6577,
121,
21680,
953,
834,
13427,
2368,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
9168,
9,
509,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Week has a Result of l 17-14? | CREATE TABLE table_name_52 (week INTEGER, result VARCHAR) | SELECT SUM(week) FROM table_name_52 WHERE result = "l 17-14" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
8041,
3,
21342,
17966,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6551,
65,
3,
9,
3,
20119,
13,
3,
40,
1003,
11590,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
741,
3274,
96,
40,
1003,
11590,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the most cup goals for seasson 1911-12? | CREATE TABLE table_16161 (
"Season" text,
"Team" text,
"League Apps" real,
"League Goals" real,
"Cup Apps" real,
"Cup Goals" real
) | SELECT MAX("Cup Goals") FROM table_16161 WHERE "Season" = '1911-12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
2938,
536,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
2796,
9,
5398,
2276,
7,
121,
490,
6,
96,
2796,
9,
5398,
17916,
7,
121,
490,
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,
4800,
4,
599,
121,
254,
413,
17916,
7,
8512,
21680,
953,
834,
2938,
2938,
536,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
2596,
5947,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many attendances had the Detroit Lions as opponents? | CREATE TABLE table_35243 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_35243 WHERE "Opponent" = 'detroit lions' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
27730,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
2469,
27730,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
26,
15252,
155,
3,
7325,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the venue of game 3? | CREATE TABLE table_name_88 (
venue VARCHAR,
game VARCHAR
) | SELECT venue FROM table_name_88 WHERE game = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
5669,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
13,
467,
220,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
467,
3274,
220,
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,... |
What team played South Melbourne at their home game? | CREATE TABLE table_name_22 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_22 WHERE home_team = "south melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
550,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
1944,
1013,
9396,
44,
70,
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,
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,
2884,
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,
-100,
-100,
-100,
... |
what is average age of patients whose death status is 0 and age is greater than or equal to 67? | 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,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.age >= "67" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
545,
2490,
2423,
96,
3708,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the average year for much ado about nothing and recipient of ray virta | CREATE TABLE table_74522 (
"Year" real,
"Recipient" text,
"Role" text,
"Play" text,
"Production" text
) | SELECT AVG("Year") FROM table_74522 WHERE "Play" = 'much ado about nothing' AND "Recipient" = 'ray virta' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
2884,
41,
96,
476,
2741,
121,
490,
6,
96,
1649,
3389,
4741,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
15800,
121,
1499,
6,
96,
3174,
8291,
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,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
940,
2128,
2884,
549,
17444,
427,
96,
15800,
121,
3274,
3,
31,
51,
2295,
3,
9,
26,
32,
81,
1327,
31,
3430,
96,
1649,
3389,
4741,
121,
3274,
3,
31,
2866,
3,
... |
what's the score with date oct 1 | CREATE TABLE table_16938 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | SELECT "Score" FROM table_16938 WHERE "Date" = 'Oct 1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27096,
3747,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
27096,
3747,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
667,
75,
17,
209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many assists per game have 4.2 rebounds per game? | CREATE TABLE table_2387461_1 (
assists_per_game VARCHAR,
rebounds_per_game VARCHAR
) | SELECT assists_per_game FROM table_2387461_1 WHERE rebounds_per_game = "4.2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
4581,
4241,
834,
536,
41,
13041,
834,
883,
834,
7261,
584,
4280,
28027,
6,
3,
23768,
834,
883,
834,
7261,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13041,
834,
883,
834,
7261,
21680,
953,
834,
357,
3747,
4581,
4241,
834,
536,
549,
17444,
427,
3,
23768,
834,
883,
834,
7261,
3274,
96,
19765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose age is less than 89 and diagnoses long title is candidiasis of vulva and vagina? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Candidiasis of vulva and vagina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What ranking that had a start of 19? | CREATE TABLE table_name_72 (
rank VARCHAR,
start VARCHAR
) | SELECT rank FROM table_name_72 WHERE start = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
11003,
584,
4280,
28027,
6,
456,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11592,
24,
141,
3,
9,
456,
13,
957,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11003,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
456,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Round 2 when Round 4 is Double and Round 3 is Single? | CREATE TABLE table_name_56 (
round_2 VARCHAR,
round_4 VARCHAR,
round_3 VARCHAR
) | SELECT round_2 FROM table_name_56 WHERE round_4 = "double" AND round_3 = "single" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
1751,
834,
357,
584,
4280,
28027,
6,
1751,
834,
591,
584,
4280,
28027,
6,
1751,
834,
519,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
834,
357,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
1751,
834,
591,
3274,
96,
25761,
121,
3430,
1751,
834,
519,
3274,
96,
7,
53,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the WChmp of the race greater than 42 and pole greater than 11? | CREATE TABLE table_35874 (
"Class" text,
"Season" text,
"Race" real,
"Podiums" real,
"Pole" real,
"FLap" real,
"WChmp" real
) | SELECT COUNT("WChmp") FROM table_35874 WHERE "Race" > '42' AND "Pole" > '11' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
4225,
591,
41,
96,
21486,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
448,
3302,
121,
490,
6,
96,
16665,
2552,
7,
121,
490,
6,
96,
8931,
15,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
10038,
107,
1167,
8512,
21680,
953,
834,
2469,
4225,
591,
549,
17444,
427,
96,
448,
3302,
121,
2490,
3,
31,
4165,
31,
3430,
96,
8931,
15,
121,
2490,
3,
31,
2596,
31,
1,
-100,
-100,
-100,
-10... |
Which episode number drew in 3.35 million viewers in the United States? | CREATE TABLE table_14929574_3 (
series__number VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT COUNT(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
4508,
3301,
4581,
834,
519,
41,
939,
834,
834,
5525,
1152,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
2534,
4508,
3301,
4581,
834,
519,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
19660,
17395,
1,
-100,
-100,
-100,
-100,
... |
What is the distance for Tom Hilde for 2nd when the 1st distance is more than 117.5? | CREATE TABLE table_39435 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall NT points" text,
"Overall WC points (Rank)" text
) | SELECT "2nd (m)" FROM table_39435 WHERE "1st (m)" > '117.5' AND "Name" = 'tom hilde' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
591,
2469,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
536,
7,
17,
41,
51,
61,
121,
490,
6,
96,
357,
727,
41,
51,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
357,
727,
41,
51,
61,
121,
21680,
953,
834,
3288,
591,
2469,
549,
17444,
427,
96,
536,
7,
17,
41,
51,
61,
121,
2490,
3,
31,
2596,
15731,
31,
3430,
96,
23954,
121,
3274,
3,
31,
235,
51,
3,
107,
173,
221,
... |
Show me a bar chart for how many total credits are offered by each department?, and order by the names from low to high. | CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
t... | SELECT dept_name, SUM(credits) FROM course GROUP BY dept_name ORDER BY dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
11749,
41,
4699,
3,
4331,
4059,
15757,
6,
503,
834,
23,
26,
3,
4331,
4059,
28007,
6,
4220,
834,
23,
26,
3,
4331,
4059,
28007,
6,
10542,
3,
4331,
4059,
18669,
6,
215,
206,
17552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20,
102,
17,
834,
4350,
6,
180,
6122,
599,
15547,
7,
61,
21680,
503,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What album is 4:53 long? | CREATE TABLE table_name_74 (
album VARCHAR,
length VARCHAR
) | SELECT album FROM table_name_74 WHERE length = "4:53" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2306,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2306,
19,
314,
10,
4867,
307,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2306,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2475,
3274,
96,
591,
10,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which candidate won 88 votes in Queens in 1921? | CREATE TABLE table_1108394_47 (
queens VARCHAR
) | SELECT 1921 FROM table_1108394_47 WHERE queens = "88" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4591,
4240,
834,
4177,
41,
14915,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4775,
751,
3,
4060,
11839,
16,
5286,
7,
16,
957,
2658,
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,
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,
957,
2658,
21680,
953,
834,
19277,
4591,
4240,
834,
4177,
549,
17444,
427,
14915,
7,
3274,
96,
4060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What round has less than 1 against? | CREATE TABLE table_62941 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Round" text
) | SELECT "Round" FROM table_62941 WHERE "Against" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4240,
536,
41,
96,
667,
102,
2748,
53,
2271,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
448,
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,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
4056,
4240,
536,
549,
17444,
427,
96,
20749,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total number of Tests when the lost is less than 9 for sir fred allen? | CREATE TABLE table_name_43 (
tests VARCHAR,
lost VARCHAR,
name VARCHAR
) | SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3830,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
2300,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
4377,
7,
61,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1513,
3,
2,
668,
3430,
564,
3274,
96,
7,
23,
52,
3,
89,
1271,
6127,
121,
1,
-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.