instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which Sydney has Gold Coast no, Adelaide no< and Auckland no? | SELECT "Sydney" FROM table_70888 WHERE "Gold Coast" = 'no' AND "Adelaide" = 'no' AND "Auckland" = 'no' | [
13828,
11852,
468,
3561,
8545,
645,
11,
27139,
645,
27,
290,
30422,
645,
30,
46506,
366,
50,
5173,
1681,
1,
16034,
3084,
62,
2154,
28011,
33411,
366,
13306,
8545,
1,
796,
705,
3919,
6,
5357,
366,
2782,
25078,
1,
796,
705,
3919,
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
] | [
13828,
11852,
468,
3561,
8545,
645,
11,
27139,
645,
27,
290,
30422,
645,
30,
46506,
366,
50,
5173,
1681,
1,
16034,
3084,
62,
2154,
28011,
33411,
366,
13306,
8545,
1,
796,
705,
3919,
6,
5357,
366,
2782,
25078,
1,
796,
705,
3919,
6,
... |
SO - Total Posts by Database Server Per Month - AmazonDynamoDB. | SELECT CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, 'AmazonSimpleDB' AS TagName, COUNT(*) AS PostCount FROM Posts AS P INNER JOIN PostTags AS PT ON (P.Id = PT.PostId) INNER JOIN Tags AS T ON (PT.TagId = T.Id) WHERE T.TagName LIKE 'amazon-simpledb' GROUP BY YEAR(P.CreationDate), MONTH(P.Creatio... | [
15821,
532,
7472,
12043,
416,
24047,
9652,
2448,
16061,
532,
6186,
35,
4989,
78,
11012,
13,
46506,
39962,
1404,
7,
56,
17133,
7,
47,
13,
12443,
341,
10430,
828,
705,
12,
3256,
25000,
4221,
7,
47,
13,
12443,
341,
10430,
4008,
7054,
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... | [
15821,
532,
7472,
12043,
416,
24047,
9652,
2448,
16061,
532,
6186,
35,
4989,
78,
11012,
13,
46506,
39962,
1404,
7,
56,
17133,
7,
47,
13,
12443,
341,
10430,
828,
705,
12,
3256,
25000,
4221,
7,
47,
13,
12443,
341,
10430,
4008,
7054,
6... |
What is Winner, when Team is 'R.J.MacArthur Onslow', and when Circuit is 'Oran Park Raceway'? | SELECT winner FROM table_name_29 WHERE team = "r.j.macarthur onslow" AND circuit = "oran park raceway" | [
2061,
318,
25358,
11,
618,
4816,
318,
705,
49,
13,
41,
13,
14155,
29874,
1550,
38246,
3256,
290,
618,
13588,
318,
705,
46,
2596,
3250,
24746,
16172,
30960,
46506,
8464,
16034,
3084,
62,
3672,
62,
1959,
33411,
1074,
796,
366,
81,
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
] | [
2061,
318,
25358,
11,
618,
4816,
318,
705,
49,
13,
41,
13,
14155,
29874,
1550,
38246,
3256,
290,
618,
13588,
318,
705,
46,
2596,
3250,
24746,
16172,
30960,
46506,
8464,
16034,
3084,
62,
3672,
62,
1959,
33411,
1074,
796,
366,
81,
13,
... |
What does ACABS 498 cover ? | SELECT DISTINCT description, name FROM course WHERE department = 'ACABS' AND number = 498 | [
2061,
857,
27628,
4462,
604,
4089,
3002,
5633,
46506,
360,
8808,
1268,
4177,
6764,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
26576,
4462,
6,
5357,
1271,
796,
604,
4089
] | [
1,
1,
1,
1,
1,
1,
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,
857,
27628,
4462,
604,
4089,
3002,
5633,
46506,
360,
8808,
1268,
4177,
6764,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
26576,
4462,
6,
5357,
1271,
796,
604,
4089
] |
Which Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13? | SELECT comprehension_of_danish FROM table_name_48 WHERE average < 6.85 AND comprehension_of_norwegian = "4.13" | [
13828,
3082,
7345,
295,
286,
20849,
468,
281,
13475,
4833,
621,
718,
13,
5332,
11,
290,
257,
3082,
7345,
295,
286,
22158,
286,
604,
13,
1485,
30,
46506,
35915,
62,
1659,
62,
67,
7115,
16034,
3084,
62,
3672,
62,
2780,
33411,
2811,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3082,
7345,
295,
286,
20849,
468,
281,
13475,
4833,
621,
718,
13,
5332,
11,
290,
257,
3082,
7345,
295,
286,
22158,
286,
604,
13,
1485,
30,
46506,
35915,
62,
1659,
62,
67,
7115,
16034,
3084,
62,
3672,
62,
2780,
33411,
2811,
12... |
Name the team for december 19 | SELECT team FROM table_23285805_5 WHERE date = "December 19" | [
5376,
262,
1074,
329,
390,
3273,
678,
46506,
1074,
16034,
3084,
62,
1954,
26279,
28256,
62,
20,
33411,
3128,
796,
366,
20588,
678,
1
] | [
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,
1074,
329,
390,
3273,
678,
46506,
1074,
16034,
3084,
62,
1954,
26279,
28256,
62,
20,
33411,
3128,
796,
366,
20588,
678,
1
] |
Which entrant has a Honda V6 engine and a Lotus 99t chassis? | SELECT "Entrant" FROM table_67440 WHERE "Engine" = 'honda v6' AND "Chassis" = 'lotus 99t' | [
13828,
920,
5250,
468,
257,
20059,
569,
21,
3113,
290,
257,
27578,
7388,
83,
24587,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
3134,
25644,
33411,
366,
13798,
1,
796,
705,
71,
13533,
410,
21,
6,
5357,
366,
1925,
20297,
1,
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
] | [
13828,
920,
5250,
468,
257,
20059,
569,
21,
3113,
290,
257,
27578,
7388,
83,
24587,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
3134,
25644,
33411,
366,
13798,
1,
796,
705,
71,
13533,
410,
21,
6,
5357,
366,
1925,
20297,
1,
796,... |
What is the value of D 42 O that has an R 53 + value of r 8? | SELECT "D 42 O" FROM table_78139 WHERE "R 53 +" = 'r 8' | [
2061,
318,
262,
1988,
286,
360,
5433,
440,
326,
468,
281,
371,
7192,
1343,
1988,
286,
374,
807,
30,
46506,
366,
35,
5433,
440,
1,
16034,
3084,
62,
3695,
20219,
33411,
366,
49,
7192,
1343,
1,
796,
705,
81,
807,
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
] | [
2061,
318,
262,
1988,
286,
360,
5433,
440,
326,
468,
281,
371,
7192,
1343,
1988,
286,
374,
807,
30,
46506,
366,
35,
5433,
440,
1,
16034,
3084,
62,
3695,
20219,
33411,
366,
49,
7192,
1343,
1,
796,
705,
81,
807,
6
] |
Name the kr narayanan votes for values being 936 for kr | SELECT "K.R. Narayanan (Votes)" FROM table_73471 WHERE "K.R. Narayanan (Values)" = '936' | [
5376,
262,
479,
81,
30083,
22931,
272,
5690,
329,
3815,
852,
860,
2623,
329,
479,
81,
46506,
366,
42,
13,
49,
13,
13596,
22931,
272,
357,
53,
6421,
16725,
16034,
3084,
62,
22,
2682,
4869,
33411,
366,
42,
13,
49,
13,
13596,
22931,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
479,
81,
30083,
22931,
272,
5690,
329,
3815,
852,
860,
2623,
329,
479,
81,
46506,
366,
42,
13,
49,
13,
13596,
22931,
272,
357,
53,
6421,
16725,
16034,
3084,
62,
22,
2682,
4869,
33411,
366,
42,
13,
49,
13,
13596,
22931,
... |
What type of settlement is ? | SELECT "Type" FROM table_27914 WHERE "Cyrillic Name Other Names" = 'Футог' | [
2061,
2099,
286,
9443,
318,
5633,
46506,
366,
6030,
1,
16034,
3084,
62,
26050,
1415,
33411,
366,
34,
2417,
359,
291,
6530,
3819,
28531,
1,
796,
705,
140,
97,
35072,
20375,
25443,
111,
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,
2099,
286,
9443,
318,
5633,
46506,
366,
6030,
1,
16034,
3084,
62,
26050,
1415,
33411,
366,
34,
2417,
359,
291,
6530,
3819,
28531,
1,
796,
705,
140,
97,
35072,
20375,
25443,
111,
6
] |
Give me a bar chart about the average of number_of_platforms in different locations, and rank X from low to high order. | SELECT Location, AVG(Number_of_Platforms) FROM station GROUP BY Location ORDER BY Location | [
23318,
502,
257,
2318,
8262,
546,
262,
2811,
286,
1271,
62,
1659,
62,
24254,
82,
287,
1180,
7064,
11,
290,
4279,
1395,
422,
1877,
284,
1029,
1502,
13,
46506,
13397,
11,
35224,
7,
15057,
62,
1659,
62,
37148,
82,
8,
16034,
4429,
44441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2318,
8262,
546,
262,
2811,
286,
1271,
62,
1659,
62,
24254,
82,
287,
1180,
7064,
11,
290,
4279,
1395,
422,
1877,
284,
1029,
1502,
13,
46506,
13397,
11,
35224,
7,
15057,
62,
1659,
62,
37148,
82,
8,
16034,
4429,
44441... |
count the number of patients whose year of birth is less than 1850 and drug type is additive? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "1850" AND prescriptions.drug_type = "ADDITIVE" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
35745,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
4082,
318,
1342,
621,
35745,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
1... |
What are the names of teams that do no have match season record? | SELECT Name FROM team WHERE NOT Team_id IN (SELECT Team FROM match_season) | [
2061,
389,
262,
3891,
286,
3466,
326,
466,
645,
423,
2872,
1622,
1700,
30,
46506,
6530,
16034,
1074,
33411,
5626,
4816,
62,
312,
3268,
357,
46506,
4816,
16034,
2872,
62,
6230,
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
] | [
2061,
389,
262,
3891,
286,
3466,
326,
466,
645,
423,
2872,
1622,
1700,
30,
46506,
6530,
16034,
1074,
33411,
5626,
4816,
62,
312,
3268,
357,
46506,
4816,
16034,
2872,
62,
6230,
8
] |
WHAT IS THE LEAGUE WITH HOME 1-1? | SELECT "League" FROM table_58678 WHERE "Home" = '1-1' | [
32971,
3180,
3336,
12509,
4760,
8924,
13315,
41779,
352,
12,
16,
30,
46506,
366,
24623,
1,
16034,
3084,
62,
3365,
30924,
33411,
366,
16060,
1,
796,
705,
16,
12,
16,
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
] | [
32971,
3180,
3336,
12509,
4760,
8924,
13315,
41779,
352,
12,
16,
30,
46506,
366,
24623,
1,
16034,
3084,
62,
3365,
30924,
33411,
366,
16060,
1,
796,
705,
16,
12,
16,
6
] |
What is the average number of audience for festivals? | SELECT AVG(num_of_audience) FROM festival_detail | [
2061,
318,
262,
2811,
1271,
286,
5386,
329,
25575,
30,
46506,
35224,
7,
22510,
62,
1659,
62,
3885,
1240,
8,
16034,
10876,
62,
49170
] | [
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,
1271,
286,
5386,
329,
25575,
30,
46506,
35224,
7,
22510,
62,
1659,
62,
3885,
1240,
8,
16034,
10876,
62,
49170
] |
How many 'bad' questions have >10k rep users asked?. | SELECT Id, DisplayName, Reputation, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 1) AS num_questions, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts.PostTypeId = 2) AS num_answers, (SELECT COUNT(*) FROM Posts WHERE Posts.OwnerUserId = Users.Id AND Posts... | [
2437,
867,
705,
14774,
6,
2683,
423,
1875,
940,
74,
1128,
2985,
1965,
30,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
357,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
705,
14774,
6,
2683,
423,
1875,
940,
74,
1128,
2985,
1965,
30,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
357,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
12043,
13,
42419,
12982,
7390,
796,
18987,
13,
7390... |
provide the number of patients whose diagnosis icd9 code is v1272 and lab test fluid is ascites. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V1272" AND lab.fluid = "Ascites" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13669,
14158,
67,
24,
2438,
318,
410,
1065,
4761,
290,
2248,
1332,
11711,
318,
10570,
2737,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13669,
14158,
67,
24,
2438,
318,
410,
1065,
4761,
290,
2248,
1332,
11711,
318,
10570,
2737,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
How many people attended Match No. 31? | SELECT attendance FROM table_name_51 WHERE match_no = "31" | [
2437,
867,
661,
9141,
13225,
1400,
13,
3261,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4349,
33411,
2872,
62,
3919,
796,
366,
3132,
1
] | [
1,
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,
13225,
1400,
13,
3261,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
4349,
33411,
2872,
62,
3919,
796,
366,
3132,
1
] |
What is the lowest points won from player victoria azarenka? | SELECT MIN("Points won") FROM table_28438 WHERE "Player" = 'Victoria Azarenka' | [
2061,
318,
262,
9016,
2173,
1839,
422,
2137,
2210,
7661,
35560,
5757,
4914,
30,
46506,
20625,
7203,
40710,
1839,
4943,
16034,
3084,
62,
30336,
2548,
33411,
366,
14140,
1,
796,
705,
49898,
7578,
5757,
4914,
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
] | [
2061,
318,
262,
9016,
2173,
1839,
422,
2137,
2210,
7661,
35560,
5757,
4914,
30,
46506,
20625,
7203,
40710,
1839,
4943,
16034,
3084,
62,
30336,
2548,
33411,
366,
14140,
1,
796,
705,
49898,
7578,
5757,
4914,
6
] |
Which Surface has an Opponent in the final of st phane robert? | SELECT "Surface" FROM table_43446 WHERE "Opponent in the final" = 'stéphane robert' | [
13828,
20321,
468,
281,
9385,
3471,
287,
262,
2457,
286,
336,
872,
1531,
686,
4835,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3559,
27260,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
301,
2634,
746,
1531,
686,
4835,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20321,
468,
281,
9385,
3471,
287,
262,
2457,
286,
336,
872,
1531,
686,
4835,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
3559,
27260,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
301,
2634,
746,
1531,
686,
4835,
... |
what is the total number of medals between south korea , north korea , sweden , and brazil ? | SELECT SUM("total") FROM table_203_630 WHERE "nation" IN ('south korea', 'north korea', 'sweden', 'brazil') | [
10919,
318,
262,
2472,
1271,
286,
28057,
1022,
5366,
479,
46215,
837,
5093,
479,
46215,
837,
1509,
31829,
837,
290,
275,
7098,
5633,
46506,
35683,
7203,
23350,
4943,
16034,
3084,
62,
22416,
62,
30005,
33411,
366,
25729,
1,
3268,
19203,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28057,
1022,
5366,
479,
46215,
837,
5093,
479,
46215,
837,
1509,
31829,
837,
290,
275,
7098,
5633,
46506,
35683,
7203,
23350,
4943,
16034,
3084,
62,
22416,
62,
30005,
33411,
366,
25729,
1,
3268,
19203,
... |
What are all the countries where the electric company Ebisa has a presence? | SELECT "Country" FROM table_22764 WHERE "Entities" = 'EBISA' | [
2061,
389,
477,
262,
2678,
810,
262,
5186,
1664,
12119,
9160,
468,
257,
4931,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
24403,
2414,
33411,
366,
14539,
871,
1,
796,
705,
30195,
22312,
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,
389,
477,
262,
2678,
810,
262,
5186,
1664,
12119,
9160,
468,
257,
4931,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
24403,
2414,
33411,
366,
14539,
871,
1,
796,
705,
30195,
22312,
6
] |
what are the three most common procedures that followed within 2 months for patients who were given a contrast arteriogram-leg? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.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, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admi... | [
10919,
389,
262,
1115,
749,
2219,
9021,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
547,
1813,
257,
6273,
30675,
72,
21857,
12,
1455,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
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,
389,
262,
1115,
749,
2219,
9021,
326,
3940,
1626,
362,
1933,
329,
3871,
508,
547,
1813,
257,
6273,
30675,
72,
21857,
12,
1455,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
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, could you sort in descending by the Y-axis? | SELECT date, COUNT(date) FROM weather ORDER BY COUNT(date) DESC | [
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,
714,
345,
3297,
287,
31491,
416,
262,
575,
12,
22704,
30,
46506,
3128,
11,
327,
28270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
714,
345,
3297,
287,
31491,
416,
262,
575,
12,
22704,
30,
46506,
3128,
11,
327,
28270... |
since 2101, what are the top five most common procedures? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE STRFTIME('%y', treatment.treatmenttime) >= '2101' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 5 | [
20777,
2310,
486,
11,
644,
389,
262,
1353,
1936,
749,
2219,
9021,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
2310,
486,
11,
644,
389,
262,
1353,
1936,
749,
2219,
9021,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104... |
Draw a bar chart of date versus how many date | SELECT date, COUNT(date) FROM weather | [
25302,
257,
2318,
8262,
286,
3128,
9051,
703,
867,
3128,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
3128,
9051,
703,
867,
3128,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193
] |
What stadium is located in Halifax? | SELECT stadium FROM table_name_48 WHERE city = "halifax" | [
2061,
10308,
318,
5140,
287,
34438,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
2780,
33411,
1748,
796,
366,
14201,
26590,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
10308,
318,
5140,
287,
34438,
30,
46506,
10308,
16034,
3084,
62,
3672,
62,
2780,
33411,
1748,
796,
366,
14201,
26590,
1
] |
For the team led by head coach Felix Magath, who is the team captain? | SELECT "Team Captain" FROM table_50358 WHERE "Head Coach" = 'felix magath' | [
1890,
262,
1074,
2957,
416,
1182,
3985,
29721,
2944,
776,
11,
508,
318,
262,
1074,
10654,
30,
46506,
366,
15592,
8599,
1,
16034,
3084,
62,
1120,
31128,
33411,
366,
13847,
16393,
1,
796,
705,
69,
417,
844,
2153,
776,
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
] | [
1890,
262,
1074,
2957,
416,
1182,
3985,
29721,
2944,
776,
11,
508,
318,
262,
1074,
10654,
30,
46506,
366,
15592,
8599,
1,
16034,
3084,
62,
1120,
31128,
33411,
366,
13847,
16393,
1,
796,
705,
69,
417,
844,
2153,
776,
6
] |
What is the id of the candidate whose email is stanley.monahan@example.org? | SELECT T2.candidate_id FROM people AS T1 JOIN candidates AS T2 ON T1.person_id = T2.candidate_id WHERE T1.email_address = "stanley.monahan@example.org" | [
2061,
318,
262,
4686,
286,
262,
4540,
3025,
3053,
318,
336,
272,
1636,
13,
2144,
19210,
31,
20688,
13,
2398,
30,
46506,
309,
17,
13,
46188,
20540,
62,
312,
16034,
661,
7054,
309,
16,
32357,
1268,
5871,
7054,
309,
17,
6177,
309,
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... | [
2061,
318,
262,
4686,
286,
262,
4540,
3025,
3053,
318,
336,
272,
1636,
13,
2144,
19210,
31,
20688,
13,
2398,
30,
46506,
309,
17,
13,
46188,
20540,
62,
312,
16034,
661,
7054,
309,
16,
32357,
1268,
5871,
7054,
309,
17,
6177,
309,
16,
... |
What is the lowest win % with a 0-2 record and more than 2 apps? | SELECT MIN("Win %") FROM table_64100 WHERE "Record" = '0-2' AND "Apps" > '2' | [
2061,
318,
262,
9016,
1592,
4064,
351,
257,
657,
12,
17,
1700,
290,
517,
621,
362,
6725,
30,
46506,
20625,
7203,
16643,
4064,
4943,
16034,
3084,
62,
2414,
3064,
33411,
366,
23739,
1,
796,
705,
15,
12,
17,
6,
5357,
366,
48433,
1,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
1592,
4064,
351,
257,
657,
12,
17,
1700,
290,
517,
621,
362,
6725,
30,
46506,
20625,
7203,
16643,
4064,
4943,
16034,
3084,
62,
2414,
3064,
33411,
366,
23739,
1,
796,
705,
15,
12,
17,
6,
5357,
366,
48433,
1,
1... |
What is the HDTV for the Rai Nettuno Sat Uno Television service? | SELECT "HDTV" FROM table_76126 WHERE "Television service" = 'rai nettuno sat uno' | [
2061,
318,
262,
5572,
6849,
329,
262,
42954,
399,
3087,
36909,
7031,
791,
78,
21516,
2139,
30,
46506,
366,
10227,
6849,
1,
16034,
3084,
62,
4304,
19420,
33411,
366,
6767,
5024,
2139,
1,
796,
705,
430,
72,
2010,
28286,
78,
3332,
555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5572,
6849,
329,
262,
42954,
399,
3087,
36909,
7031,
791,
78,
21516,
2139,
30,
46506,
366,
10227,
6849,
1,
16034,
3084,
62,
4304,
19420,
33411,
366,
6767,
5024,
2139,
1,
796,
705,
430,
72,
2010,
28286,
78,
3332,
555,
... |
What record has a Score of 9 6? | SELECT "Record" FROM table_52846 WHERE "Score" = '9–6' | [
2061,
1700,
468,
257,
15178,
286,
860,
718,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
49351,
3510,
33411,
366,
26595,
1,
796,
705,
24,
1906,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1700,
468,
257,
15178,
286,
860,
718,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
49351,
3510,
33411,
366,
26595,
1,
796,
705,
24,
1906,
21,
6
] |
show me the cheapest one way flights from ORLANDO to MONTREAL | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ORLANDO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city... | [
12860,
502,
262,
28918,
530,
835,
13956,
422,
6375,
28182,
46,
284,
25000,
51,
2200,
23719,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
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... | [
12860,
502,
262,
28918,
530,
835,
13956,
422,
6375,
28182,
46,
284,
25000,
51,
2200,
23719,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
What is the name of the away team who play Collingwood? | SELECT away_team FROM table_name_7 WHERE home_team = "collingwood" | [
2061,
318,
262,
1438,
286,
262,
1497,
1074,
508,
711,
7778,
278,
3822,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1497,
1074,
508,
711,
7778,
278,
3822,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
1363,
62,
15097,
796,
366,
26000,
278,
3822,
1
] |
how many patients are of american indian/alaska native ethnicity and admitted before the year 2144? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.admityear < "2144" | [
4919,
867,
3871,
389,
286,
45630,
272,
773,
666,
14,
282,
8480,
6868,
26289,
290,
6848,
878,
262,
614,
362,
18444,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
45630,
272,
773,
666,
14,
282,
8480,
6868,
26289,
290,
6848,
878,
262,
614,
362,
18444,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
... |
What is the score of the game on 8 Sep 1990? | SELECT score FROM table_name_92 WHERE date = "8 sep 1990" | [
2061,
318,
262,
4776,
286,
262,
983,
319,
807,
8621,
6303,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5892,
33411,
3128,
796,
366,
23,
41767,
6303,
1
] | [
1,
1,
1,
1,
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,
286,
262,
983,
319,
807,
8621,
6303,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5892,
33411,
3128,
796,
366,
23,
41767,
6303,
1
] |
How many million viewers watched the episode with a run time of 25:22? | SELECT viewers__in_millions_ FROM table_2108684_1 WHERE run_time = "25:22" | [
2437,
867,
1510,
10209,
7342,
262,
4471,
351,
257,
1057,
640,
286,
1679,
25,
1828,
30,
46506,
10209,
834,
259,
62,
17805,
507,
62,
16034,
3084,
62,
17,
15711,
41580,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1495,
25,
1828,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1510,
10209,
7342,
262,
4471,
351,
257,
1057,
640,
286,
1679,
25,
1828,
30,
46506,
10209,
834,
259,
62,
17805,
507,
62,
16034,
3084,
62,
17,
15711,
41580,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1495,
25,
1828,
1
] |
Who are the co-drivers before 2010 with under 326 laps? | SELECT co_drivers FROM table_name_76 WHERE year < 2010 AND laps < 326 | [
8241,
389,
262,
763,
12,
36702,
878,
3050,
351,
739,
40660,
24590,
30,
46506,
763,
62,
36702,
16034,
3084,
62,
3672,
62,
4304,
33411,
614,
1279,
3050,
5357,
24590,
1279,
40660
] | [
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
763,
12,
36702,
878,
3050,
351,
739,
40660,
24590,
30,
46506,
763,
62,
36702,
16034,
3084,
62,
3672,
62,
4304,
33411,
614,
1279,
3050,
5357,
24590,
1279,
40660
] |
how many married patients have lab test item id 51214? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "MARRIED" AND lab.itemid = "51214" | [
4919,
867,
6405,
3871,
423,
2248,
1332,
2378,
4686,
22243,
1415,
30,
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,
796,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6405,
3871,
423,
2248,
1332,
2378,
4686,
22243,
1415,
30,
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,
796,
224... |
When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc ( c)? | SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)" | [
2215,
299,
67,
362,
730,
1478,
275,
357,
65,
623,
276,
8,
318,
262,
19972,
703,
867,
13871,
286,
37096,
357,
269,
19427,
46506,
327,
28270,
7,
83,
62,
66,
834,
8,
7054,
22074,
66,
62,
16034,
3084,
62,
23815,
1731,
2598,
62,
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
] | [
2215,
299,
67,
362,
730,
1478,
275,
357,
65,
623,
276,
8,
318,
262,
19972,
703,
867,
13871,
286,
37096,
357,
269,
19427,
46506,
327,
28270,
7,
83,
62,
66,
834,
8,
7054,
22074,
66,
62,
16034,
3084,
62,
23815,
1731,
2598,
62,
16,
... |
What is the average of the top-25 with 16 cuts and less than 23 events? | SELECT AVG(top_25) FROM table_name_79 WHERE cuts_made = 16 AND events < 23 | [
2061,
318,
262,
2811,
286,
262,
1353,
12,
1495,
351,
1467,
6630,
290,
1342,
621,
2242,
2995,
30,
46506,
35224,
7,
4852,
62,
1495,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
6630,
62,
9727,
796,
1467,
5357,
2995,
1279,
2242
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
1353,
12,
1495,
351,
1467,
6630,
290,
1342,
621,
2242,
2995,
30,
46506,
35224,
7,
4852,
62,
1495,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
6630,
62,
9727,
796,
1467,
5357,
2995,
1279,
2242
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name. | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2160,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
13,
46506,
309,
17,
13,
5376,
11,
309,
16,
13,
10669,
... |
Name of David Kimball, and an Overall smaller than 229 is what highest round? | SELECT MAX(round) FROM table_name_51 WHERE name = "david kimball" AND overall < 229 | [
5376,
286,
3271,
6502,
1894,
11,
290,
281,
14674,
4833,
621,
31064,
318,
644,
4511,
2835,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
1438,
796,
366,
67,
8490,
479,
320,
1894,
1,
5357,
4045,
1279,
31064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
3271,
6502,
1894,
11,
290,
281,
14674,
4833,
621,
31064,
318,
644,
4511,
2835,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
1438,
796,
366,
67,
8490,
479,
320,
1894,
1,
5357,
4045,
1279,
31064
] |
What is the Country of the Championship with a Score of 293? | SELECT country FROM table_name_12 WHERE score = "293" | [
2061,
318,
262,
12946,
286,
262,
10749,
351,
257,
15178,
286,
37224,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1065,
33411,
4776,
796,
366,
31675,
1
] | [
1,
1,
1,
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,
12946,
286,
262,
10749,
351,
257,
15178,
286,
37224,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1065,
33411,
4776,
796,
366,
31675,
1
] |
what kind of airplanes are used by DL flying between WASHINGTON and DENVER | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.... | [
10919,
1611,
286,
32808,
389,
973,
416,
23641,
7348,
1022,
370,
19436,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
10919,
1611,
286,
32808,
389,
973,
416,
23641,
7348,
1022,
370,
19436,
290,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... |
tell me patient 24547's last urea nitrogen value in 09/2104? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24547) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'urea nitrogen') AND STRFTIME('%y-%m', labevents.charttime) = '2104-09' ORDER BY ... | [
33331,
502,
5827,
29637,
2857,
338,
938,
334,
21468,
23417,
1988,
287,
7769,
14,
17,
13464,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
5827,
29637,
2857,
338,
938,
334,
21468,
23417,
1988,
287,
7769,
14,
17,
13464,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,... |
Who lost when the philadelphia eagles won at lincoln financial field on september 30? | SELECT "Loser" FROM table_47792 WHERE "Location" = 'lincoln financial field' AND "Winner" = 'philadelphia eagles' AND "Date" = 'september 30' | [
8241,
2626,
618,
262,
5206,
8273,
304,
37803,
1839,
379,
300,
11690,
3176,
2214,
319,
384,
457,
1491,
1542,
30,
46506,
366,
43,
13416,
1,
16034,
3084,
62,
2857,
48156,
33411,
366,
14749,
1,
796,
705,
75,
11690,
3176,
2214,
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,
1,
1,
1,
1
] | [
8241,
2626,
618,
262,
5206,
8273,
304,
37803,
1839,
379,
300,
11690,
3176,
2214,
319,
384,
457,
1491,
1542,
30,
46506,
366,
43,
13416,
1,
16034,
3084,
62,
2857,
48156,
33411,
366,
14749,
1,
796,
705,
75,
11690,
3176,
2214,
6,
5357,
... |
what was the top four most frequent procedures performed since 5 years ago that patients were given within 2 months after the diagnosis of malig neo bladder nos? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.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 = admissi... | [
10919,
373,
262,
1353,
1440,
749,
10792,
9021,
6157,
1201,
642,
812,
2084,
326,
3871,
547,
1813,
1626,
362,
1933,
706,
262,
13669,
286,
6428,
328,
19102,
34918,
43630,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
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,
373,
262,
1353,
1440,
749,
10792,
9021,
6157,
1201,
642,
812,
2084,
326,
3871,
547,
1813,
1626,
362,
1933,
706,
262,
13669,
286,
6428,
328,
19102,
34918,
43630,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
... |
What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen? | SELECT "Nationality" FROM table_5866 WHERE "College/junior/club team" = 'university of wisconsin (wcha)' AND "Player" = 'bob lundeen' | [
2061,
318,
262,
2351,
414,
329,
262,
6403,
286,
266,
8816,
357,
86,
11693,
828,
290,
257,
7853,
286,
29202,
300,
917,
6429,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3365,
2791,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2351,
414,
329,
262,
6403,
286,
266,
8816,
357,
86,
11693,
828,
290,
257,
7853,
286,
29202,
300,
917,
6429,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3365,
2791,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1... |
Percentage of (non-deleted) questions which get closed as duplicates, month by month. | SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS "month", CAST(COUNT(CASE WHEN (NOT Posts.ClosedDate IS NULL AND PostHistory.PostHistoryTypeId = 10 AND PostHistory.Comment IN ('1', '101')) THEN 1 ELSE NULL END) AS FLOAT) * 100 / COUNT(CASE WHEN PostHistory.PostHistoryTypeId = 1 THEN 1 ELSE NULL END) AS "Du... | [
31905,
496,
286,
357,
13159,
12,
2934,
33342,
8,
2683,
543,
651,
4838,
355,
14184,
16856,
11,
1227,
416,
1227,
13,
46506,
360,
6158,
29266,
7,
27857,
4221,
11,
360,
11617,
29267,
7,
27857,
4221,
11,
657,
11,
21582,
10430,
828,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31905,
496,
286,
357,
13159,
12,
2934,
33342,
8,
2683,
543,
651,
4838,
355,
14184,
16856,
11,
1227,
416,
1227,
13,
46506,
360,
6158,
29266,
7,
27857,
4221,
11,
360,
11617,
29267,
7,
27857,
4221,
11,
657,
11,
21582,
10430,
828,
657,
... |
How many years did the team in slot number 9 have a franchise? | SELECT "Years with franchise" FROM table_78169 WHERE "Number" = '9' | [
2437,
867,
812,
750,
262,
1074,
287,
10852,
1271,
860,
423,
257,
8663,
30,
46506,
366,
40630,
351,
8663,
1,
16034,
3084,
62,
3695,
22172,
33411,
366,
15057,
1,
796,
705,
24,
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
] | [
2437,
867,
812,
750,
262,
1074,
287,
10852,
1271,
860,
423,
257,
8663,
30,
46506,
366,
40630,
351,
8663,
1,
16034,
3084,
62,
3695,
22172,
33411,
366,
15057,
1,
796,
705,
24,
6
] |
what is the quantity when the year of manufacture is 1900 and the class is mc? | SELECT "Quantity" FROM table_64250 WHERE "Year(s) of manufacture" = '1900' AND "Class" = 'mc' | [
10919,
318,
262,
12040,
618,
262,
614,
286,
6161,
318,
21489,
290,
262,
1398,
318,
36650,
30,
46506,
366,
31208,
1,
16034,
3084,
62,
2414,
9031,
33411,
366,
17688,
7,
82,
8,
286,
6161,
1,
796,
705,
48104,
6,
5357,
366,
9487,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12040,
618,
262,
614,
286,
6161,
318,
21489,
290,
262,
1398,
318,
36650,
30,
46506,
366,
31208,
1,
16034,
3084,
62,
2414,
9031,
33411,
366,
17688,
7,
82,
8,
286,
6161,
1,
796,
705,
48104,
6,
5357,
366,
9487,
1,
79... |
What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5? | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 | [
2061,
389,
262,
3186,
351,
262,
5415,
2443,
2546,
317,
19,
326,
635,
423,
257,
5468,
583,
5664,
3124,
4833,
621,
642,
30,
46506,
1720,
16034,
1720,
33411,
3509,
62,
7700,
62,
7857,
796,
366,
32,
19,
1,
5357,
5468,
62,
525,
62,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3186,
351,
262,
5415,
2443,
2546,
317,
19,
326,
635,
423,
257,
5468,
583,
5664,
3124,
4833,
621,
642,
30,
46506,
1720,
16034,
1720,
33411,
3509,
62,
7700,
62,
7857,
796,
366,
32,
19,
1,
5357,
5468,
62,
525,
62,
113... |
how many days has it been since the last lactated ringers intake of patient 12775 on the current icu visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) 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 = 12775) AND icustays.outtime IS NULL) ... | [
4919,
867,
1528,
468,
340,
587,
1201,
262,
938,
26222,
515,
5858,
364,
10337,
286,
5827,
18112,
2425,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1528,
468,
340,
587,
1201,
262,
938,
26222,
515,
5858,
364,
10337,
286,
5827,
18112,
2425,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
53... |
At what time was the game when they played the White Sox and had a record of 63-70? | SELECT "Time" FROM table_37927 WHERE "Opponent" = 'white sox' AND "Record" = '63-70' | [
2953,
644,
640,
373,
262,
983,
618,
484,
2826,
262,
2635,
17689,
290,
550,
257,
1700,
286,
8093,
12,
2154,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
29088,
1983,
33411,
366,
27524,
3471,
1,
796,
705,
11186,
523,
87,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2953,
644,
640,
373,
262,
983,
618,
484,
2826,
262,
2635,
17689,
290,
550,
257,
1700,
286,
8093,
12,
2154,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
29088,
1983,
33411,
366,
27524,
3471,
1,
796,
705,
11186,
523,
87,
6,
5357,
366,
... |
What is the score with a place of t6 for the player k.j. choi? | SELECT "Score" FROM table_67200 WHERE "Place" = 't6' AND "Player" = 'k.j. choi' | [
2061,
318,
262,
4776,
351,
257,
1295,
286,
256,
21,
329,
262,
2137,
479,
13,
73,
13,
1727,
72,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3134,
2167,
33411,
366,
27271,
1,
796,
705,
83,
21,
6,
5357,
366,
14140,
1,
796,
705,
74,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
257,
1295,
286,
256,
21,
329,
262,
2137,
479,
13,
73,
13,
1727,
72,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3134,
2167,
33411,
366,
27271,
1,
796,
705,
83,
21,
6,
5357,
366,
14140,
1,
796,
705,
74,
... |
Apache Spark Post Votes. | SELECT p.Id, p.PostTypeId, p.ParentId, p.CreationDate, p.Score, p.ViewCount, p.Title, v.VoteTypeId, v.UserId, v.CreationDate FROM Posts AS p INNER JOIN Votes AS v ON v.PostId = p.Id WHERE p.Tags LIKE '%apache-spark%' AND v.CreationDate BETWEEN '2017-01-01' AND '2019-01-01' ORDER BY v.CreationDate | [
25189,
4891,
17732,
2947,
39584,
13,
46506,
279,
13,
7390,
11,
279,
13,
6307,
6030,
7390,
11,
279,
13,
24546,
7390,
11,
279,
13,
12443,
341,
10430,
11,
279,
13,
26595,
11,
279,
13,
7680,
12332,
11,
279,
13,
19160,
11,
410,
13,
373... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
25189,
4891,
17732,
2947,
39584,
13,
46506,
279,
13,
7390,
11,
279,
13,
6307,
6030,
7390,
11,
279,
13,
24546,
7390,
11,
279,
13,
12443,
341,
10430,
11,
279,
13,
26595,
11,
279,
13,
7680,
12332,
11,
279,
13,
19160,
11,
410,
13,
373... |
How many people are women's singles in the season of 2000/01? | SELECT COUNT(womens_singles) FROM table_28211988_1 WHERE season = "2000/01" | [
2437,
867,
661,
389,
1466,
338,
25287,
287,
262,
1622,
286,
4751,
14,
486,
30,
46506,
327,
28270,
7,
86,
296,
641,
62,
12215,
829,
8,
16034,
3084,
62,
2078,
2481,
26709,
62,
16,
33411,
1622,
796,
366,
11024,
14,
486,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
1466,
338,
25287,
287,
262,
1622,
286,
4751,
14,
486,
30,
46506,
327,
28270,
7,
86,
296,
641,
62,
12215,
829,
8,
16034,
3084,
62,
2078,
2481,
26709,
62,
16,
33411,
1622,
796,
366,
11024,
14,
486,
1
] |
When Yaroslav Popovych won most corageous, who won the mountains classification? | SELECT "Mountains Classification" FROM table_73726 WHERE "Most Courageous" = 'Yaroslav Popovych' | [
2215,
45184,
26388,
8099,
40822,
1839,
749,
1162,
496,
516,
11,
508,
1839,
262,
12269,
17923,
30,
46506,
366,
35452,
1299,
40984,
1,
16034,
3084,
62,
22,
2718,
2075,
33411,
366,
6943,
37106,
516,
1,
796,
705,
56,
283,
26388,
8099,
408... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45184,
26388,
8099,
40822,
1839,
749,
1162,
496,
516,
11,
508,
1839,
262,
12269,
17923,
30,
46506,
366,
35452,
1299,
40984,
1,
16034,
3084,
62,
22,
2718,
2075,
33411,
366,
6943,
37106,
516,
1,
796,
705,
56,
283,
26388,
8099,
408... |
at the women 's 200 meter individual medley sm10 event at the 2012 summer paralympics , who finished first ? | SELECT "name" FROM table_204_422 ORDER BY "time" LIMIT 1 | [
265,
262,
1466,
705,
82,
939,
16430,
1981,
1117,
1636,
895,
940,
1785,
379,
262,
2321,
3931,
26901,
3149,
873,
837,
508,
5201,
717,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44361,
38678,
11050,
366,
2435,
1,
27564,
2043,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1466,
705,
82,
939,
16430,
1981,
1117,
1636,
895,
940,
1785,
379,
262,
2321,
3931,
26901,
3149,
873,
837,
508,
5201,
717,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44361,
38678,
11050,
366,
2435,
1,
27564,
2043,... |
Number of bounties with accepted answer depending on the day when bounty started. | WITH tmp AS (SELECT p.Id, p.AcceptedAnswerId AS Acc, Period = TIME_TO_STR(bs.CreationDate, '%W') FROM Posts AS p INNER JOIN Votes AS bs ON p.Id = bs.PostId AND bs.VoteTypeId = 8) SELECT Period, COUNT(*), COUNT(Acc), ROUND((COUNT(Acc)) * 100.0 / (COUNT(*)), 2) AS percentage FROM tmp GROUP BY Period ORDER BY Period | [
15057,
286,
49937,
444,
351,
6292,
3280,
6906,
319,
262,
1110,
618,
24180,
2067,
13,
54,
10554,
45218,
7054,
357,
46506,
279,
13,
7390,
11,
279,
13,
38855,
276,
33706,
7390,
7054,
6366,
11,
18581,
796,
20460,
62,
10468,
62,
18601,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15057,
286,
49937,
444,
351,
6292,
3280,
6906,
319,
262,
1110,
618,
24180,
2067,
13,
54,
10554,
45218,
7054,
357,
46506,
279,
13,
7390,
11,
279,
13,
38855,
276,
33706,
7390,
7054,
6366,
11,
18581,
796,
20460,
62,
10468,
62,
18601,
7,
... |
what is patient 57023's last output on last month/24? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57023)) AND DATETIME(outputevents.charttim... | [
10919,
318,
5827,
44626,
1954,
338,
938,
5072,
319,
938,
1227,
14,
1731,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
38701,
1133,
85,
658,
13,
9186,
312,
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,
1,
1,
1... | [
10919,
318,
5827,
44626,
1954,
338,
938,
5072,
319,
938,
1227,
14,
1731,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
38701,
1133,
85,
658,
13,
9186,
312,
16034,
... |
What title did Bill Foster direct ? | SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster" | [
2061,
3670,
750,
3941,
18489,
1277,
5633,
46506,
3670,
16034,
3084,
62,
1495,
1983,
2996,
2078,
62,
17,
33411,
7924,
62,
1525,
796,
366,
17798,
18489,
1
] | [
1,
1,
1,
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,
3670,
750,
3941,
18489,
1277,
5633,
46506,
3670,
16034,
3084,
62,
1495,
1983,
2996,
2078,
62,
17,
33411,
7924,
62,
1525,
796,
366,
17798,
18489,
1
] |
What was the name of the project that peaked at 40 and was in the USA? | SELECT "Project Name" FROM table_5931 WHERE "Peak" = '40' AND "Country" = 'usa' | [
2061,
373,
262,
1438,
286,
262,
1628,
326,
33948,
379,
2319,
290,
373,
287,
262,
4916,
30,
46506,
366,
16775,
6530,
1,
16034,
3084,
62,
3270,
3132,
33411,
366,
6435,
461,
1,
796,
705,
1821,
6,
5357,
366,
33921,
1,
796,
705,
22064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
1628,
326,
33948,
379,
2319,
290,
373,
287,
262,
4916,
30,
46506,
366,
16775,
6530,
1,
16034,
3084,
62,
3270,
3132,
33411,
366,
6435,
461,
1,
796,
705,
1821,
6,
5357,
366,
33921,
1,
796,
705,
22064,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of job_id and commission_pct in a bar chart, I want to list y-axis from high to low order please. | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
5810,
62,
79,
310,
287,
257,
2318,
8262,
11,
314,
765,
284,
1351,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
6082,
286,
1693,
62,
312,
290,
5810,
62,
79,
310,
287,
257,
2318,
8262,
11,
314,
765,
284,
1351,
331,
... |
How many total bronze medals did Canada receive? | SELECT MAX("Bronze") FROM table_39548 WHERE "Nation" = 'canada' | [
2437,
867,
2472,
22101,
28057,
750,
3340,
3328,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
31010,
2780,
33411,
366,
46108,
1,
796,
705,
5171,
4763,
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
] | [
2437,
867,
2472,
22101,
28057,
750,
3340,
3328,
30,
46506,
25882,
7203,
18760,
2736,
4943,
16034,
3084,
62,
31010,
2780,
33411,
366,
46108,
1,
796,
705,
5171,
4763,
6
] |
have albuterol inhaler, calcium gluconate or lorazepam been ordered in 12/2105 for patient 23237? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23237) AND prescriptions.drug IN ('albuterol inhaler', 'calcium gluconate', 'lorazepam') AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-12' | [
14150,
435,
4360,
263,
349,
40982,
263,
11,
19700,
1278,
84,
1102,
378,
393,
300,
273,
1031,
538,
321,
587,
6149,
287,
1105,
14,
17,
13348,
329,
5827,
2242,
24693,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
435,
4360,
263,
349,
40982,
263,
11,
19700,
1278,
84,
1102,
378,
393,
300,
273,
1031,
538,
321,
587,
6149,
287,
1105,
14,
17,
13348,
329,
5827,
2242,
24693,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092... |
what is patient 7959's height for the last time in 03/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 = 7959)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht' ... | [
10919,
318,
5827,
9225,
3270,
338,
6001,
329,
262,
938,
640,
287,
7643,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
9225,
3270,
338,
6001,
329,
262,
938,
640,
287,
7643,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,... |
What film did Pen-Ek Ratanaruang direct? | SELECT "Title" FROM table_41060 WHERE "Director" = 'pen-ek ratanaruang' | [
2061,
2646,
750,
7507,
12,
36,
74,
11738,
272,
11493,
648,
1277,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
33289,
1899,
33411,
366,
28702,
1,
796,
705,
3617,
12,
988,
4227,
272,
11493,
648,
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
] | [
2061,
2646,
750,
7507,
12,
36,
74,
11738,
272,
11493,
648,
1277,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
33289,
1899,
33411,
366,
28702,
1,
796,
705,
3617,
12,
988,
4227,
272,
11493,
648,
6
] |
what is BNA | SELECT DISTINCT airport_code FROM airport WHERE airport_code = 'BNA' | [
10919,
318,
347,
45,
11159,
16779,
360,
8808,
1268,
4177,
9003,
62,
8189,
16034,
9003,
33411,
9003,
62,
8189,
796,
705,
33,
4535,
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
] | [
10919,
318,
347,
45,
11159,
16779,
360,
8808,
1268,
4177,
9003,
62,
8189,
16034,
9003,
33411,
9003,
62,
8189,
796,
705,
33,
4535,
6
] |
In what year was the winner a soccer player from Virginia? | SELECT SUM(year) FROM table_name_81 WHERE sport = "soccer" AND college = "virginia" | [
818,
644,
614,
373,
262,
8464,
257,
11783,
2137,
422,
6025,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
6332,
796,
366,
35634,
2189,
1,
5357,
4152,
796,
366,
85,
4672,
544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
644,
614,
373,
262,
8464,
257,
11783,
2137,
422,
6025,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
6332,
796,
366,
35634,
2189,
1,
5357,
4152,
796,
366,
85,
4672,
544,
1
] |
which flights from PITTSBURGH to ATLANTA have the lowest COACH class fares | SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, fare, fare_basis, flight AS FLIGHT_0, flight AS FLIGHT_1, flight... | [
4758,
13956,
422,
49040,
4694,
38926,
17511,
284,
5161,
25697,
5603,
423,
262,
9016,
7375,
16219,
1398,
33164,
46506,
360,
8808,
1268,
4177,
9977,
9947,
62,
15,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4758,
13956,
422,
49040,
4694,
38926,
17511,
284,
5161,
25697,
5603,
423,
262,
9016,
7375,
16219,
1398,
33164,
46506,
360,
8808,
1268,
4177,
9977,
9947,
62,
15,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... |
Find the number of students in total. | SELECT COUNT(*) FROM student | [
16742,
262,
1271,
286,
2444,
287,
2472,
13,
46506,
327,
28270,
7,
28104,
16034,
3710
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
2444,
287,
2472,
13,
46506,
327,
28270,
7,
28104,
16034,
3710
] |
what is the number of patients whose year of birth is less than 2092 and diagnoses short title is adv eff cardiovasc nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2092" AND diagnoses.short_title = "Adv eff cardiovasc NEC" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
5892,
290,
40567,
1790,
3670,
318,
1354,
914,
2657,
16664,
3372,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
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,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
5892,
290,
40567,
1790,
3670,
318,
1354,
914,
2657,
16664,
3372,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,... |
What Constellation has a Object type of globular cluster and a NGC number of 5986? | SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986 | [
2061,
4757,
28828,
468,
257,
9515,
2099,
286,
15095,
934,
13946,
290,
257,
399,
15916,
1271,
286,
642,
49087,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
1558,
33411,
2134,
62,
4906,
796,
366,
4743,
672,
934,
13946,
1,
5357,
23370,
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
] | [
2061,
4757,
28828,
468,
257,
9515,
2099,
286,
15095,
934,
13946,
290,
257,
399,
15916,
1271,
286,
642,
49087,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
1558,
33411,
2134,
62,
4906,
796,
366,
4743,
672,
934,
13946,
1,
5357,
23370,
6... |
What school did delray brooks go to? | SELECT "School" FROM table_10920 WHERE "Player" = 'delray brooks' | [
2061,
1524,
750,
1619,
2433,
1379,
28194,
467,
284,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
14454,
1238,
33411,
366,
14140,
1,
796,
705,
12381,
2433,
1379,
28194,
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,
1524,
750,
1619,
2433,
1379,
28194,
467,
284,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
14454,
1238,
33411,
366,
14140,
1,
796,
705,
12381,
2433,
1379,
28194,
6
] |
count the number of patients that have been admitted to hospital. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions | [
9127,
262,
1271,
286,
3871,
326,
423,
587,
6848,
284,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
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
] | [
9127,
262,
1271,
286,
3871,
326,
423,
587,
6848,
284,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349
] |
what is the maximum age of patients that survived that were diagnosed with primary diseaase aortic valve insuffiency\aortic valve replacement /sda?? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" | [
10919,
318,
262,
5415,
2479,
286,
3871,
326,
11803,
326,
547,
14641,
351,
4165,
3591,
64,
589,
257,
419,
291,
22580,
1035,
1648,
6160,
59,
64,
419,
291,
22580,
9014,
1220,
82,
6814,
3548,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
326,
11803,
326,
547,
14641,
351,
4165,
3591,
64,
589,
257,
419,
291,
22580,
1035,
1648,
6160,
59,
64,
419,
291,
22580,
9014,
1220,
82,
6814,
3548,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
160... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the amount of hire_date bin hire_date by weekday, rank Y-axis in desc order. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COUNT(HIRE_DATE) DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28... |
How many points did the Orangemen score in game 1? | SELECT MAX("Orangemen points") FROM table_25994 WHERE "Game" = '1' | [
2437,
867,
2173,
750,
262,
1471,
648,
8952,
4776,
287,
983,
352,
30,
46506,
25882,
7203,
5574,
648,
8952,
2173,
4943,
16034,
3084,
62,
1495,
42691,
33411,
366,
8777,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2173,
750,
262,
1471,
648,
8952,
4776,
287,
983,
352,
30,
46506,
25882,
7203,
5574,
648,
8952,
2173,
4943,
16034,
3084,
62,
1495,
42691,
33411,
366,
8777,
1,
796,
705,
16,
6
] |
Name the district for first elected 1810 | SELECT district FROM table_2668352_14 WHERE first_elected = "1810" | [
5376,
262,
4783,
329,
717,
7018,
1248,
940,
46506,
4783,
16034,
3084,
62,
2075,
3104,
33394,
62,
1415,
33411,
717,
62,
28604,
796,
366,
1507,
940,
1
] | [
1,
1,
1,
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,
4783,
329,
717,
7018,
1248,
940,
46506,
4783,
16034,
3084,
62,
2075,
3104,
33394,
62,
1415,
33411,
717,
62,
28604,
796,
366,
1507,
940,
1
] |
when was the first time on the first hospital visit that patient 20441 had a procedure? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20441 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY procedures_icd.charttime LIMIT 1 | [
12518,
373,
262,
717,
640,
319,
262,
717,
4436,
3187,
326,
5827,
1160,
39710,
550,
257,
8771,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
640,
319,
262,
717,
4436,
3187,
326,
5827,
1160,
39710,
550,
257,
8771,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46... |
Find the number of medications prescribed for each brand. Plot them as bar chart. | SELECT Name, COUNT(*) FROM Medication AS T1 JOIN Prescribes AS T2 ON T1.Code = T2.Medication GROUP BY T1.Brand | [
16742,
262,
1271,
286,
17638,
14798,
329,
1123,
4508,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
2019,
3299,
7054,
309,
16,
32357,
1268,
1763,
66,
22090,
7054,
309,
17,
6177,
309,
16,
13,
10669,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17638,
14798,
329,
1123,
4508,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
2019,
3299,
7054,
309,
16,
32357,
1268,
1763,
66,
22090,
7054,
309,
17,
6177,
309,
16,
13,
10669,... |
Show me a bar chart for what is the total credit does each department offer? | SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE | [
15307,
502,
257,
2318,
8262,
329,
644,
318,
262,
2472,
3884,
857,
1123,
5011,
2897,
30,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
34,
6998,
62,
9419,
24706,
8,
16034,
37384,
5188,
44441,
11050,
5550,
11571,
62,
34,
16820
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
329,
644,
318,
262,
2472,
3884,
857,
1123,
5011,
2897,
30,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
34,
6998,
62,
9419,
24706,
8,
16034,
37384,
5188,
44441,
11050,
5550,
11571,
62,
34,
16820
] |
what was the average number of gold medals received by a nation ? | SELECT AVG("gold") FROM table_204_785 | [
10919,
373,
262,
2811,
1271,
286,
3869,
28057,
2722,
416,
257,
3277,
5633,
46506,
35224,
7203,
24267,
4943,
16034,
3084,
62,
18638,
62,
41172
] | [
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,
2811,
1271,
286,
3869,
28057,
2722,
416,
257,
3277,
5633,
46506,
35224,
7203,
24267,
4943,
16034,
3084,
62,
18638,
62,
41172
] |
Which round was a player from the Long Island Lizards drafted in first? | SELECT MAX(round) FROM table_name_26 WHERE team = "long island lizards" | [
13828,
2835,
373,
257,
2137,
422,
262,
5882,
5451,
406,
14124,
15937,
287,
717,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
1074,
796,
366,
6511,
7022,
300,
14124,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2835,
373,
257,
2137,
422,
262,
5882,
5451,
406,
14124,
15937,
287,
717,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
1074,
796,
366,
6511,
7022,
300,
14124,
1
] |
What is the attendance of the match with a record 20-11? | SELECT "Attendance" FROM table_38315 WHERE "Record" = '20-11' | [
2061,
318,
262,
14858,
286,
262,
2872,
351,
257,
1700,
1160,
12,
1157,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
27936,
33411,
366,
23739,
1,
796,
705,
1238,
12,
1157,
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
] | [
2061,
318,
262,
14858,
286,
262,
2872,
351,
257,
1700,
1160,
12,
1157,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
27936,
33411,
366,
23739,
1,
796,
705,
1238,
12,
1157,
6
] |
Show vote_percent from each date, and I want to rank by the x-axis from high to low. | SELECT Date, Vote_Percent FROM election ORDER BY Date DESC | [
15307,
3015,
62,
25067,
422,
1123,
3128,
11,
290,
314,
765,
284,
4279,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
7536,
11,
19175,
62,
31905,
16034,
3071,
38678,
11050,
7536,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
3015,
62,
25067,
422,
1123,
3128,
11,
290,
314,
765,
284,
4279,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
7536,
11,
19175,
62,
31905,
16034,
3071,
38678,
11050,
7536,
22196,
34
] |
When the rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter? | SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.9" | [
2215,
262,
4279,
318,
4025,
621,
513,
351,
257,
1218,
3860,
286,
45610,
1559,
1222,
45610,
1559,
23871,
11,
45969,
13,
24,
11,
644,
318,
262,
5544,
3860,
30,
46506,
5544,
62,
24385,
16034,
3084,
62,
3672,
62,
4521,
33411,
4279,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
318,
4025,
621,
513,
351,
257,
1218,
3860,
286,
45610,
1559,
1222,
45610,
1559,
23871,
11,
45969,
13,
24,
11,
644,
318,
262,
5544,
3860,
30,
46506,
5544,
62,
24385,
16034,
3084,
62,
3672,
62,
4521,
33411,
4279,
1875,
... |
How many Matches have an Average larger than 26.53, and an S/Rate of 165.4, and a 100s smaller than 1? | SELECT COUNT("Matches") FROM table_61284 WHERE "Average" > '26.53' AND "S/Rate" = '165.4' AND "100s" < '1' | [
2437,
867,
6550,
2052,
423,
281,
13475,
4025,
621,
2608,
13,
4310,
11,
290,
281,
311,
14,
32184,
286,
21409,
13,
19,
11,
290,
257,
1802,
82,
4833,
621,
352,
30,
46506,
327,
28270,
7203,
19044,
2052,
4943,
16034,
3084,
62,
43610,
570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6550,
2052,
423,
281,
13475,
4025,
621,
2608,
13,
4310,
11,
290,
281,
311,
14,
32184,
286,
21409,
13,
19,
11,
290,
257,
1802,
82,
4833,
621,
352,
30,
46506,
327,
28270,
7203,
19044,
2052,
4943,
16034,
3084,
62,
43610,
570... |
what is the prescription drug patient 007-2001 has been prescribed two times? | SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007... | [
10919,
318,
262,
15077,
2563,
5827,
3571,
22,
12,
14585,
468,
587,
14798,
734,
1661,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
7,
1150,
3299,
13,
30349,
9688,
2435,
8,
7054,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
15077,
2563,
5827,
3571,
22,
12,
14585,
468,
587,
14798,
734,
1661,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
7,
1150,
3299,
13,
30349,
9688,
2435,
8,
7054,
269,
... |
what is the four most frequent specimen test that was taken since 1 year ago? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 4 | [
10919,
318,
262,
1440,
749,
10792,
31674,
1332,
326,
373,
2077,
1201,
352,
614,
2084,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1440,
749,
10792,
31674,
1332,
326,
373,
2077,
1201,
352,
614,
2084,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
... |
What is the Name of the dinosaur that was discovered in the Location, China, and whose Notes are, 'described from a single tooth'? | SELECT "Name" FROM table_75800 WHERE "Location" = 'china' AND "Notes" = 'described from a single tooth' | [
2061,
318,
262,
6530,
286,
262,
28257,
326,
373,
5071,
287,
262,
13397,
11,
2807,
11,
290,
3025,
11822,
389,
11,
705,
34869,
422,
257,
2060,
16162,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
2425,
7410,
33411,
366,
14749,
1,
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
] | [
2061,
318,
262,
6530,
286,
262,
28257,
326,
373,
5071,
287,
262,
13397,
11,
2807,
11,
290,
3025,
11822,
389,
11,
705,
34869,
422,
257,
2060,
16162,
30960,
46506,
366,
5376,
1,
16034,
3084,
62,
2425,
7410,
33411,
366,
14749,
1,
796,
... |
What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1? | SELECT SUM("High Score") FROM table_33232 WHERE "Stump" = '0' AND "Catches" = '4' AND "Average" < '56.1' AND "Inns" > '14' | [
2061,
318,
262,
1029,
4776,
329,
262,
2137,
351,
657,
336,
8142,
11,
604,
17591,
11,
517,
621,
1478,
3527,
82,
290,
281,
2811,
4833,
621,
7265,
13,
16,
30,
46506,
35683,
7203,
11922,
15178,
4943,
16034,
3084,
62,
2091,
24339,
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... | [
2061,
318,
262,
1029,
4776,
329,
262,
2137,
351,
657,
336,
8142,
11,
604,
17591,
11,
517,
621,
1478,
3527,
82,
290,
281,
2811,
4833,
621,
7265,
13,
16,
30,
46506,
35683,
7203,
11922,
15178,
4943,
16034,
3084,
62,
2091,
24339,
33411,
... |
In what movie did John Wayne play the role of Chris Morrell? | SELECT title FROM table_name_54 WHERE role = "chris morrell" | [
818,
644,
3807,
750,
1757,
13329,
711,
262,
2597,
286,
5180,
3461,
11252,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
4051,
33411,
2597,
796,
366,
354,
2442,
2146,
11252,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
644,
3807,
750,
1757,
13329,
711,
262,
2597,
286,
5180,
3461,
11252,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
4051,
33411,
2597,
796,
366,
354,
2442,
2146,
11252,
1
] |
how many of the patients admitted to emergency had a lab test for rbc and csf? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.label = "RBC, CSF" | [
4919,
867,
286,
262,
3871,
6848,
284,
6334,
550,
257,
2248,
1332,
329,
374,
15630,
290,
269,
28202,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
3871,
6848,
284,
6334,
550,
257,
2248,
1332,
329,
374,
15630,
290,
269,
28202,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1672... |
give me the number of patients with abnormal lab test status who have been diagnosed with subendocardial infarction, initial episode of care. | 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 = "Subendo infarct, initial" AND lab.flag = "abnormal" | [
26535,
502,
262,
1271,
286,
3871,
351,
18801,
2248,
1332,
3722,
508,
423,
587,
14641,
351,
850,
437,
44412,
498,
1167,
283,
596,
11,
4238,
4471,
286,
1337,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
351,
18801,
2248,
1332,
3722,
508,
423,
587,
14641,
351,
850,
437,
44412,
498,
1167,
283,
596,
11,
4238,
4471,
286,
1337,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8... |
What is the Rank of the Swimmer with a Time of 2:25.65 in a Lane larger than 3? | SELECT AVG(rank) FROM table_name_36 WHERE time = "2:25.65" AND lane > 3 | [
2061,
318,
262,
10916,
286,
262,
2451,
10957,
351,
257,
3862,
286,
362,
25,
1495,
13,
2996,
287,
257,
15016,
4025,
621,
513,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
640,
796,
366,
17,
25,
1495,
13,
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,
10916,
286,
262,
2451,
10957,
351,
257,
3862,
286,
362,
25,
1495,
13,
2996,
287,
257,
15016,
4025,
621,
513,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
640,
796,
366,
17,
25,
1495,
13,
2... |
which country has miss universe Hungary as former pageant? | SELECT country_territory FROM table_14308895_2 WHERE former_pageant = "Miss Universe Hungary" | [
4758,
1499,
468,
2051,
6881,
19562,
355,
1966,
47894,
30,
46506,
1499,
62,
353,
799,
652,
16034,
3084,
62,
1415,
1270,
3459,
3865,
62,
17,
33411,
1966,
62,
7700,
415,
796,
366,
17140,
11950,
19562,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1499,
468,
2051,
6881,
19562,
355,
1966,
47894,
30,
46506,
1499,
62,
353,
799,
652,
16034,
3084,
62,
1415,
1270,
3459,
3865,
62,
17,
33411,
1966,
62,
7700,
415,
796,
366,
17140,
11950,
19562,
1
] |
when did the last procedure time of patient 25723 until 2104? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25723) AND STRFTIME('%y', procedures_icd.charttime) <= '2104' ORDER BY procedures_icd.charttime DESC LIMIT 1 | [
12518,
750,
262,
938,
8771,
640,
286,
5827,
36100,
1954,
1566,
362,
13464,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
938,
8771,
640,
286,
5827,
36100,
1954,
1566,
362,
13464,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.