instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what day was the game in argentina | SELECT date FROM table_name_92 WHERE opponent = "argentina" | [
10919,
1110,
373,
262,
983,
287,
1822,
298,
1437,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
6125,
796,
366,
853,
298,
1437,
1
] | [
1,
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,
1110,
373,
262,
983,
287,
1822,
298,
1437,
46506,
3128,
16034,
3084,
62,
3672,
62,
5892,
33411,
6125,
796,
366,
853,
298,
1437,
1
] |
what is the monthly maximum of arterial bp [systolic] for patient 20603 during their first hospital visit? | SELECT MAX(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 = 20603 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevent... | [
10919,
318,
262,
9651,
5415,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
1160,
35642,
1141,
511,
717,
4436,
3187,
30,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
9651,
5415,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
1160,
35642,
1141,
511,
717,
4436,
3187,
30,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13... |
what's the thursday iuppiter (jupiter) with tuesday mars (mars) being marter | SELECT "Thursday Iuppiter (Jupiter)" FROM table_17767 WHERE "Tuesday Mars (Mars)" = 'Marterì' | [
10919,
338,
262,
294,
3479,
1312,
7211,
2676,
357,
73,
21251,
8,
351,
256,
3322,
48962,
357,
76,
945,
8,
852,
1667,
353,
46506,
366,
25381,
314,
7211,
2676,
357,
41,
21251,
16725,
16034,
3084,
62,
22413,
3134,
33411,
366,
26133,
8706,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
3479,
1312,
7211,
2676,
357,
73,
21251,
8,
351,
256,
3322,
48962,
357,
76,
945,
8,
852,
1667,
353,
46506,
366,
25381,
314,
7211,
2676,
357,
41,
21251,
16725,
16034,
3084,
62,
22413,
3134,
33411,
366,
26133,
8706,... |
Who is the skip of the nation with Laurens van der Windt as the alternate? | SELECT skip FROM table_name_74 WHERE alternate = "laurens van der windt" | [
8241,
318,
262,
14267,
286,
262,
3277,
351,
13826,
5907,
5719,
4587,
3086,
83,
355,
262,
13527,
30,
46506,
14267,
16034,
3084,
62,
3672,
62,
4524,
33411,
13527,
796,
366,
5031,
495,
5907,
5719,
4587,
2344,
83,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14267,
286,
262,
3277,
351,
13826,
5907,
5719,
4587,
3086,
83,
355,
262,
13527,
30,
46506,
14267,
16034,
3084,
62,
3672,
62,
4524,
33411,
13527,
796,
366,
5031,
495,
5907,
5719,
4587,
2344,
83,
1
] |
Bar chart x axis nationality y axis the total number, could you list in ascending by the y axis? | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality ORDER BY COUNT(*) | [
10374,
8262,
2124,
16488,
29835,
331,
16488,
262,
2472,
1271,
11,
714,
345,
1351,
287,
41988,
416,
262,
331,
16488,
30,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414,
38678,
11050,
327,
28270,
7,
28104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
29835,
331,
16488,
262,
2472,
1271,
11,
714,
345,
1351,
287,
41988,
416,
262,
331,
16488,
30,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414,
38678,
11050,
327,
28270,
7,
28104... |
Find the number of complaints with Product Failure type for each complaint status. | SELECT complaint_status_code, COUNT(*) FROM complaints WHERE complaint_type_code = "Product Failure" GROUP BY complaint_status_code | [
16742,
262,
1271,
286,
9687,
351,
8721,
25743,
2099,
329,
1123,
8224,
3722,
13,
46506,
8224,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
9687,
33411,
8224,
62,
4906,
62,
8189,
796,
366,
15667,
25743,
1,
44441,
11050,
8224,
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
] | [
16742,
262,
1271,
286,
9687,
351,
8721,
25743,
2099,
329,
1123,
8224,
3722,
13,
46506,
8224,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
9687,
33411,
8224,
62,
4906,
62,
8189,
796,
366,
15667,
25743,
1,
44441,
11050,
8224,
6... |
what is the listing for 2012 when 2004 is more than 0, 2008 is more than 1 1994 is 8 and 2005 is less than 11? | SELECT MIN(2012) FROM table_name_8 WHERE 2004 > 0 AND 2008 > 1 AND 1994 = 8 AND 2005 < 11 | [
10919,
318,
262,
13487,
329,
2321,
618,
5472,
318,
517,
621,
657,
11,
3648,
318,
517,
621,
352,
9162,
318,
807,
290,
5075,
318,
1342,
621,
1367,
30,
46506,
20625,
7,
6999,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
5472,
1875,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
13487,
329,
2321,
618,
5472,
318,
517,
621,
657,
11,
3648,
318,
517,
621,
352,
9162,
318,
807,
290,
5075,
318,
1342,
621,
1367,
30,
46506,
20625,
7,
6999,
8,
16034,
3084,
62,
3672,
62,
23,
33411,
5472,
1875,
657,
... |
give me the number of patients whose drug code is kclbase2? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "KCLBASE2" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
479,
565,
8692,
17,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2438,
318,
479,
565,
8692,
17,
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,
... |
When the number is 2 what is the lowest amount of al-wedhat wins? | SELECT MIN(al_wehdat_wins) FROM table_2985714_2 WHERE _number = 2 | [
2215,
262,
1271,
318,
362,
644,
318,
262,
9016,
2033,
286,
435,
12,
19103,
5183,
7864,
30,
46506,
20625,
7,
282,
62,
732,
71,
19608,
62,
86,
1040,
8,
16034,
3084,
62,
27728,
3553,
1415,
62,
17,
33411,
4808,
17618,
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
] | [
2215,
262,
1271,
318,
362,
644,
318,
262,
9016,
2033,
286,
435,
12,
19103,
5183,
7864,
30,
46506,
20625,
7,
282,
62,
732,
71,
19608,
62,
86,
1040,
8,
16034,
3084,
62,
27728,
3553,
1415,
62,
17,
33411,
4808,
17618,
796,
362
] |
What's the latest year the miss internet www pageant had a result of second runner-up? | SELECT MAX(year) FROM table_name_80 WHERE pageant = "miss internet www" AND result = "second runner-up" | [
2061,
338,
262,
3452,
614,
262,
2051,
5230,
7324,
47894,
550,
257,
1255,
286,
1218,
17490,
12,
929,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
47894,
796,
366,
3927,
5230,
7324,
1,
5357,
1255,
796,
366,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
3452,
614,
262,
2051,
5230,
7324,
47894,
550,
257,
1255,
286,
1218,
17490,
12,
929,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
47894,
796,
366,
3927,
5230,
7324,
1,
5357,
1255,
796,
366,
12... |
What region has giuseppe sivori as a home venue? | SELECT region FROM table_name_52 WHERE home_venue = "giuseppe sivori" | [
2061,
3814,
468,
308,
72,
1904,
27768,
264,
452,
10145,
355,
257,
1363,
14359,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
4309,
33411,
1363,
62,
4080,
796,
366,
12397,
1904,
27768,
264,
452,
10145,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3814,
468,
308,
72,
1904,
27768,
264,
452,
10145,
355,
257,
1363,
14359,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
4309,
33411,
1363,
62,
4080,
796,
366,
12397,
1904,
27768,
264,
452,
10145,
1
] |
What was the attendance when the Hawks played? | SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks" | [
2061,
373,
262,
14858,
618,
262,
23445,
2826,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
1363,
796,
366,
27221,
1
] | [
1,
1,
1,
1,
1,
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,
14858,
618,
262,
23445,
2826,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
1363,
796,
366,
27221,
1
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and code , and group by attribute headquarter, and rank from low to high by the Code. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Code | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
4279,
422,
1877,
284,
1029,
416,
262,
6127,
13,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
4279,
422,
1877,
284,
1029,
416,
262,
6127,
13,
46506,
... |
what is the monthly minimum amount of output (ml)-chest tube #1 mediastinal right lower;anterior that patient 031-22988 had until 11/2105? | SELECT MIN(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 = '031-22988')) AND intakeoutput.celllabel = 'outpu... | [
10919,
318,
262,
9651,
5288,
2033,
286,
5072,
357,
4029,
13219,
46713,
12403,
1303,
16,
16957,
459,
1292,
826,
2793,
26,
272,
14172,
326,
5827,
657,
3132,
12,
23539,
3459,
550,
1566,
1367,
14,
17,
13348,
30,
46506,
20625,
7,
600,
539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9651,
5288,
2033,
286,
5072,
357,
4029,
13219,
46713,
12403,
1303,
16,
16957,
459,
1292,
826,
2793,
26,
272,
14172,
326,
5827,
657,
3132,
12,
23539,
3459,
550,
1566,
1367,
14,
17,
13348,
30,
46506,
20625,
7,
600,
539,... |
who is previous in the table to austin kearns ? | SELECT "player" FROM table_203_618 WHERE id = (SELECT id FROM table_203_618 WHERE "player" = 'austin kearns') - 1 | [
8727,
318,
2180,
287,
262,
3084,
284,
38132,
259,
885,
1501,
82,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
7829,
1,
796,
705,
64,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
2180,
287,
262,
3084,
284,
38132,
259,
885,
1501,
82,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
47448,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
47448,
33411,
366,
7829,
1,
796,
705,
64,
... |
Name the race 1 when race 3 is 8 | SELECT race_1 FROM table_15530244_5 WHERE race_3 = "8" | [
5376,
262,
3234,
352,
618,
3234,
513,
318,
807,
46506,
3234,
62,
16,
16034,
3084,
62,
18742,
1270,
25707,
62,
20,
33411,
3234,
62,
18,
796,
366,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3234,
352,
618,
3234,
513,
318,
807,
46506,
3234,
62,
16,
16034,
3084,
62,
18742,
1270,
25707,
62,
20,
33411,
3234,
62,
18,
796,
366,
23,
1
] |
Which conventional plan has a POS plan of 21%? | SELECT "Conventional plans" FROM table_7113 WHERE "POS plans" = '21%' | [
13828,
10224,
1410,
468,
257,
28069,
1410,
286,
2310,
4,
30,
46506,
366,
3103,
20405,
3352,
1,
16034,
3084,
62,
22,
16616,
33411,
366,
37997,
3352,
1,
796,
705,
2481,
4,
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
] | [
13828,
10224,
1410,
468,
257,
28069,
1410,
286,
2310,
4,
30,
46506,
366,
3103,
20405,
3352,
1,
16034,
3084,
62,
22,
16616,
33411,
366,
37997,
3352,
1,
796,
705,
2481,
4,
6
] |
What was the score of the game 57 after February 23? | SELECT "Score" FROM table_76575 WHERE "February" > '23' AND "Game" = '57' | [
2061,
373,
262,
4776,
286,
262,
983,
7632,
706,
3945,
2242,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29143,
2425,
33411,
366,
21816,
1,
1875,
705,
1954,
6,
5357,
366,
8777,
1,
796,
705,
3553,
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,
4776,
286,
262,
983,
7632,
706,
3945,
2242,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29143,
2425,
33411,
366,
21816,
1,
1875,
705,
1954,
6,
5357,
366,
8777,
1,
796,
705,
3553,
6
] |
What year was Ontario's first LLCR? | SELECT "First LLCR" FROM table_4028 WHERE "Province" = 'Ontario' | [
2061,
614,
373,
10553,
338,
717,
11419,
49,
30,
46506,
366,
5962,
11419,
49,
1,
16034,
3084,
62,
1821,
2078,
33411,
366,
15946,
924,
1,
796,
705,
45984,
4982,
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,
614,
373,
10553,
338,
717,
11419,
49,
30,
46506,
366,
5962,
11419,
49,
1,
16034,
3084,
62,
1821,
2078,
33411,
366,
15946,
924,
1,
796,
705,
45984,
4982,
6
] |
What college did Richard Ticzon attend? | SELECT college FROM table_name_82 WHERE player = "richard ticzon" | [
2061,
4152,
750,
6219,
309,
291,
26361,
5262,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
6469,
33411,
2137,
796,
366,
7527,
446,
256,
291,
26361,
1
] | [
1,
1,
1,
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,
4152,
750,
6219,
309,
291,
26361,
5262,
30,
46506,
4152,
16034,
3084,
62,
3672,
62,
6469,
33411,
2137,
796,
366,
7527,
446,
256,
291,
26361,
1
] |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the sum of salary , and group by attribute job_id in a bar chart. | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
13,
46506,
449... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
287,
257,
2318,
8262,
13,
46506,
449... |
Name the number of administrative unit for number 4 | SELECT "Name of administrative unit" FROM table_19361 WHERE "Number" = '4' | [
5376,
262,
1271,
286,
11553,
4326,
329,
1271,
604,
46506,
366,
5376,
286,
11553,
4326,
1,
16034,
3084,
62,
1129,
35195,
33411,
366,
15057,
1,
796,
705,
19,
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
] | [
5376,
262,
1271,
286,
11553,
4326,
329,
1271,
604,
46506,
366,
5376,
286,
11553,
4326,
1,
16034,
3084,
62,
1129,
35195,
33411,
366,
15057,
1,
796,
705,
19,
6
] |
how any were gained as the chan | SELECT COUNT("Year acquired") FROM table_72493 WHERE "Station" = 'CHAN' | [
4919,
597,
547,
8618,
355,
262,
442,
272,
46506,
327,
28270,
7203,
17688,
9477,
4943,
16034,
3084,
62,
22,
1731,
6052,
33411,
366,
12367,
1,
796,
705,
3398,
1565,
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
] | [
4919,
597,
547,
8618,
355,
262,
442,
272,
46506,
327,
28270,
7203,
17688,
9477,
4943,
16034,
3084,
62,
22,
1731,
6052,
33411,
366,
12367,
1,
796,
705,
3398,
1565,
6
] |
show me CO flights leaving CHICAGO on saturday morning | SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day, days, flight WHERE ((city.city_code = airport_service.city_code AND city.city_name = 'CHICAGO' AND date_day.day_number = 26 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.da... | [
12860,
502,
7375,
13956,
4305,
5870,
2149,
4760,
46,
319,
264,
3658,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
14808,
19205,
13,
19205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7375,
13956,
4305,
5870,
2149,
4760,
46,
319,
264,
3658,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
14808,
19205,
13,
19205... |
how many patients are in hospital ward 608 since 2105? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 608 AND STRFTIME('%y', patient.unitadmittime) >= '2105' | [
4919,
867,
3871,
389,
287,
4436,
15305,
39084,
1201,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904,
312,
796,
39084,
5357,
19269,
9792,
12789,
10786,
4,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
287,
4436,
15305,
39084,
1201,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
904,
312,
796,
39084,
5357,
19269,
9792,
12789,
10786,
4,... |
What is Score, when Country is 'United States', and when To Par is '+4'? | SELECT "Score" FROM table_77407 WHERE "Country" = 'united states' AND "To par" = '+4' | [
2061,
318,
15178,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
1675,
2547,
318,
705,
10,
19,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
3324,
30120,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
2514,
1582,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
1675,
2547,
318,
705,
10,
19,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
3324,
30120,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
2514,
1582,
... |
what is admission type and death status of subject id 18372? | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "18372" | [
10919,
318,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
1248,
36720,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1507,
36720,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
1248,
36720,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1507,
36720,
1
] |
What upper-level electives do n't meet on Monday or Friday and are offered next semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'N' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course... | [
2061,
6727,
12,
5715,
1742,
1083,
466,
299,
470,
1826,
319,
3321,
393,
3217,
290,
389,
4438,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
6727,
12,
5715,
1742,
1083,
466,
299,
470,
1826,
319,
3321,
393,
3217,
290,
389,
4438,
1306,
24878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
... |
Which Overall has a Round larger than 7, a Pick larger than 13, and a Name of tony hall? | SELECT AVG("Overall") FROM table_8911 WHERE "Round" > '7' AND "Pick" > '13' AND "Name" = 'tony hall' | [
13828,
14674,
468,
257,
10485,
4025,
621,
767,
11,
257,
12346,
4025,
621,
1511,
11,
290,
257,
6530,
286,
256,
1647,
6899,
30,
46506,
35224,
7203,
16350,
4943,
16034,
3084,
62,
4531,
1157,
33411,
366,
22685,
1,
1875,
705,
22,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14674,
468,
257,
10485,
4025,
621,
767,
11,
257,
12346,
4025,
621,
1511,
11,
290,
257,
6530,
286,
256,
1647,
6899,
30,
46506,
35224,
7203,
16350,
4943,
16034,
3084,
62,
4531,
1157,
33411,
366,
22685,
1,
1875,
705,
22,
6,
5357,
... |
How long has FRENCH 241 been offered for ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'FRENCH' AND course.number = 241 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | [
2437,
890,
468,
8782,
1677,
3398,
35150,
587,
4438,
329,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
890,
468,
8782,
1677,
3398,
35150,
587,
4438,
329,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,... |
What is the format of code pro-cd-4662? | SELECT format FROM table_name_98 WHERE code = "pro-cd-4662" | [
2061,
318,
262,
5794,
286,
2438,
386,
12,
10210,
12,
19,
39380,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
4089,
33411,
2438,
796,
366,
1676,
12,
10210,
12,
19,
39380,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5794,
286,
2438,
386,
12,
10210,
12,
19,
39380,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
4089,
33411,
2438,
796,
366,
1676,
12,
10210,
12,
19,
39380,
1
] |
Who is the runner(s)-up with a winning score of 5 (72-71-68=211)? | SELECT runner_s__up FROM table_name_48 WHERE winning_score = −5(72 - 71 - 68 = 211) | [
8241,
318,
262,
17490,
7,
82,
13219,
929,
351,
257,
5442,
4776,
286,
642,
357,
4761,
12,
4869,
12,
3104,
28,
21895,
19427,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2780,
33411,
5442,
62,
26675,
796,
9746,
20,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
17490,
7,
82,
13219,
929,
351,
257,
5442,
4776,
286,
642,
357,
4761,
12,
4869,
12,
3104,
28,
21895,
19427,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2780,
33411,
5442,
62,
26675,
796,
9746,
20,
7,
... |
List ids for all student who are on scholarship. | SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y' | [
8053,
220,
2340,
329,
477,
3710,
508,
389,
319,
18652,
13,
46506,
520,
84,
2389,
16034,
7092,
10951,
33411,
319,
20601,
7828,
1056,
796,
705,
56,
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
] | [
8053,
220,
2340,
329,
477,
3710,
508,
389,
319,
18652,
13,
46506,
520,
84,
2389,
16034,
7092,
10951,
33411,
319,
20601,
7828,
1056,
796,
705,
56,
6
] |
What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12? | SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12 | [
2061,
318,
262,
2811,
2033,
286,
4661,
326,
423,
257,
3061,
3580,
393,
807,
290,
262,
9089,
389,
4833,
621,
1105,
30,
46506,
35224,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
3061,
62,
26069,
1945,
796,
807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
4661,
326,
423,
257,
3061,
3580,
393,
807,
290,
262,
9089,
389,
4833,
621,
1105,
30,
46506,
35224,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
3061,
62,
26069,
1945,
796,
807,
... |
what are all the score in conclusive where title is rome | SELECT score_in_final FROM table_23197088_4 WHERE championship = "Rome" | [
10919,
389,
477,
262,
4776,
287,
39689,
810,
3670,
318,
374,
462,
46506,
4776,
62,
259,
62,
20311,
16034,
3084,
62,
1954,
30986,
3459,
62,
19,
33411,
12184,
796,
366,
49,
462,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
477,
262,
4776,
287,
39689,
810,
3670,
318,
374,
462,
46506,
4776,
62,
259,
62,
20311,
16034,
3084,
62,
1954,
30986,
3459,
62,
19,
33411,
12184,
796,
366,
49,
462,
1
] |
how many teams scored at least 25 points or more ? | SELECT COUNT("team") FROM table_203_30 WHERE "points" >= 25 | [
4919,
867,
3466,
7781,
379,
1551,
1679,
2173,
393,
517,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
22416,
62,
1270,
33411,
366,
13033,
1,
18189,
1679
] | [
1,
1,
1,
1,
1,
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,
3466,
7781,
379,
1551,
1679,
2173,
393,
517,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
22416,
62,
1270,
33411,
366,
13033,
1,
18189,
1679
] |
what was the total prize money earned by contestants ? | SELECT SUM("prize money (usd)") FROM table_203_446 | [
10919,
373,
262,
2472,
11596,
1637,
7366,
416,
37851,
5633,
46506,
35683,
7203,
3448,
2736,
1637,
357,
385,
67,
8,
4943,
16034,
3084,
62,
22416,
62,
27260
] | [
1,
1,
1,
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,
2472,
11596,
1637,
7366,
416,
37851,
5633,
46506,
35683,
7203,
3448,
2736,
1637,
357,
385,
67,
8,
4943,
16034,
3084,
62,
22416,
62,
27260
] |
What is the location is the winning driver is Bill Vukovich II? | SELECT "Location" FROM table_2690 WHERE "Winning Driver" = 'Bill Vukovich II' | [
2061,
318,
262,
4067,
318,
262,
5442,
4639,
318,
3941,
569,
2724,
18198,
2873,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2075,
3829,
33411,
366,
16643,
768,
12434,
1,
796,
705,
17798,
569,
2724,
18198,
2873,
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
] | [
2061,
318,
262,
4067,
318,
262,
5442,
4639,
318,
3941,
569,
2724,
18198,
2873,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2075,
3829,
33411,
366,
16643,
768,
12434,
1,
796,
705,
17798,
569,
2724,
18198,
2873,
6
] |
What did the home team score when South Melbourne was the away team? | SELECT home_team AS score FROM table_name_6 WHERE away_team = "south melbourne" | [
2061,
750,
262,
1363,
1074,
4776,
618,
2520,
14819,
373,
262,
1497,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1497,
62,
15097,
796,
366,
35782,
7758,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
1363,
1074,
4776,
618,
2520,
14819,
373,
262,
1497,
1074,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
21,
33411,
1497,
62,
15097,
796,
366,
35782,
7758,
12544,
1
] |
what is the type of vehicle driven by mark higgins | SELECT car FROM table_28046929_2 WHERE driver = "Mark Higgins" | [
10919,
318,
262,
2099,
286,
4038,
7986,
416,
1317,
1880,
29878,
46506,
1097,
16034,
3084,
62,
21033,
42947,
1959,
62,
17,
33411,
4639,
796,
366,
9704,
39043,
1
] | [
1,
1,
1,
1,
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,
2099,
286,
4038,
7986,
416,
1317,
1880,
29878,
46506,
1097,
16034,
3084,
62,
21033,
42947,
1959,
62,
17,
33411,
4639,
796,
366,
9704,
39043,
1
] |
what were the four most frequently ordered laboratory tests until 2100 for patients aged 50s? | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', lab.labresulttime) <= '2100' GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | [
10919,
547,
262,
1440,
749,
6777,
6149,
14010,
5254,
1566,
38123,
329,
3871,
9722,
2026,
82,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1440,
749,
6777,
6149,
14010,
5254,
1566,
38123,
329,
3871,
9722,
2026,
82,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
... |
Name the to for 19 league apps | SELECT "to" FROM table_73258 WHERE "League Apps" = '19' | [
5376,
262,
284,
329,
678,
4652,
6725,
46506,
366,
1462,
1,
16034,
3084,
62,
4790,
25600,
33411,
366,
24623,
27710,
1,
796,
705,
1129,
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
] | [
5376,
262,
284,
329,
678,
4652,
6725,
46506,
366,
1462,
1,
16034,
3084,
62,
4790,
25600,
33411,
366,
24623,
27710,
1,
796,
705,
1129,
6
] |
What country is ranked 79? | SELECT "Country" FROM table_35413 WHERE "Rank" = '79' | [
2061,
1499,
318,
10307,
9225,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
32182,
1485,
33411,
366,
27520,
1,
796,
705,
3720,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
318,
10307,
9225,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
32182,
1485,
33411,
366,
27520,
1,
796,
705,
3720,
6
] |
Hours Between Post Creation and Closing. | SELECT diff, COUNT(*) FROM (SELECT CAST((JULIANDAY(CreationDate) - JULIANDAY(Posts.CreationDate)) * 24.0 AS INT) AS diff FROM Posts INNER JOIN PostHistory ON PostHistory.PostId = Posts.Id WHERE Posts.CreationDate > '2014-08-18' AND PostHistory.PostHistoryTypeId = 10) AS results GROUP BY diff | [
39792,
14307,
2947,
21582,
290,
47055,
13,
46506,
814,
11,
327,
28270,
7,
28104,
16034,
357,
46506,
327,
11262,
19510,
41,
6239,
40,
6981,
4792,
7,
12443,
341,
10430,
8,
532,
49349,
40,
6981,
4792,
7,
21496,
13,
12443,
341,
10430,
400... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
39792,
14307,
2947,
21582,
290,
47055,
13,
46506,
814,
11,
327,
28270,
7,
28104,
16034,
357,
46506,
327,
11262,
19510,
41,
6239,
40,
6981,
4792,
7,
12443,
341,
10430,
8,
532,
49349,
40,
6981,
4792,
7,
21496,
13,
12443,
341,
10430,
400... |
What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against? | SELECT SUM(played) FROM table_name_12 WHERE team = "vasco da gama" AND against < 12 | [
2061,
318,
262,
2160,
286,
1830,
33101,
416,
262,
4816,
23663,
1073,
9637,
402,
1689,
11,
351,
7380,
621,
1105,
12914,
30,
46506,
35683,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
1074,
796,
366,
11017,
1073,
12379,
308,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
33101,
416,
262,
4816,
23663,
1073,
9637,
402,
1689,
11,
351,
7380,
621,
1105,
12914,
30,
46506,
35683,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
1074,
796,
366,
11017,
1073,
12379,
308,
168... |
What is the strongs # for the hebrew word ? | SELECT "Strongs #" FROM table_17663 WHERE "Hebrew word" = 'יִרְמְיָה' | [
2061,
318,
262,
1913,
82,
1303,
329,
262,
339,
11269,
1573,
5633,
46506,
366,
13290,
28079,
1303,
1,
16034,
3084,
62,
1558,
45791,
33411,
366,
1544,
11269,
1573,
1,
796,
705,
25529,
146,
112,
37778,
146,
108,
49168,
146,
108,
25529,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1913,
82,
1303,
329,
262,
339,
11269,
1573,
5633,
46506,
366,
13290,
28079,
1303,
1,
16034,
3084,
62,
1558,
45791,
33411,
366,
1544,
11269,
1573,
1,
796,
705,
25529,
146,
112,
37778,
146,
108,
49168,
146,
108,
25529,
1... |
What is the name of episode number 29 in the series? | SELECT title FROM table_29273182_1 WHERE no_in_series = 29 | [
2061,
318,
262,
1438,
286,
4471,
1271,
2808,
287,
262,
2168,
30,
46506,
3670,
16034,
3084,
62,
1959,
27367,
24294,
62,
16,
33411,
645,
62,
259,
62,
25076,
796,
2808
] | [
1,
1,
1,
1,
1,
1,
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,
1438,
286,
4471,
1271,
2808,
287,
262,
2168,
30,
46506,
3670,
16034,
3084,
62,
1959,
27367,
24294,
62,
16,
33411,
645,
62,
259,
62,
25076,
796,
2808
] |
provide the number of patients whose insurance is government and diagnoses short title is adv eff penicillins? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Government" AND diagnoses.short_title = "Adv eff penicillins" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5096,
318,
1230,
290,
40567,
1790,
3670,
318,
1354,
914,
3112,
291,
359,
1040,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5096,
318,
1230,
290,
40567,
1790,
3670,
318,
1354,
914,
3112,
291,
359,
1040,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... |
What year did she compete in tampere, finland? | SELECT AVG("Year") FROM table_71931 WHERE "Venue" = 'tampere, finland' | [
2061,
614,
750,
673,
9320,
287,
21885,
431,
260,
11,
957,
1044,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
22,
1129,
3132,
33411,
366,
37522,
518,
1,
796,
705,
83,
321,
431,
260,
11,
957,
1044,
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,
614,
750,
673,
9320,
287,
21885,
431,
260,
11,
957,
1044,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
22,
1129,
3132,
33411,
366,
37522,
518,
1,
796,
705,
83,
321,
431,
260,
11,
957,
1044,
6
] |
Which classes are prerequisites for most other classes and available this semester ? | SELECT COUNT(DISTINCT course_prerequisite.course_id), course.department, course.name, course.number FROM course, course_offering, course_prerequisite, semester WHERE course.course_id = course_offering.course_id AND course.course_id = course_prerequisite.pre_course_id AND course.department = 'EECS' AND semester.semester... | [
13828,
6097,
389,
662,
34075,
329,
749,
584,
6097,
290,
1695,
428,
24878,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
3866,
27614,
13,
17319,
62,
312,
828,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6097,
389,
662,
34075,
329,
749,
584,
6097,
290,
1695,
428,
24878,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
3866,
27614,
13,
17319,
62,
312,
828,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
176... |
What were the tries on 14/6/97? | SELECT "Tries" FROM table_78211 WHERE "Date" = '14/6/97' | [
2061,
547,
262,
8404,
319,
1478,
14,
21,
14,
5607,
30,
46506,
366,
51,
1678,
1,
16034,
3084,
62,
3695,
21895,
33411,
366,
10430,
1,
796,
705,
1415,
14,
21,
14,
5607,
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
] | [
2061,
547,
262,
8404,
319,
1478,
14,
21,
14,
5607,
30,
46506,
366,
51,
1678,
1,
16034,
3084,
62,
3695,
21895,
33411,
366,
10430,
1,
796,
705,
1415,
14,
21,
14,
5607,
6
] |
What is the City of license with a 88.7 fm frequency | SELECT city_of_license FROM table_name_51 WHERE frequency = "88.7 fm" | [
2061,
318,
262,
2254,
286,
5964,
351,
257,
9193,
13,
22,
277,
76,
8373,
46506,
1748,
62,
1659,
62,
43085,
16034,
3084,
62,
3672,
62,
4349,
33411,
8373,
796,
366,
3459,
13,
22,
277,
76,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2254,
286,
5964,
351,
257,
9193,
13,
22,
277,
76,
8373,
46506,
1748,
62,
1659,
62,
43085,
16034,
3084,
62,
3672,
62,
4349,
33411,
8373,
796,
366,
3459,
13,
22,
277,
76,
1
] |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... |
What is Player, when Total is greater than 288, and when Country is 'South Africa'? | SELECT player FROM table_name_54 WHERE total > 288 AND country = "south africa" | [
2061,
318,
7853,
11,
618,
7472,
318,
3744,
621,
35419,
11,
290,
618,
12946,
318,
705,
14942,
5478,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
4051,
33411,
2472,
1875,
35419,
5357,
1499,
796,
366,
35782,
6580,
30997,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
11,
618,
7472,
318,
3744,
621,
35419,
11,
290,
618,
12946,
318,
705,
14942,
5478,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
4051,
33411,
2472,
1875,
35419,
5357,
1499,
796,
366,
35782,
6580,
30997,
1
] |
what is the maximum age of patients whose admission location is emergency room admit and primary disease =is newborn? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "NEWBORN" | [
10919,
318,
262,
5415,
2479,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
4165,
4369,
796,
271,
23856,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
498... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5415,
2479,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
4165,
4369,
796,
271,
23856,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
24886,
796,
366,
3620,
498... |
What is the largest number for karianne gulliksen? | SELECT MAX("Karianne Gulliksen") FROM table_30676 | [
2061,
318,
262,
4387,
1271,
329,
479,
3699,
710,
43289,
72,
591,
268,
30,
46506,
25882,
7203,
42,
3699,
710,
402,
724,
72,
591,
268,
4943,
16034,
3084,
62,
1270,
42548
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4387,
1271,
329,
479,
3699,
710,
43289,
72,
591,
268,
30,
46506,
25882,
7203,
42,
3699,
710,
402,
724,
72,
591,
268,
4943,
16034,
3084,
62,
1270,
42548
] |
how many times do patient 002-62783 get a magnesium test until 2103? | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-62783')) AND lab.labname = 'magnesium' AND STRFTIME('%y', lab.labresulttime) <= '2103' | [
4919,
867,
1661,
466,
5827,
3571,
17,
12,
49856,
5999,
651,
257,
33525,
1332,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
466,
5827,
3571,
17,
12,
49856,
5999,
651,
257,
33525,
1332,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
31... |
Top 40 users from banglad. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%bangladesh%' OR LOWER(Location) LIKE '%dhaka%' OR UPPER(Location) LIKE 'BD' ORDER BY Reputation DESC LIMIT 40 | [
9126,
2319,
2985,
422,
20188,
9435,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
2319,
2985,
422,
20188,
9435,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
33411,
406,
... |
What is the college that Jeffrey Simmer plays for? | SELECT college FROM table_15817998_5 WHERE player = "Jeffrey Simmer" | [
2061,
318,
262,
4152,
326,
19627,
3184,
647,
5341,
329,
30,
46506,
4152,
16034,
3084,
62,
21273,
1558,
34808,
62,
20,
33411,
2137,
796,
366,
19139,
4364,
3184,
647,
1
] | [
1,
1,
1,
1,
1,
1,
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,
4152,
326,
19627,
3184,
647,
5341,
329,
30,
46506,
4152,
16034,
3084,
62,
21273,
1558,
34808,
62,
20,
33411,
2137,
796,
366,
19139,
4364,
3184,
647,
1
] |
Where are the Buffalo Sabres from? | SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres" | [
8496,
389,
262,
14905,
45899,
422,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
2075,
3720,
3312,
16,
62,
22,
33411,
299,
18519,
62,
15097,
796,
366,
36474,
7335,
45899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
389,
262,
14905,
45899,
422,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
16034,
3084,
62,
2075,
3720,
3312,
16,
62,
22,
33411,
299,
18519,
62,
15097,
796,
366,
36474,
7335,
45899,
1
] |
How many times was the GFR 2006 equal to 53.2? | SELECT COUNT(whites_as__percentage_of_pop) FROM table_12251936_1 WHERE gfr_2006 = "53.2" | [
2437,
867,
1661,
373,
262,
402,
10913,
4793,
4961,
284,
7192,
13,
17,
30,
46506,
327,
28270,
7,
1929,
2737,
62,
292,
834,
25067,
496,
62,
1659,
62,
12924,
8,
16034,
3084,
62,
1065,
1495,
1129,
2623,
62,
16,
33411,
308,
8310,
62,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
373,
262,
402,
10913,
4793,
4961,
284,
7192,
13,
17,
30,
46506,
327,
28270,
7,
1929,
2737,
62,
292,
834,
25067,
496,
62,
1659,
62,
12924,
8,
16034,
3084,
62,
1065,
1495,
1129,
2623,
62,
16,
33411,
308,
8310,
62,
1... |
Which Frequency has a Multiplier of 6 ? | SELECT frequency FROM table_name_7 WHERE multiplier = "6×" | [
13828,
31902,
468,
257,
15237,
489,
959,
286,
718,
5633,
46506,
8373,
16034,
3084,
62,
3672,
62,
22,
33411,
33090,
796,
366,
21,
12906,
1
] | [
1,
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,
31902,
468,
257,
15237,
489,
959,
286,
718,
5633,
46506,
8373,
16034,
3084,
62,
3672,
62,
22,
33411,
33090,
796,
366,
21,
12906,
1
] |
How many locations are listed for the winner Temple? | SELECT COUNT(tournament_venue__city_) FROM table_22645714_5 WHERE tournament_winner = "Temple" | [
2437,
867,
7064,
389,
5610,
329,
262,
8464,
10857,
30,
46506,
327,
28270,
7,
83,
5138,
62,
4080,
834,
19205,
62,
8,
16034,
3084,
62,
24909,
33032,
1415,
62,
20,
33411,
7756,
62,
39791,
796,
366,
12966,
1154,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7064,
389,
5610,
329,
262,
8464,
10857,
30,
46506,
327,
28270,
7,
83,
5138,
62,
4080,
834,
19205,
62,
8,
16034,
3084,
62,
24909,
33032,
1415,
62,
20,
33411,
7756,
62,
39791,
796,
366,
12966,
1154,
1
] |
what is the number of patients whose ethnicity is unknown/not specified and diagnoses long title is coronary atherosclerosis of native coronary artery? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "UNKNOWN/NOT SPECIFIED" AND diagnoses.long_title = "Coronary atherosclerosis of native coronary artery" | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
6439,
14,
1662,
7368,
290,
40567,
890,
3670,
318,
37151,
13366,
4951,
31399,
286,
6868,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
6439,
14,
1662,
7368,
290,
40567,
890,
3670,
318,
37151,
13366,
4951,
31399,
286,
6868,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16... |
Who directed 'I am Dick Pentameter!'? | SELECT "Directed by" FROM table_31139 WHERE "Title" = 'I Am Dick Pentameter!' | [
8241,
7924,
705,
40,
716,
11740,
9696,
321,
2357,
13679,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
36244,
2670,
33411,
366,
19160,
1,
796,
705,
40,
1703,
11740,
9696,
321,
2357,
13679
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
705,
40,
716,
11740,
9696,
321,
2357,
13679,
30,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
36244,
2670,
33411,
366,
19160,
1,
796,
705,
40,
1703,
11740,
9696,
321,
2357,
13679
] |
What is the 1914 NER class with a d17/2 LNER class? | SELECT "1914 NER class" FROM table_46910 WHERE "LNER Class" = 'd17/2' | [
2061,
318,
262,
26833,
399,
1137,
1398,
351,
257,
288,
1558,
14,
17,
406,
21479,
1398,
30,
46506,
366,
1129,
1415,
399,
1137,
1398,
1,
16034,
3084,
62,
42947,
940,
33411,
366,
43,
21479,
5016,
1,
796,
705,
67,
1558,
14,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
26833,
399,
1137,
1398,
351,
257,
288,
1558,
14,
17,
406,
21479,
1398,
30,
46506,
366,
1129,
1415,
399,
1137,
1398,
1,
16034,
3084,
62,
42947,
940,
33411,
366,
43,
21479,
5016,
1,
796,
705,
67,
1558,
14,
17,
6
] |
What are the ages of the gymnasts, ordered descending by their total points? | SELECT T2.age FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id ORDER BY T1.total_points DESC | [
2061,
389,
262,
9337,
286,
262,
38581,
5773,
11,
6149,
31491,
416,
511,
2472,
2173,
30,
46506,
309,
17,
13,
496,
16034,
38581,
459,
7054,
309,
16,
32357,
1268,
661,
7054,
309,
17,
6177,
309,
16,
13,
1360,
10295,
459,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
9337,
286,
262,
38581,
5773,
11,
6149,
31491,
416,
511,
2472,
2173,
30,
46506,
309,
17,
13,
496,
16034,
38581,
459,
7054,
309,
16,
32357,
1268,
661,
7054,
309,
17,
6177,
309,
16,
13,
1360,
10295,
459,
62,
312,
796,
... |
Which rounds had 32 clubs involved? | SELECT "Round" FROM table_26073 WHERE "Clubs involved" = '32' | [
13828,
9196,
550,
3933,
9784,
2950,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
21719,
4790,
33411,
366,
2601,
23161,
2950,
1,
796,
705,
2624,
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
] | [
13828,
9196,
550,
3933,
9784,
2950,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
21719,
4790,
33411,
366,
2601,
23161,
2950,
1,
796,
705,
2624,
6
] |
What is the time/retired for the car with over 9 laps and a grid of 6? | SELECT time_retired FROM table_name_42 WHERE laps > 9 AND grid = 6 | [
2061,
318,
262,
640,
14,
1186,
1202,
329,
262,
1097,
351,
625,
860,
24590,
290,
257,
10706,
286,
718,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
3682,
33411,
24590,
1875,
860,
5357,
10706,
796,
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
] | [
2061,
318,
262,
640,
14,
1186,
1202,
329,
262,
1097,
351,
625,
860,
24590,
290,
257,
10706,
286,
718,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
3672,
62,
3682,
33411,
24590,
1875,
860,
5357,
10706,
796,
718
] |
What's the note about the school established in the year of 1973? | SELECT "Notes" FROM table_19157 WHERE "Established" = '1973' | [
2061,
338,
262,
3465,
546,
262,
1524,
4920,
287,
262,
614,
286,
15674,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
1129,
18458,
33411,
366,
22362,
22555,
1,
796,
705,
40220,
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,
338,
262,
3465,
546,
262,
1524,
4920,
287,
262,
614,
286,
15674,
30,
46506,
366,
16130,
1,
16034,
3084,
62,
1129,
18458,
33411,
366,
22362,
22555,
1,
796,
705,
40220,
6
] |
Which Score has a Record of 36 61? | SELECT "Score" FROM table_37943 WHERE "Record" = '36–61' | [
13828,
15178,
468,
257,
13266,
286,
4570,
8454,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29088,
3559,
33411,
366,
23739,
1,
796,
705,
2623,
1906,
5333,
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
] | [
13828,
15178,
468,
257,
13266,
286,
4570,
8454,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
29088,
3559,
33411,
366,
23739,
1,
796,
705,
2623,
1906,
5333,
6
] |
who did highest rebounds in the game with score w 105 88 (ot) | SELECT "High rebounds" FROM table_21418 WHERE "Score" = 'W 105–88 (OT)' | [
8727,
750,
4511,
18841,
287,
262,
983,
351,
4776,
266,
13343,
9193,
357,
313,
8,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
22291,
1507,
33411,
366,
26595,
1,
796,
705,
54,
13343,
1906,
3459,
357,
2394,
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
] | [
8727,
750,
4511,
18841,
287,
262,
983,
351,
4776,
266,
13343,
9193,
357,
313,
8,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
22291,
1507,
33411,
366,
26595,
1,
796,
705,
54,
13343,
1906,
3459,
357,
2394,
33047
] |
What was the challenge for episode 28? | SELECT challenge FROM table_24798489_2 WHERE episode_number = 28 | [
2061,
373,
262,
4427,
329,
4471,
2579,
30,
46506,
4427,
16034,
3084,
62,
1731,
43240,
35890,
62,
17,
33411,
4471,
62,
17618,
796,
2579
] | [
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,
4427,
329,
4471,
2579,
30,
46506,
4427,
16034,
3084,
62,
1731,
43240,
35890,
62,
17,
33411,
4471,
62,
17618,
796,
2579
] |
Which Name has a Pennant number of f82? | SELECT name FROM table_name_56 WHERE pennant_number = "f82" | [
13828,
6530,
468,
257,
6595,
415,
1271,
286,
277,
6469,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3980,
33411,
22429,
415,
62,
17618,
796,
366,
69,
6469,
1
] | [
1,
1,
1,
1,
1,
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,
6530,
468,
257,
6595,
415,
1271,
286,
277,
6469,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3980,
33411,
22429,
415,
62,
17618,
796,
366,
69,
6469,
1
] |
What time was the 50m freestyle event? | SELECT time FROM table_name_26 WHERE event = "50m freestyle" | [
2061,
640,
373,
262,
2026,
76,
2030,
10992,
1785,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2075,
33411,
1785,
796,
366,
1120,
76,
2030,
10992,
1
] | [
1,
1,
1,
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,
640,
373,
262,
2026,
76,
2030,
10992,
1785,
30,
46506,
640,
16034,
3084,
62,
3672,
62,
2075,
33411,
1785,
796,
366,
1120,
76,
2030,
10992,
1
] |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, list by the bar in descending please. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1351,
416,
262,
231... |
when was patient 1272 first tested at a laboratory in 11/2104? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1272) AND STRFTIME('%y-%m', labevents.charttime) = '2104-11' ORDER BY labevents.charttime LIMIT 1 | [
12518,
373,
5827,
1105,
4761,
717,
6789,
379,
257,
14010,
287,
1367,
14,
17,
13464,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
5827,
1105,
4761,
717,
6789,
379,
257,
14010,
287,
1367,
14,
17,
13464,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... |
how many patients on elective admission were treated with cosyntropin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Cosyntropin" | [
4919,
867,
3871,
319,
1742,
425,
13938,
547,
5716,
351,
8615,
33567,
1773,
259,
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,
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... | [
4919,
867,
3871,
319,
1742,
425,
13938,
547,
5716,
351,
8615,
33567,
1773,
259,
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,
6... |
What is the number of wins when scored was less than 26, and conceded was larger than 23? | SELECT SUM("Wins") FROM table_63817 WHERE "Scored" < '26' AND "Conceded" > '23' | [
2061,
318,
262,
1271,
286,
7864,
618,
7781,
373,
1342,
621,
2608,
11,
290,
24684,
373,
4025,
621,
2242,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
21,
2548,
1558,
33411,
366,
3351,
1850,
1,
1279,
705,
2075,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
7864,
618,
7781,
373,
1342,
621,
2608,
11,
290,
24684,
373,
4025,
621,
2242,
30,
46506,
35683,
7203,
54,
1040,
4943,
16034,
3084,
62,
21,
2548,
1558,
33411,
366,
3351,
1850,
1,
1279,
705,
2075,
6,
5357,
36... |
what team came in second to last place ? | SELECT "team" FROM table_204_397 WHERE "rank" = (SELECT MAX("rank") FROM table_204_397) - 1 | [
10919,
1074,
1625,
287,
1218,
284,
938,
1295,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
33372,
33411,
366,
43027,
1,
796,
357,
46506,
25882,
7203,
43027,
4943,
16034,
3084,
62,
18638,
62,
33372,
8,
532,
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
] | [
10919,
1074,
1625,
287,
1218,
284,
938,
1295,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
33372,
33411,
366,
43027,
1,
796,
357,
46506,
25882,
7203,
43027,
4943,
16034,
3084,
62,
18638,
62,
33372,
8,
532,
352
] |
How many laps have a grid under 14 and a time/retired of out of fuel? | SELECT SUM("Laps") FROM table_54775 WHERE "Grid" < '14' AND "Time/Retired" = 'out of fuel' | [
2437,
867,
24590,
423,
257,
10706,
739,
1478,
290,
257,
640,
14,
1186,
1202,
286,
503,
286,
5252,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
2857,
2425,
33411,
366,
41339,
1,
1279,
705,
1415,
6,
5357,
366,
7575,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
24590,
423,
257,
10706,
739,
1478,
290,
257,
640,
14,
1186,
1202,
286,
503,
286,
5252,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
20,
2857,
2425,
33411,
366,
41339,
1,
1279,
705,
1415,
6,
5357,
366,
7575,
14... |
Show how many customer addresses in each address type code with a bar chart. | SELECT address_type_code, COUNT(address_type_code) FROM Customer_Addresses AS T1 JOIN Premises AS T2 ON T1.premise_id = T2.premise_id GROUP BY address_type_code | [
15307,
703,
867,
6491,
9405,
287,
1123,
2209,
2099,
2438,
351,
257,
2318,
8262,
13,
46506,
2209,
62,
4906,
62,
8189,
11,
327,
28270,
7,
21975,
62,
4906,
62,
8189,
8,
16034,
22092,
62,
4550,
16746,
7054,
309,
16,
32357,
1268,
6929,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
703,
867,
6491,
9405,
287,
1123,
2209,
2099,
2438,
351,
257,
2318,
8262,
13,
46506,
2209,
62,
4906,
62,
8189,
11,
327,
28270,
7,
21975,
62,
4906,
62,
8189,
8,
16034,
22092,
62,
4550,
16746,
7054,
309,
16,
32357,
1268,
6929,
2... |
Show the number of different competition types with a bar graph. | SELECT Competition_type, COUNT(Competition_type) FROM competition GROUP BY Competition_type | [
15307,
262,
1271,
286,
1180,
5449,
3858,
351,
257,
2318,
4823,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
7293,
15620,
62,
4906,
8,
16034,
5449,
44441,
11050,
27348,
62,
4906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1180,
5449,
3858,
351,
257,
2318,
4823,
13,
46506,
27348,
62,
4906,
11,
327,
28270,
7,
7293,
15620,
62,
4906,
8,
16034,
5449,
44441,
11050,
27348,
62,
4906
] |
In which city was the berlin marathon? | SELECT "Location" FROM table_28360 WHERE "Road race" = 'Berlin Marathon' | [
818,
543,
1748,
373,
262,
18157,
2815,
22336,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2078,
15277,
33411,
366,
29197,
3234,
1,
796,
705,
24814,
2815,
24828,
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
] | [
818,
543,
1748,
373,
262,
18157,
2815,
22336,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2078,
15277,
33411,
366,
29197,
3234,
1,
796,
705,
24814,
2815,
24828,
6
] |
What school is located in Chestnut Hill, Massachusetts? | SELECT "Institution" FROM table_23217 WHERE "Location" = 'Chestnut Hill, Massachusetts' | [
2061,
1524,
318,
5140,
287,
25544,
14930,
3327,
11,
10140,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
24339,
1558,
33411,
366,
14749,
1,
796,
705,
45170,
14930,
3327,
11,
10140,
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
] | [
2061,
1524,
318,
5140,
287,
25544,
14930,
3327,
11,
10140,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
24339,
1558,
33411,
366,
14749,
1,
796,
705,
45170,
14930,
3327,
11,
10140,
6
] |
When was Mushfiqur Rahim's test career? | SELECT "Test Career" FROM table_67305 WHERE "Player" = 'mushfiqur rahim' | [
2215,
373,
24257,
12463,
80,
333,
18655,
320,
338,
1332,
3451,
30,
46506,
366,
14402,
32619,
1,
16034,
3084,
62,
3134,
22515,
33411,
366,
14140,
1,
796,
705,
76,
1530,
12463,
80,
333,
374,
993,
320,
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
] | [
2215,
373,
24257,
12463,
80,
333,
18655,
320,
338,
1332,
3451,
30,
46506,
366,
14402,
32619,
1,
16034,
3084,
62,
3134,
22515,
33411,
366,
14140,
1,
796,
705,
76,
1530,
12463,
80,
333,
374,
993,
320,
6
] |
What are the averge score of students in NC and in NY? | SELECT average_scale_score FROM ndecoreexcel_math_grade8 WHERE state = "North Carolina" UNION SELECT average_scale_score FROM ndecoreexcel_math_grade8 WHERE state = "New York" | [
2061,
389,
262,
9076,
469,
4776,
286,
2444,
287,
8823,
290,
287,
6645,
30,
46506,
2811,
62,
9888,
62,
26675,
16034,
299,
12501,
382,
1069,
5276,
62,
11018,
62,
9526,
23,
33411,
1181,
796,
366,
14157,
5913,
1,
4725,
2849,
33493,
2811,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
9076,
469,
4776,
286,
2444,
287,
8823,
290,
287,
6645,
30,
46506,
2811,
62,
9888,
62,
26675,
16034,
299,
12501,
382,
1069,
5276,
62,
11018,
62,
9526,
23,
33411,
1181,
796,
366,
14157,
5913,
1,
4725,
2849,
33493,
2811,
... |
What is the nickname of the institution from Concordia University, Nebraska? | SELECT "Nickname" FROM table_28501 WHERE "Institution" = 'Concordia University, Nebraska' | [
2061,
318,
262,
21814,
286,
262,
9901,
422,
34732,
544,
2059,
11,
18329,
30,
46506,
366,
23609,
3672,
1,
16034,
3084,
62,
26279,
486,
33411,
366,
6310,
2738,
1,
796,
705,
3103,
66,
585,
544,
2059,
11,
18329,
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,
318,
262,
21814,
286,
262,
9901,
422,
34732,
544,
2059,
11,
18329,
30,
46506,
366,
23609,
3672,
1,
16034,
3084,
62,
26279,
486,
33411,
366,
6310,
2738,
1,
796,
705,
3103,
66,
585,
544,
2059,
11,
18329,
6
] |
What player was selected in Round 6? | SELECT "Player" FROM table_54108 WHERE "Round" = '6' | [
2061,
2137,
373,
6163,
287,
10485,
718,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
4051,
15711,
33411,
366,
22685,
1,
796,
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
] | [
2061,
2137,
373,
6163,
287,
10485,
718,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
4051,
15711,
33411,
366,
22685,
1,
796,
705,
21,
6
] |
For score 6 2, 6 3 and outcome is loser mention all the edition. | SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3" | [
1890,
4776,
718,
362,
11,
718,
513,
290,
8055,
318,
30256,
3068,
477,
262,
8313,
13,
46506,
8313,
16034,
3084,
62,
25870,
3324,
37466,
62,
22,
33411,
8055,
796,
366,
43,
13416,
1,
5357,
4776,
796,
366,
21,
1906,
17,
11,
718,
1906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
718,
362,
11,
718,
513,
290,
8055,
318,
30256,
3068,
477,
262,
8313,
13,
46506,
8313,
16034,
3084,
62,
25870,
3324,
37466,
62,
22,
33411,
8055,
796,
366,
43,
13416,
1,
5357,
4776,
796,
366,
21,
1906,
17,
11,
718,
1906,
... |
how many patients were admitted in emergency for hemodialysis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Hemodialysis" | [
4919,
867,
3871,
547,
6848,
287,
6334,
329,
339,
4666,
498,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6848,
287,
6334,
329,
339,
4666,
498,
3097,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
... |
how many teen choice awards has he been nominated for ? | SELECT COUNT(*) FROM table_203_643 WHERE "award" = 'teen choice awards' | [
4919,
867,
6036,
3572,
13304,
468,
339,
587,
19332,
329,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
41813,
33411,
366,
707,
446,
1,
796,
705,
7821,
3572,
13304,
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
] | [
4919,
867,
6036,
3572,
13304,
468,
339,
587,
19332,
329,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
41813,
33411,
366,
707,
446,
1,
796,
705,
7821,
3572,
13304,
6
] |
provide the number of patients whose diagnoses long title is hypoxemia and drug route is iv? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Hypoxemia" AND prescriptions.route = "IV" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
5328,
1140,
22859,
290,
2563,
6339,
318,
21628,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
890,
3670,
318,
5328,
1140,
22859,
290,
2563,
6339,
318,
21628,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... |
Which team has a Losses value larger than 1 and a Wins value smaller than 0? | SELECT SUM("Goal Diff.") FROM table_11816 WHERE "Losses" > '1' AND "Wins" < '0' | [
13828,
1074,
468,
257,
22014,
274,
1988,
4025,
621,
352,
290,
257,
24423,
1988,
4833,
621,
657,
30,
46506,
35683,
7203,
49045,
10631,
19570,
16034,
3084,
62,
16817,
1433,
33411,
366,
43,
793,
274,
1,
1875,
705,
16,
6,
5357,
366,
54,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
257,
22014,
274,
1988,
4025,
621,
352,
290,
257,
24423,
1988,
4833,
621,
657,
30,
46506,
35683,
7203,
49045,
10631,
19570,
16034,
3084,
62,
16817,
1433,
33411,
366,
43,
793,
274,
1,
1875,
705,
16,
6,
5357,
366,
54,
... |
count the number of patients whose primary disease is s/p fall and year of death is less than or equal to 2115? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P FALL" AND demographic.dod_year <= "2115.0" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
14,
79,
2121,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
15363,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
4369,
318,
264,
14,
79,
2121,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
15363,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411... |
Questions with highest number of bounties. | SELECT COUNT(v.BountyAmount), p.Id AS "post_link", p.ViewCount FROM Posts AS p JOIN Votes AS v ON v.PostId = p.Id WHERE v.VoteTypeId = 8 GROUP BY p.Id, p.ViewCount ORDER BY COUNT(v.BountyAmount) DESC LIMIT 500 | [
35741,
351,
4511,
1271,
286,
49937,
444,
13,
46506,
327,
28270,
7,
85,
13,
33,
17705,
31264,
828,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
7680,
12332,
16034,
12043,
7054,
279,
32357,
1268,
39584,
7054,
410,
6177,
410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
351,
4511,
1271,
286,
49937,
444,
13,
46506,
327,
28270,
7,
85,
13,
33,
17705,
31264,
828,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
7680,
12332,
16034,
12043,
7054,
279,
32357,
1268,
39584,
7054,
410,
6177,
410,... |
What is the Against when the drawn is 5? | SELECT against FROM table_name_21 WHERE drawn = 5 | [
2061,
318,
262,
12914,
618,
262,
7428,
318,
642,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
2481,
33411,
7428,
796,
642
] | [
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,
12914,
618,
262,
7428,
318,
642,
30,
46506,
1028,
16034,
3084,
62,
3672,
62,
2481,
33411,
7428,
796,
642
] |
the total number of times since 2102 patient 83709 has had a lab test for hemoglobin. | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hemoglobin') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83709) AND STRFTIME('%y', labevents.charttime) >= '2102' | [
1169,
2472,
1271,
286,
1661,
1201,
362,
15377,
5827,
9698,
31495,
468,
550,
257,
2248,
1332,
329,
16869,
49835,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1169,
2472,
1271,
286,
1661,
1201,
362,
15377,
5827,
9698,
31495,
468,
550,
257,
2248,
1332,
329,
16869,
49835,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23912,
23... |
what amount of venlafaxine has been prescribed to patient 49140 for the first time until 12 months ago? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49140) AND prescriptions.drug = 'venlafaxine' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-12 month') ORDER BY prescriptions.startdate LIMIT ... | [
10919,
2033,
286,
8710,
75,
1878,
897,
500,
468,
587,
14798,
284,
5827,
5125,
15187,
329,
262,
717,
640,
1566,
1105,
1933,
2084,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
8710,
75,
1878,
897,
500,
468,
587,
14798,
284,
5827,
5125,
15187,
329,
262,
717,
640,
1566,
1105,
1933,
2084,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
326... |
Which upper level classes use projects rather than exams for evaluation ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND course.has_projects = 'Y' AND program_course.category LIKE 'ULCS' | [
13828,
6727,
1241,
6097,
779,
4493,
2138,
621,
26420,
329,
12660,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
6727,
1241,
6097,
779,
4493,
2138,
621,
26420,
329,
12660,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
62... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.