instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|
which athlete placed top ?
|
SELECT "athlete" FROM table_203_865 ORDER BY "place" LIMIT 1
|
[
4758,
16076,
4624,
1353,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
22416,
62,
23,
2996,
38678,
11050,
366,
5372,
1,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4758,
16076,
4624,
1353,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
22416,
62,
23,
2996,
38678,
11050,
366,
5372,
1,
27564,
2043,
352
] |
Which Score-Final has an Apparatus of floor exercise?
|
SELECT MAX("Score-Final") FROM table_63393 WHERE "Apparatus" = 'floor exercise'
|
[
13828,
15178,
12,
19006,
468,
281,
2034,
283,
7240,
286,
4314,
5517,
30,
46506,
25882,
7203,
26595,
12,
19006,
4943,
16034,
3084,
62,
21,
2091,
6052,
33411,
366,
4677,
283,
7240,
1,
796,
705,
28300,
5517,
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
] |
[
13828,
15178,
12,
19006,
468,
281,
2034,
283,
7240,
286,
4314,
5517,
30,
46506,
25882,
7203,
26595,
12,
19006,
4943,
16034,
3084,
62,
21,
2091,
6052,
33411,
366,
4677,
283,
7240,
1,
796,
705,
28300,
5517,
6
] |
Which nominating festival did Russia enter?
|
SELECT nominating_festival FROM table_name_12 WHERE country = "russia"
|
[
13828,
48833,
10876,
750,
3284,
3802,
30,
46506,
48833,
62,
69,
6743,
16034,
3084,
62,
3672,
62,
1065,
33411,
1499,
796,
366,
81,
31269,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
13828,
48833,
10876,
750,
3284,
3802,
30,
46506,
48833,
62,
69,
6743,
16034,
3084,
62,
3672,
62,
1065,
33411,
1499,
796,
366,
81,
31269,
1
] |
What is the rank of the gauteng province?
|
SELECT rank FROM table_name_64 WHERE province = "gauteng"
|
[
2061,
318,
262,
4279,
286,
262,
308,
2306,
1516,
8473,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2414,
33411,
8473,
796,
366,
70,
2306,
1516,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
4279,
286,
262,
308,
2306,
1516,
8473,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
2414,
33411,
8473,
796,
366,
70,
2306,
1516,
1
] |
What is atacama's percentage of solar panels?
|
SELECT "Solar panel" FROM table_27327 WHERE "Region" = 'Atacama'
|
[
2061,
318,
379,
330,
1689,
338,
5873,
286,
6591,
13043,
30,
46506,
366,
38825,
6103,
1,
16034,
3084,
62,
27367,
1983,
33411,
366,
47371,
1,
796,
705,
2953,
330,
1689,
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
] |
[
2061,
318,
379,
330,
1689,
338,
5873,
286,
6591,
13043,
30,
46506,
366,
38825,
6103,
1,
16034,
3084,
62,
27367,
1983,
33411,
366,
47371,
1,
796,
705,
2953,
330,
1689,
6
] |
What is the total for 1986 with a to par higher than 6?
|
SELECT COUNT(total) FROM table_name_87 WHERE year_s__won = "1986" AND to_par > 6
|
[
2061,
318,
262,
2472,
329,
12113,
351,
257,
284,
1582,
2440,
621,
718,
30,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
62,
82,
834,
26502,
796,
366,
28054,
1,
5357,
284,
62,
1845,
1875,
718
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2472,
329,
12113,
351,
257,
284,
1582,
2440,
621,
718,
30,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
614,
62,
82,
834,
26502,
796,
366,
28054,
1,
5357,
284,
62,
1845,
1875,
718
] |
What circuit features the placemakers v8 supercars race?
|
SELECT circuit FROM table_20884163_2 WHERE race_title = "PlaceMakers V8 Supercars"
|
[
2061,
10349,
3033,
262,
21957,
368,
3979,
410,
23,
2208,
37993,
3234,
30,
46506,
10349,
16034,
3084,
62,
1238,
40353,
24136,
62,
17,
33411,
3234,
62,
7839,
796,
366,
27271,
44,
3979,
569,
23,
3115,
37993,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
10349,
3033,
262,
21957,
368,
3979,
410,
23,
2208,
37993,
3234,
30,
46506,
10349,
16034,
3084,
62,
1238,
40353,
24136,
62,
17,
33411,
3234,
62,
7839,
796,
366,
27271,
44,
3979,
569,
23,
3115,
37993,
1
] |
What is Opponent, when Date is 17 September 1998?
|
SELECT opponent FROM table_name_76 WHERE date = "17 september 1998"
|
[
2061,
318,
9385,
3471,
11,
618,
7536,
318,
1596,
2693,
7795,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4304,
33411,
3128,
796,
366,
1558,
384,
457,
1491,
7795,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
9385,
3471,
11,
618,
7536,
318,
1596,
2693,
7795,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4304,
33411,
3128,
796,
366,
1558,
384,
457,
1491,
7795,
1
] |
What prefixes are priced at pence per minute, fixed at all times with a premium of 3p/min?
|
SELECT prefixes FROM table_10408617_5 WHERE scheme = "Pence per minute, fixed at all times" AND approx_premium = "3p/min"
|
[
2061,
21231,
274,
389,
19744,
379,
279,
594,
583,
5664,
11,
5969,
379,
477,
1661,
351,
257,
8683,
286,
513,
79,
14,
1084,
30,
46506,
21231,
274,
16034,
3084,
62,
940,
1821,
4521,
1558,
62,
20,
33411,
7791,
796,
366,
47,
594,
583,
5664,
11,
5969,
379,
477,
1661,
1,
5357,
5561,
62,
31605,
1505,
796,
366,
18,
79,
14,
1084,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
21231,
274,
389,
19744,
379,
279,
594,
583,
5664,
11,
5969,
379,
477,
1661,
351,
257,
8683,
286,
513,
79,
14,
1084,
30,
46506,
21231,
274,
16034,
3084,
62,
940,
1821,
4521,
1558,
62,
20,
33411,
7791,
796,
366,
47,
594,
583,
5664,
11,
5969,
379,
477,
1661,
1,
5357,
5561,
62,
31605,
1505,
796,
366,
18,
79,
14,
1084,
1
] |
when patient 004-13672 was receiving a lab test for the last time?
|
SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13672')) ORDER BY lab.labresulttime DESC LIMIT 1
|
[
12518,
5827,
3571,
19,
12,
1485,
43864,
373,
6464,
257,
2248,
1332,
329,
262,
938,
640,
30,
46506,
2248,
13,
23912,
20274,
2435,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22914,
12,
1485,
43864,
6,
4008,
38678,
11050,
2248,
13,
23912,
20274,
2435,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12518,
5827,
3571,
19,
12,
1485,
43864,
373,
6464,
257,
2248,
1332,
329,
262,
938,
640,
30,
46506,
2248,
13,
23912,
20274,
2435,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
22914,
12,
1485,
43864,
6,
4008,
38678,
11050,
2248,
13,
23912,
20274,
2435,
22196,
34,
27564,
2043,
352
] |
Who is the original artist with a theme of N/A?
|
SELECT "Original artist" FROM table_24431 WHERE "Theme" = 'N/A'
|
[
8241,
318,
262,
2656,
6802,
351,
257,
7505,
286,
399,
14,
32,
30,
46506,
366,
20556,
6802,
1,
16034,
3084,
62,
25707,
3132,
33411,
366,
47863,
1,
796,
705,
45,
14,
32,
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
] |
[
8241,
318,
262,
2656,
6802,
351,
257,
7505,
286,
399,
14,
32,
30,
46506,
366,
20556,
6802,
1,
16034,
3084,
62,
25707,
3132,
33411,
366,
47863,
1,
796,
705,
45,
14,
32,
6
] |
Name the ground for essendon
|
SELECT ground FROM table_16388047_1 WHERE home_team = "Essendon"
|
[
5376,
262,
2323,
329,
3209,
43153,
46506,
2323,
16034,
3084,
62,
1433,
2548,
1795,
2857,
62,
16,
33411,
1363,
62,
15097,
796,
366,
29508,
43153,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
5376,
262,
2323,
329,
3209,
43153,
46506,
2323,
16034,
3084,
62,
1433,
2548,
1795,
2857,
62,
16,
33411,
1363,
62,
15097,
796,
366,
29508,
43153,
1
] |
Who was the home team that had a score of 13.14 (92)?
|
SELECT "Home team" FROM table_52059 WHERE "Home team score" = '13.14 (92)'
|
[
8241,
373,
262,
1363,
1074,
326,
550,
257,
4776,
286,
1511,
13,
1415,
357,
5892,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
31211,
3270,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1415,
357,
5892,
33047
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8241,
373,
262,
1363,
1074,
326,
550,
257,
4776,
286,
1511,
13,
1415,
357,
5892,
19427,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
31211,
3270,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1485,
13,
1415,
357,
5892,
33047
] |
how many patients were prescribed iso-osmotic dextrose during the same hospital encounter after the diagnosis of chf nos, since 2102?
|
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'chf nos') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2102') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.startdate, admissions.hadm_id FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'iso-osmotic dextrose' AND STRFTIME('%y', prescriptions.startdate) >= '2102') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND t1.hadm_id = t2.hadm_id
|
[
4919,
867,
3871,
547,
14798,
47279,
12,
418,
76,
6210,
390,
742,
13698,
1141,
262,
976,
4436,
8791,
706,
262,
13669,
286,
442,
69,
43630,
11,
1201,
362,
15377,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
40926,
2435,
11,
25349,
13,
18108,
76,
62,
312,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
354,
69,
43630,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
18189,
705,
17,
15377,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
9688,
4475,
11,
25349,
13,
18108,
76,
62,
312,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
796,
705,
26786,
12,
418,
76,
6210,
390,
742,
13698,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
18189,
705,
17,
15377,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
9688,
4475,
5357,
256,
16,
13,
18108,
76,
62,
312,
796,
256,
17,
13,
18108,
76,
62,
312
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4919,
867,
3871,
547,
14798,
47279,
12,
418,
76,
6210,
390,
742,
13698,
1141,
262,
976,
4436,
8791,
706,
262,
13669,
286,
442,
69,
43630,
11,
1201,
362,
15377,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
40567,
62,
291,
67,
13,
40926,
2435,
11,
25349,
13,
18108,
76,
62,
312,
16034,
40567,
62,
291,
67,
32357,
1268,
25349,
6177,
40567,
62,
291,
67,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8189,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
354,
69,
43630,
11537,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
40567,
62,
291,
67,
13,
40926,
2435,
8,
18189,
705,
17,
15377,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
9688,
4475,
11,
25349,
13,
18108,
76,
62,
312,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
796,
705,
26786,
12,
418,
76,
6210,
390,
742,
13698,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
18189,
705,
17,
15377,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
256,
16,
13,
40926,
2435,
1279,
256,
17,
13,
9688,
4475,
5357,
256,
16,
13,
18108,
76,
62,
312,
796,
256,
17,
13,
18108,
76,
62,
312
] |
What is the sum of Against, when Wins is greater than 8, and when Losses is greater than 6?
|
SELECT SUM("Against") FROM table_12641 WHERE "Wins" > '8' AND "Losses" > '6'
|
[
2061,
318,
262,
2160,
286,
12914,
11,
618,
24423,
318,
3744,
621,
807,
11,
290,
618,
22014,
274,
318,
3744,
621,
718,
30,
46506,
35683,
7203,
39276,
4943,
16034,
3084,
62,
1065,
42759,
33411,
366,
54,
1040,
1,
1875,
705,
23,
6,
5357,
366,
43,
793,
274,
1,
1875,
705,
21,
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
] |
[
2061,
318,
262,
2160,
286,
12914,
11,
618,
24423,
318,
3744,
621,
807,
11,
290,
618,
22014,
274,
318,
3744,
621,
718,
30,
46506,
35683,
7203,
39276,
4943,
16034,
3084,
62,
1065,
42759,
33411,
366,
54,
1040,
1,
1875,
705,
23,
6,
5357,
366,
43,
793,
274,
1,
1875,
705,
21,
6
] |
For those records from the products and each product's manufacturer, show me about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter in a bar chart, and show by the Y from high to low.
|
SELECT Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Manufacturer) DESC
|
[
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
905,
502,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
287,
257,
2318,
8262,
11,
290,
905,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
7123,
24385,
11,
35683,
7,
44445,
15051,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
7123,
24385,
38678,
11050,
35683,
7,
44445,
15051,
8,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
905,
502,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
287,
257,
2318,
8262,
11,
290,
905,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
7123,
24385,
11,
35683,
7,
44445,
15051,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
7123,
24385,
38678,
11050,
35683,
7,
44445,
15051,
8,
22196,
34
] |
Find the ids and names of members who are under age 30 or with black membership card.
|
SELECT name, member_id FROM member WHERE membership_card = 'Black' OR age < 30
|
[
16742,
262,
220,
2340,
290,
3891,
286,
1866,
508,
389,
739,
2479,
1542,
393,
351,
2042,
9931,
2657,
13,
46506,
1438,
11,
2888,
62,
312,
16034,
2888,
33411,
9931,
62,
9517,
796,
705,
9915,
6,
6375,
2479,
1279,
1542
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
16742,
262,
220,
2340,
290,
3891,
286,
1866,
508,
389,
739,
2479,
1542,
393,
351,
2042,
9931,
2657,
13,
46506,
1438,
11,
2888,
62,
312,
16034,
2888,
33411,
9931,
62,
9517,
796,
705,
9915,
6,
6375,
2479,
1279,
1542
] |
How many documents in different starting date? Return a line chart grouping by starting date, and list by the X from low to high.
|
SELECT Date_in_Location_From, COUNT(Date_in_Location_From) FROM Document_Locations GROUP BY Date_in_Location_From ORDER BY Date_in_Location_From
|
[
2437,
867,
4963,
287,
1180,
3599,
3128,
30,
8229,
257,
1627,
8262,
36115,
416,
3599,
3128,
11,
290,
1351,
416,
262,
1395,
422,
1877,
284,
1029,
13,
46506,
7536,
62,
259,
62,
14749,
62,
4863,
11,
327,
28270,
7,
10430,
62,
259,
62,
14749,
62,
4863,
8,
16034,
16854,
62,
43,
20968,
44441,
11050,
7536,
62,
259,
62,
14749,
62,
4863,
38678,
11050,
7536,
62,
259,
62,
14749,
62,
4863
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2437,
867,
4963,
287,
1180,
3599,
3128,
30,
8229,
257,
1627,
8262,
36115,
416,
3599,
3128,
11,
290,
1351,
416,
262,
1395,
422,
1877,
284,
1029,
13,
46506,
7536,
62,
259,
62,
14749,
62,
4863,
11,
327,
28270,
7,
10430,
62,
259,
62,
14749,
62,
4863,
8,
16034,
16854,
62,
43,
20968,
44441,
11050,
7536,
62,
259,
62,
14749,
62,
4863,
38678,
11050,
7536,
62,
259,
62,
14749,
62,
4863
] |
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?
|
SELECT SUM("Net profit (\u00a3m)") FROM table_50331 WHERE "Earnings per share (p)" = '27.4' AND "Profit/(loss) before tax (\u00a3m)" < '194.6'
|
[
2061,
318,
262,
2472,
2010,
7630,
618,
12042,
583,
2648,
318,
2681,
13,
19,
11,
290,
7630,
14,
22462,
307,
1640,
1687,
373,
4833,
621,
30483,
13,
21,
1510,
30,
46506,
35683,
7203,
7934,
7630,
357,
59,
84,
405,
64,
18,
76,
8,
4943,
16034,
3084,
62,
1120,
31697,
33411,
366,
49725,
654,
583,
2648,
357,
79,
16725,
796,
705,
1983,
13,
19,
6,
5357,
366,
2964,
11147,
29006,
22462,
8,
878,
1687,
357,
59,
84,
405,
64,
18,
76,
16725,
1279,
705,
22913,
13,
21,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2472,
2010,
7630,
618,
12042,
583,
2648,
318,
2681,
13,
19,
11,
290,
7630,
14,
22462,
307,
1640,
1687,
373,
4833,
621,
30483,
13,
21,
1510,
30,
46506,
35683,
7203,
7934,
7630,
357,
59,
84,
405,
64,
18,
76,
8,
4943,
16034,
3084,
62,
1120,
31697,
33411,
366,
49725,
654,
583,
2648,
357,
79,
16725,
796,
705,
1983,
13,
19,
6,
5357,
366,
2964,
11147,
29006,
22462,
8,
878,
1687,
357,
59,
84,
405,
64,
18,
76,
16725,
1279,
705,
22913,
13,
21,
6
] |
Which team is the kit manufacturer Umbro, and the captain Gary Mabbutt?
|
SELECT "Team" FROM table_14668 WHERE "Kit manufacturer" = 'umbro' AND "Captain" = 'gary mabbutt'
|
[
13828,
1074,
318,
262,
6220,
11554,
35716,
305,
11,
290,
262,
10654,
10936,
337,
397,
43059,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1415,
35809,
33411,
366,
20827,
11554,
1,
796,
705,
2178,
305,
6,
5357,
366,
27898,
1,
796,
705,
14849,
285,
397,
43059,
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
] |
[
13828,
1074,
318,
262,
6220,
11554,
35716,
305,
11,
290,
262,
10654,
10936,
337,
397,
43059,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1415,
35809,
33411,
366,
20827,
11554,
1,
796,
705,
2178,
305,
6,
5357,
366,
27898,
1,
796,
705,
14849,
285,
397,
43059,
6
] |
Name the Place which has a Score of 67-71=138, united states?
|
SELECT place FROM table_name_17 WHERE country = "united states" AND score = 67 - 71 = 138
|
[
5376,
262,
8474,
543,
468,
257,
15178,
286,
8275,
12,
4869,
28,
20107,
11,
16503,
2585,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
1558,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
4776,
796,
8275,
532,
9166,
796,
21503
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
5376,
262,
8474,
543,
468,
257,
15178,
286,
8275,
12,
4869,
28,
20107,
11,
16503,
2585,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
1558,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
4776,
796,
8275,
532,
9166,
796,
21503
] |
What was the first leg result in the round against Norchi Dinamoeli?
|
SELECT "First Leg" FROM table_23526 WHERE "Opposition" = 'Norchi Dinamoeli'
|
[
2061,
373,
262,
717,
1232,
1255,
287,
262,
2835,
1028,
5414,
11072,
23448,
18811,
43733,
30,
46506,
366,
5962,
3564,
1,
16034,
3084,
62,
22370,
2075,
33411,
366,
27524,
3507,
1,
796,
705,
21991,
11072,
23448,
18811,
43733,
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
] |
[
2061,
373,
262,
717,
1232,
1255,
287,
262,
2835,
1028,
5414,
11072,
23448,
18811,
43733,
30,
46506,
366,
5962,
3564,
1,
16034,
3084,
62,
22370,
2075,
33411,
366,
27524,
3507,
1,
796,
705,
21991,
11072,
23448,
18811,
43733,
6
] |
Who was the bowler when the batsmen was dwaraka ravi teja rp singh pragyan ojha?
|
SELECT bowler FROM table_22962745_35 WHERE batsmen = "Dwaraka Ravi Teja RP Singh Pragyan Ojha"
|
[
8241,
373,
262,
9563,
1754,
618,
262,
19553,
3653,
373,
15594,
8130,
374,
15820,
573,
6592,
374,
79,
1702,
71,
23864,
4121,
267,
73,
3099,
30,
46506,
9563,
1754,
16034,
3084,
62,
1828,
4846,
1983,
2231,
62,
2327,
33411,
19553,
3653,
796,
366,
35,
5767,
8130,
371,
15820,
1665,
6592,
25812,
14403,
1736,
363,
4121,
440,
73,
3099,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8241,
373,
262,
9563,
1754,
618,
262,
19553,
3653,
373,
15594,
8130,
374,
15820,
573,
6592,
374,
79,
1702,
71,
23864,
4121,
267,
73,
3099,
30,
46506,
9563,
1754,
16034,
3084,
62,
1828,
4846,
1983,
2231,
62,
2327,
33411,
19553,
3653,
796,
366,
35,
5767,
8130,
371,
15820,
1665,
6592,
25812,
14403,
1736,
363,
4121,
440,
73,
3099,
1
] |
What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?
|
SELECT AVG("ERP W") FROM table_39397 WHERE "City of license" = 'beardstown, illinois' AND "Frequency MHz" > '93.5'
|
[
2061,
318,
262,
2811,
1988,
286,
13793,
47,
370,
287,
41698,
27928,
11,
9486,
329,
257,
8373,
3744,
621,
10261,
13,
20,
30,
46506,
35224,
7203,
1137,
47,
370,
4943,
16034,
3084,
62,
2670,
33372,
33411,
366,
14941,
286,
5964,
1,
796,
705,
39433,
27928,
11,
2801,
8981,
6,
5357,
366,
37,
28707,
19805,
1,
1875,
705,
6052,
13,
20,
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
] |
[
2061,
318,
262,
2811,
1988,
286,
13793,
47,
370,
287,
41698,
27928,
11,
9486,
329,
257,
8373,
3744,
621,
10261,
13,
20,
30,
46506,
35224,
7203,
1137,
47,
370,
4943,
16034,
3084,
62,
2670,
33372,
33411,
366,
14941,
286,
5964,
1,
796,
705,
39433,
27928,
11,
2801,
8981,
6,
5357,
366,
37,
28707,
19805,
1,
1875,
705,
6052,
13,
20,
6
] |
Who was the girl of the week 2 weeks before terri lynn farrow in the same month?
|
SELECT week_2 FROM table_name_47 WHERE week_4 = "terri lynn farrow"
|
[
8241,
373,
262,
2576,
286,
262,
1285,
362,
2745,
878,
1059,
380,
31432,
77,
1290,
808,
287,
262,
976,
1227,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
2857,
33411,
1285,
62,
19,
796,
366,
353,
380,
31432,
77,
1290,
808,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8241,
373,
262,
2576,
286,
262,
1285,
362,
2745,
878,
1059,
380,
31432,
77,
1290,
808,
287,
262,
976,
1227,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
2857,
33411,
1285,
62,
19,
796,
366,
353,
380,
31432,
77,
1290,
808,
1
] |
speciy the icd9 code and primary disease of patient robert hyden
|
SELECT demographic.diagnosis, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Robert Hyden"
|
[
4125,
979,
88,
262,
14158,
67,
24,
2438,
290,
4165,
4369,
286,
5827,
686,
4835,
2537,
6559,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
796,
366,
19156,
15084,
268,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4125,
979,
88,
262,
14158,
67,
24,
2438,
290,
4165,
4369,
286,
5827,
686,
4835,
2537,
6559,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
796,
366,
19156,
15084,
268,
1
] |
What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233?
|
SELECT MIN(round) FROM table_name_62 WHERE name = "justin forsett" AND pick > 233
|
[
2061,
338,
262,
9016,
2835,
10799,
27325,
3087,
373,
15937,
287,
11,
351,
257,
4538,
2298,
4025,
621,
30435,
30,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1438,
796,
366,
3137,
259,
329,
17744,
1,
5357,
2298,
1875,
30435
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
338,
262,
9016,
2835,
10799,
27325,
3087,
373,
15937,
287,
11,
351,
257,
4538,
2298,
4025,
621,
30435,
30,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1438,
796,
366,
3137,
259,
329,
17744,
1,
5357,
2298,
1875,
30435
] |
What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals?
|
SELECT MAX("Bronze") FROM table_46678 WHERE "Nation" = 'israel' AND "Silver" < '3'
|
[
2061,
318,
262,
4511,
1271,
286,
22101,
28057,
326,
318,
2510,
936,
258,
1572,
618,
484,
1392,
1342,
621,
513,
8465,
28057,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
42199,
3695,
33411,
366,
46108,
1,
796,
705,
271,
2510,
6,
5357,
366,
26766,
1,
1279,
705,
18,
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
] |
[
2061,
318,
262,
4511,
1271,
286,
22101,
28057,
326,
318,
2510,
936,
258,
1572,
618,
484,
1392,
1342,
621,
513,
8465,
28057,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
42199,
3695,
33411,
366,
46108,
1,
796,
705,
271,
2510,
6,
5357,
366,
26766,
1,
1279,
705,
18,
6
] |
\\ bug query on markdown. with bits stolen from http://data.stackexchange.com/stackoverflow/query/494264/longest-answers-by-markdown
|
SELECT p.Id AS "post_link", 'site://posts/' + CAST(p.Id AS TEXT) + '/edit|' + 'Edit' AS "edit_link", p.OwnerUserId AS "user_link", p.CreationDate FROM Posts AS p, PostHistory AS ph WHERE ph.PostId = p.Id AND ph.PostHistoryTypeId IN (2, 5, 8) AND NOT EXISTS(SELECT * FROM PostHistory AS phtwo WHERE phtwo.PostId = p.Id AND phtwo.PostHistoryTypeId IN (2, 5, 8) AND phtwo.CreationDate > ph.CreationDate) AND YEAR(p.CreationDate) < 2014 AND (REPLACE(REPLACE(ph.Text, '\\', ''), ' ', 'X') LIKE '%\XXXX%') ORDER BY p.OwnerUserId DESC
|
[
6852,
5434,
12405,
319,
1317,
2902,
13,
351,
10340,
9909,
422,
2638,
1378,
7890,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
25558,
2502,
11125,
14,
22766,
14,
39449,
18897,
14,
6511,
395,
12,
504,
86,
364,
12,
1525,
12,
4102,
2902,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
705,
15654,
1378,
24875,
14,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
1343,
31051,
19312,
91,
6,
1343,
705,
18378,
6,
7054,
366,
19312,
62,
8726,
1600,
279,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
279,
13,
12443,
341,
10430,
16034,
12043,
7054,
279,
11,
2947,
18122,
7054,
872,
33411,
872,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
13,
6307,
18122,
6030,
7390,
3268,
357,
17,
11,
642,
11,
807,
8,
5357,
5626,
7788,
1797,
4694,
7,
46506,
1635,
16034,
2947,
18122,
7054,
872,
11545,
33411,
872,
11545,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
11545,
13,
6307,
18122,
6030,
7390,
3268,
357,
17,
11,
642,
11,
807,
8,
5357,
872,
11545,
13,
12443,
341,
10430,
1875,
872,
13,
12443,
341,
10430,
8,
5357,
32914,
7,
79,
13,
12443,
341,
10430,
8,
1279,
1946,
5357,
357,
2200,
6489,
11598,
7,
2200,
6489,
11598,
7,
746,
13,
8206,
11,
705,
6852,
3256,
10148,
828,
705,
46083,
705,
55,
11537,
34178,
705,
4,
59,
24376,
4,
11537,
38678,
11050,
279,
13,
42419,
12982,
7390,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
6852,
5434,
12405,
319,
1317,
2902,
13,
351,
10340,
9909,
422,
2638,
1378,
7890,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
25558,
2502,
11125,
14,
22766,
14,
39449,
18897,
14,
6511,
395,
12,
504,
86,
364,
12,
1525,
12,
4102,
2902,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
705,
15654,
1378,
24875,
14,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
1343,
31051,
19312,
91,
6,
1343,
705,
18378,
6,
7054,
366,
19312,
62,
8726,
1600,
279,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
279,
13,
12443,
341,
10430,
16034,
12043,
7054,
279,
11,
2947,
18122,
7054,
872,
33411,
872,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
13,
6307,
18122,
6030,
7390,
3268,
357,
17,
11,
642,
11,
807,
8,
5357,
5626,
7788,
1797,
4694,
7,
46506,
1635,
16034,
2947,
18122,
7054,
872,
11545,
33411,
872,
11545,
13,
6307,
7390,
796,
279,
13,
7390,
5357,
872,
11545,
13,
6307,
18122,
6030,
7390,
3268,
357,
17,
11,
642,
11,
807,
8,
5357,
872,
11545,
13,
12443,
341,
10430,
1875,
872,
13,
12443,
341,
10430,
8,
5357,
32914,
7,
79,
13,
12443,
341,
10430,
8,
1279,
1946,
5357,
357,
2200,
6489,
11598,
7,
2200,
6489,
11598,
7,
746,
13,
8206,
11,
705,
6852,
3256,
10148,
828,
705,
46083,
705,
55,
11537,
34178,
705,
4,
59,
24376,
4,
11537,
38678,
11050,
279,
13,
42419,
12982,
7390,
22196,
34
] |
Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.
|
SELECT T3.name, T2.district FROM phone_market AS T1 JOIN market AS T2 ON T1.market_id = T2.market_id JOIN phone AS T3 ON T1.phone_id = T3.phone_id ORDER BY T2.ranking
|
[
15307,
262,
3891,
286,
9512,
290,
262,
12815,
286,
5939,
484,
389,
319,
11,
287,
41988,
1502,
286,
262,
12759,
286,
262,
1910,
13,
46506,
309,
18,
13,
3672,
11,
309,
17,
13,
17080,
2012,
16034,
3072,
62,
10728,
7054,
309,
16,
32357,
1268,
1910,
7054,
309,
17,
6177,
309,
16,
13,
10728,
62,
312,
796,
309,
17,
13,
10728,
62,
312,
32357,
1268,
3072,
7054,
309,
18,
6177,
309,
16,
13,
4862,
62,
312,
796,
309,
18,
13,
4862,
62,
312,
38678,
11050,
309,
17,
13,
28405
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
15307,
262,
3891,
286,
9512,
290,
262,
12815,
286,
5939,
484,
389,
319,
11,
287,
41988,
1502,
286,
262,
12759,
286,
262,
1910,
13,
46506,
309,
18,
13,
3672,
11,
309,
17,
13,
17080,
2012,
16034,
3072,
62,
10728,
7054,
309,
16,
32357,
1268,
1910,
7054,
309,
17,
6177,
309,
16,
13,
10728,
62,
312,
796,
309,
17,
13,
10728,
62,
312,
32357,
1268,
3072,
7054,
309,
18,
6177,
309,
16,
13,
4862,
62,
312,
796,
309,
18,
13,
4862,
62,
312,
38678,
11050,
309,
17,
13,
28405
] |
How many players are affiliated with indiana university?
|
SELECT COUNT("Player") FROM table_3289 WHERE "Affiliation" = 'Indiana University'
|
[
2437,
867,
1938,
389,
18552,
351,
773,
7484,
6403,
30,
46506,
327,
28270,
7203,
14140,
4943,
16034,
3084,
62,
18,
27693,
33411,
366,
35191,
15547,
1,
796,
705,
49153,
2059,
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
] |
[
2437,
867,
1938,
389,
18552,
351,
773,
7484,
6403,
30,
46506,
327,
28270,
7203,
14140,
4943,
16034,
3084,
62,
18,
27693,
33411,
366,
35191,
15547,
1,
796,
705,
49153,
2059,
6
] |
has any laboratory test been performed on patient 007-2065 until 2 years ago?
|
SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-2065')) AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-2 year')
|
[
10134,
597,
14010,
1332,
587,
6157,
319,
5827,
3571,
22,
12,
1238,
2996,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
25816,
12,
1238,
2996,
6,
4008,
5357,
360,
1404,
2767,
12789,
7,
23912,
13,
23912,
20274,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
17,
614,
11537
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10134,
597,
14010,
1332,
587,
6157,
319,
5827,
3571,
22,
12,
1238,
2996,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
25816,
12,
1238,
2996,
6,
4008,
5357,
360,
1404,
2767,
12789,
7,
23912,
13,
23912,
20274,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
17,
614,
11537
] |
What is the average Finish, when Team is 'Buck Baker', and when Start is less than 13?
|
SELECT AVG("Finish") FROM table_61677 WHERE "Team" = 'buck baker' AND "Start" < '13'
|
[
2061,
318,
262,
2811,
32585,
11,
618,
4816,
318,
705,
33,
1347,
14372,
3256,
290,
618,
7253,
318,
1342,
621,
1511,
30,
46506,
35224,
7203,
48658,
4943,
16034,
3084,
62,
44214,
3324,
33411,
366,
15592,
1,
796,
705,
27041,
46412,
6,
5357,
366,
10434,
1,
1279,
705,
1485,
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
] |
[
2061,
318,
262,
2811,
32585,
11,
618,
4816,
318,
705,
33,
1347,
14372,
3256,
290,
618,
7253,
318,
1342,
621,
1511,
30,
46506,
35224,
7203,
48658,
4943,
16034,
3084,
62,
44214,
3324,
33411,
366,
15592,
1,
796,
705,
27041,
46412,
6,
5357,
366,
10434,
1,
1279,
705,
1485,
6
] |
count the number of patients whose drug code is amid200 and lab test fluid is blood?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "AMID200" AND lab.fluid = "Blood"
|
[
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
10371,
2167,
290,
2248,
1332,
11711,
318,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
2390,
2389,
2167,
1,
5357,
2248,
13,
35522,
312,
796,
366,
21659,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
10371,
2167,
290,
2248,
1332,
11711,
318,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
2390,
2389,
2167,
1,
5357,
2248,
13,
35522,
312,
796,
366,
21659,
1
] |
What was the score of the game played on May 9?
|
SELECT "Score" FROM table_80257 WHERE "Date" = 'may 9'
|
[
2061,
373,
262,
4776,
286,
262,
983,
2826,
319,
1737,
860,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1795,
28676,
33411,
366,
10430,
1,
796,
705,
11261,
860,
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
] |
[
2061,
373,
262,
4776,
286,
262,
983,
2826,
319,
1737,
860,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
1795,
28676,
33411,
366,
10430,
1,
796,
705,
11261,
860,
6
] |
When was the Lakeside race where Paul Morris won?
|
SELECT "Date" FROM table_49566 WHERE "Race Title" = 'lakeside' AND "Winner" = 'paul morris'
|
[
2215,
373,
262,
24153,
485,
3234,
810,
3362,
14433,
1839,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
33781,
2791,
33411,
366,
35157,
11851,
1,
796,
705,
75,
1124,
485,
6,
5357,
366,
48056,
1,
796,
705,
79,
2518,
2146,
2442,
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
] |
[
2215,
373,
262,
24153,
485,
3234,
810,
3362,
14433,
1839,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
33781,
2791,
33411,
366,
35157,
11851,
1,
796,
705,
75,
1124,
485,
6,
5357,
366,
48056,
1,
796,
705,
79,
2518,
2146,
2442,
6
] |
What is the Original title of Children of Sarajevo?
|
SELECT "Original title" FROM table_42397 WHERE "Film title used in nomination" = 'children of sarajevo'
|
[
2061,
318,
262,
13745,
3670,
286,
8990,
286,
6866,
1228,
1990,
78,
30,
46506,
366,
20556,
3670,
1,
16034,
3084,
62,
43356,
5607,
33411,
366,
39750,
3670,
973,
287,
11872,
1,
796,
705,
17197,
286,
29008,
1228,
1990,
78,
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
] |
[
2061,
318,
262,
13745,
3670,
286,
8990,
286,
6866,
1228,
1990,
78,
30,
46506,
366,
20556,
3670,
1,
16034,
3084,
62,
43356,
5607,
33411,
366,
39750,
3670,
973,
287,
11872,
1,
796,
705,
17197,
286,
29008,
1228,
1990,
78,
6
] |
Candidate of kimmo kiljunen belongs to which municipality?
|
SELECT municipality FROM table_name_88 WHERE candidate = "kimmo kiljunen"
|
[
41572,
20540,
286,
479,
320,
5908,
8769,
29741,
268,
14448,
284,
543,
27264,
30,
46506,
27264,
16034,
3084,
62,
3672,
62,
3459,
33411,
4540,
796,
366,
74,
320,
5908,
8769,
29741,
268,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
41572,
20540,
286,
479,
320,
5908,
8769,
29741,
268,
14448,
284,
543,
27264,
30,
46506,
27264,
16034,
3084,
62,
3672,
62,
3459,
33411,
4540,
796,
366,
74,
320,
5908,
8769,
29741,
268,
1
] |
how many patients admitted before 2155 are diagnosed with other specified gastritis, with hemorrhage?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2155" AND diagnoses.long_title = "Other specified gastritis, with hemorrhage"
|
[
4919,
867,
3871,
6848,
878,
362,
18742,
389,
14641,
351,
584,
7368,
21956,
27398,
11,
351,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
18742,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
7368,
21956,
27398,
11,
351,
42203,
496,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4919,
867,
3871,
6848,
878,
362,
18742,
389,
14641,
351,
584,
7368,
21956,
27398,
11,
351,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
18742,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
7368,
21956,
27398,
11,
351,
42203,
496,
1
] |
How many separate values for Years are associated with FA Cup of 5?
|
SELECT COUNT("Years") FROM table_19734 WHERE "FA Cup" = '5'
|
[
2437,
867,
4553,
3815,
329,
13212,
389,
3917,
351,
9677,
5454,
286,
642,
30,
46506,
327,
28270,
7203,
40630,
4943,
16034,
3084,
62,
24991,
2682,
33411,
366,
7708,
5454,
1,
796,
705,
20,
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
] |
[
2437,
867,
4553,
3815,
329,
13212,
389,
3917,
351,
9677,
5454,
286,
642,
30,
46506,
327,
28270,
7203,
40630,
4943,
16034,
3084,
62,
24991,
2682,
33411,
366,
7708,
5454,
1,
796,
705,
20,
6
] |
what is the cheapest round trip fare on CO 1291 round trip DENVER SAN FRANCISCO
|
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.flight_number = 1291) AND fare.round_trip_cost = (SELECT MIN(FAREalias1.round_trip_cost) FROM airport_service AS AIRPORT_SERVICEalias2, airport_service AS AIRPORT_SERVICEalias3, city AS CITYalias2, city AS CITYalias3, fare AS FAREalias1, flight AS FLIGHTalias1, flight_fare AS FLIGHT_FAREalias1 WHERE ((CITYalias2.city_code = AIRPORT_SERVICEalias2.city_code AND CITYalias2.city_name = 'DENVER' AND CITYalias3.city_code = AIRPORT_SERVICEalias3.city_code AND CITYalias3.city_name = 'SAN FRANCISCO' AND FLIGHTalias1.from_airport = AIRPORT_SERVICEalias2.airport_code AND FLIGHTalias1.to_airport = AIRPORT_SERVICEalias3.airport_code) AND FLIGHTalias1.flight_number = 1291) AND FLIGHT_FAREalias1.fare_id = FAREalias1.fare_id AND FLIGHTalias1.airline_code = 'CO' AND FLIGHTalias1.flight_id = FLIGHT_FAREalias1.flight_id) AND flight_fare.fare_id = fare.fare_id AND flight.airline_code = 'CO' AND flight.flight_id = flight_fare.flight_id
|
[
10919,
318,
262,
28918,
2835,
5296,
14505,
319,
7375,
1105,
6420,
2835,
5296,
37692,
5959,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
14808,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
5474,
13,
22560,
62,
17618,
796,
1105,
6420,
8,
5357,
14505,
13,
744,
62,
39813,
62,
15805,
796,
357,
46506,
20625,
7,
37,
12203,
26011,
16,
13,
744,
62,
39813,
62,
15805,
8,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
17,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
18,
11,
1748,
7054,
27993,
26011,
17,
11,
1748,
7054,
27993,
26011,
18,
11,
14505,
7054,
376,
12203,
26011,
16,
11,
5474,
7054,
9977,
9947,
26011,
16,
11,
5474,
62,
9496,
7054,
9977,
9947,
62,
37,
12203,
26011,
16,
33411,
14808,
34,
9050,
26011,
17,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
19205,
62,
8189,
5357,
27993,
26011,
17,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
27993,
26011,
18,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
19205,
62,
8189,
5357,
27993,
26011,
18,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
9977,
9947,
26011,
16,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
958,
634,
62,
8189,
5357,
9977,
9947,
26011,
16,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
958,
634,
62,
8189,
8,
5357,
9977,
9947,
26011,
16,
13,
22560,
62,
17618,
796,
1105,
6420,
8,
5357,
9977,
9947,
62,
37,
12203,
26011,
16,
13,
9496,
62,
312,
796,
376,
12203,
26011,
16,
13,
9496,
62,
312,
5357,
9977,
9947,
26011,
16,
13,
958,
1370,
62,
8189,
796,
705,
8220,
6,
5357,
9977,
9947,
26011,
16,
13,
22560,
62,
312,
796,
9977,
9947,
62,
37,
12203,
26011,
16,
13,
22560,
62,
312,
8,
5357,
5474,
62,
9496,
13,
9496,
62,
312,
796,
14505,
13,
9496,
62,
312,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
705,
8220,
6,
5357,
5474,
13,
22560,
62,
312,
796,
5474,
62,
9496,
13,
22560,
62,
312
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
28918,
2835,
5296,
14505,
319,
7375,
1105,
6420,
2835,
5296,
37692,
5959,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
14505,
11,
5474,
11,
5474,
62,
9496,
33411,
14808,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
5474,
13,
22560,
62,
17618,
796,
1105,
6420,
8,
5357,
14505,
13,
744,
62,
39813,
62,
15805,
796,
357,
46506,
20625,
7,
37,
12203,
26011,
16,
13,
744,
62,
39813,
62,
15805,
8,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
17,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
26011,
18,
11,
1748,
7054,
27993,
26011,
17,
11,
1748,
7054,
27993,
26011,
18,
11,
14505,
7054,
376,
12203,
26011,
16,
11,
5474,
7054,
9977,
9947,
26011,
16,
11,
5474,
62,
9496,
7054,
9977,
9947,
62,
37,
12203,
26011,
16,
33411,
14808,
34,
9050,
26011,
17,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
19205,
62,
8189,
5357,
27993,
26011,
17,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
27993,
26011,
18,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
19205,
62,
8189,
5357,
27993,
26011,
18,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
9977,
9947,
26011,
16,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
17,
13,
958,
634,
62,
8189,
5357,
9977,
9947,
26011,
16,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
26011,
18,
13,
958,
634,
62,
8189,
8,
5357,
9977,
9947,
26011,
16,
13,
22560,
62,
17618,
796,
1105,
6420,
8,
5357,
9977,
9947,
62,
37,
12203,
26011,
16,
13,
9496,
62,
312,
796,
376,
12203,
26011,
16,
13,
9496,
62,
312,
5357,
9977,
9947,
26011,
16,
13,
958,
1370,
62,
8189,
796,
705,
8220,
6,
5357,
9977,
9947,
26011,
16,
13,
22560,
62,
312,
796,
9977,
9947,
62,
37,
12203,
26011,
16,
13,
22560,
62,
312,
8,
5357,
5474,
62,
9496,
13,
9496,
62,
312,
796,
14505,
13,
9496,
62,
312,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
705,
8220,
6,
5357,
5474,
13,
22560,
62,
312,
796,
5474,
62,
9496,
13,
22560,
62,
312
] |
show me the flights between ATLANTA and WASHINGTON for WEDNESDAY
|
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND days.day_name = 'WEDNESDAY' AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
|
[
12860,
502,
262,
13956,
1022,
5161,
25697,
5603,
290,
370,
19436,
329,
370,
1961,
37379,
26442,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
1528,
13,
820,
62,
3672,
796,
705,
54,
1961,
37379,
26442,
6,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12860,
502,
262,
13956,
1022,
5161,
25697,
5603,
290,
370,
19436,
329,
370,
1961,
37379,
26442,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
1528,
13,
820,
62,
3672,
796,
705,
54,
1961,
37379,
26442,
6,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
1404,
25697,
5603,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
Who was the opponent on January 7?
|
SELECT opponent FROM table_name_36 WHERE date = "january 7"
|
[
8241,
373,
262,
6125,
319,
3269,
767,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
13881,
2838,
767,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8241,
373,
262,
6125,
319,
3269,
767,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2623,
33411,
3128,
796,
366,
13881,
2838,
767,
1
] |
Which titles have been published by Gamehouse Live?
|
SELECT "Title" FROM table_4058 WHERE "Publisher" = 'GameHouse Live'
|
[
13828,
8714,
423,
587,
3199,
416,
3776,
4803,
7547,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1821,
3365,
33411,
366,
46471,
1,
796,
705,
8777,
18102,
7547,
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
] |
[
13828,
8714,
423,
587,
3199,
416,
3776,
4803,
7547,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1821,
3365,
33411,
366,
46471,
1,
796,
705,
8777,
18102,
7547,
6
] |
What Tournament had a Score of 4 6, 6 7, 3 6?
|
SELECT "Tournament" FROM table_65303 WHERE "Score" = '4–6, 6–7, 3–6'
|
[
2061,
9595,
550,
257,
15178,
286,
604,
718,
11,
718,
767,
11,
513,
718,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2996,
22572,
33411,
366,
26595,
1,
796,
705,
19,
1906,
21,
11,
718,
1906,
22,
11,
513,
1906,
21,
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
] |
[
2061,
9595,
550,
257,
15178,
286,
604,
718,
11,
718,
767,
11,
513,
718,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2996,
22572,
33411,
366,
26595,
1,
796,
705,
19,
1906,
21,
11,
718,
1906,
22,
11,
513,
1906,
21,
6
] |
What team had Pick 2?
|
SELECT team FROM table_name_27 WHERE pick = "2"
|
[
2061,
1074,
550,
12346,
362,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1983,
33411,
2298,
796,
366,
17,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
1074,
550,
12346,
362,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
1983,
33411,
2298,
796,
366,
17,
1
] |
what was the difference in weight of patient 14987 second measured on the first hospital visit compared to the first value measured on the first hospital visit?
|
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14987 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1 OFFSET 1) - (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14987 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit wt' AND d_items.linksto = 'chartevents') ORDER BY chartevents.charttime LIMIT 1)
|
[
10919,
373,
262,
3580,
287,
3463,
286,
5827,
1478,
44183,
1218,
8630,
319,
262,
717,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
44183,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
27564,
2043,
352,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
266,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352,
3963,
10652,
2767,
352,
8,
532,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
44183,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
27564,
2043,
352,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
266,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352,
8
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
373,
262,
3580,
287,
3463,
286,
5827,
1478,
44183,
1218,
8630,
319,
262,
717,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
44183,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
27564,
2043,
352,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
266,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352,
3963,
10652,
2767,
352,
8,
532,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1478,
44183,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
15697,
38678,
11050,
25349,
13,
324,
20124,
524,
27564,
2043,
352,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
266,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352,
8
] |
How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?
|
SELECT SUM(gold) FROM table_name_29 WHERE rank = 7 AND bronze = 1 AND silver < 0
|
[
2437,
867,
3869,
423,
257,
10916,
286,
767,
11,
290,
257,
19461,
286,
352,
11,
290,
257,
7698,
4833,
621,
657,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
4279,
796,
767,
5357,
22101,
796,
352,
5357,
8465,
1279,
657
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2437,
867,
3869,
423,
257,
10916,
286,
767,
11,
290,
257,
19461,
286,
352,
11,
290,
257,
7698,
4833,
621,
657,
30,
46506,
35683,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
4279,
796,
767,
5357,
22101,
796,
352,
5357,
8465,
1279,
657
] |
What event was in 2006?
|
SELECT event FROM table_name_2 WHERE year = 2006
|
[
2061,
1785,
373,
287,
4793,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
17,
33411,
614,
796,
4793
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
1785,
373,
287,
4793,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
17,
33411,
614,
796,
4793
] |
Bounty winning answers with low score. See http://data.stackexchange.com/stackoverflow/qe/375/bounties-won
|
SELECT Posts.Id AS "post_link", Posts.Score, v.BountyAmount, Posts.OwnerUserId AS "user_link" FROM Votes AS v INNER JOIN Posts ON v.PostId = Posts.Id WHERE v.VoteTypeId = 9 AND Posts.Score < 1 AND v.BountyAmount > 0 ORDER BY Posts.Score
|
[
33,
17705,
5442,
7429,
351,
1877,
4776,
13,
4091,
2638,
1378,
7890,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
25558,
2502,
11125,
14,
80,
68,
14,
22318,
14,
65,
608,
444,
12,
26502,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
26595,
11,
410,
13,
33,
17705,
31264,
11,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
39584,
7054,
410,
3268,
21479,
32357,
1268,
12043,
6177,
410,
13,
6307,
7390,
796,
12043,
13,
7390,
33411,
410,
13,
37394,
6030,
7390,
796,
860,
5357,
12043,
13,
26595,
1279,
352,
5357,
410,
13,
33,
17705,
31264,
1875,
657,
38678,
11050,
12043,
13,
26595
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
33,
17705,
5442,
7429,
351,
1877,
4776,
13,
4091,
2638,
1378,
7890,
13,
301,
330,
365,
87,
3803,
13,
785,
14,
25558,
2502,
11125,
14,
80,
68,
14,
22318,
14,
65,
608,
444,
12,
26502,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
26595,
11,
410,
13,
33,
17705,
31264,
11,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
39584,
7054,
410,
3268,
21479,
32357,
1268,
12043,
6177,
410,
13,
6307,
7390,
796,
12043,
13,
7390,
33411,
410,
13,
37394,
6030,
7390,
796,
860,
5357,
12043,
13,
26595,
1279,
352,
5357,
410,
13,
33,
17705,
31264,
1875,
657,
38678,
11050,
12043,
13,
26595
] |
What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?
|
SELECT tenure FROM table_name_95 WHERE cause_of_death = "helicopter accident" AND badge_serial_number = "16805"
|
[
2061,
318,
262,
9368,
495,
286,
262,
10391,
508,
3724,
287,
257,
15392,
5778,
351,
44308,
14,
32634,
7913,
1467,
28256,
30,
46506,
17081,
16034,
3084,
62,
3672,
62,
3865,
33411,
2728,
62,
1659,
62,
22595,
796,
366,
258,
677,
32563,
5778,
1,
5357,
23009,
62,
46911,
62,
17618,
796,
366,
1433,
28256,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
9368,
495,
286,
262,
10391,
508,
3724,
287,
257,
15392,
5778,
351,
44308,
14,
32634,
7913,
1467,
28256,
30,
46506,
17081,
16034,
3084,
62,
3672,
62,
3865,
33411,
2728,
62,
1659,
62,
22595,
796,
366,
258,
677,
32563,
5778,
1,
5357,
23009,
62,
46911,
62,
17618,
796,
366,
1433,
28256,
1
] |
what is the number of competitions that have been competed in ?
|
SELECT COUNT("competition") FROM table_204_706
|
[
10919,
318,
262,
1271,
286,
24174,
326,
423,
587,
32440,
287,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
18638,
62,
35402
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
1271,
286,
24174,
326,
423,
587,
32440,
287,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
18638,
62,
35402
] |
which country scored the most points ?
|
SELECT "country" FROM table_203_803 ORDER BY "points" DESC LIMIT 1
|
[
4758,
1499,
7781,
262,
749,
2173,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
22416,
62,
43564,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4758,
1499,
7781,
262,
749,
2173,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
22416,
62,
43564,
38678,
11050,
366,
13033,
1,
22196,
34,
27564,
2043,
352
] |
Which non-ENGR courses are required for the major ?
|
SELECT DISTINCT course.department, course.name, course.number FROM course, program, program_course WHERE course.department <> 'ENGR' AND program_course.course_id = course.course_id AND program.program_id = program_course.program_id
|
[
13828,
1729,
12,
1677,
10761,
10902,
389,
2672,
329,
262,
1688,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
1279,
29,
705,
1677,
10761,
6,
5357,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
62,
312,
5357,
1430,
13,
23065,
62,
312,
796,
1430,
62,
17319,
13,
23065,
62,
312
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
13828,
1729,
12,
1677,
10761,
10902,
389,
2672,
329,
262,
1688,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1430,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
1279,
29,
705,
1677,
10761,
6,
5357,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
62,
312,
5357,
1430,
13,
23065,
62,
312,
796,
1430,
62,
17319,
13,
23065,
62,
312
] |
What is the total number of fans attending the game on October 8, 1989 before week 5?
|
SELECT COUNT(attendance) FROM table_name_4 WHERE date = "october 8, 1989" AND week < 5
|
[
2061,
318,
262,
2472,
1271,
286,
3296,
11969,
262,
983,
319,
3267,
807,
11,
11104,
878,
1285,
642,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
3128,
796,
366,
38441,
2023,
807,
11,
11104,
1,
5357,
1285,
1279,
642
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2472,
1271,
286,
3296,
11969,
262,
983,
319,
3267,
807,
11,
11104,
878,
1285,
642,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
3128,
796,
366,
38441,
2023,
807,
11,
11104,
1,
5357,
1285,
1279,
642
] |
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
|
SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 26
|
[
2437,
867,
2472,
14293,
547,
612,
351,
257,
1342,
621,
807,
2994,
11,
517,
621,
1542,
2173,
11,
290,
257,
3061,
814,
4025,
621,
2608,
30,
46506,
327,
28270,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
2994,
1279,
807,
5357,
966,
1875,
1542,
5357,
3061,
62,
26069,
1875,
2608
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2437,
867,
2472,
14293,
547,
612,
351,
257,
1342,
621,
807,
2994,
11,
517,
621,
1542,
2173,
11,
290,
257,
3061,
814,
4025,
621,
2608,
30,
46506,
327,
28270,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
2994,
1279,
807,
5357,
966,
1875,
1542,
5357,
3061,
62,
26069,
1875,
2608
] |
when was the last time the systemicmean of patient 027-165214 was less than 112.0, the previous day?
|
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-165214')) AND vitalperiodic.systemicmean < 112.0 AND NOT vitalperiodic.systemicmean IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY vitalperiodic.observationtime DESC LIMIT 1
|
[
12518,
373,
262,
938,
640,
262,
21971,
32604,
286,
5827,
657,
1983,
12,
1433,
4309,
1415,
373,
1342,
621,
13539,
13,
15,
11,
262,
2180,
1110,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1433,
4309,
1415,
6,
4008,
5357,
9204,
41007,
291,
13,
10057,
291,
32604,
1279,
13539,
13,
15,
5357,
5626,
9204,
41007,
291,
13,
10057,
291,
32604,
3180,
15697,
5357,
360,
1404,
2767,
12789,
7,
85,
1287,
41007,
291,
13,
672,
3168,
341,
2435,
11,
705,
9688,
286,
1110,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
1110,
3256,
705,
12,
16,
1110,
11537,
38678,
11050,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12518,
373,
262,
938,
640,
262,
21971,
32604,
286,
5827,
657,
1983,
12,
1433,
4309,
1415,
373,
1342,
621,
13539,
13,
15,
11,
262,
2180,
1110,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1433,
4309,
1415,
6,
4008,
5357,
9204,
41007,
291,
13,
10057,
291,
32604,
1279,
13539,
13,
15,
5357,
5626,
9204,
41007,
291,
13,
10057,
291,
32604,
3180,
15697,
5357,
360,
1404,
2767,
12789,
7,
85,
1287,
41007,
291,
13,
672,
3168,
341,
2435,
11,
705,
9688,
286,
1110,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
1110,
3256,
705,
12,
16,
1110,
11537,
38678,
11050,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
22196,
34,
27564,
2043,
352
] |
how many pos with member association being china pr
|
SELECT COUNT("Pos") FROM table_19351 WHERE "Member Association" = 'China PR'
|
[
4919,
867,
1426,
351,
2888,
8112,
852,
442,
1437,
778,
46506,
327,
28270,
7203,
21604,
4943,
16034,
3084,
62,
1129,
35273,
33411,
366,
27608,
5396,
1,
796,
705,
14581,
4810,
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
] |
[
4919,
867,
1426,
351,
2888,
8112,
852,
442,
1437,
778,
46506,
327,
28270,
7203,
21604,
4943,
16034,
3084,
62,
1129,
35273,
33411,
366,
27608,
5396,
1,
796,
705,
14581,
4810,
6
] |
Which ship had a tonnage over 8,782?
|
SELECT "Name of ship" FROM table_8361 WHERE "Tonnage" > '8,782'
|
[
13828,
4074,
550,
257,
5680,
77,
496,
625,
807,
11,
46519,
30,
46506,
366,
5376,
286,
4074,
1,
16034,
3084,
62,
23,
35195,
33411,
366,
35416,
77,
496,
1,
1875,
705,
23,
11,
46519,
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
] |
[
13828,
4074,
550,
257,
5680,
77,
496,
625,
807,
11,
46519,
30,
46506,
366,
5376,
286,
4074,
1,
16034,
3084,
62,
23,
35195,
33411,
366,
35416,
77,
496,
1,
1875,
705,
23,
11,
46519,
6
] |
what AAAAA class has the school year of 1990-91?
|
SELECT "Class AAAAA" FROM table_36554 WHERE "School Year" = '1990-91'
|
[
10919,
317,
17922,
1398,
468,
262,
1524,
614,
286,
6303,
12,
6420,
30,
46506,
366,
9487,
317,
17922,
1,
16034,
3084,
62,
2623,
44218,
33411,
366,
26130,
6280,
1,
796,
705,
19891,
12,
6420,
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
] |
[
10919,
317,
17922,
1398,
468,
262,
1524,
614,
286,
6303,
12,
6420,
30,
46506,
366,
9487,
317,
17922,
1,
16034,
3084,
62,
2623,
44218,
33411,
366,
26130,
6280,
1,
796,
705,
19891,
12,
6420,
6
] |
Which example has rx as the formula?
|
SELECT "Example" FROM table_52661 WHERE "Formula" = 'rx'
|
[
13828,
1672,
468,
374,
87,
355,
262,
10451,
30,
46506,
366,
16281,
1,
16034,
3084,
62,
48531,
5333,
33411,
366,
8479,
4712,
1,
796,
705,
40914,
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
] |
[
13828,
1672,
468,
374,
87,
355,
262,
10451,
30,
46506,
366,
16281,
1,
16034,
3084,
62,
48531,
5333,
33411,
366,
8479,
4712,
1,
796,
705,
40914,
6
] |
What is Score, when Song is ?
|
SELECT score FROM table_name_99 WHERE song = "第九夜"
|
[
2061,
318,
15178,
11,
618,
10940,
318,
5633,
46506,
4776,
16034,
3084,
62,
3672,
62,
2079,
33411,
3496,
796,
366,
163,
105,
105,
20046,
251,
13783,
250,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
15178,
11,
618,
10940,
318,
5633,
46506,
4776,
16034,
3084,
62,
3672,
62,
2079,
33411,
3496,
796,
366,
163,
105,
105,
20046,
251,
13783,
250,
1
] |
What is the place of player jim thorpe?
|
SELECT "Place" FROM table_50235 WHERE "Player" = 'jim thorpe'
|
[
2061,
318,
262,
1295,
286,
2137,
474,
320,
41899,
431,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
1120,
22370,
33411,
366,
14140,
1,
796,
705,
73,
320,
41899,
431,
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
] |
[
2061,
318,
262,
1295,
286,
2137,
474,
320,
41899,
431,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
1120,
22370,
33411,
366,
14140,
1,
796,
705,
73,
320,
41899,
431,
6
] |
what's the number of patients who had a enteral tube feeding intake until 3 years ago?
|
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT intakeoutput.patientunitstayid FROM intakeoutput WHERE intakeoutput.celllabel = 'enteral tube feeding' AND intakeoutput.cellpath LIKE '%input%' AND DATETIME(intakeoutput.intakeoutputtime) <= DATETIME(CURRENT_TIME(), '-3 year'))
|
[
10919,
338,
262,
1271,
286,
3871,
508,
550,
257,
920,
1691,
12403,
13017,
10337,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
10337,
22915,
13,
26029,
20850,
31712,
312,
16034,
10337,
22915,
33411,
10337,
22915,
13,
3846,
18242,
796,
705,
298,
1691,
12403,
13017,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
15414,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
18,
614,
6,
4008
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
338,
262,
1271,
286,
3871,
508,
550,
257,
920,
1691,
12403,
13017,
10337,
1566,
513,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
10337,
22915,
13,
26029,
20850,
31712,
312,
16034,
10337,
22915,
33411,
10337,
22915,
13,
3846,
18242,
796,
705,
298,
1691,
12403,
13017,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
15414,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
18,
614,
6,
4008
] |
Show me the trend about what is the average number of attendance at home games for each year?, sort in asc by the x-axis.
|
SELECT year, AVG(attendance) FROM home_game GROUP BY year ORDER BY year
|
[
15307,
502,
262,
5182,
546,
644,
318,
262,
2811,
1271,
286,
14858,
379,
1363,
1830,
329,
1123,
614,
21747,
3297,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
614,
11,
35224,
7,
1078,
437,
590,
8,
16034,
1363,
62,
6057,
44441,
11050,
614,
38678,
11050,
614
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
15307,
502,
262,
5182,
546,
644,
318,
262,
2811,
1271,
286,
14858,
379,
1363,
1830,
329,
1123,
614,
21747,
3297,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
614,
11,
35224,
7,
1078,
437,
590,
8,
16034,
1363,
62,
6057,
44441,
11050,
614,
38678,
11050,
614
] |
calculate the number of patients who have received a laboratory test for neutrophils since 1 year ago.
|
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'neutrophils') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-1 year'))
|
[
9948,
3129,
378,
262,
1271,
286,
3871,
508,
423,
2722,
257,
14010,
1332,
329,
22190,
10051,
4487,
1201,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
2248,
31534,
13,
18108,
76,
62,
312,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
18242,
796,
705,
710,
315,
10051,
4487,
11537,
5357,
360,
1404,
2767,
12789,
7,
23912,
31534,
13,
40926,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
16,
614,
6,
4008
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
9948,
3129,
378,
262,
1271,
286,
3871,
508,
423,
2722,
257,
14010,
1332,
329,
22190,
10051,
4487,
1201,
352,
614,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
2248,
31534,
13,
18108,
76,
62,
312,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23814,
13,
9186,
312,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
18242,
796,
705,
710,
315,
10051,
4487,
11537,
5357,
360,
1404,
2767,
12789,
7,
23912,
31534,
13,
40926,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
16,
614,
6,
4008
] |
Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims?
|
SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims"
|
[
8241,
318,
262,
5903,
273,
351,
257,
25564,
34961,
3670,
286,
20876,
286,
311,
13,
9910,
1437,
290,
36746,
286,
797,
12078,
30,
46506,
43191,
16034,
3084,
62,
3672,
62,
6420,
33411,
38691,
34961,
62,
7839,
796,
366,
3448,
395,
286,
264,
13,
17463,
1437,
290,
3934,
27832,
286,
302,
12078,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8241,
318,
262,
5903,
273,
351,
257,
25564,
34961,
3670,
286,
20876,
286,
311,
13,
9910,
1437,
290,
36746,
286,
797,
12078,
30,
46506,
43191,
16034,
3084,
62,
3672,
62,
6420,
33411,
38691,
34961,
62,
7839,
796,
366,
3448,
395,
286,
264,
13,
17463,
1437,
290,
3934,
27832,
286,
302,
12078,
1
] |
what is the top five prescription drugs among the patients with an age 50s?
|
SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 50 AND 59) GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 <= 5
|
[
10919,
318,
262,
1353,
1936,
15077,
5010,
1871,
262,
3871,
351,
281,
2479,
2026,
82,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
496,
38651,
8845,
1677,
2026,
5357,
7863,
8,
44441,
11050,
34092,
13,
30349,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
642
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
1353,
1936,
15077,
5010,
1871,
262,
3871,
351,
281,
2479,
2026,
82,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
496,
38651,
8845,
1677,
2026,
5357,
7863,
8,
44441,
11050,
34092,
13,
30349,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
642
] |
What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?
|
SELECT "Score" FROM table_66119 WHERE "Competition" = '1996 asian cup qualification' AND "Date" = 'june 29, 1996'
|
[
2061,
318,
262,
15178,
286,
262,
8235,
7740,
5454,
9537,
2649,
319,
2795,
2808,
11,
8235,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
16315,
33411,
366,
7293,
15620,
1,
796,
705,
22288,
355,
666,
6508,
28587,
6,
5357,
366,
10430,
1,
796,
705,
73,
1726,
2808,
11,
8235,
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
] |
[
2061,
318,
262,
15178,
286,
262,
8235,
7740,
5454,
9537,
2649,
319,
2795,
2808,
11,
8235,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
16315,
33411,
366,
7293,
15620,
1,
796,
705,
22288,
355,
666,
6508,
28587,
6,
5357,
366,
10430,
1,
796,
705,
73,
1726,
2808,
11,
8235,
6
] |
what is the yearly maximum amount of enteral h2o flush that patient 006-146580 took since 9 months ago?
|
SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-146580')) AND intakeoutput.celllabel = 'enteral h2o flush' AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-9 month') GROUP BY STRFTIME('%y', intakeoutput.intakeoutputtime)
|
[
10919,
318,
262,
24169,
5415,
2033,
286,
920,
1691,
289,
17,
78,
24773,
326,
5827,
3571,
21,
12,
1415,
2996,
1795,
1718,
1201,
860,
1933,
2084,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
1415,
2996,
1795,
6,
4008,
5357,
10337,
22915,
13,
3846,
18242,
796,
705,
298,
1691,
289,
17,
78,
24773,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
600,
539,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
24,
1227,
11537,
44441,
11050,
19269,
9792,
12789,
10786,
4,
88,
3256,
10337,
22915,
13,
600,
539,
22915,
2435,
8
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
24169,
5415,
2033,
286,
920,
1691,
289,
17,
78,
24773,
326,
5827,
3571,
21,
12,
1415,
2996,
1795,
1718,
1201,
860,
1933,
2084,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
1415,
2996,
1795,
6,
4008,
5357,
10337,
22915,
13,
3846,
18242,
796,
705,
298,
1691,
289,
17,
78,
24773,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
600,
539,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
24,
1227,
11537,
44441,
11050,
19269,
9792,
12789,
10786,
4,
88,
3256,
10337,
22915,
13,
600,
539,
22915,
2435,
8
] |
Who was the opponent when the score was 6-3, 6-3?
|
SELECT opponent FROM table_name_89 WHERE score = "6-3, 6-3"
|
[
8241,
373,
262,
6125,
618,
262,
4776,
373,
718,
12,
18,
11,
718,
12,
18,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4531,
33411,
4776,
796,
366,
21,
12,
18,
11,
718,
12,
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
] |
[
8241,
373,
262,
6125,
618,
262,
4776,
373,
718,
12,
18,
11,
718,
12,
18,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
4531,
33411,
4776,
796,
366,
21,
12,
18,
11,
718,
12,
18,
1
] |
What is the maximum points received when Peeter V hl gave a 9?
|
SELECT MIN(points) FROM table_29261215_4 WHERE peeter_vähi = 9
|
[
2061,
318,
262,
5415,
2173,
2722,
618,
2631,
2357,
569,
289,
75,
2921,
257,
860,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
1959,
2075,
1065,
1314,
62,
19,
33411,
613,
2357,
62,
85,
11033,
5303,
796,
860
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
5415,
2173,
2722,
618,
2631,
2357,
569,
289,
75,
2921,
257,
860,
30,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
1959,
2075,
1065,
1314,
62,
19,
33411,
613,
2357,
62,
85,
11033,
5303,
796,
860
] |
Which coach has 0 conference titles, more than 2 seasons, higher than 87 losses and 0 NCAA?
|
SELECT "Coach" FROM table_12566 WHERE "Conference titles" = '0' AND "Seasons" > '2' AND "Losses" > '87' AND "NCAA" = '0'
|
[
13828,
3985,
468,
657,
4495,
8714,
11,
517,
621,
362,
7028,
11,
2440,
621,
10083,
9089,
290,
657,
15244,
30,
46506,
366,
40677,
1,
16034,
3084,
62,
11623,
2791,
33411,
366,
3103,
4288,
8714,
1,
796,
705,
15,
6,
5357,
366,
4653,
2812,
1,
1875,
705,
17,
6,
5357,
366,
43,
793,
274,
1,
1875,
705,
5774,
6,
5357,
366,
7792,
3838,
1,
796,
705,
15,
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,
1,
1,
1
] |
[
13828,
3985,
468,
657,
4495,
8714,
11,
517,
621,
362,
7028,
11,
2440,
621,
10083,
9089,
290,
657,
15244,
30,
46506,
366,
40677,
1,
16034,
3084,
62,
11623,
2791,
33411,
366,
3103,
4288,
8714,
1,
796,
705,
15,
6,
5357,
366,
4653,
2812,
1,
1875,
705,
17,
6,
5357,
366,
43,
793,
274,
1,
1875,
705,
5774,
6,
5357,
366,
7792,
3838,
1,
796,
705,
15,
6
] |
What is the rank of the gatchaman Jinpei?
|
SELECT "Rank" FROM table_5643 WHERE "Gatchaman" = 'jinpei'
|
[
2061,
318,
262,
4279,
286,
262,
308,
963,
10546,
17297,
33265,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
20,
41813,
33411,
366,
38,
963,
10546,
1,
796,
705,
18594,
33265,
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
] |
[
2061,
318,
262,
4279,
286,
262,
308,
963,
10546,
17297,
33265,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
20,
41813,
33411,
366,
38,
963,
10546,
1,
796,
705,
18594,
33265,
6
] |
All questions with pandas and R tag.
|
SELECT DISTINCT P.Title, P.ViewCount, P.Score, P.AcceptedAnswerId, P.Tags, 'http://stackoverflow.com/q/' + CAST(P.Id AS TEXT) AS URL FROM Posts AS P WHERE P.Tags LIKE '%<pandas>%' AND P.Tags LIKE '%<r>%' AND P.Score > 0 AND NOT P.AcceptedAnswerId IS NULL
|
[
3237,
2683,
351,
19798,
292,
290,
371,
7621,
13,
46506,
360,
8808,
1268,
4177,
350,
13,
19160,
11,
350,
13,
7680,
12332,
11,
350,
13,
26595,
11,
350,
13,
38855,
276,
33706,
7390,
11,
350,
13,
36142,
11,
705,
4023,
1378,
25558,
2502,
11125,
13,
785,
14,
80,
14,
6,
1343,
327,
11262,
7,
47,
13,
7390,
7054,
40383,
8,
7054,
10289,
16034,
12043,
7054,
350,
33411,
350,
13,
36142,
34178,
705,
4,
27,
79,
392,
292,
29,
4,
6,
5357,
350,
13,
36142,
34178,
705,
4,
27,
81,
29,
4,
6,
5357,
350,
13,
26595,
1875,
657,
5357,
5626,
350,
13,
38855,
276,
33706,
7390,
3180,
15697
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
3237,
2683,
351,
19798,
292,
290,
371,
7621,
13,
46506,
360,
8808,
1268,
4177,
350,
13,
19160,
11,
350,
13,
7680,
12332,
11,
350,
13,
26595,
11,
350,
13,
38855,
276,
33706,
7390,
11,
350,
13,
36142,
11,
705,
4023,
1378,
25558,
2502,
11125,
13,
785,
14,
80,
14,
6,
1343,
327,
11262,
7,
47,
13,
7390,
7054,
40383,
8,
7054,
10289,
16034,
12043,
7054,
350,
33411,
350,
13,
36142,
34178,
705,
4,
27,
79,
392,
292,
29,
4,
6,
5357,
350,
13,
36142,
34178,
705,
4,
27,
81,
29,
4,
6,
5357,
350,
13,
26595,
1875,
657,
5357,
5626,
350,
13,
38855,
276,
33706,
7390,
3180,
15697
] |
What is the Team when the lost is less than 13, and the position is less than 4, with a Difference of 42?
|
SELECT "Team" FROM table_6893 WHERE "Lost" < '13' AND "Position" < '4' AND "Difference" = '42'
|
[
2061,
318,
262,
4816,
618,
262,
2626,
318,
1342,
621,
1511,
11,
290,
262,
2292,
318,
1342,
621,
604,
11,
351,
257,
43795,
286,
5433,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
3104,
6052,
33411,
366,
31042,
1,
1279,
705,
1485,
6,
5357,
366,
26545,
1,
1279,
705,
19,
6,
5357,
366,
28813,
1945,
1,
796,
705,
3682,
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
] |
[
2061,
318,
262,
4816,
618,
262,
2626,
318,
1342,
621,
1511,
11,
290,
262,
2292,
318,
1342,
621,
604,
11,
351,
257,
43795,
286,
5433,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
3104,
6052,
33411,
366,
31042,
1,
1279,
705,
1485,
6,
5357,
366,
26545,
1,
1279,
705,
19,
6,
5357,
366,
28813,
1945,
1,
796,
705,
3682,
6
] |
Find NAAs older than a given date using Natty Blacklist. Title
|
SELECT P.Id AS "post_link", P.Score FROM Posts AS P WHERE (P.PostTypeId = 2 AND P.Score <= 0 AND LENGTH(P.Body) < 350 AND P.CreationDate < '##date##' AND (LOWER(P.Body) LIKE '%sorry for posting this as an answer%' OR LOWER(P.Body) LIKE '%don''t have enough reputation to post a comment%' OR LOWER(P.Body) LIKE '%how did you solve it%' OR LOWER(P.Body) LIKE '%can you share%' OR LOWER(P.Body) LIKE '%do you have any idea%' OR LOWER(P.Body) LIKE '%kindly assist%')) ORDER BY P.Score, P.CreationDate DESC
|
[
16742,
11746,
1722,
4697,
621,
257,
1813,
3128,
1262,
14393,
774,
2619,
4868,
13,
11851,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
350,
13,
26595,
16034,
12043,
7054,
350,
33411,
357,
47,
13,
6307,
6030,
7390,
796,
362,
5357,
350,
13,
26595,
19841,
657,
5357,
406,
49494,
7,
47,
13,
25842,
8,
1279,
13803,
5357,
350,
13,
12443,
341,
10430,
1279,
705,
2235,
4475,
2235,
6,
5357,
357,
43,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
41599,
329,
10754,
428,
355,
281,
3280,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
9099,
7061,
83,
423,
1576,
8507,
284,
1281,
257,
2912,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
4919,
750,
345,
8494,
340,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
5171,
345,
2648,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
4598,
345,
423,
597,
2126,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
11031,
306,
3342,
4,
6,
4008,
38678,
11050,
350,
13,
26595,
11,
350,
13,
12443,
341,
10430,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
16742,
11746,
1722,
4697,
621,
257,
1813,
3128,
1262,
14393,
774,
2619,
4868,
13,
11851,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
350,
13,
26595,
16034,
12043,
7054,
350,
33411,
357,
47,
13,
6307,
6030,
7390,
796,
362,
5357,
350,
13,
26595,
19841,
657,
5357,
406,
49494,
7,
47,
13,
25842,
8,
1279,
13803,
5357,
350,
13,
12443,
341,
10430,
1279,
705,
2235,
4475,
2235,
6,
5357,
357,
43,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
41599,
329,
10754,
428,
355,
281,
3280,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
9099,
7061,
83,
423,
1576,
8507,
284,
1281,
257,
2912,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
4919,
750,
345,
8494,
340,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
5171,
345,
2648,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
4598,
345,
423,
597,
2126,
4,
6,
6375,
406,
36048,
7,
47,
13,
25842,
8,
34178,
705,
4,
11031,
306,
3342,
4,
6,
4008,
38678,
11050,
350,
13,
26595,
11,
350,
13,
12443,
341,
10430,
22196,
34
] |
show me flights from DENVER to WASHINGTON on a WEDNESDAY
|
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND days.day_name = 'WEDNESDAY' AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
|
[
12860,
502,
13956,
422,
37692,
5959,
284,
370,
19436,
319,
257,
370,
1961,
37379,
26442,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
1528,
13,
820,
62,
3672,
796,
705,
54,
1961,
37379,
26442,
6,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12860,
502,
13956,
422,
37692,
5959,
284,
370,
19436,
319,
257,
370,
1961,
37379,
26442,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
21793,
6,
5357,
1528,
13,
820,
62,
3672,
796,
705,
54,
1961,
37379,
26442,
6,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
41819,
5959,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
give me the number of patients whose insurance is medicare and admission year is less than 2187?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.admityear < "2187"
|
[
26535,
502,
262,
1271,
286,
3871,
3025,
5096,
318,
6924,
533,
290,
13938,
614,
318,
1342,
621,
362,
23451,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1,
5357,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
23451,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
26535,
502,
262,
1271,
286,
3871,
3025,
5096,
318,
6924,
533,
290,
13938,
614,
318,
1342,
621,
362,
23451,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
533,
1,
5357,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
23451,
1
] |
Return a bar chart on what are the different card types, and how many transactions have been made with each?, and I want to rank by the x-axis in ascending please.
|
SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY card_type_code
|
[
13615,
257,
2318,
8262,
319,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
21747,
290,
314,
765,
284,
4279,
416,
262,
2124,
12,
22704,
287,
41988,
3387,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
7054,
309,
16,
32357,
1268,
36707,
62,
34,
1371,
7054,
309,
17,
6177,
309,
16,
13,
9517,
62,
312,
796,
309,
17,
13,
9517,
62,
312,
44441,
11050,
309,
17,
13,
9517,
62,
4906,
62,
8189,
38678,
11050,
2657,
62,
4906,
62,
8189
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
13615,
257,
2318,
8262,
319,
644,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
21747,
290,
314,
765,
284,
4279,
416,
262,
2124,
12,
22704,
287,
41988,
3387,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
7054,
309,
16,
32357,
1268,
36707,
62,
34,
1371,
7054,
309,
17,
6177,
309,
16,
13,
9517,
62,
312,
796,
309,
17,
13,
9517,
62,
312,
44441,
11050,
309,
17,
13,
9517,
62,
4906,
62,
8189,
38678,
11050,
2657,
62,
4906,
62,
8189
] |
what is the cost to patient 027-85328 for their hospital stay this year?
|
SELECT SUM(cost.cost) FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328') AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')
|
[
10919,
318,
262,
1575,
284,
5827,
657,
1983,
12,
23,
4310,
2078,
329,
511,
4436,
2652,
428,
614,
30,
46506,
35683,
7,
15805,
13,
15805,
8,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
23,
4310,
2078,
11537,
5357,
360,
1404,
2767,
12789,
7,
15805,
13,
354,
7641,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
1575,
284,
5827,
657,
1983,
12,
23,
4310,
2078,
329,
511,
4436,
2652,
428,
614,
30,
46506,
35683,
7,
15805,
13,
15805,
8,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
23,
4310,
2078,
11537,
5357,
360,
1404,
2767,
12789,
7,
15805,
13,
354,
7641,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537
] |
how many members of the canadian house of commons served in the militia ?
|
SELECT COUNT("name") FROM table_204_608 WHERE "military service" = 'militia'
|
[
4919,
867,
1866,
286,
262,
460,
18425,
2156,
286,
36523,
4983,
287,
262,
21085,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
28688,
33411,
366,
33631,
2139,
1,
796,
705,
76,
6392,
544,
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
] |
[
4919,
867,
1866,
286,
262,
460,
18425,
2156,
286,
36523,
4983,
287,
262,
21085,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
28688,
33411,
366,
33631,
2139,
1,
796,
705,
76,
6392,
544,
6
] |
how many competitions has anton lyuboslavskiy been in ?
|
SELECT COUNT("competition") FROM table_203_677
|
[
4919,
867,
24174,
468,
281,
1122,
22404,
549,
26388,
20545,
88,
587,
287,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
22416,
62,
40179
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4919,
867,
24174,
468,
281,
1122,
22404,
549,
26388,
20545,
88,
587,
287,
5633,
46506,
327,
28270,
7203,
5589,
15620,
4943,
16034,
3084,
62,
22416,
62,
40179
] |
what's the permanence of the body where purity is apprehension
|
SELECT permanence_of_the_body FROM table_11609814_1 WHERE purity = "apprehension"
|
[
10919,
338,
262,
6092,
594,
286,
262,
1767,
810,
25590,
318,
46473,
46506,
6092,
594,
62,
1659,
62,
1169,
62,
2618,
16034,
3084,
62,
1157,
1899,
4089,
1415,
62,
16,
33411,
25590,
796,
366,
1324,
7345,
295,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
338,
262,
6092,
594,
286,
262,
1767,
810,
25590,
318,
46473,
46506,
6092,
594,
62,
1659,
62,
1169,
62,
2618,
16034,
3084,
62,
1157,
1899,
4089,
1415,
62,
16,
33411,
25590,
796,
366,
1324,
7345,
295,
1
] |
What day did Yugoslavia play Luxembourg?
|
SELECT date FROM table_name_56 WHERE opponent = "luxembourg"
|
[
2061,
1110,
750,
37777,
711,
31864,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3980,
33411,
6125,
796,
366,
22564,
368,
24256,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
1110,
750,
37777,
711,
31864,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3980,
33411,
6125,
796,
366,
22564,
368,
24256,
1
] |
Return a histogram on what are the types of competition and number of competitions for that type?, I want to display total number in desc order.
|
SELECT Competition_type, COUNT(*) FROM competition GROUP BY Competition_type ORDER BY COUNT(*) DESC
|
[
13615,
257,
1554,
21857,
319,
644,
389,
262,
3858,
286,
5449,
290,
1271,
286,
24174,
329,
326,
2099,
21747,
314,
765,
284,
3359,
2472,
1271,
287,
1715,
1502,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
5449,
44441,
11050,
27348,
62,
4906,
38678,
11050,
327,
28270,
7,
28104,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
13615,
257,
1554,
21857,
319,
644,
389,
262,
3858,
286,
5449,
290,
1271,
286,
24174,
329,
326,
2099,
21747,
314,
765,
284,
3359,
2472,
1271,
287,
1715,
1502,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
5449,
44441,
11050,
27348,
62,
4906,
38678,
11050,
327,
28270,
7,
28104,
22196,
34
] |
What's the record of the team who played the Cleveland Browns?
|
SELECT "Record" FROM table_34140 WHERE "Opponent" = 'cleveland browns'
|
[
2061,
338,
262,
1700,
286,
262,
1074,
508,
2826,
262,
10306,
17671,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2682,
15187,
33411,
366,
27524,
3471,
1,
796,
705,
2375,
9731,
7586,
82,
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
] |
[
2061,
338,
262,
1700,
286,
262,
1074,
508,
2826,
262,
10306,
17671,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2682,
15187,
33411,
366,
27524,
3471,
1,
796,
705,
2375,
9731,
7586,
82,
6
] |
what was patient 030-56105 first diagnosed with in their last hospital visit?
|
SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-56105' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY diagnosis.diagnosistime LIMIT 1
|
[
10919,
373,
5827,
657,
1270,
12,
3980,
13348,
717,
14641,
351,
287,
511,
938,
4436,
3187,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
39101,
12,
3980,
13348,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352,
4008,
38678,
11050,
13669,
13,
47356,
418,
396,
524,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
373,
5827,
657,
1270,
12,
3980,
13348,
717,
14641,
351,
287,
511,
938,
4436,
3187,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
39101,
12,
3980,
13348,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
49257,
324,
20124,
524,
22196,
34,
27564,
2043,
352,
4008,
38678,
11050,
13669,
13,
47356,
418,
396,
524,
27564,
2043,
352
] |
What percentage of browsers were using Safari during the period in which 2.05% were using Chrome?
|
SELECT safari FROM table_name_57 WHERE chrome = "2.05%"
|
[
2061,
5873,
286,
22616,
547,
1262,
23298,
1141,
262,
2278,
287,
543,
362,
13,
2713,
4,
547,
1262,
13282,
30,
46506,
1932,
2743,
16034,
3084,
62,
3672,
62,
3553,
33411,
32030,
796,
366,
17,
13,
2713,
39658
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
5873,
286,
22616,
547,
1262,
23298,
1141,
262,
2278,
287,
543,
362,
13,
2713,
4,
547,
1262,
13282,
30,
46506,
1932,
2743,
16034,
3084,
62,
3672,
62,
3553,
33411,
32030,
796,
366,
17,
13,
2713,
39658
] |
provide the number of patients whose admission type is emergency and diagnoses long title is seroma complicating a procedure?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Seroma complicating a procedure"
|
[
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
1055,
6086,
2299,
12364,
257,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
7089,
6086,
2299,
12364,
257,
8771,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
1055,
6086,
2299,
12364,
257,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
7089,
6086,
2299,
12364,
257,
8771,
1
] |
What was the choice of song where the original artist was Stevie Wonder?
|
SELECT "Song choice" FROM table_28490 WHERE "Original artist" = 'Stevie Wonder'
|
[
2061,
373,
262,
3572,
286,
3496,
810,
262,
2656,
6802,
373,
42786,
494,
12902,
30,
46506,
366,
44241,
3572,
1,
16034,
3084,
62,
2078,
31503,
33411,
366,
20556,
6802,
1,
796,
705,
7447,
85,
494,
12902,
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
] |
[
2061,
373,
262,
3572,
286,
3496,
810,
262,
2656,
6802,
373,
42786,
494,
12902,
30,
46506,
366,
44241,
3572,
1,
16034,
3084,
62,
2078,
31503,
33411,
366,
20556,
6802,
1,
796,
705,
7447,
85,
494,
12902,
6
] |
count the number of patients admitted before 2194 who were diagnosed with hypopotassemia.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2194" AND diagnoses.long_title = "Hypopotassemia"
|
[
9127,
262,
1271,
286,
3871,
6848,
878,
362,
22913,
508,
547,
14641,
351,
5328,
43372,
21612,
20730,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
22913,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
49926,
43372,
21612,
20730,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
9127,
262,
1271,
286,
3871,
6848,
878,
362,
22913,
508,
547,
14641,
351,
5328,
43372,
21612,
20730,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
22913,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
49926,
43372,
21612,
20730,
1
] |
Could you tell me which intelligent systems course might be more simple than MKT 310 ?
|
SELECT DISTINCT course.department, course.name, course.number, program_course.workload FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE area.area LIKE '%intelligent systems%' AND program_course.workload < (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM course AS COURSEalias1 INNER JOIN program_course AS PROGRAM_COURSEalias1 ON PROGRAM_COURSEalias1.course_id = COURSEalias1.course_id WHERE COURSEalias1.department = 'MKT' AND COURSEalias1.number = 310) ORDER BY program_course.workload
|
[
23722,
345,
1560,
502,
543,
12661,
3341,
1781,
1244,
307,
517,
2829,
621,
20553,
51,
28947,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319,
62,
312,
796,
1989,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
62,
312,
33411,
1989,
13,
20337,
34178,
705,
4,
600,
32940,
3341,
4,
6,
5357,
1430,
62,
17319,
13,
1818,
2220,
1279,
357,
46506,
20625,
7,
4805,
7730,
24115,
62,
34,
11698,
5188,
26011,
16,
13,
1818,
2220,
8,
16034,
1781,
7054,
37384,
5188,
26011,
16,
3268,
21479,
32357,
1268,
1430,
62,
17319,
7054,
46805,
62,
34,
11698,
5188,
26011,
16,
6177,
46805,
62,
34,
11698,
5188,
26011,
16,
13,
17319,
62,
312,
796,
37384,
5188,
26011,
16,
13,
17319,
62,
312,
33411,
37384,
5188,
26011,
16,
13,
10378,
1823,
796,
705,
33907,
51,
6,
5357,
37384,
5188,
26011,
16,
13,
17618,
796,
28947,
8,
38678,
11050,
1430,
62,
17319,
13,
1818,
2220
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
23722,
345,
1560,
502,
543,
12661,
3341,
1781,
1244,
307,
517,
2829,
621,
20553,
51,
28947,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319,
62,
312,
796,
1989,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62,
17319,
13,
17319,
62,
312,
796,
1781,
13,
17319,
62,
312,
33411,
1989,
13,
20337,
34178,
705,
4,
600,
32940,
3341,
4,
6,
5357,
1430,
62,
17319,
13,
1818,
2220,
1279,
357,
46506,
20625,
7,
4805,
7730,
24115,
62,
34,
11698,
5188,
26011,
16,
13,
1818,
2220,
8,
16034,
1781,
7054,
37384,
5188,
26011,
16,
3268,
21479,
32357,
1268,
1430,
62,
17319,
7054,
46805,
62,
34,
11698,
5188,
26011,
16,
6177,
46805,
62,
34,
11698,
5188,
26011,
16,
13,
17319,
62,
312,
796,
37384,
5188,
26011,
16,
13,
17319,
62,
312,
33411,
37384,
5188,
26011,
16,
13,
10378,
1823,
796,
705,
33907,
51,
6,
5357,
37384,
5188,
26011,
16,
13,
17618,
796,
28947,
8,
38678,
11050,
1430,
62,
17319,
13,
1818,
2220
] |
What was the department that got $626,798 in local investments?
|
SELECT "Department" FROM table_21337 WHERE "Local Investment (US$)" = '626,798'
|
[
2061,
373,
262,
5011,
326,
1392,
720,
45191,
11,
43240,
287,
1957,
11115,
30,
46506,
366,
36261,
1,
16034,
3084,
62,
26427,
2718,
33411,
366,
14565,
20877,
357,
2937,
3,
16725,
796,
705,
45191,
11,
43240,
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
] |
[
2061,
373,
262,
5011,
326,
1392,
720,
45191,
11,
43240,
287,
1957,
11115,
30,
46506,
366,
36261,
1,
16034,
3084,
62,
26427,
2718,
33411,
366,
14565,
20877,
357,
2937,
3,
16725,
796,
705,
45191,
11,
43240,
6
] |
The driver in class A with 125 laps is in what position?
|
SELECT "Position" FROM table_65439 WHERE "Class" = 'a' AND "Laps" = '125'
|
[
464,
4639,
287,
1398,
317,
351,
13151,
24590,
318,
287,
644,
2292,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
39111,
2670,
33411,
366,
9487,
1,
796,
705,
64,
6,
5357,
366,
43,
1686,
1,
796,
705,
11623,
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
] |
[
464,
4639,
287,
1398,
317,
351,
13151,
24590,
318,
287,
644,
2292,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
39111,
2670,
33411,
366,
9487,
1,
796,
705,
64,
6,
5357,
366,
43,
1686,
1,
796,
705,
11623,
6
] |
What was the winning score for the tournament played on Jul 14, 1973?
|
SELECT winning_score FROM table_name_96 WHERE date = "jul 14, 1973"
|
[
2061,
373,
262,
5442,
4776,
329,
262,
7756,
2826,
319,
5979,
1478,
11,
15674,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
4846,
33411,
3128,
796,
366,
73,
377,
1478,
11,
15674,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
373,
262,
5442,
4776,
329,
262,
7756,
2826,
319,
5979,
1478,
11,
15674,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
4846,
33411,
3128,
796,
366,
73,
377,
1478,
11,
15674,
1
] |
how many patients have received a stress ulcer prophylaxis - ranitidine two times?
|
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'stress ulcer prophylaxis - ranitidine') GROUP BY patient.uniquepid) AS t1 WHERE t1.c1 = 2
|
[
4919,
867,
3871,
423,
2722,
257,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
4966,
270,
39422,
734,
1661,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
41494,
14856,
2189,
386,
746,
2645,
22704,
532,
4966,
270,
39422,
11537,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
796,
362
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4919,
867,
3871,
423,
2722,
257,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
4966,
270,
39422,
734,
1661,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
327,
28270,
7,
28104,
7054,
269,
16,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
796,
357,
46506,
3513,
13,
26029,
20850,
31712,
312,
16034,
3513,
33411,
3513,
13,
42487,
3672,
796,
705,
41494,
14856,
2189,
386,
746,
2645,
22704,
532,
4966,
270,
39422,
11537,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
796,
362
] |
How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?
|
SELECT kids FROM reservations WHERE checkin = "2010-09-21" AND firstname = "DAMIEN" AND lastname = "TRACHSEL"
|
[
2437,
867,
3988,
2652,
287,
262,
2119,
29506,
40,
1677,
7579,
2246,
7998,
3698,
10667,
287,
319,
8621,
2310,
11,
3050,
30,
46506,
3988,
16034,
24722,
33411,
2198,
259,
796,
366,
10333,
12,
2931,
12,
2481,
1,
5357,
717,
3672,
796,
366,
35,
43870,
1677,
1,
5357,
938,
3672,
796,
366,
5446,
2246,
7998,
3698,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2437,
867,
3988,
2652,
287,
262,
2119,
29506,
40,
1677,
7579,
2246,
7998,
3698,
10667,
287,
319,
8621,
2310,
11,
3050,
30,
46506,
3988,
16034,
24722,
33411,
2198,
259,
796,
366,
10333,
12,
2931,
12,
2481,
1,
5357,
717,
3672,
796,
366,
35,
43870,
1677,
1,
5357,
938,
3672,
796,
366,
5446,
2246,
7998,
3698,
1
] |
What's the minimal number of points scored in any game?
|
SELECT MIN("Points") FROM table_25952
|
[
2061,
338,
262,
10926,
1271,
286,
2173,
7781,
287,
597,
983,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
1495,
49234
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
338,
262,
10926,
1271,
286,
2173,
7781,
287,
597,
983,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
1495,
49234
] |
give me the number of patients whose diagnoses short title is ac posthemorrhag anemia and drug route is ng?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Ac posthemorrhag anemia" AND prescriptions.route = "NG"
|
[
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
936,
1281,
4411,
273,
17179,
363,
281,
22859,
290,
2563,
6339,
318,
23370,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
12832,
1281,
4411,
273,
17179,
363,
281,
22859,
1,
5357,
34092,
13,
38629,
796,
366,
10503,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
936,
1281,
4411,
273,
17179,
363,
281,
22859,
290,
2563,
6339,
318,
23370,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
12832,
1281,
4411,
273,
17179,
363,
281,
22859,
1,
5357,
34092,
13,
38629,
796,
366,
10503,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.