instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
has the human temperature c (calc) of patient 6196 been normal until 07/2103? | SELECT COUNT(*) > 0 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 = 6196)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (cal... | [
10134,
262,
1692,
5951,
269,
357,
9948,
66,
8,
286,
5827,
718,
25272,
587,
3487,
1566,
8753,
14,
17,
15197,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
262,
1692,
5951,
269,
357,
9948,
66,
8,
286,
5827,
718,
25272,
587,
3487,
1566,
8753,
14,
17,
15197,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
4... |
What was the lowest Position for the Song, 'If I Can't Find My Love'? | SELECT MIN("Position") FROM table_43271 WHERE "Song" = 'if i can''t find my love' | [
2061,
373,
262,
9016,
23158,
329,
262,
10940,
11,
705,
1532,
314,
1680,
470,
9938,
2011,
5896,
30960,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
3559,
28977,
33411,
366,
44241,
1,
796,
705,
361,
1312,
460,
7061,
83,
1064,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
23158,
329,
262,
10940,
11,
705,
1532,
314,
1680,
470,
9938,
2011,
5896,
30960,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
3559,
28977,
33411,
366,
44241,
1,
796,
705,
361,
1312,
460,
7061,
83,
1064,
616,
... |
When was Stephen J. Solarz first elected? | SELECT MIN(first_elected) FROM table_1341663_33 WHERE incumbent = "Stephen J. Solarz" | [
2215,
373,
7970,
449,
13,
12347,
89,
717,
7018,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1433,
5066,
62,
2091,
33411,
23526,
796,
366,
24920,
449,
13,
12347,
89,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
7970,
449,
13,
12347,
89,
717,
7018,
30,
46506,
20625,
7,
11085,
62,
28604,
8,
16034,
3084,
62,
19880,
1433,
5066,
62,
2091,
33411,
23526,
796,
366,
24920,
449,
13,
12347,
89,
1
] |
Tell me the tournament for opponents of andrei pavel rogier wassen | SELECT "Tournament" FROM table_32049 WHERE "Opponents in the final" = 'andrei pavel rogier wassen' | [
24446,
502,
262,
7756,
329,
7691,
286,
290,
260,
72,
14187,
626,
47524,
959,
373,
6248,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
19504,
2920,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
49078,
72,
14187,
626,
47524,
959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
7756,
329,
7691,
286,
290,
260,
72,
14187,
626,
47524,
959,
373,
6248,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
19504,
2920,
33411,
366,
27524,
3906,
287,
262,
2457,
1,
796,
705,
49078,
72,
14187,
626,
47524,
959,
... |
How many people attended the game on week 3? | SELECT AVG("Attendance") FROM table_8412 WHERE "Week" = '3' | [
2437,
867,
661,
9141,
262,
983,
319,
1285,
513,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
5705,
1065,
33411,
366,
20916,
1,
796,
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
] | [
2437,
867,
661,
9141,
262,
983,
319,
1285,
513,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
5705,
1065,
33411,
366,
20916,
1,
796,
705,
18,
6
] |
Which Rank has a Reaction time larger than 0.20400000000000001, and a Time larger than 45.56? | SELECT MAX("Rank") FROM table_62972 WHERE "React" > '0.20400000000000001' AND "Time" > '45.56' | [
13828,
10916,
468,
257,
39912,
640,
4025,
621,
657,
13,
18638,
8269,
2388,
486,
11,
290,
257,
3862,
4025,
621,
4153,
13,
3980,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
48602,
4761,
33411,
366,
3041,
529,
1,
1875,
705,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10916,
468,
257,
39912,
640,
4025,
621,
657,
13,
18638,
8269,
2388,
486,
11,
290,
257,
3862,
4025,
621,
4153,
13,
3980,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
48602,
4761,
33411,
366,
3041,
529,
1,
1875,
705,
15,... |
What Date is Northern Spur Breeders' Cup Stakes Race? | SELECT "Date" FROM table_10942 WHERE "Race" = 'northern spur breeders'' cup stakes' | [
2061,
7536,
318,
8342,
47788,
45958,
364,
6,
5454,
520,
1124,
12588,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
14454,
3682,
33411,
366,
35157,
1,
796,
705,
77,
4824,
26724,
15939,
364,
7061,
6508,
21147,
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,
7536,
318,
8342,
47788,
45958,
364,
6,
5454,
520,
1124,
12588,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
14454,
3682,
33411,
366,
35157,
1,
796,
705,
77,
4824,
26724,
15939,
364,
7061,
6508,
21147,
6
] |
Count: Answers by top users in year by month. Answers by top users in year broken down by month | SELECT MONTH(p.CreationDate), COUNT(p.Id) FROM Posts AS p WHERE p.PostTypeId = 2 AND YEAR(p.CreationDate) = @Year AND p.OwnerUserId IN (SELECT TOP(1000) AS Id FROM Users ORDER BY Reputation DESC) GROUP BY MONTH(p.CreationDate) | [
12332,
25,
42612,
416,
1353,
2985,
287,
614,
416,
1227,
13,
42612,
416,
1353,
2985,
287,
614,
5445,
866,
416,
1227,
46506,
25000,
4221,
7,
79,
13,
12443,
341,
10430,
828,
327,
28270,
7,
79,
13,
7390,
8,
16034,
12043,
7054,
279,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12332,
25,
42612,
416,
1353,
2985,
287,
614,
416,
1227,
13,
42612,
416,
1353,
2985,
287,
614,
5445,
866,
416,
1227,
46506,
25000,
4221,
7,
79,
13,
12443,
341,
10430,
828,
327,
28270,
7,
79,
13,
7390,
8,
16034,
12043,
7054,
279,
3341... |
in total what was the total amount of tpn d13.0 that patient 30044 had received until 1579 days ago? | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30044)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab... | [
259,
2472,
644,
373,
262,
2472,
2033,
286,
256,
21999,
288,
1485,
13,
15,
326,
5827,
5867,
2598,
550,
2722,
1566,
1315,
3720,
1528,
2084,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
259,
2472,
644,
373,
262,
2472,
2033,
286,
256,
21999,
288,
1485,
13,
15,
326,
5827,
5867,
2598,
550,
2722,
1566,
1315,
3720,
1528,
2084,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
... |
Name the date for visiting team of denver broncos | SELECT date FROM table_name_72 WHERE visiting_team = "denver broncos" | [
5376,
262,
3128,
329,
10013,
1074,
286,
2853,
332,
18443,
6966,
46506,
3128,
16034,
3084,
62,
3672,
62,
4761,
33411,
10013,
62,
15097,
796,
366,
6559,
332,
18443,
6966,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3128,
329,
10013,
1074,
286,
2853,
332,
18443,
6966,
46506,
3128,
16034,
3084,
62,
3672,
62,
4761,
33411,
10013,
62,
15097,
796,
366,
6559,
332,
18443,
6966,
1
] |
What year was the Beaudesert suburb club founded | SELECT founded FROM table_name_95 WHERE suburb = "beaudesert" | [
2061,
614,
373,
262,
1355,
3885,
274,
861,
23200,
3430,
9393,
46506,
9393,
16034,
3084,
62,
3672,
62,
3865,
33411,
23200,
796,
366,
1350,
3885,
274,
861,
1
] | [
1,
1,
1,
1,
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,
262,
1355,
3885,
274,
861,
23200,
3430,
9393,
46506,
9393,
16034,
3084,
62,
3672,
62,
3865,
33411,
23200,
796,
366,
1350,
3885,
274,
861,
1
] |
Which date has a To par of 12? | SELECT "Date" FROM table_77564 WHERE "To par" = '–12' | [
13828,
3128,
468,
257,
1675,
1582,
286,
1105,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
34483,
2414,
33411,
366,
2514,
1582,
1,
796,
705,
1906,
1065,
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,
3128,
468,
257,
1675,
1582,
286,
1105,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
34483,
2414,
33411,
366,
2514,
1582,
1,
796,
705,
1906,
1065,
6
] |
at which event did taylor jensen first win ? | SELECT "event" FROM table_204_791 WHERE "winner" = 'taylor jensen' ORDER BY "event" LIMIT 1 | [
265,
543,
1785,
750,
256,
7167,
474,
18756,
717,
1592,
5633,
46506,
366,
15596,
1,
16034,
3084,
62,
18638,
62,
3720,
16,
33411,
366,
39791,
1,
796,
705,
83,
7167,
474,
18756,
6,
38678,
11050,
366,
15596,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
265,
543,
1785,
750,
256,
7167,
474,
18756,
717,
1592,
5633,
46506,
366,
15596,
1,
16034,
3084,
62,
18638,
62,
3720,
16,
33411,
366,
39791,
1,
796,
705,
83,
7167,
474,
18756,
6,
38678,
11050,
366,
15596,
1,
27564,
2043,
352
] |
what is the height of columbia river hs? | SELECT "Height" FROM table_31263 WHERE "Last School/College" = 'Columbia River HS' | [
10919,
318,
262,
6001,
286,
951,
2178,
544,
7850,
289,
82,
30,
46506,
366,
23106,
1,
16034,
3084,
62,
27970,
5066,
33411,
366,
5956,
3961,
14,
38951,
1,
796,
705,
36063,
544,
5866,
18070,
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,
318,
262,
6001,
286,
951,
2178,
544,
7850,
289,
82,
30,
46506,
366,
23106,
1,
16034,
3084,
62,
27970,
5066,
33411,
366,
5956,
3961,
14,
38951,
1,
796,
705,
36063,
544,
5866,
18070,
6
] |
What is the Score of the match on August 23, 2004? | SELECT "Score" FROM table_50157 WHERE "Date" = 'august 23, 2004' | [
2061,
318,
262,
15178,
286,
262,
2872,
319,
2932,
2242,
11,
5472,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33548,
3553,
33411,
366,
10430,
1,
796,
705,
7493,
436,
2242,
11,
5472,
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,
318,
262,
15178,
286,
262,
2872,
319,
2932,
2242,
11,
5472,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33548,
3553,
33411,
366,
10430,
1,
796,
705,
7493,
436,
2242,
11,
5472,
6
] |
please give me direct morning flights from PITTSBURGH to ATLANTA | 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, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'A... | [
29688,
1577,
502,
1277,
3329,
13956,
422,
49040,
4694,
38926,
17511,
284,
41051,
8643,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
29688,
1577,
502,
1277,
3329,
13956,
422,
49040,
4694,
38926,
17511,
284,
41051,
8643,
11159,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
Number of unresolved questions with exactly one answer. | SELECT COUNT(*) FROM Posts AS q WHERE ClosedDate IS NULL AND q.ParentId IS NULL AND PostTypeId = 1 AND AcceptedAnswerId IS NULL AND AnswerCount = 1 | [
15057,
286,
43264,
2683,
351,
3446,
530,
3280,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
7054,
10662,
33411,
30550,
10430,
3180,
15697,
5357,
10662,
13,
24546,
7390,
3180,
15697,
5357,
2947,
6030,
7390,
796,
352,
5357,
21699,
276,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15057,
286,
43264,
2683,
351,
3446,
530,
3280,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
7054,
10662,
33411,
30550,
10430,
3180,
15697,
5357,
10662,
13,
24546,
7390,
3180,
15697,
5357,
2947,
6030,
7390,
796,
352,
5357,
21699,
276,
33... |
Show me about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home in a bar chart. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home | [
15307,
502,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
287,
257,
2318,
8262,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
15592,
62,
2389,
8,
16034,
9669,
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
] | [
15307,
502,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
287,
257,
2318,
8262,
13,
46506,
1439,
62,
16060,
11,
35683,
7,
15592,
62,
2389,
8,
16034,
9669,
62,... |
Return a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, and rank y-axis in descending order. | SELECT All_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY Team_ID DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
1439,
62,
16060,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
4279,
331,
12,
22704,
287,
31491,
1502,
13,
46506,
1439,
62,
16060,
11,
4816,
62,
2389,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
546,
262,
6082,
286,
1439,
62,
16060,
290,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
4279,
331,
12,
22704,
287,
31491,
1502,
13,
46506,
1439,
62,
16060,
11,
4816,
62,
2389,
16034,
... |
What is the french word for the Russian word filtrovat ( )? | SELECT french FROM table_15040_8 WHERE russian = "filtrovat (фильтровать)" | [
2061,
318,
262,
48718,
1573,
329,
262,
3394,
1573,
1226,
83,
18657,
265,
357,
1267,
30,
46506,
48718,
16034,
3084,
62,
8628,
1821,
62,
23,
33411,
374,
31562,
796,
366,
69,
2326,
18657,
265,
357,
141,
226,
18849,
30143,
45367,
20375,
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
] | [
2061,
318,
262,
48718,
1573,
329,
262,
3394,
1573,
1226,
83,
18657,
265,
357,
1267,
30,
46506,
48718,
16034,
3084,
62,
8628,
1821,
62,
23,
33411,
374,
31562,
796,
366,
69,
2326,
18657,
265,
357,
141,
226,
18849,
30143,
45367,
20375,
2... |
give me the number of patients whose lab test abnormal status is abnormal and lab test name is alveolar-arterial gradient? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Alveolar-arterial Gradient" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2248,
1332,
18801,
3722,
318,
18801,
290,
2248,
1332,
1438,
318,
435,
303,
6192,
12,
2571,
498,
31312,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
18801,
3722,
318,
18801,
290,
2248,
1332,
1438,
318,
435,
303,
6192,
12,
2571,
498,
31312,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,... |
what is the monthly maximum of temperature c (calc) for patient 1784 since 783 days ago? | 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 = 1784)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'tempe... | [
10919,
318,
262,
9651,
5415,
286,
5951,
269,
357,
9948,
66,
8,
329,
5827,
1596,
5705,
1201,
767,
5999,
1528,
2084,
30,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5951,
269,
357,
9948,
66,
8,
329,
5827,
1596,
5705,
1201,
767,
5999,
1528,
2084,
30,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... |
Posts containing two given words. | SELECT Id AS "post_link", OwnerUserId AS "user_link", CreationDate, LastActivityDate, Score, ViewCount, Body FROM Posts WHERE (Body LIKE '%##text1?cauchy##%') AND (Body LIKE '%##text2?swartz##%') ORDER BY CreationDate DESC LIMIT 100 | [
21496,
7268,
734,
1813,
2456,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
11,
4586,
16516,
10430,
11,
15178,
11,
3582,
12332,
11,
12290,
16034,
12043,
33411,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
21496,
7268,
734,
1813,
2456,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
23853,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
11,
4586,
16516,
10430,
11,
15178,
11,
3582,
12332,
11,
12290,
16034,
12043,
33411,
357,
... |
What city has the home team of the brisbane broncos? | SELECT city FROM table_name_88 WHERE home_team_s = "brisbane broncos" | [
2061,
1748,
468,
262,
1363,
1074,
286,
262,
865,
271,
20235,
18443,
6966,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3459,
33411,
1363,
62,
15097,
62,
82,
796,
366,
15311,
20235,
18443,
6966,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
468,
262,
1363,
1074,
286,
262,
865,
271,
20235,
18443,
6966,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3459,
33411,
1363,
62,
15097,
62,
82,
796,
366,
15311,
20235,
18443,
6966,
1
] |
Show info about a post with linked questions. | SELECT Posts.Id AS "post_link", Posts.Body, Score, Tags, PostNotices.PostNoticeTypeId FROM Posts JOIN PostNotices ON Posts.Id = PostNotices.PostId WHERE Posts.Id = '##PostId##' | [
15307,
7508,
546,
257,
1281,
351,
6692,
2683,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
25842,
11,
15178,
11,
44789,
11,
2947,
3673,
1063,
13,
6307,
26396,
6030,
7390,
16034,
12043,
32357,
1268,
2947,
3673,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7508,
546,
257,
1281,
351,
6692,
2683,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
25842,
11,
15178,
11,
44789,
11,
2947,
3673,
1063,
13,
6307,
26396,
6030,
7390,
16034,
12043,
32357,
1268,
2947,
3673,... |
ongoing uncontrolled severe hypertension ( >= 180 mmhg systolic or >= 110 mmhg diastolic | SELECT * FROM table_train_120 WHERE hypertension = 1 OR (systolic_blood_pressure_sbp >= 180 OR diastolic_blood_pressure_dbp >= 110) | [
25162,
278,
47913,
6049,
37454,
357,
18189,
11546,
8085,
71,
70,
827,
301,
4160,
393,
18189,
9796,
8085,
71,
70,
2566,
459,
4160,
46506,
1635,
16034,
3084,
62,
27432,
62,
10232,
33411,
37454,
796,
352,
6375,
357,
1837,
301,
4160,
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
] | [
25162,
278,
47913,
6049,
37454,
357,
18189,
11546,
8085,
71,
70,
827,
301,
4160,
393,
18189,
9796,
8085,
71,
70,
2566,
459,
4160,
46506,
1635,
16034,
3084,
62,
27432,
62,
10232,
33411,
37454,
796,
352,
6375,
357,
1837,
301,
4160,
62,
... |
What position did the team new york red bulls pick? | SELECT "Position" FROM table_31273 WHERE "MLS team" = 'New York Red Bulls' | [
2061,
2292,
750,
262,
1074,
649,
331,
967,
2266,
40317,
2298,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
27970,
4790,
33411,
366,
5805,
50,
1074,
1,
796,
705,
3791,
1971,
2297,
18075,
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,
2292,
750,
262,
1074,
649,
331,
967,
2266,
40317,
2298,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
27970,
4790,
33411,
366,
5805,
50,
1074,
1,
796,
705,
3791,
1971,
2297,
18075,
6
] |
What's the record of Game 56? | SELECT "Record" FROM table_46719 WHERE "Game" = '56' | [
2061,
338,
262,
1700,
286,
3776,
7265,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
24669,
1129,
33411,
366,
8777,
1,
796,
705,
3980,
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,
338,
262,
1700,
286,
3776,
7265,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
24669,
1129,
33411,
366,
8777,
1,
796,
705,
3980,
6
] |
What city had the chameleon oil pattern at the Go RV'ing Classic? | SELECT "City" FROM table_7777 WHERE "Oil Pattern" = 'chameleon' AND "Event" = 'go rv''ing classic' | [
2061,
1748,
550,
262,
442,
480,
38970,
3056,
3912,
379,
262,
1514,
31367,
6,
278,
13449,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
3324,
3324,
33411,
366,
44142,
23939,
1,
796,
705,
354,
480,
38970,
6,
5357,
366,
9237,
1,
796,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
550,
262,
442,
480,
38970,
3056,
3912,
379,
262,
1514,
31367,
6,
278,
13449,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
3324,
3324,
33411,
366,
44142,
23939,
1,
796,
705,
354,
480,
38970,
6,
5357,
366,
9237,
1,
796,
705,... |
What is the highest game with a 47-21-3 record? | SELECT MAX(game) FROM table_name_77 WHERE record = "47-21-3" | [
2061,
318,
262,
4511,
983,
351,
257,
6298,
12,
2481,
12,
18,
1700,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
1700,
796,
366,
2857,
12,
2481,
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
] | [
2061,
318,
262,
4511,
983,
351,
257,
6298,
12,
2481,
12,
18,
1700,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
3324,
33411,
1700,
796,
366,
2857,
12,
2481,
12,
18,
1
] |
What is the score for the Tie no. 12? | SELECT score FROM table_name_71 WHERE tie_no = "12" | [
2061,
318,
262,
4776,
329,
262,
36286,
645,
13,
1105,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4869,
33411,
9839,
62,
3919,
796,
366,
1065,
1
] | [
1,
1,
1,
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,
4776,
329,
262,
36286,
645,
13,
1105,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4869,
33411,
9839,
62,
3919,
796,
366,
1065,
1
] |
how many patients less than age 89 years are widowed? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.age < "89" | [
4919,
867,
3871,
1342,
621,
2479,
9919,
812,
389,
9214,
6972,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
2389,
3913,
1961,
1,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1342,
621,
2479,
9919,
812,
389,
9214,
6972,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
2389,
3913,
1961,
1,
53... |
what was the name of the intake that patient 033-22108 has first had during a day before? | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-22108')) AND intakeoutput.cellpath LIKE '%intake%' AND D... | [
10919,
373,
262,
1438,
286,
262,
10337,
326,
5827,
657,
2091,
12,
1828,
15711,
468,
717,
550,
1141,
257,
1110,
878,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
10337,
326,
5827,
657,
2091,
12,
1828,
15711,
468,
717,
550,
1141,
257,
1110,
878,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
... |
what is the number of seasons finished in 10th place or worse ? | SELECT COUNT("season") FROM table_204_79 WHERE "place" >= 10 | [
10919,
318,
262,
1271,
286,
7028,
5201,
287,
838,
400,
1295,
393,
4785,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
3720,
33411,
366,
5372,
1,
18189,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
7028,
5201,
287,
838,
400,
1295,
393,
4785,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
3720,
33411,
366,
5372,
1,
18189,
838
] |
Which championship was the score 6 4, 5 7, 6 2? | SELECT "Championship" FROM table_27169 WHERE "Score" = '6–4, 5–7, 6–2' | [
13828,
12184,
373,
262,
4776,
718,
604,
11,
642,
767,
11,
718,
362,
30,
46506,
366,
1925,
4350,
1056,
1,
16034,
3084,
62,
1983,
22172,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
642,
1906,
22,
11,
718,
1906,
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
] | [
13828,
12184,
373,
262,
4776,
718,
604,
11,
642,
767,
11,
718,
362,
30,
46506,
366,
1925,
4350,
1056,
1,
16034,
3084,
62,
1983,
22172,
33411,
366,
26595,
1,
796,
705,
21,
1906,
19,
11,
642,
1906,
22,
11,
718,
1906,
17,
6
] |
For those dates that have the 5 highest cloud cover rates, please bin the date into the day of week interval and count their frequency, show by the y axis in ascending. | SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) | [
1890,
883,
9667,
326,
423,
262,
642,
4511,
6279,
3002,
3965,
11,
3387,
9874,
262,
3128,
656,
262,
1110,
286,
1285,
16654,
290,
954,
511,
8373,
11,
905,
416,
262,
331,
16488,
287,
41988,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
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
] | [
1890,
883,
9667,
326,
423,
262,
642,
4511,
6279,
3002,
3965,
11,
3387,
9874,
262,
3128,
656,
262,
1110,
286,
1285,
16654,
290,
954,
511,
8373,
11,
905,
416,
262,
331,
16488,
287,
41988,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
... |
what is the number of patients whose diagnoses short title is mental disor nec oth dis and lab test category is blood gas? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Mental disor NEC oth dis" AND lab."CATEGORY" = "Blood Gas" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
5110,
595,
273,
27576,
267,
400,
595,
290,
2248,
1332,
6536,
318,
2910,
3623,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
318,
5110,
595,
273,
27576,
267,
400,
595,
290,
2248,
1332,
6536,
318,
2910,
3623,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
What is the highest Density for the independencia province, with an area smaller than 2,007.4? | SELECT MAX(density) FROM table_name_88 WHERE province = "independencia" AND area < 2 OFFSET 007.4 | [
2061,
318,
262,
4511,
360,
6377,
329,
262,
3485,
29634,
8473,
11,
351,
281,
1989,
4833,
621,
362,
11,
25816,
13,
19,
30,
46506,
25882,
7,
43337,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
8473,
796,
366,
521,
2690,
29634,
1,
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
] | [
2061,
318,
262,
4511,
360,
6377,
329,
262,
3485,
29634,
8473,
11,
351,
281,
1989,
4833,
621,
362,
11,
25816,
13,
19,
30,
46506,
25882,
7,
43337,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
8473,
796,
366,
521,
2690,
29634,
1,
5357,
... |
Show me about the distribution of Time and ID in a bar chart, show bars from high to low order. | SELECT Time, ID FROM swimmer ORDER BY Time DESC | [
15307,
502,
546,
262,
6082,
286,
3862,
290,
4522,
287,
257,
2318,
8262,
11,
905,
9210,
422,
1029,
284,
1877,
1502,
13,
46506,
3862,
11,
4522,
16034,
9422,
647,
38678,
11050,
3862,
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
] | [
15307,
502,
546,
262,
6082,
286,
3862,
290,
4522,
287,
257,
2318,
8262,
11,
905,
9210,
422,
1029,
284,
1877,
1502,
13,
46506,
3862,
11,
4522,
16034,
9422,
647,
38678,
11050,
3862,
22196,
34
] |
What is the number of different grapes of each wine? Show me a bar chart, I want to sort by the Y-axis in desc. | SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape ORDER BY COUNT(Grape) DESC | [
2061,
318,
262,
1271,
286,
1180,
36656,
286,
1123,
8237,
30,
5438,
502,
257,
2318,
8262,
11,
314,
765,
284,
3297,
416,
262,
575,
12,
22704,
287,
1715,
13,
46506,
48315,
11,
327,
28270,
7,
38,
13484,
8,
16034,
8237,
44441,
11050,
483... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
36656,
286,
1123,
8237,
30,
5438,
502,
257,
2318,
8262,
11,
314,
765,
284,
3297,
416,
262,
575,
12,
22704,
287,
1715,
13,
46506,
48315,
11,
327,
28270,
7,
38,
13484,
8,
16034,
8237,
44441,
11050,
483... |
What is the psd-pc for 18-22/04/2009? | SELECT psd___pc FROM table_name_65 WHERE date = "18-22/04/2009" | [
2061,
318,
262,
279,
21282,
12,
14751,
329,
1248,
12,
1828,
14,
3023,
14,
10531,
30,
46506,
279,
21282,
17569,
14751,
16034,
3084,
62,
3672,
62,
2996,
33411,
3128,
796,
366,
1507,
12,
1828,
14,
3023,
14,
10531,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
21282,
12,
14751,
329,
1248,
12,
1828,
14,
3023,
14,
10531,
30,
46506,
279,
21282,
17569,
14751,
16034,
3084,
62,
3672,
62,
2996,
33411,
3128,
796,
366,
1507,
12,
1828,
14,
3023,
14,
10531,
1
] |
Which builder completed before 1890 and launched on 9 june 1888? | SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888" | [
13828,
27098,
5668,
878,
31982,
290,
5611,
319,
860,
474,
1726,
49584,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
5705,
33411,
5668,
1279,
31982,
5357,
5611,
796,
366,
24,
474,
1726,
49584,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27098,
5668,
878,
31982,
290,
5611,
319,
860,
474,
1726,
49584,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
5705,
33411,
5668,
1279,
31982,
5357,
5611,
796,
366,
24,
474,
1726,
49584,
1
] |
How many points did the home team score in the game that had the away team with a score of 13.18 (96)? | SELECT "Home team score" FROM table_11703 WHERE "Away team score" = '13.18 (96)' | [
2437,
867,
2173,
750,
262,
1363,
1074,
4776,
287,
262,
983,
326,
550,
262,
1497,
1074,
351,
257,
4776,
286,
1511,
13,
1507,
357,
4846,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
1157,
36809,
33411,
366,
32,
1014,
1074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
750,
262,
1363,
1074,
4776,
287,
262,
983,
326,
550,
262,
1497,
1074,
351,
257,
4776,
286,
1511,
13,
1507,
357,
4846,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
1157,
36809,
33411,
366,
32,
1014,
1074,
... |
how many hours have passed since the admission of patient 17667 to the hospital? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 17667 AND admissions.dischtime IS NULL | [
4919,
867,
2250,
423,
3804,
1201,
262,
13938,
286,
5827,
1596,
28933,
284,
262,
4436,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
423,
3804,
1201,
262,
13938,
286,
5827,
1596,
28933,
284,
262,
4436,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
25349,
... |
give me the number of patients whose diagnoses short title is long-term use steroids? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Long-term use steroids" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
890,
12,
4354,
779,
31397,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
890,
12,
4354,
779,
31397,
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,
1... |
What is the Russian name with lbr as the Latin 3-letter code? | SELECT "Russian name" FROM table_34574 WHERE "Latin 3-letter code" = 'lbr' | [
2061,
318,
262,
3394,
1438,
351,
300,
1671,
355,
262,
9133,
513,
12,
9291,
2438,
30,
46506,
366,
16220,
1438,
1,
16034,
3084,
62,
27712,
4524,
33411,
366,
49022,
513,
12,
9291,
2438,
1,
796,
705,
75,
1671,
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,
3394,
1438,
351,
300,
1671,
355,
262,
9133,
513,
12,
9291,
2438,
30,
46506,
366,
16220,
1438,
1,
16034,
3084,
62,
27712,
4524,
33411,
366,
49022,
513,
12,
9291,
2438,
1,
796,
705,
75,
1671,
6
] |
when did patient 007-849 first have their minimum sao2 today? | 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 = '007-849')) AND NOT vitalperiodic.sao2 IS NULL AND D... | [
12518,
750,
5827,
3571,
22,
12,
23,
2920,
717,
423,
511,
5288,
473,
78,
17,
1909,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
3571,
22,
12,
23,
2920,
717,
423,
511,
5288,
473,
78,
17,
1909,
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,... |
Which Place has Phil Mickelson as the Player? | SELECT place FROM table_name_67 WHERE player = "phil mickelson" | [
13828,
8474,
468,
4543,
7631,
7750,
1559,
355,
262,
7853,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3134,
33411,
2137,
796,
366,
28864,
12314,
7750,
1559,
1
] | [
1,
1,
1,
1,
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,
8474,
468,
4543,
7631,
7750,
1559,
355,
262,
7853,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3134,
33411,
2137,
796,
366,
28864,
12314,
7750,
1559,
1
] |
What place is player leo diegel? | SELECT place FROM table_name_38 WHERE player = "leo diegel" | [
2061,
1295,
318,
2137,
443,
78,
4656,
25280,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2548,
33411,
2137,
796,
366,
293,
78,
4656,
25280,
1
] | [
1,
1,
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,
1295,
318,
2137,
443,
78,
4656,
25280,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2548,
33411,
2137,
796,
366,
293,
78,
4656,
25280,
1
] |
What is recorded as the lowest Year that has the Title of Cold Feet? | SELECT MIN("Year") FROM table_67215 WHERE "Title" = 'cold feet' | [
2061,
318,
6264,
355,
262,
9016,
6280,
326,
468,
262,
11851,
286,
10250,
43391,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
3134,
23349,
33411,
366,
19160,
1,
796,
705,
36673,
3625,
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,
318,
6264,
355,
262,
9016,
6280,
326,
468,
262,
11851,
286,
10250,
43391,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
3134,
23349,
33411,
366,
19160,
1,
796,
705,
36673,
3625,
6
] |
count the number of patients whose drug name is diphenhydramine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "DiphenhydrAMINE" | [
9127,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
19550,
831,
15511,
859,
500,
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... | [
9127,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
19550,
831,
15511,
859,
500,
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 smallest percentage of marine area for Pacific Marine ecozone and percentage of total area greater than 3.1? | SELECT MIN(percentage_of_marine_area__foreez_) FROM table_name_50 WHERE ecozone = "pacific marine" AND percentage_of_total_area__foreez_ > 3.1 | [
2061,
318,
262,
18197,
5873,
286,
16050,
1989,
329,
8211,
11000,
34286,
11340,
290,
5873,
286,
2472,
1989,
3744,
621,
513,
13,
16,
30,
46506,
20625,
7,
25067,
496,
62,
1659,
62,
42380,
62,
20337,
834,
754,
8471,
62,
8,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
5873,
286,
16050,
1989,
329,
8211,
11000,
34286,
11340,
290,
5873,
286,
2472,
1989,
3744,
621,
513,
13,
16,
30,
46506,
20625,
7,
25067,
496,
62,
1659,
62,
42380,
62,
20337,
834,
754,
8471,
62,
8,
16034,
3084,
... |
What is the 'season joined league' for the club that had 15 seasons at this level? | SELECT season_joined_league FROM table_name_54 WHERE seasons_at_this_level = "15 seasons" | [
2061,
318,
262,
705,
6230,
5399,
4652,
6,
329,
262,
3430,
326,
550,
1315,
7028,
379,
428,
1241,
30,
46506,
1622,
62,
46416,
62,
19316,
16034,
3084,
62,
3672,
62,
4051,
33411,
7028,
62,
265,
62,
5661,
62,
5715,
796,
366,
1314,
7028,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
705,
6230,
5399,
4652,
6,
329,
262,
3430,
326,
550,
1315,
7028,
379,
428,
1241,
30,
46506,
1622,
62,
46416,
62,
19316,
16034,
3084,
62,
3672,
62,
4051,
33411,
7028,
62,
265,
62,
5661,
62,
5715,
796,
366,
1314,
7028,
... |
What is School, when Year is less than 2013, and when Event is '100 Breaststroke'? | SELECT school FROM table_name_65 WHERE year < 2013 AND event = "100 breaststroke" | [
2061,
318,
3961,
11,
618,
6280,
318,
1342,
621,
2211,
11,
290,
618,
8558,
318,
705,
3064,
37476,
30757,
30960,
46506,
1524,
16034,
3084,
62,
3672,
62,
2996,
33411,
614,
1279,
2211,
5357,
1785,
796,
366,
3064,
9296,
30757,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3961,
11,
618,
6280,
318,
1342,
621,
2211,
11,
290,
618,
8558,
318,
705,
3064,
37476,
30757,
30960,
46506,
1524,
16034,
3084,
62,
3672,
62,
2996,
33411,
614,
1279,
2211,
5357,
1785,
796,
366,
3064,
9296,
30757,
1
] |
Which locomotive class had 5 items made? | SELECT class FROM table_name_26 WHERE quantity_made = 5 | [
13828,
33334,
19138,
1398,
550,
642,
3709,
925,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2075,
33411,
12040,
62,
9727,
796,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
33334,
19138,
1398,
550,
642,
3709,
925,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2075,
33411,
12040,
62,
9727,
796,
642
] |
How many people in the crowd with Away team of geelong? | SELECT COUNT(crowd) FROM table_name_67 WHERE away_team = "geelong" | [
2437,
867,
661,
287,
262,
4315,
351,
21986,
1074,
286,
4903,
21537,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
1497,
62,
15097,
796,
366,
469,
21537,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
287,
262,
4315,
351,
21986,
1074,
286,
4903,
21537,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
1497,
62,
15097,
796,
366,
469,
21537,
1
] |
what is the total number of stations serving the the cape girardeau area ? | SELECT COUNT(*) FROM table_204_601 WHERE "area served" = 'cape girardeau' | [
10919,
318,
262,
2472,
1271,
286,
8985,
7351,
262,
262,
36023,
37370,
45093,
559,
1989,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
20337,
4983,
1,
796,
705,
36435,
37370,
45093,
559,
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
] | [
10919,
318,
262,
2472,
1271,
286,
8985,
7351,
262,
262,
36023,
37370,
45093,
559,
1989,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41706,
33411,
366,
20337,
4983,
1,
796,
705,
36435,
37370,
45093,
559,
6
] |
How many titles are there for the episode written by Tom Scharpling? | SELECT COUNT(title) FROM table_25716401_1 WHERE written_by = "Tom Scharpling" | [
2437,
867,
8714,
389,
612,
329,
262,
4471,
3194,
416,
4186,
3059,
283,
11347,
30,
46506,
327,
28270,
7,
7839,
8,
16034,
3084,
62,
28676,
1433,
21844,
62,
16,
33411,
3194,
62,
1525,
796,
366,
13787,
3059,
283,
11347,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8714,
389,
612,
329,
262,
4471,
3194,
416,
4186,
3059,
283,
11347,
30,
46506,
327,
28270,
7,
7839,
8,
16034,
3084,
62,
28676,
1433,
21844,
62,
16,
33411,
3194,
62,
1525,
796,
366,
13787,
3059,
283,
11347,
1
] |
What is the name of the host nations if the winner was Hong Kong 207/6 (47.1 overs)? | SELECT host_nation_s_ FROM table_22577693_1 WHERE winner = "Hong Kong 207/6 (47.1 overs)" | [
2061,
318,
262,
1438,
286,
262,
2583,
7027,
611,
262,
8464,
373,
9764,
9071,
27791,
14,
21,
357,
2857,
13,
16,
10753,
19427,
46506,
2583,
62,
25729,
62,
82,
62,
16034,
3084,
62,
18182,
3324,
48528,
62,
16,
33411,
8464,
796,
366,
485... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2583,
7027,
611,
262,
8464,
373,
9764,
9071,
27791,
14,
21,
357,
2857,
13,
16,
10753,
19427,
46506,
2583,
62,
25729,
62,
82,
62,
16034,
3084,
62,
18182,
3324,
48528,
62,
16,
33411,
8464,
796,
366,
485... |
What is the latesr year that has more points than 0? | SELECT MAX(year) FROM table_name_22 WHERE pts > 0 | [
2061,
318,
262,
300,
689,
81,
614,
326,
468,
517,
2173,
621,
657,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
43344,
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
] | [
2061,
318,
262,
300,
689,
81,
614,
326,
468,
517,
2173,
621,
657,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
43344,
1875,
657
] |
what is the maximum age of patients whose death status is and discharge location is rehab/distinct part hosp. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP" | [
10919,
318,
262,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
290,
17655,
4067,
318,
14321,
14,
17080,
4612,
636,
10496,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1918,
3722,
318,
290,
17655,
4067,
318,
14321,
14,
17080,
4612,
636,
10496,
13,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15... |
how many games played where the combined score of both teams is at least 3 ? | SELECT COUNT(*) FROM table_203_614 WHERE "score" + "score" >= 3 | [
4919,
867,
1830,
2826,
810,
262,
5929,
4776,
286,
1111,
3466,
318,
379,
1551,
513,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
46841,
33411,
366,
26675,
1,
1343,
366,
26675,
1,
18189,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
2826,
810,
262,
5929,
4776,
286,
1111,
3466,
318,
379,
1551,
513,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
46841,
33411,
366,
26675,
1,
1343,
366,
26675,
1,
18189,
513
] |
What is the position of the player that came from the school/club team/country of Purdue? | SELECT "Position" FROM table_17139 WHERE "School/Club Team/Country" = 'Purdue' | [
2061,
318,
262,
2292,
286,
262,
2137,
326,
1625,
422,
262,
1524,
14,
18664,
1074,
14,
19315,
286,
34699,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1558,
20219,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
47,
30345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
262,
2137,
326,
1625,
422,
262,
1524,
14,
18664,
1074,
14,
19315,
286,
34699,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1558,
20219,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
47,
30345,
... |
What is the number of entry descriptions of each problem?, and order by the x axis in ascending. | SELECT log_entry_description, COUNT(log_entry_description) FROM Problem_Log GROUP BY log_entry_description ORDER BY log_entry_description | [
2061,
318,
262,
1271,
286,
5726,
16969,
286,
1123,
1917,
21747,
290,
1502,
416,
262,
2124,
16488,
287,
41988,
13,
46506,
2604,
62,
13000,
62,
11213,
11,
327,
28270,
7,
6404,
62,
13000,
62,
11213,
8,
16034,
20647,
62,
11187,
44441,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5726,
16969,
286,
1123,
1917,
21747,
290,
1502,
416,
262,
2124,
16488,
287,
41988,
13,
46506,
2604,
62,
13000,
62,
11213,
11,
327,
28270,
7,
6404,
62,
13000,
62,
11213,
8,
16034,
20647,
62,
11187,
44441,
110... |
what is the semifinalists when the surface is hard (i)? | SELECT "Semifinalists" FROM table_9215 WHERE "Surface" = 'hard (i)' | [
10919,
318,
262,
32948,
1292,
1023,
618,
262,
4417,
318,
1327,
357,
72,
19427,
46506,
366,
13900,
361,
1292,
1023,
1,
16034,
3084,
62,
5892,
1314,
33411,
366,
14214,
2550,
1,
796,
705,
10424,
357,
72,
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
] | [
10919,
318,
262,
32948,
1292,
1023,
618,
262,
4417,
318,
1327,
357,
72,
19427,
46506,
366,
13900,
361,
1292,
1023,
1,
16034,
3084,
62,
5892,
1314,
33411,
366,
14214,
2550,
1,
796,
705,
10424,
357,
72,
33047
] |
What is Gold, when Bronze is 11? | SELECT gold FROM table_name_71 WHERE bronze = "11" | [
2061,
318,
3561,
11,
618,
19461,
318,
1367,
30,
46506,
3869,
16034,
3084,
62,
3672,
62,
4869,
33411,
22101,
796,
366,
1157,
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,
3561,
11,
618,
19461,
318,
1367,
30,
46506,
3869,
16034,
3084,
62,
3672,
62,
4869,
33411,
22101,
796,
366,
1157,
1
] |
Whate place has 18 points with lost less than 8? | SELECT COUNT(place) FROM table_name_12 WHERE points = 18 AND lost < 8 | [
1199,
378,
1295,
468,
1248,
2173,
351,
2626,
1342,
621,
807,
30,
46506,
327,
28270,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
2173,
796,
1248,
5357,
2626,
1279,
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
] | [
1199,
378,
1295,
468,
1248,
2173,
351,
2626,
1342,
621,
807,
30,
46506,
327,
28270,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
2173,
796,
1248,
5357,
2626,
1279,
807
] |
calculate the five year survival rate among the patients who were prescribed lr after being diagnosed with cv dis nec-deliver w p/p. | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
9948,
3129,
378,
262,
1936,
614,
9441,
2494,
1871,
262,
3871,
508,
547,
14798,
300,
81,
706,
852,
14641,
351,
269,
85,
595,
27576,
12,
12381,
1428,
266,
279,
14,
79,
13,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
614,
9441,
2494,
1871,
262,
3871,
508,
547,
14798,
300,
81,
706,
852,
14641,
351,
269,
85,
595,
27576,
12,
12381,
1428,
266,
279,
14,
79,
13,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
... |
How many students enrolled in 2005 at New Hampshire Institute of Art? | SELECT "Enrollment (2005)" FROM table_2335 WHERE "School" = 'New Hampshire Institute of Art' | [
2437,
867,
2444,
18724,
287,
5075,
379,
968,
13910,
5136,
286,
3683,
30,
46506,
366,
4834,
48108,
357,
14315,
16725,
16034,
3084,
62,
1954,
2327,
33411,
366,
26130,
1,
796,
705,
3791,
13910,
5136,
286,
3683,
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
] | [
2437,
867,
2444,
18724,
287,
5075,
379,
968,
13910,
5136,
286,
3683,
30,
46506,
366,
4834,
48108,
357,
14315,
16725,
16034,
3084,
62,
1954,
2327,
33411,
366,
26130,
1,
796,
705,
3791,
13910,
5136,
286,
3683,
6
] |
Smaller than 37, the highest year for Ford? | SELECT MAX("Year") FROM table_9101 WHERE "Manufacturer" = 'ford' AND "Finish" < '37' | [
18712,
263,
621,
5214,
11,
262,
4511,
614,
329,
8092,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
6420,
486,
33411,
366,
44445,
15051,
1,
796,
705,
3841,
6,
5357,
366,
48658,
1,
1279,
705,
2718,
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
] | [
18712,
263,
621,
5214,
11,
262,
4511,
614,
329,
8092,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
6420,
486,
33411,
366,
44445,
15051,
1,
796,
705,
3841,
6,
5357,
366,
48658,
1,
1279,
705,
2718,
6
] |
What was the score of Johnny Miller (7)? | SELECT "Score" FROM table_37505 WHERE "Winner" = 'johnny miller (7)' | [
2061,
373,
262,
4776,
286,
15470,
7920,
357,
22,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
2718,
31654,
33411,
366,
48056,
1,
796,
705,
30686,
3281,
3939,
263,
357,
22,
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
] | [
2061,
373,
262,
4776,
286,
15470,
7920,
357,
22,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
2718,
31654,
33411,
366,
48056,
1,
796,
705,
30686,
3281,
3939,
263,
357,
22,
33047
] |
Which name is at latitude 10.0s? | SELECT "Name" FROM table_21073 WHERE "Latitude" = '10.0S' | [
13828,
1438,
318,
379,
32477,
838,
13,
15,
82,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21536,
4790,
33411,
366,
24220,
3984,
1,
796,
705,
940,
13,
15,
50,
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
] | [
13828,
1438,
318,
379,
32477,
838,
13,
15,
82,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21536,
4790,
33411,
366,
24220,
3984,
1,
796,
705,
940,
13,
15,
50,
6
] |
What was the delivery date when s2 (lst) type, s2 (frigate) type, c1-m type was delivered? | SELECT 1 AS st_ship_delivery_date FROM table_11552751_2 WHERE ship_types_delivered = "S2 (LST) type, S2 (frigate) type, C1-M type" | [
2061,
373,
262,
7585,
3128,
618,
264,
17,
357,
75,
301,
8,
2099,
11,
264,
17,
357,
69,
4359,
378,
8,
2099,
11,
269,
16,
12,
76,
2099,
373,
6793,
30,
46506,
352,
7054,
336,
62,
6720,
62,
12381,
6315,
62,
4475,
16034,
3084,
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,
373,
262,
7585,
3128,
618,
264,
17,
357,
75,
301,
8,
2099,
11,
264,
17,
357,
69,
4359,
378,
8,
2099,
11,
269,
16,
12,
76,
2099,
373,
6793,
30,
46506,
352,
7054,
336,
62,
6720,
62,
12381,
6315,
62,
4475,
16034,
3084,
62,
... |
What teams did the player vadim sharifijanov play for? | SELECT "College/junior/club team" FROM table_15964 WHERE "Player" = 'Vadim Sharifijanov' | [
2061,
3466,
750,
262,
2137,
410,
324,
320,
13986,
361,
2926,
272,
709,
711,
329,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
19707,
2414,
33411,
366,
14140,
1,
796,
705,
53,
324,
320,
44144,
2926,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3466,
750,
262,
2137,
410,
324,
320,
13986,
361,
2926,
272,
709,
711,
329,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
19707,
2414,
33411,
366,
14140,
1,
796,
705,
53,
324,
320,
44144,
2926,
27... |
Which player was drafted by the Minnesota North Stars? | SELECT player FROM table_2679061_4 WHERE nhl_team = "Minnesota North Stars" | [
13828,
2137,
373,
15937,
416,
262,
8919,
2258,
10271,
30,
46506,
2137,
16034,
3084,
62,
2075,
3720,
3312,
16,
62,
19,
33411,
299,
18519,
62,
15097,
796,
366,
45670,
2258,
10271,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2137,
373,
15937,
416,
262,
8919,
2258,
10271,
30,
46506,
2137,
16034,
3084,
62,
2075,
3720,
3312,
16,
62,
19,
33411,
299,
18519,
62,
15097,
796,
366,
45670,
2258,
10271,
1
] |
Which Pavilion depth has a Crown angle of 34.0 34.7 ? | SELECT "Pavilion depth" FROM table_42669 WHERE "Crown angle" = '34.0–34.7°' | [
13828,
42094,
6795,
468,
257,
12223,
9848,
286,
4974,
13,
15,
4974,
13,
22,
5633,
46506,
366,
47,
615,
29935,
6795,
1,
16034,
3084,
62,
42780,
3388,
33411,
366,
34,
2053,
9848,
1,
796,
705,
2682,
13,
15,
1906,
2682,
13,
22,
7200,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
42094,
6795,
468,
257,
12223,
9848,
286,
4974,
13,
15,
4974,
13,
22,
5633,
46506,
366,
47,
615,
29935,
6795,
1,
16034,
3084,
62,
42780,
3388,
33411,
366,
34,
2053,
9848,
1,
796,
705,
2682,
13,
15,
1906,
2682,
13,
22,
7200,
... |
Find out the number of widow patients who were ordered blood lab tests. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "WIDOWED" AND lab.fluid = "Blood" | [
16742,
503,
262,
1271,
286,
27075,
3871,
508,
547,
6149,
2910,
2248,
5254,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
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... | [
16742,
503,
262,
1271,
286,
27075,
3871,
508,
547,
6149,
2910,
2248,
5254,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312... |
what are the three most common diagnoses in a year before in which patients are diagnosed within 2 months after being diagnosed with obst def ren plv&urt nec? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | [
10919,
389,
262,
1115,
749,
2219,
40567,
287,
257,
614,
878,
287,
543,
3871,
389,
14641,
1626,
362,
1933,
706,
852,
14641,
351,
9710,
825,
8851,
458,
85,
5,
3325,
27576,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
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... | [
10919,
389,
262,
1115,
749,
2219,
40567,
287,
257,
614,
878,
287,
543,
3871,
389,
14641,
1626,
362,
1933,
706,
852,
14641,
351,
9710,
825,
8851,
458,
85,
5,
3325,
27576,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
... |
What was the score in the 1st leg when 2nd leg was 1 4? | SELECT "1st leg" FROM table_50645 WHERE "2nd leg" = '1–4' | [
2061,
373,
262,
4776,
287,
262,
352,
301,
1232,
618,
362,
358,
1232,
373,
352,
604,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
35638,
2231,
33411,
366,
17,
358,
1232,
1,
796,
705,
16,
1906,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
287,
262,
352,
301,
1232,
618,
362,
358,
1232,
373,
352,
604,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
35638,
2231,
33411,
366,
17,
358,
1232,
1,
796,
705,
16,
1906,
19,
6
] |
Who is the owner with a frequency of 0 101.1 fm? | SELECT "Owner" FROM table_5780 WHERE "Frequency" = '0 101.1 fm' | [
8241,
318,
262,
4870,
351,
257,
8373,
286,
657,
8949,
13,
16,
277,
76,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
3553,
1795,
33411,
366,
37,
28707,
1,
796,
705,
15,
8949,
13,
16,
277,
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
] | [
8241,
318,
262,
4870,
351,
257,
8373,
286,
657,
8949,
13,
16,
277,
76,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
3553,
1795,
33411,
366,
37,
28707,
1,
796,
705,
15,
8949,
13,
16,
277,
76,
6
] |
What is the highest year that a candidate was first elected? | SELECT MAX("First elected") FROM table_18382 | [
2061,
318,
262,
4511,
614,
326,
257,
4540,
373,
717,
7018,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
36243
] | [
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,
614,
326,
257,
4540,
373,
717,
7018,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
36243
] |
How many weeks have a Winning team of yellow team, and an Event of foos it or lose it? | SELECT SUM("Week") FROM table_78859 WHERE "Winning team" = 'yellow team' AND "Event" = 'foos it or lose it' | [
2437,
867,
2745,
423,
257,
40983,
1074,
286,
7872,
1074,
11,
290,
281,
8558,
286,
11511,
418,
340,
393,
4425,
340,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
22,
3459,
3270,
33411,
366,
16643,
768,
1074,
1,
796,
705,
36022,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2745,
423,
257,
40983,
1074,
286,
7872,
1074,
11,
290,
281,
8558,
286,
11511,
418,
340,
393,
4425,
340,
30,
46506,
35683,
7203,
20916,
4943,
16034,
3084,
62,
22,
3459,
3270,
33411,
366,
16643,
768,
1074,
1,
796,
705,
36022,... |
Which Programming is on Channel 26.5? | SELECT programming FROM table_name_98 WHERE channel = 26.5 | [
13828,
30297,
318,
319,
11102,
2608,
13,
20,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
4089,
33411,
6518,
796,
2608,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
30297,
318,
319,
11102,
2608,
13,
20,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
4089,
33411,
6518,
796,
2608,
13,
20
] |
When did he play with peter nyborg? | SELECT date FROM table_name_76 WHERE partner = "peter nyborg" | [
2215,
750,
339,
711,
351,
279,
2357,
299,
88,
23297,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4304,
33411,
5212,
796,
366,
79,
2357,
299,
88,
23297,
1
] | [
1,
1,
1,
1,
1,
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,
750,
339,
711,
351,
279,
2357,
299,
88,
23297,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4304,
33411,
5212,
796,
366,
79,
2357,
299,
88,
23297,
1
] |
what was the top three most frequent diagnoses for the patients in 2105 after being diagnosed with pleural effusion nos within 2 months? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | [
10919,
373,
262,
1353,
1115,
749,
10792,
40567,
329,
262,
3871,
287,
362,
13348,
706,
852,
14641,
351,
3339,
1523,
914,
4241,
43630,
1626,
362,
1933,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
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... | [
10919,
373,
262,
1353,
1115,
749,
10792,
40567,
329,
262,
3871,
287,
362,
13348,
706,
852,
14641,
351,
3339,
1523,
914,
4241,
43630,
1626,
362,
1933,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
... |
who has a higher total , brendan cummins or ger cuddy ? | SELECT "player" FROM table_204_525 WHERE "player" IN ('brendan cummins', 'ger cuddy') ORDER BY "total" DESC LIMIT 1 | [
8727,
468,
257,
2440,
2472,
837,
1449,
358,
272,
10973,
42951,
393,
27602,
269,
21584,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
39088,
33411,
366,
7829,
1,
3268,
19203,
4679,
358,
272,
10973,
42951,
3256,
705,
1362,
269,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
257,
2440,
2472,
837,
1449,
358,
272,
10973,
42951,
393,
27602,
269,
21584,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
39088,
33411,
366,
7829,
1,
3268,
19203,
4679,
358,
272,
10973,
42951,
3256,
705,
1362,
269,
... |
Users by type of first post. | SELECT Posts.OwnerUserId, Posts.Id, Posts.PostTypeId, Posts.ParentId, Posts.CreationDate, Users.Reputation, Users.LastAccessDate FROM Posts, Users WHERE Posts.CreationDate = (SELECT MIN(CreationDate) FROM Posts AS p WHERE p.OwnerUserId = Posts.OwnerUserId) AND Posts.OwnerUserId = Users.Id ORDER BY Users.Reputation DESC | [
14490,
416,
2099,
286,
717,
1281,
13,
46506,
12043,
13,
42419,
12982,
7390,
11,
12043,
13,
7390,
11,
12043,
13,
6307,
6030,
7390,
11,
12043,
13,
24546,
7390,
11,
12043,
13,
12443,
341,
10430,
11,
18987,
13,
6207,
7094,
11,
18987,
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... | [
14490,
416,
2099,
286,
717,
1281,
13,
46506,
12043,
13,
42419,
12982,
7390,
11,
12043,
13,
7390,
11,
12043,
13,
6307,
6030,
7390,
11,
12043,
13,
24546,
7390,
11,
12043,
13,
12443,
341,
10430,
11,
18987,
13,
6207,
7094,
11,
18987,
13,
... |
who is in first place ? | SELECT "team" FROM table_204_129 WHERE "place" = 1 | [
8727,
318,
287,
717,
1295,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
18741,
33411,
366,
5372,
1,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
287,
717,
1295,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
18741,
33411,
366,
5372,
1,
796,
352
] |
what were the three most common diagnoses for patients who were aged 20s in 2103? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | [
10919,
547,
262,
1115,
749,
2219,
40567,
329,
3871,
508,
547,
9722,
1160,
82,
287,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
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... | [
10919,
547,
262,
1115,
749,
2219,
40567,
329,
3871,
508,
547,
9722,
1160,
82,
287,
362,
15197,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
6... |
What is the series sorted value for the episode released December 2009? | SELECT "Series Sorted" FROM table_47745 WHERE "Released" = 'december 2009' | [
2061,
318,
262,
2168,
23243,
1988,
329,
262,
4471,
2716,
3426,
3717,
30,
46506,
366,
27996,
311,
9741,
1,
16034,
3084,
62,
32883,
2231,
33411,
366,
45037,
1,
796,
705,
2934,
3273,
3717,
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,
318,
262,
2168,
23243,
1988,
329,
262,
4471,
2716,
3426,
3717,
30,
46506,
366,
27996,
311,
9741,
1,
16034,
3084,
62,
32883,
2231,
33411,
366,
45037,
1,
796,
705,
2934,
3273,
3717,
6
] |
what was the last value of the arterial bp [diastolic] of patient 32026 on 03/19/this year? | 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 = 32026)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
10919,
373,
262,
938,
1988,
286,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
20959,
2075,
319,
7643,
14,
1129,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
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,
373,
262,
938,
1988,
286,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
20959,
2075,
319,
7643,
14,
1129,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,... |
What is the FSB of the model with part number lf80537gf0411m? | SELECT "FSB" FROM table_16907 WHERE "Part number(s)" = 'LF80537GF0411M' | [
2061,
318,
262,
376,
16811,
286,
262,
2746,
351,
636,
1271,
300,
69,
28256,
2718,
70,
69,
3023,
1157,
76,
30,
46506,
366,
10652,
33,
1,
16034,
3084,
62,
22172,
2998,
33411,
366,
7841,
1271,
7,
82,
16725,
796,
705,
43,
37,
28256,
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
] | [
2061,
318,
262,
376,
16811,
286,
262,
2746,
351,
636,
1271,
300,
69,
28256,
2718,
70,
69,
3023,
1157,
76,
30,
46506,
366,
10652,
33,
1,
16034,
3084,
62,
22172,
2998,
33411,
366,
7841,
1271,
7,
82,
16725,
796,
705,
43,
37,
28256,
2... |
What is the total crowd count for the venue Princes Park? | SELECT SUM(crowd) FROM table_name_23 WHERE venue = "princes park" | [
2061,
318,
262,
2472,
4315,
954,
329,
262,
14359,
7489,
728,
3250,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
14359,
796,
366,
1050,
17386,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4315,
954,
329,
262,
14359,
7489,
728,
3250,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
14359,
796,
366,
1050,
17386,
3952,
1
] |
What are all the distinct payment types? | SELECT DISTINCT payment_type_code FROM payments | [
2061,
389,
477,
262,
7310,
6074,
3858,
30,
46506,
360,
8808,
1268,
4177,
6074,
62,
4906,
62,
8189,
16034,
7524
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
477,
262,
7310,
6074,
3858,
30,
46506,
360,
8808,
1268,
4177,
6074,
62,
4906,
62,
8189,
16034,
7524
] |
when was the last time patient 002-70965 had the minimum value of the systemicmean? | 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 = '002-70965')) AND NOT vitalperiodic.systemicmean IS ... | [
12518,
373,
262,
938,
640,
5827,
3571,
17,
12,
31495,
2996,
550,
262,
5288,
1988,
286,
262,
21971,
32604,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
3571,
17,
12,
31495,
2996,
550,
262,
5288,
1988,
286,
262,
21971,
32604,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
... |
What is the 1998 value if the 2011 value is 30.4? | SELECT "1998" FROM table_47240 WHERE "2011" = '30.4' | [
2061,
318,
262,
7795,
1988,
611,
262,
2813,
1988,
318,
1542,
13,
19,
30,
46506,
366,
21113,
1,
16034,
3084,
62,
2857,
16102,
33411,
366,
9804,
1,
796,
705,
1270,
13,
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,
1,
1,
1,
1
] | [
2061,
318,
262,
7795,
1988,
611,
262,
2813,
1988,
318,
1542,
13,
19,
30,
46506,
366,
21113,
1,
16034,
3084,
62,
2857,
16102,
33411,
366,
9804,
1,
796,
705,
1270,
13,
19,
6
] |
Name who wrote the production code 322 | SELECT written_by FROM table_27462209_1 WHERE prod_code = 322 | [
5376,
508,
2630,
262,
3227,
2438,
38831,
46506,
3194,
62,
1525,
16034,
3084,
62,
1983,
3510,
17572,
24,
62,
16,
33411,
40426,
62,
8189,
796,
38831
] | [
1,
1,
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,
508,
2630,
262,
3227,
2438,
38831,
46506,
3194,
62,
1525,
16034,
3084,
62,
1983,
3510,
17572,
24,
62,
16,
33411,
40426,
62,
8189,
796,
38831
] |
Bar chart of the total number from each class room | SELECT CLASS_ROOM, COUNT(*) FROM CLASS GROUP BY CLASS_ROOM | [
10374,
8262,
286,
262,
2472,
1271,
422,
1123,
1398,
2119,
46506,
42715,
62,
13252,
2662,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
42715,
62,
13252,
2662
] | [
1,
1,
1,
1,
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,
286,
262,
2472,
1271,
422,
1123,
1398,
2119,
46506,
42715,
62,
13252,
2662,
11,
327,
28270,
7,
28104,
16034,
42715,
44441,
11050,
42715,
62,
13252,
2662
] |
Which Representative has a Presentation of Credentials on september 8, 2005? | SELECT "Representative" FROM table_15335 WHERE "Presentation of Credentials" = 'september 8, 2005' | [
13828,
19920,
468,
257,
21662,
341,
286,
327,
445,
14817,
319,
384,
457,
1491,
807,
11,
5075,
30,
46506,
366,
40171,
876,
1,
16034,
3084,
62,
1314,
27326,
33411,
366,
34695,
341,
286,
327,
445,
14817,
1,
796,
705,
325,
457,
1491,
80... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19920,
468,
257,
21662,
341,
286,
327,
445,
14817,
319,
384,
457,
1491,
807,
11,
5075,
30,
46506,
366,
40171,
876,
1,
16034,
3084,
62,
1314,
27326,
33411,
366,
34695,
341,
286,
327,
445,
14817,
1,
796,
705,
325,
457,
1491,
80... |
how many days since patient 027-178044's last pneumonia diagnosis on their current hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-178044... | [
4919,
867,
1528,
1201,
5827,
657,
1983,
12,
1558,
1795,
2598,
338,
938,
35647,
13669,
319,
511,
1459,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
1201,
5827,
657,
1983,
12,
1558,
1795,
2598,
338,
938,
35647,
13669,
319,
511,
1459,
4436,
8791,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.