instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What upper-level electives are offered next semester that do n't meet on Monday or Friday ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.friday = 'N' AND course_offering.monday = 'N' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course... | [
2061,
6727,
12,
5715,
1742,
1083,
389,
4438,
1306,
24878,
326,
466,
299,
470,
1826,
319,
3321,
393,
3217,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
6727,
12,
5715,
1742,
1083,
389,
4438,
1306,
24878,
326,
466,
299,
470,
1826,
319,
3321,
393,
3217,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
... |
Which Player has a Score smaller than 69, and a Place of t1? | SELECT player FROM table_name_33 WHERE score < 69 AND place = "t1" | [
13828,
7853,
468,
257,
15178,
4833,
621,
8644,
11,
290,
257,
8474,
286,
256,
16,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
1279,
8644,
5357,
1295,
796,
366,
83,
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
] | [
13828,
7853,
468,
257,
15178,
4833,
621,
8644,
11,
290,
257,
8474,
286,
256,
16,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
1279,
8644,
5357,
1295,
796,
366,
83,
16,
1
] |
Show the ids and details of the investors who have at least two transactions with type code 'SALE' by a bar chart, list by the X-axis from low to high. | SELECT T1.Investor_details, T1.investor_id FROM Investors AS T1 JOIN Transactions AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" ORDER BY T1.Investor_details | [
15307,
262,
220,
2340,
290,
3307,
286,
262,
7713,
508,
423,
379,
1551,
734,
8945,
351,
2099,
2438,
705,
50,
21358,
6,
416,
257,
2318,
8262,
11,
1351,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
309,
16,
13,
19070,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
220,
2340,
290,
3307,
286,
262,
7713,
508,
423,
379,
1551,
734,
8945,
351,
2099,
2438,
705,
50,
21358,
6,
416,
257,
2318,
8262,
11,
1351,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
309,
16,
13,
19070,
... |
what is listed under the movements column of the last season ? | SELECT "movements" FROM table_204_117 ORDER BY "season" DESC LIMIT 1 | [
10919,
318,
5610,
739,
262,
8650,
5721,
286,
262,
938,
1622,
5633,
46506,
366,
21084,
902,
1,
16034,
3084,
62,
18638,
62,
17657,
38678,
11050,
366,
6230,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
5610,
739,
262,
8650,
5721,
286,
262,
938,
1622,
5633,
46506,
366,
21084,
902,
1,
16034,
3084,
62,
18638,
62,
17657,
38678,
11050,
366,
6230,
1,
22196,
34,
27564,
2043,
352
] |
What was the game record on March 6? | SELECT "Record" FROM table_29814 WHERE "Date" = 'March 6' | [
2061,
373,
262,
983,
1700,
319,
2805,
718,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
27728,
1415,
33411,
366,
10430,
1,
796,
705,
16192,
718,
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
] | [
2061,
373,
262,
983,
1700,
319,
2805,
718,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
27728,
1415,
33411,
366,
10430,
1,
796,
705,
16192,
718,
6
] |
Who is the competitor with a downhill of more than 55, and 1st DQ run? | SELECT "Competitor" FROM table_50574 WHERE "Downhill" > '55' AND "1st run" = 'dq' | [
8241,
318,
262,
20319,
351,
257,
35390,
286,
517,
621,
5996,
11,
290,
352,
301,
360,
48,
1057,
30,
46506,
366,
7293,
316,
2072,
1,
16034,
3084,
62,
1120,
46900,
33411,
366,
8048,
12639,
1,
1875,
705,
2816,
6,
5357,
366,
16,
301,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20319,
351,
257,
35390,
286,
517,
621,
5996,
11,
290,
352,
301,
360,
48,
1057,
30,
46506,
366,
7293,
316,
2072,
1,
16034,
3084,
62,
1120,
46900,
33411,
366,
8048,
12639,
1,
1875,
705,
2816,
6,
5357,
366,
16,
301,
1... |
what is date of death of subject id 24425? | SELECT demographic.dod FROM demographic WHERE demographic.subject_id = "24425" | [
10919,
318,
3128,
286,
1918,
286,
2426,
4686,
1987,
32114,
30,
46506,
16728,
13,
67,
375,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
25707,
1495,
1
] | [
1,
1,
1,
1,
1,
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,
3128,
286,
1918,
286,
2426,
4686,
1987,
32114,
30,
46506,
16728,
13,
67,
375,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
25707,
1495,
1
] |
What is the elimination number for the time 13:43? | SELECT elimination FROM table_name_74 WHERE time = "13:43" | [
2061,
318,
262,
21472,
1271,
329,
262,
640,
1511,
25,
3559,
30,
46506,
21472,
16034,
3084,
62,
3672,
62,
4524,
33411,
640,
796,
366,
1485,
25,
3559,
1
] | [
1,
1,
1,
1,
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,
21472,
1271,
329,
262,
640,
1511,
25,
3559,
30,
46506,
21472,
16034,
3084,
62,
3672,
62,
4524,
33411,
640,
796,
366,
1485,
25,
3559,
1
] |
What is the episode when the original performaer is diana ross? | SELECT episode FROM table_29547777_1 WHERE original_performer = "Diana Ross" | [
2061,
318,
262,
4471,
618,
262,
2656,
1620,
25534,
318,
288,
7484,
686,
824,
30,
46506,
4471,
16034,
3084,
62,
25710,
2857,
29331,
62,
16,
33411,
2656,
62,
525,
16354,
796,
366,
35,
7484,
9847,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
618,
262,
2656,
1620,
25534,
318,
288,
7484,
686,
824,
30,
46506,
4471,
16034,
3084,
62,
25710,
2857,
29331,
62,
16,
33411,
2656,
62,
525,
16354,
796,
366,
35,
7484,
9847,
1
] |
Who were the running candidates when Samuel Riker was the incumbent? | SELECT candidates FROM table_2668374_10 WHERE incumbent = "Samuel Riker" | [
8241,
547,
262,
2491,
5871,
618,
17100,
371,
18320,
373,
262,
23526,
30,
46506,
5871,
16034,
3084,
62,
2075,
3104,
31020,
62,
940,
33411,
23526,
796,
366,
16305,
2731,
371,
18320,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
2491,
5871,
618,
17100,
371,
18320,
373,
262,
23526,
30,
46506,
5871,
16034,
3084,
62,
2075,
3104,
31020,
62,
940,
33411,
23526,
796,
366,
16305,
2731,
371,
18320,
1
] |
What are the points if the goals against were 260? | SELECT points FROM table_name_95 WHERE goals_against = "260" | [
2061,
389,
262,
2173,
611,
262,
4661,
1028,
547,
21148,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3865,
33411,
4661,
62,
32826,
796,
366,
21719,
1
] | [
1,
1,
1,
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,
2173,
611,
262,
4661,
1028,
547,
21148,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3865,
33411,
4661,
62,
32826,
796,
366,
21719,
1
] |
How many members have the black membership card? | SELECT COUNT(*) FROM member WHERE membership_card = 'Black' | [
2437,
867,
1866,
423,
262,
2042,
9931,
2657,
30,
46506,
327,
28270,
7,
28104,
16034,
2888,
33411,
9931,
62,
9517,
796,
705,
9915,
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
] | [
2437,
867,
1866,
423,
262,
2042,
9931,
2657,
30,
46506,
327,
28270,
7,
28104,
16034,
2888,
33411,
9931,
62,
9517,
796,
705,
9915,
6
] |
Return a scatter chart about the correlation between Team_ID and ACC_Percent , and group by attribute All_Home. | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Home | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
15859,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41058,
8262,
546,
262,
16096,
1022,
4816,
62,
2389,
290,
15859,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060
] |
What was the home teams score agains the team that scored 7.15 (57)? | SELECT "Home team score" FROM table_33258 WHERE "Away team score" = '7.15 (57)' | [
2061,
373,
262,
1363,
3466,
4776,
757,
82,
262,
1074,
326,
7781,
767,
13,
1314,
357,
3553,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2091,
25600,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
22,
13,
1314,
357,
3553... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
3466,
4776,
757,
82,
262,
1074,
326,
7781,
767,
13,
1314,
357,
3553,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
2091,
25600,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
22,
13,
1314,
357,
3553... |
A bar chart for what are the number of the dates in which the mean sea level pressure was between 303 and 31?, display Y-axis from low to high order. | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 ORDER BY COUNT(date) | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
3359,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
3359,
575,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
1603... |
in what year were there the least number of images ? | SELECT "year" FROM table_204_843 ORDER BY "images" LIMIT 1 | [
259,
644,
614,
547,
612,
262,
1551,
1271,
286,
4263,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
23,
3559,
38678,
11050,
366,
17566,
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
] | [
259,
644,
614,
547,
612,
262,
1551,
1271,
286,
4263,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
23,
3559,
38678,
11050,
366,
17566,
1,
27564,
2043,
352
] |
Find the number of patients who were diagnosed with tobacco use disorder and survived | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.long_title = "Tobacco use disorder" | [
16742,
262,
1271,
286,
3871,
508,
547,
14641,
351,
11219,
779,
8967,
290,
11803,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
508,
547,
14641,
351,
11219,
779,
8967,
290,
11803,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
... |
Which Player has a Date of Birth (Age When Delisted) of 13 February 1987 (aged 24)? | SELECT player FROM table_name_85 WHERE date_of_birth__age_when_delisted_ = "13 february 1987 (aged 24)" | [
13828,
7853,
468,
257,
7536,
286,
17647,
357,
23396,
1649,
4216,
6347,
8,
286,
1511,
3945,
12923,
357,
1886,
1987,
19427,
46506,
2137,
16034,
3084,
62,
3672,
62,
5332,
33411,
3128,
62,
1659,
62,
24280,
834,
496,
62,
12518,
62,
12381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
468,
257,
7536,
286,
17647,
357,
23396,
1649,
4216,
6347,
8,
286,
1511,
3945,
12923,
357,
1886,
1987,
19427,
46506,
2137,
16034,
3084,
62,
3672,
62,
5332,
33411,
3128,
62,
1659,
62,
24280,
834,
496,
62,
12518,
62,
12381,
... |
Where is Rix from? | SELECT nat FROM table_name_36 WHERE name = "rix" | [
8496,
318,
371,
844,
422,
30,
46506,
34664,
16034,
3084,
62,
3672,
62,
2623,
33411,
1438,
796,
366,
8609,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
371,
844,
422,
30,
46506,
34664,
16034,
3084,
62,
3672,
62,
2623,
33411,
1438,
796,
366,
8609,
1
] |
how many european baseball championship gold medals does italy need in order to have the same total amount of any type of medal as netherlands ? | SELECT (SELECT "gold" FROM table_204_107 WHERE "nation" = 'netherlands') - (SELECT "gold" FROM table_204_107 WHERE "nation" = 'italy') | [
4919,
867,
11063,
431,
272,
9283,
12184,
3869,
28057,
857,
340,
3400,
761,
287,
1502,
284,
423,
262,
976,
2472,
2033,
286,
597,
2099,
286,
18279,
355,
2010,
372,
4447,
5633,
46506,
357,
46506,
366,
24267,
1,
16034,
3084,
62,
18638,
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... | [
4919,
867,
11063,
431,
272,
9283,
12184,
3869,
28057,
857,
340,
3400,
761,
287,
1502,
284,
423,
262,
976,
2472,
2033,
286,
597,
2099,
286,
18279,
355,
2010,
372,
4447,
5633,
46506,
357,
46506,
366,
24267,
1,
16034,
3084,
62,
18638,
62... |
what is the number of patients less than 70 years of age who were tested for total iron binding capacity? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "70" AND lab.label = "Iron Binding Capacity, Total" | [
10919,
318,
262,
1271,
286,
3871,
1342,
621,
4317,
812,
286,
2479,
508,
547,
6789,
329,
2472,
6953,
12765,
5339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
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... | [
10919,
318,
262,
1271,
286,
3871,
1342,
621,
4317,
812,
286,
2479,
508,
547,
6789,
329,
2472,
6953,
12765,
5339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
224... |
How many attended the game with a record of 43-34? | SELECT COUNT(attendance) FROM table_name_59 WHERE record = "43-34" | [
2437,
867,
9141,
262,
983,
351,
257,
1700,
286,
5946,
12,
2682,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1700,
796,
366,
3559,
12,
2682,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9141,
262,
983,
351,
257,
1700,
286,
5946,
12,
2682,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1700,
796,
366,
3559,
12,
2682,
1
] |
What position does the player from the MLS New England Revolution team hold? | SELECT position FROM table_name_35 WHERE mls_team = "new england revolution" | [
2061,
2292,
857,
262,
2137,
422,
262,
13981,
968,
4492,
9303,
1074,
1745,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2327,
33411,
285,
7278,
62,
15097,
796,
366,
3605,
1786,
1044,
5854,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
857,
262,
2137,
422,
262,
13981,
968,
4492,
9303,
1074,
1745,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
2327,
33411,
285,
7278,
62,
15097,
796,
366,
3605,
1786,
1044,
5854,
1
] |
Find date_address_from and the sum of monthly_rental bin date_address_from by weekday, and visualize them by a bar chart. | SELECT date_address_from, SUM(monthly_rental) FROM Student_Addresses ORDER BY monthly_rental DESC | [
16742,
3128,
62,
21975,
62,
6738,
290,
262,
2160,
286,
9651,
62,
1156,
282,
9874,
3128,
62,
21975,
62,
6738,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
3128,
62,
21975,
62,
6738,
11,
35683,
7,
8424,
306,
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
] | [
16742,
3128,
62,
21975,
62,
6738,
290,
262,
2160,
286,
9651,
62,
1156,
282,
9874,
3128,
62,
21975,
62,
6738,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
3128,
62,
21975,
62,
6738,
11,
35683,
7,
8424,
306,
62,
... |
What is the comp for the year 1989? | SELECT comp FROM table_name_42 WHERE year = "1989" | [
2061,
318,
262,
552,
329,
262,
614,
11104,
30,
46506,
552,
16034,
3084,
62,
3672,
62,
3682,
33411,
614,
796,
366,
25475,
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,
552,
329,
262,
614,
11104,
30,
46506,
552,
16034,
3084,
62,
3672,
62,
3682,
33411,
614,
796,
366,
25475,
1
] |
If the population is 1858, what is the maximum ansi code? | SELECT MAX("ANSI code") FROM table_1922 WHERE "Pop. (2010)" = '1858' | [
1532,
262,
3265,
318,
1248,
3365,
11,
644,
318,
262,
5415,
9093,
72,
2438,
30,
46506,
25882,
7203,
1565,
11584,
2438,
4943,
16034,
3084,
62,
1129,
1828,
33411,
366,
16979,
13,
357,
10333,
16725,
796,
705,
1507,
3365,
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
] | [
1532,
262,
3265,
318,
1248,
3365,
11,
644,
318,
262,
5415,
9093,
72,
2438,
30,
46506,
25882,
7203,
1565,
11584,
2438,
4943,
16034,
3084,
62,
1129,
1828,
33411,
366,
16979,
13,
357,
10333,
16725,
796,
705,
1507,
3365,
6
] |
What the lost that has less than 10 points and less than 38 goals scored? | SELECT SUM("Lost") FROM table_63420 WHERE "Goals Scored" < '38' AND "Points" < '10' | [
2061,
262,
2626,
326,
468,
1342,
621,
838,
2173,
290,
1342,
621,
4353,
4661,
7781,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
21,
2682,
1238,
33411,
366,
5247,
874,
1446,
1850,
1,
1279,
705,
2548,
6,
5357,
366,
40710,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2626,
326,
468,
1342,
621,
838,
2173,
290,
1342,
621,
4353,
4661,
7781,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
21,
2682,
1238,
33411,
366,
5247,
874,
1446,
1850,
1,
1279,
705,
2548,
6,
5357,
366,
40710,
1,
... |
Show the number of male and female assistant professors. Plot them as bar chart. | SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex | [
15307,
262,
1271,
286,
4257,
290,
4048,
8796,
20339,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
301,
15404,
1,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
1271,
286,
4257,
290,
4048,
8796,
20339,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
33411,
10916,
796,
366,
1722,
301,
15404,
1,
44441,
11050,
14419
] |
What is the minimum number of 50s scored? | SELECT MIN(50 AS s) FROM table_27922491_24 | [
2061,
318,
262,
5288,
1271,
286,
2026,
82,
7781,
30,
46506,
20625,
7,
1120,
7054,
264,
8,
16034,
3084,
62,
1983,
5892,
1731,
6420,
62,
1731
] | [
1,
1,
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,
5288,
1271,
286,
2026,
82,
7781,
30,
46506,
20625,
7,
1120,
7054,
264,
8,
16034,
3084,
62,
1983,
5892,
1731,
6420,
62,
1731
] |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and list names in asc order. | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
1351,
3891,
287... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
6538,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
1351,
3891,
287... |
What is the Population of the Parish with an Area km 2 of 236.76? | SELECT MIN(population) FROM table_name_85 WHERE area_km_2 = 236.76 | [
2061,
318,
262,
20133,
286,
262,
35240,
351,
281,
9498,
10571,
362,
286,
34044,
13,
4304,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
1989,
62,
13276,
62,
17,
796,
34044,
13,
4304
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20133,
286,
262,
35240,
351,
281,
9498,
10571,
362,
286,
34044,
13,
4304,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
1989,
62,
13276,
62,
17,
796,
34044,
13,
4304
] |
What competition had a score of 3-0, and a result of 4-1? | SELECT competition FROM table_name_8 WHERE score = "3-0" AND result = "4-1" | [
2061,
5449,
550,
257,
4776,
286,
513,
12,
15,
11,
290,
257,
1255,
286,
604,
12,
16,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
23,
33411,
4776,
796,
366,
18,
12,
15,
1,
5357,
1255,
796,
366,
19,
12,
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
] | [
2061,
5449,
550,
257,
4776,
286,
513,
12,
15,
11,
290,
257,
1255,
286,
604,
12,
16,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
23,
33411,
4776,
796,
366,
18,
12,
15,
1,
5357,
1255,
796,
366,
19,
12,
16,
1
] |
Which course has a flat stage on 4 September? | SELECT course FROM table_name_21 WHERE type = "flat stage" AND date = "4 september" | [
13828,
1781,
468,
257,
6228,
3800,
319,
604,
2693,
30,
46506,
1781,
16034,
3084,
62,
3672,
62,
2481,
33411,
2099,
796,
366,
38568,
3800,
1,
5357,
3128,
796,
366,
19,
384,
457,
1491,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1781,
468,
257,
6228,
3800,
319,
604,
2693,
30,
46506,
1781,
16034,
3084,
62,
3672,
62,
2481,
33411,
2099,
796,
366,
38568,
3800,
1,
5357,
3128,
796,
366,
19,
384,
457,
1491,
1
] |
When is the most recent year with more than 27 points and more than 5 wins? | SELECT MAX("Year") FROM table_35200 WHERE "Points" > '27' AND "Wins" > '5' | [
2215,
318,
262,
749,
2274,
614,
351,
517,
621,
2681,
2173,
290,
517,
621,
642,
7864,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2327,
2167,
33411,
366,
40710,
1,
1875,
705,
1983,
6,
5357,
366,
54,
1040,
1,
1875,
705,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
318,
262,
749,
2274,
614,
351,
517,
621,
2681,
2173,
290,
517,
621,
642,
7864,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
2327,
2167,
33411,
366,
40710,
1,
1875,
705,
1983,
6,
5357,
366,
54,
1040,
1,
1875,
705,
20,
... |
what was the daily minimum amount of pe26 ng in patient 31880's body until 01/2104? | SELECT MIN(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 = 31880)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab... | [
10919,
373,
262,
4445,
5288,
2033,
286,
613,
2075,
23370,
287,
5827,
39320,
1795,
338,
1767,
1566,
5534,
14,
17,
13464,
30,
46506,
20625,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4445,
5288,
2033,
286,
613,
2075,
23370,
287,
5827,
39320,
1795,
338,
1767,
1566,
5534,
14,
17,
13464,
30,
46506,
20625,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
... |
Who had the highest points during the game with a record of 2-7? | SELECT "High points" FROM table_25840 WHERE "Record" = '2-7' | [
8241,
550,
262,
4511,
2173,
1141,
262,
983,
351,
257,
1700,
286,
362,
12,
22,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
25600,
1821,
33411,
366,
23739,
1,
796,
705,
17,
12,
22,
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
] | [
8241,
550,
262,
4511,
2173,
1141,
262,
983,
351,
257,
1700,
286,
362,
12,
22,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
25600,
1821,
33411,
366,
23739,
1,
796,
705,
17,
12,
22,
6
] |
what is the number of patients whose diagnoses short title is accid in resident instit and lab test abnormal status is abnormal? | 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 = "Accid in resident instit" AND lab.flag = "abnormal" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
697,
312,
287,
6623,
6113,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
697,
312,
287,
6623,
6113,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
WHAT IS THE PLAYER WITH A TO PAR OF E, AND SCORE OF 68-72=140? | SELECT "Player" FROM table_45470 WHERE "To par" = 'e' AND "Score" = '68-72=140' | [
32971,
3180,
3336,
28180,
1137,
13315,
317,
5390,
29463,
3963,
412,
11,
5357,
6374,
6965,
3963,
8257,
12,
4761,
28,
15187,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2231,
27790,
33411,
366,
2514,
1582,
1,
796,
705,
68,
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,
1
] | [
32971,
3180,
3336,
28180,
1137,
13315,
317,
5390,
29463,
3963,
412,
11,
5357,
6374,
6965,
3963,
8257,
12,
4761,
28,
15187,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2231,
27790,
33411,
366,
2514,
1582,
1,
796,
705,
68,
6,
5357,
366,
... |
What is the Country of the rowers with a Rank of 4? | SELECT country FROM table_name_11 WHERE rank = 4 | [
2061,
318,
262,
12946,
286,
262,
5752,
364,
351,
257,
10916,
286,
604,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1157,
33411,
4279,
796,
604
] | [
1,
1,
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,
5752,
364,
351,
257,
10916,
286,
604,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1157,
33411,
4279,
796,
604
] |
What is the average Frequency, when Type is 'Norte o', and when Brand is 'La Cotorra'? | SELECT AVG(frequency) FROM table_name_87 WHERE type = "norteño" AND brand = "la cotorra" | [
2061,
318,
262,
2811,
31902,
11,
618,
5994,
318,
705,
45,
419,
68,
267,
3256,
290,
618,
13512,
318,
705,
14772,
327,
20965,
430,
30960,
46506,
35224,
7,
35324,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
2099,
796,
366,
77,
419,
68,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31902,
11,
618,
5994,
318,
705,
45,
419,
68,
267,
3256,
290,
618,
13512,
318,
705,
14772,
327,
20965,
430,
30960,
46506,
35224,
7,
35324,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
2099,
796,
366,
77,
419,
68,
... |
what is the top five most common diagnosis for which patients were diagnosed during the same month after being diagnosed until 2103 with tracheostomy status? | 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,
318,
262,
1353,
1936,
749,
2219,
13669,
329,
543,
3871,
547,
14641,
1141,
262,
976,
1227,
706,
852,
14641,
1566,
362,
15197,
351,
491,
4891,
455,
9145,
3722,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1353,
1936,
749,
2219,
13669,
329,
543,
3871,
547,
14641,
1141,
262,
976,
1227,
706,
852,
14641,
1566,
362,
15197,
351,
491,
4891,
455,
9145,
3722,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
... |
Give the order ids for all orders, as well as the total product quantity in each. | SELECT order_id, SUM(product_quantity) FROM order_items GROUP BY order_id | [
23318,
262,
1502,
220,
2340,
329,
477,
6266,
11,
355,
880,
355,
262,
2472,
1720,
12040,
287,
1123,
13,
46506,
1502,
62,
312,
11,
35683,
7,
11167,
62,
40972,
414,
8,
16034,
1502,
62,
23814,
44441,
11050,
1502,
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
] | [
23318,
262,
1502,
220,
2340,
329,
477,
6266,
11,
355,
880,
355,
262,
2472,
1720,
12040,
287,
1123,
13,
46506,
1502,
62,
312,
11,
35683,
7,
11167,
62,
40972,
414,
8,
16034,
1502,
62,
23814,
44441,
11050,
1502,
62,
312
] |
what is minimum age of patients whose marital status is widowed and admission location is trsf within this facility? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.admission_location = "TRSF WITHIN THIS FACILITY" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
13938,
4067,
318,
491,
28202,
1626,
428,
6841,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
5... |
What is the country with a 68-73-69=210 score? | SELECT country FROM table_name_91 WHERE score = 68 - 73 - 69 = 210 | [
2061,
318,
262,
1499,
351,
257,
8257,
12,
4790,
12,
3388,
28,
21536,
4776,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
6420,
33411,
4776,
796,
8257,
532,
8854,
532,
8644,
796,
20064
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
351,
257,
8257,
12,
4790,
12,
3388,
28,
21536,
4776,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
6420,
33411,
4776,
796,
8257,
532,
8854,
532,
8644,
796,
20064
] |
what is minimum age of patients whose primary disease is abdominal pain and days of hospital stay is 5? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "ABDOMINAL PAIN" AND demographic.days_stay = "5" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
4165,
4369,
318,
32692,
2356,
290,
1528,
286,
4436,
2652,
318,
642,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
6242,
39170,
17961,
8147,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
2479,
286,
3871,
3025,
4165,
4369,
318,
32692,
2356,
290,
1528,
286,
4436,
2652,
318,
642,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
6242,
39170,
17961,
8147,
... |
dwight scheyer was the player drafter previous to who ? | SELECT "player" FROM table_203_815 WHERE "pick #" = (SELECT "pick #" FROM table_203_815 WHERE "player" = 'dwight scheyer') + 1 | [
67,
86,
432,
3897,
9860,
373,
262,
2137,
28841,
637,
2180,
284,
508,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
49503,
33411,
366,
27729,
1303,
1,
796,
357,
46506,
366,
27729,
1303,
1,
16034,
3084,
62,
22416,
62,
49503,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
67,
86,
432,
3897,
9860,
373,
262,
2137,
28841,
637,
2180,
284,
508,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
49503,
33411,
366,
27729,
1303,
1,
796,
357,
46506,
366,
27729,
1303,
1,
16034,
3084,
62,
22416,
62,
49503,
... |
tell me the change in the arterial bp [diastolic] of patient 14467 second measured on the current icu visit compared to the first value measured on the current icu visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14467) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_i... | [
33331,
502,
262,
1487,
287,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
20224,
3134,
1218,
8630,
319,
262,
1459,
14158,
84,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
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... | [
33331,
502,
262,
1487,
287,
262,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
286,
5827,
20224,
3134,
1218,
8630,
319,
262,
1459,
14158,
84,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
1459,
14158,
84,
3187,
30,
46506,
357,
... |
What is the highest number of points team vit ria, which had more than 38 played, had? | SELECT MAX("Points") FROM table_38621 WHERE "Team" = 'vitória' AND "Played" > '38' | [
2061,
318,
262,
4511,
1271,
286,
2173,
1074,
9090,
374,
544,
11,
543,
550,
517,
621,
4353,
2826,
11,
550,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
21734,
2481,
33411,
366,
15592,
1,
796,
705,
85,
270,
10205,
7496,
6,
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
] | [
2061,
318,
262,
4511,
1271,
286,
2173,
1074,
9090,
374,
544,
11,
543,
550,
517,
621,
4353,
2826,
11,
550,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
21734,
2481,
33411,
366,
15592,
1,
796,
705,
85,
270,
10205,
7496,
6,
53... |
Posts edited after your comment. | SELECT p.LastEditDate AS "edit_date", p.Id AS "post_link", c.Text AS Comment FROM Posts AS p INNER JOIN Comments AS c ON c.PostId = p.Id WHERE c.UserId = '##UserId##' AND c.CreationDate < p.LastEditDate ORDER BY p.LastEditDate DESC | [
21496,
13012,
706,
534,
2912,
13,
46506,
279,
13,
5956,
18378,
10430,
7054,
366,
19312,
62,
4475,
1600,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
269,
13,
8206,
7054,
18957,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
19502... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13012,
706,
534,
2912,
13,
46506,
279,
13,
5956,
18378,
10430,
7054,
366,
19312,
62,
4475,
1600,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
269,
13,
8206,
7054,
18957,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
19502... |
Name the june when it has july of 84 f / 28.9 c | SELECT "Jun." FROM table_69115 WHERE "Jul." = '84 °f / 28.9 °c' | [
5376,
262,
474,
1726,
618,
340,
468,
474,
2062,
286,
9508,
277,
1220,
2579,
13,
24,
269,
46506,
366,
22396,
526,
16034,
3084,
62,
3388,
15363,
33411,
366,
16980,
526,
796,
705,
5705,
22074,
69,
1220,
2579,
13,
24,
22074,
66,
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
] | [
5376,
262,
474,
1726,
618,
340,
468,
474,
2062,
286,
9508,
277,
1220,
2579,
13,
24,
269,
46506,
366,
22396,
526,
16034,
3084,
62,
3388,
15363,
33411,
366,
16980,
526,
796,
705,
5705,
22074,
69,
1220,
2579,
13,
24,
22074,
66,
6
] |
What was the report at State Sports Centre? | SELECT report FROM table_name_43 WHERE venue = "state sports centre" | [
2061,
373,
262,
989,
379,
1812,
7092,
9072,
30,
46506,
989,
16034,
3084,
62,
3672,
62,
3559,
33411,
14359,
796,
366,
5219,
5701,
7372,
1
] | [
1,
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,
989,
379,
1812,
7092,
9072,
30,
46506,
989,
16034,
3084,
62,
3672,
62,
3559,
33411,
14359,
796,
366,
5219,
5701,
7372,
1
] |
Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner? | SELECT "20 Questions" FROM table_41517 WHERE "Cover model" = 'kimberley conrad hefner' | [
8241,
373,
262,
1160,
20396,
2665,
8998,
379,
618,
17546,
9104,
373,
36015,
1636,
39708,
679,
69,
1008,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
35038,
1558,
33411,
366,
27245,
2746,
1,
796,
705,
74,
320,
527,
1636,
369,
6335,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1160,
20396,
2665,
8998,
379,
618,
17546,
9104,
373,
36015,
1636,
39708,
679,
69,
1008,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
35038,
1558,
33411,
366,
27245,
2746,
1,
796,
705,
74,
320,
527,
1636,
369,
6335,... |
I want the constellation for declination for 45 and right ascension of 07h58m | SELECT "Constellation" FROM table_55301 WHERE "Declination ( J2000 )" = '°45′' AND "Right ascension ( J2000 )" = '07h58m' | [
40,
765,
262,
38712,
329,
2377,
1883,
329,
4153,
290,
826,
10570,
3004,
286,
8753,
71,
3365,
76,
46506,
366,
34184,
28828,
1,
16034,
3084,
62,
2816,
18938,
33411,
366,
37835,
1883,
357,
449,
11024,
1267,
1,
796,
705,
7200,
2231,
17478... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
38712,
329,
2377,
1883,
329,
4153,
290,
826,
10570,
3004,
286,
8753,
71,
3365,
76,
46506,
366,
34184,
28828,
1,
16034,
3084,
62,
2816,
18938,
33411,
366,
37835,
1883,
357,
449,
11024,
1267,
1,
796,
705,
7200,
2231,
17478... |
Find the id and local authority of the station whose maximum precipitation is higher than 50 Visualize by bar chart, I want to list in asc by the bars. | SELECT local_authority, id FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id ORDER BY local_authority | [
16742,
262,
4686,
290,
1957,
4934,
286,
262,
4429,
3025,
5415,
32025,
318,
2440,
621,
2026,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1351,
287,
10570,
416,
262,
9210,
13,
46506,
1957,
62,
9800,
414,
11,
4686,
16034,
10273,
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... | [
16742,
262,
4686,
290,
1957,
4934,
286,
262,
4429,
3025,
5415,
32025,
318,
2440,
621,
2026,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1351,
287,
10570,
416,
262,
9210,
13,
46506,
1957,
62,
9800,
414,
11,
4686,
16034,
10273,
62,... |
how many patients have diagnosis icd9 code 5070 and have had joint fluid lab test? | 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 = "5070" AND lab.fluid = "Joint Fluid" | [
4919,
867,
3871,
423,
13669,
14158,
67,
24,
2438,
2026,
2154,
290,
423,
550,
6466,
11711,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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... | [
4919,
867,
3871,
423,
13669,
14158,
67,
24,
2438,
2026,
2154,
290,
423,
550,
6466,
11711,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
1... |
Return a bar chart about the distribution of meter_200 and the sum of ID , and group by attribute meter_200. | SELECT meter_200, SUM(ID) FROM swimmer GROUP BY meter_200 | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
2167,
290,
262,
2160,
286,
4522,
837,
290,
1448,
416,
11688,
16430,
62,
2167,
13,
46506,
16430,
62,
2167,
11,
35683,
7,
2389,
8,
16034,
9422,
647,
44441,
11050,
16430,
62,
2167
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16430,
62,
2167,
290,
262,
2160,
286,
4522,
837,
290,
1448,
416,
11688,
16430,
62,
2167,
13,
46506,
16430,
62,
2167,
11,
35683,
7,
2389,
8,
16034,
9422,
647,
44441,
11050,
16430,
62,
2167
] |
Which institution has a nickname of Blue Hens? | SELECT institution FROM table_name_88 WHERE nickname = "blue hens" | [
13828,
9901,
468,
257,
21814,
286,
4518,
367,
641,
30,
46506,
9901,
16034,
3084,
62,
3672,
62,
3459,
33411,
21814,
796,
366,
17585,
339,
5907,
1
] | [
1,
1,
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,
9901,
468,
257,
21814,
286,
4518,
367,
641,
30,
46506,
9901,
16034,
3084,
62,
3672,
62,
3459,
33411,
21814,
796,
366,
17585,
339,
5907,
1
] |
Return a scatter chart about the correlation between student_id and address_id . | SELECT student_id, address_id FROM Student_Addresses ORDER BY monthly_rental DESC | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
3710,
62,
312,
290,
2209,
62,
312,
764,
46506,
3710,
62,
312,
11,
2209,
62,
312,
16034,
13613,
62,
4550,
16746,
38678,
11050,
9651,
62,
1156,
282,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
41058,
8262,
546,
262,
16096,
1022,
3710,
62,
312,
290,
2209,
62,
312,
764,
46506,
3710,
62,
312,
11,
2209,
62,
312,
16034,
13613,
62,
4550,
16746,
38678,
11050,
9651,
62,
1156,
282,
22196,
34
] |
What is the value for 2011 when `a` is the value for 2009, and 4r is the value for 2013? | SELECT 2011 FROM table_name_89 WHERE 2009 = "a" AND 2013 = "4r" | [
2061,
318,
262,
1988,
329,
2813,
618,
4600,
64,
63,
318,
262,
1988,
329,
3717,
11,
290,
604,
81,
318,
262,
1988,
329,
2211,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
4531,
33411,
3717,
796,
366,
64,
1,
5357,
2211,
796,
366,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1988,
329,
2813,
618,
4600,
64,
63,
318,
262,
1988,
329,
3717,
11,
290,
604,
81,
318,
262,
1988,
329,
2211,
30,
46506,
2813,
16034,
3084,
62,
3672,
62,
4531,
33411,
3717,
796,
366,
64,
1,
5357,
2211,
796,
366,
19,
... |
display all the information about the department Marketing. | SELECT * FROM departments WHERE department_name = 'Marketing' | [
13812,
477,
262,
1321,
546,
262,
5011,
22137,
13,
46506,
1635,
16034,
13346,
33411,
5011,
62,
3672,
796,
705,
9704,
13629,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13812,
477,
262,
1321,
546,
262,
5011,
22137,
13,
46506,
1635,
16034,
13346,
33411,
5011,
62,
3672,
796,
705,
9704,
13629,
6
] |
For all employees who have the letters D or S in their first name, visualize a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id, order by the y-axis from low to high. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1502,
416... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
1502,
416... |
tell me the price of a procedure called agent specific therapy - calcium channel blockers overdose? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'agent specific therapy - calcium channel blockers overdose') | [
33331,
502,
262,
2756,
286,
257,
8771,
1444,
5797,
2176,
9102,
532,
19700,
6518,
43805,
27357,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
42487,
6,
5357,
1575,
13,
15596,
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... | [
33331,
502,
262,
2756,
286,
257,
8771,
1444,
5797,
2176,
9102,
532,
19700,
6518,
43805,
27357,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
42487,
6,
5357,
1575,
13,
15596,
312,... |
provide the number of patients whose diagnoses long title is hypovolemia and lab test category is chemistry? | 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.long_title = "Hypovolemia" AND lab."CATEGORY" = "Chemistry" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
5328,
709,
2305,
20730,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
5328,
709,
2305,
20730,
290,
2248,
1332,
6536,
318,
16585,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Most reputation user from sri lanka. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%sri lanka%' ORDER BY Reputation DESC | [
6943,
8507,
2836,
422,
264,
380,
300,
15927,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6943,
8507,
2836,
422,
264,
380,
300,
15927,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
334... |
what is the drug that has been prescribed patient 14467 for two or more times in this month? | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14467) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 ... | [
10919,
318,
262,
2563,
326,
468,
587,
14798,
5827,
20224,
3134,
329,
734,
393,
517,
1661,
287,
428,
1227,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
326,
468,
587,
14798,
5827,
20224,
3134,
329,
734,
393,
517,
1661,
287,
428,
1227,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7054,
... |
Who is the opponent on November 14? | SELECT "Opponent" FROM table_49893 WHERE "Date" = 'november 14' | [
8241,
318,
262,
6125,
319,
3389,
1478,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2920,
49682,
33411,
366,
10430,
1,
796,
705,
77,
3239,
1478,
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
] | [
8241,
318,
262,
6125,
319,
3389,
1478,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2920,
49682,
33411,
366,
10430,
1,
796,
705,
77,
3239,
1478,
6
] |
search for (possible) cat abuse. | SELECT Id, Title FROM Posts WHERE Body LIKE '%grep%' | [
12947,
329,
357,
79,
4733,
8,
3797,
5076,
13,
46506,
5121,
11,
11851,
16034,
12043,
33411,
12290,
34178,
705,
4,
70,
7856,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12947,
329,
357,
79,
4733,
8,
3797,
5076,
13,
46506,
5121,
11,
11851,
16034,
12043,
33411,
12290,
34178,
705,
4,
70,
7856,
4,
6
] |
When middle assyrian empire is the ubaid period in mesopotamia what is the copper age? | SELECT "Copper Age" FROM table_26148 WHERE "Ubaid period in Mesopotamia" = 'Middle Assyrian Empire' | [
2215,
3504,
840,
88,
4484,
13735,
318,
262,
20967,
1698,
2278,
287,
18842,
43372,
49442,
644,
318,
262,
15317,
2479,
30,
46506,
366,
7222,
2848,
7129,
1,
16034,
3084,
62,
2075,
18294,
33411,
366,
36609,
1698,
2278,
287,
14937,
43372,
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
] | [
2215,
3504,
840,
88,
4484,
13735,
318,
262,
20967,
1698,
2278,
287,
18842,
43372,
49442,
644,
318,
262,
15317,
2479,
30,
46506,
366,
7222,
2848,
7129,
1,
16034,
3084,
62,
2075,
18294,
33411,
366,
36609,
1698,
2278,
287,
14937,
43372,
49... |
What was the Date of the game held during Week 1, that had an Attendance greater than 50,637? | SELECT "Date" FROM table_40397 WHERE "Attendance" > '50,637' AND "Week" = '1' | [
2061,
373,
262,
7536,
286,
262,
983,
2714,
1141,
6119,
352,
11,
326,
550,
281,
46502,
590,
3744,
621,
2026,
11,
21,
2718,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
33372,
33411,
366,
8086,
437,
590,
1,
1875,
705,
1120,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
7536,
286,
262,
983,
2714,
1141,
6119,
352,
11,
326,
550,
281,
46502,
590,
3744,
621,
2026,
11,
21,
2718,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1821,
33372,
33411,
366,
8086,
437,
590,
1,
1875,
705,
1120,
11,
... |
Name the attendance for loss result and salford city reds | SELECT "Attendance" FROM table_24229 WHERE "Result" = 'Loss' AND "Opponent" = 'Salford City Reds' | [
5376,
262,
14858,
329,
2994,
1255,
290,
264,
1604,
585,
1748,
2266,
82,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
1731,
23539,
33411,
366,
23004,
1,
796,
705,
43,
793,
6,
5357,
366,
27524,
3471,
1,
796,
705,
50,
1604,
585,
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
] | [
5376,
262,
14858,
329,
2994,
1255,
290,
264,
1604,
585,
1748,
2266,
82,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
1731,
23539,
33411,
366,
23004,
1,
796,
705,
43,
793,
6,
5357,
366,
27524,
3471,
1,
796,
705,
50,
1604,
585,
2... |
What club has a league/division of fourth division? | SELECT club FROM table_name_95 WHERE league_division = "fourth division" | [
2061,
3430,
468,
257,
4652,
14,
21426,
286,
5544,
7297,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
3865,
33411,
4652,
62,
21426,
796,
366,
49393,
7297,
1
] | [
1,
1,
1,
1,
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,
3430,
468,
257,
4652,
14,
21426,
286,
5544,
7297,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
3865,
33411,
4652,
62,
21426,
796,
366,
49393,
7297,
1
] |
What school is located in Michigan City? | SELECT school FROM table_name_37 WHERE location = "michigan city" | [
2061,
1524,
318,
5140,
287,
7055,
2254,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
2718,
33411,
4067,
796,
366,
76,
488,
5516,
1748,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1524,
318,
5140,
287,
7055,
2254,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
2718,
33411,
4067,
796,
366,
76,
488,
5516,
1748,
1
] |
Who was skip for the country whose points for (PF) was 73? | SELECT "Skip" FROM table_20826 WHERE "PF" = '73' | [
8241,
373,
14267,
329,
262,
1499,
3025,
2173,
329,
357,
42668,
8,
373,
8854,
30,
46506,
366,
50232,
1,
16034,
3084,
62,
21315,
2075,
33411,
366,
42668,
1,
796,
705,
4790,
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
] | [
8241,
373,
14267,
329,
262,
1499,
3025,
2173,
329,
357,
42668,
8,
373,
8854,
30,
46506,
366,
50232,
1,
16034,
3084,
62,
21315,
2075,
33411,
366,
42668,
1,
796,
705,
4790,
6
] |
Who was the home team at the game that had a score of 2 2? | SELECT "Home" FROM table_52387 WHERE "Score" = '2 – 2' | [
8241,
373,
262,
1363,
1074,
379,
262,
983,
326,
550,
257,
4776,
286,
362,
362,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
49803,
5774,
33411,
366,
26595,
1,
796,
705,
17,
784,
362,
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
] | [
8241,
373,
262,
1363,
1074,
379,
262,
983,
326,
550,
257,
4776,
286,
362,
362,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
49803,
5774,
33411,
366,
26595,
1,
796,
705,
17,
784,
362,
6
] |
calculate the number of patients treated with base drug when admited to emergency. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug_type = "BASE" | [
9948,
3129,
378,
262,
1271,
286,
3871,
5716,
351,
2779,
2563,
618,
6178,
863,
284,
6334,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
1271,
286,
3871,
5716,
351,
2779,
2563,
618,
6178,
863,
284,
6334,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
181... |
What date did the DVD for season six come out in region 2? | SELECT region_2 FROM table_1067134_1 WHERE dvd_name = "Season Six" | [
2061,
3128,
750,
262,
12490,
329,
1622,
2237,
1282,
503,
287,
3814,
362,
30,
46506,
3814,
62,
17,
16034,
3084,
62,
940,
3134,
19880,
62,
16,
33411,
288,
20306,
62,
3672,
796,
366,
18960,
9699,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
750,
262,
12490,
329,
1622,
2237,
1282,
503,
287,
3814,
362,
30,
46506,
3814,
62,
17,
16034,
3084,
62,
940,
3134,
19880,
62,
16,
33411,
288,
20306,
62,
3672,
796,
366,
18960,
9699,
1
] |
For those employees whose first name is ending with the letter m, show the frequency of the first name using a bar chart, sort X-axis from low to high order. | SELECT FIRST_NAME, COUNT(FIRST_NAME) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY FIRST_NAME | [
1890,
883,
4409,
3025,
717,
1438,
318,
7464,
351,
262,
3850,
285,
11,
905,
262,
8373,
286,
262,
717,
1438,
1262,
257,
2318,
8262,
11,
3297,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
31328,
62,
20608,
11,
327,
28270,
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... | [
1890,
883,
4409,
3025,
717,
1438,
318,
7464,
351,
262,
3850,
285,
11,
905,
262,
8373,
286,
262,
717,
1438,
1262,
257,
2318,
8262,
11,
3297,
1395,
12,
22704,
422,
1877,
284,
1029,
1502,
13,
46506,
31328,
62,
20608,
11,
327,
28270,
7,... |
What is the Telugu word for in Mongolian? | SELECT "Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41" FROM table_19118 WHERE "Mongolian" = 'Хонгорцог' | [
2061,
318,
262,
12088,
45284,
1573,
329,
287,
42188,
666,
30,
46506,
366,
33317,
45284,
3467,
84,
15,
66,
1731,
59,
84,
15,
66,
3510,
59,
84,
15,
66,
2624,
59,
84,
15,
66,
3901,
59,
84,
15,
66,
1558,
59,
84,
15,
66,
3901,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12088,
45284,
1573,
329,
287,
42188,
666,
30,
46506,
366,
33317,
45284,
3467,
84,
15,
66,
1731,
59,
84,
15,
66,
3510,
59,
84,
15,
66,
2624,
59,
84,
15,
66,
3901,
59,
84,
15,
66,
1558,
59,
84,
15,
66,
3901,
1,
... |
how many different positions are there? | SELECT COUNT(DISTINCT POSITION) FROM player | [
4919,
867,
1180,
6116,
389,
612,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
28069,
17941,
8,
16034,
2137
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
1180,
6116,
389,
612,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
28069,
17941,
8,
16034,
2137
] |
What is the transfer fee for Gravgaard? | SELECT transfer_fee FROM table_name_94 WHERE type = "transfer" AND name = "gravgaard" | [
2061,
318,
262,
4351,
6838,
329,
32599,
36232,
30,
46506,
4351,
62,
39071,
16034,
3084,
62,
3672,
62,
5824,
33411,
2099,
796,
366,
39437,
1,
5357,
1438,
796,
366,
70,
4108,
36232,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4351,
6838,
329,
32599,
36232,
30,
46506,
4351,
62,
39071,
16034,
3084,
62,
3672,
62,
5824,
33411,
2099,
796,
366,
39437,
1,
5357,
1438,
796,
366,
70,
4108,
36232,
1
] |
what is the affiliation of charles h. brand | SELECT party FROM table_1342379_10 WHERE incumbent = "Charles H. Brand" | [
10919,
318,
262,
26218,
286,
1149,
829,
289,
13,
4508,
46506,
2151,
16034,
3084,
62,
19880,
1954,
3720,
62,
940,
33411,
23526,
796,
366,
28711,
367,
13,
13512,
1
] | [
1,
1,
1,
1,
1,
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,
26218,
286,
1149,
829,
289,
13,
4508,
46506,
2151,
16034,
3084,
62,
19880,
1954,
3720,
62,
940,
33411,
23526,
796,
366,
28711,
367,
13,
13512,
1
] |
what is the number of patients whose diagnoses short title is hemochromatos-rbc trans? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Hemochromatos-rbc trans" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
16869,
5374,
398,
35492,
12,
81,
15630,
1007,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
16869,
5374,
398,
35492,
12,
81,
15630,
1007,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... |
What position does krylja sovetov (russia) play? | SELECT "Position" FROM table_30003 WHERE "College/junior/club team" = 'Krylja Sovetov (Russia)' | [
2061,
2292,
857,
479,
563,
75,
6592,
523,
16809,
709,
357,
81,
31269,
8,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
23924,
18,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
796,
705,
42,
563,
75,
6592,
311,
659,
83,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
857,
479,
563,
75,
6592,
523,
16809,
709,
357,
81,
31269,
8,
711,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
23924,
18,
33411,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
796,
705,
42,
563,
75,
6592,
311,
659,
83,... |
what is the number of patients whose item id is 51256 and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51256" AND lab.flag = "abnormal" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2378,
4686,
318,
22243,
3980,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2378,
4686,
318,
22243,
3980,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
give me the number of patients whose diagnoses icd9 code is 55221 and lab test fluid is pleural? | 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 = "55221" AND lab.fluid = "Pleural" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
5996,
26115,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
5996,
26115,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... |
WHAT IS THE APPOINTMENT DATE FOR AC HORSENS? | SELECT date_of_appointment FROM table_name_33 WHERE team = "ac horsens" | [
32971,
3180,
3336,
3486,
16402,
12394,
10979,
360,
6158,
7473,
7125,
367,
20673,
16938,
30,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
3672,
62,
2091,
33411,
1074,
796,
366,
330,
45334,
641,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3486,
16402,
12394,
10979,
360,
6158,
7473,
7125,
367,
20673,
16938,
30,
46506,
3128,
62,
1659,
62,
1324,
49805,
16034,
3084,
62,
3672,
62,
2091,
33411,
1074,
796,
366,
330,
45334,
641,
1
] |
What was the result when the attendance was 12,000? | SELECT result FROM table_name_77 WHERE attendance = "12,000" | [
2061,
373,
262,
1255,
618,
262,
14858,
373,
1105,
11,
830,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3324,
33411,
14858,
796,
366,
1065,
11,
830,
1
] | [
1,
1,
1,
1,
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,
1255,
618,
262,
14858,
373,
1105,
11,
830,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3324,
33411,
14858,
796,
366,
1065,
11,
830,
1
] |
On which date did Ian Mosey finish runner-up? | SELECT "Date" FROM table_40010 WHERE "Runner(s)-up" = 'ian mosey' | [
2202,
543,
3128,
750,
12930,
337,
577,
88,
5461,
17490,
12,
929,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
7029,
940,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
666,
285,
577,
88,
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
] | [
2202,
543,
3128,
750,
12930,
337,
577,
88,
5461,
17490,
12,
929,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
7029,
940,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
666,
285,
577,
88,
6
] |
What is the average lane for china? | SELECT AVG("Lane") FROM table_14393 WHERE "Nationality" = 'china' | [
2061,
318,
262,
2811,
11193,
329,
442,
1437,
30,
46506,
35224,
7203,
43,
1531,
4943,
16034,
3084,
62,
1415,
26007,
33411,
366,
16186,
414,
1,
796,
705,
354,
1437,
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,
318,
262,
2811,
11193,
329,
442,
1437,
30,
46506,
35224,
7203,
43,
1531,
4943,
16034,
3084,
62,
1415,
26007,
33411,
366,
16186,
414,
1,
796,
705,
354,
1437,
6
] |
what is maximum age of patients whose death status is 0 and primary disease is pituitary bleed? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.diagnosis = "PITUITARY BLEED" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
4165,
4369,
318,
6028,
5013,
560,
30182,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
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,
1,
1,
1,
1
] | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
4165,
4369,
318,
6028,
5013,
560,
30182,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15,
1,
5357,
... |
how many wins did the team have before march 4,2005 ? | SELECT COUNT(*) FROM table_203_118 WHERE id < (SELECT id FROM table_203_118 WHERE "date" = 'march 4, 2005') AND "score" = 'w' | [
4919,
867,
7864,
750,
262,
1074,
423,
878,
9960,
604,
11,
14315,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
16817,
33411,
4686,
1279,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
16817,
33411,
366,
4475,
1,
796,
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
] | [
4919,
867,
7864,
750,
262,
1074,
423,
878,
9960,
604,
11,
14315,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
16817,
33411,
4686,
1279,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
16817,
33411,
366,
4475,
1,
796,
7... |
what was the foundation of Politeknik Pagoh? | SELECT AVG("Foundation") FROM table_11565 WHERE "Official Name in Malay" = 'politeknik pagoh' | [
10919,
373,
262,
8489,
286,
2165,
578,
15418,
1134,
31525,
1219,
30,
46506,
35224,
7203,
21077,
341,
4943,
16034,
3084,
62,
15363,
2996,
33411,
366,
28529,
6530,
287,
4434,
323,
1,
796,
705,
16104,
578,
15418,
1134,
42208,
1219,
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
] | [
10919,
373,
262,
8489,
286,
2165,
578,
15418,
1134,
31525,
1219,
30,
46506,
35224,
7203,
21077,
341,
4943,
16034,
3084,
62,
15363,
2996,
33411,
366,
28529,
6530,
287,
4434,
323,
1,
796,
705,
16104,
578,
15418,
1134,
42208,
1219,
6
] |
Which class has a rank of 5th? | SELECT "Class" FROM table_39276 WHERE "Rank" = '5th' | [
13828,
1398,
468,
257,
4279,
286,
642,
400,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2670,
27988,
33411,
366,
27520,
1,
796,
705,
20,
400,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1398,
468,
257,
4279,
286,
642,
400,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2670,
27988,
33411,
366,
27520,
1,
796,
705,
20,
400,
6
] |
Name the episode for run time of 22:50 | SELECT "Episode" FROM table_24175 WHERE "Run time" = '22:50' | [
5376,
262,
4471,
329,
1057,
640,
286,
2534,
25,
1120,
46506,
366,
23758,
1,
16034,
3084,
62,
1731,
17430,
33411,
366,
10987,
640,
1,
796,
705,
1828,
25,
1120,
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
] | [
5376,
262,
4471,
329,
1057,
640,
286,
2534,
25,
1120,
46506,
366,
23758,
1,
16034,
3084,
62,
1731,
17430,
33411,
366,
10987,
640,
1,
796,
705,
1828,
25,
1120,
6
] |
what are the collaborations of bharath hariharan and ross girshick ? | SELECT DISTINCT WRITES_0.paperid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'bharath hariharan' AND AUTHOR_1.authorname = 'ross girshick' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES... | [
10919,
389,
262,
48421,
286,
275,
9869,
776,
289,
2743,
9869,
272,
290,
686,
824,
37370,
1477,
624,
5633,
46506,
360,
8808,
1268,
4177,
11342,
2043,
1546,
62,
15,
13,
20189,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48421,
286,
275,
9869,
776,
289,
2743,
9869,
272,
290,
686,
824,
37370,
1477,
624,
5633,
46506,
360,
8808,
1268,
4177,
11342,
2043,
1546,
62,
15,
13,
20189,
312,
16034,
1772,
7054,
44746,
62,
15,
11,
1772,
7054,
44746... |
What is the Date of the Competition with a Result of 3 0? | SELECT "Date" FROM table_77160 WHERE "Result" = '3–0' | [
2061,
318,
262,
7536,
286,
262,
27348,
351,
257,
25414,
286,
513,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3324,
14198,
33411,
366,
23004,
1,
796,
705,
18,
1906,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
262,
27348,
351,
257,
25414,
286,
513,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3324,
14198,
33411,
366,
23004,
1,
796,
705,
18,
1906,
15,
6
] |
How many population values are listed for the community with an area of 10.25 sq.km.? | SELECT COUNT("Population") FROM table_21382 WHERE "Area km 2" = '10.25' | [
2437,
867,
3265,
3815,
389,
5610,
329,
262,
2055,
351,
281,
1989,
286,
838,
13,
1495,
19862,
13,
13276,
40791,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
26427,
6469,
33411,
366,
30547,
10571,
362,
1,
796,
705,
940,
13,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3265,
3815,
389,
5610,
329,
262,
2055,
351,
281,
1989,
286,
838,
13,
1495,
19862,
13,
13276,
40791,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
26427,
6469,
33411,
366,
30547,
10571,
362,
1,
796,
705,
940,
13,
14... |
What is the number of professors for different school Plot them as bar chart, and I want to display the total number from low to high order. | SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE ORDER BY COUNT(*) | [
2061,
318,
262,
1271,
286,
20339,
329,
1180,
1524,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
3359,
262,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
5550,
30709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20339,
329,
1180,
1524,
28114,
606,
355,
2318,
8262,
11,
290,
314,
765,
284,
3359,
262,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
5550,
30709,
... |
Show order ids and the number of products in each order. Plot them as scatter chart. | SELECT order_id, COUNT(DISTINCT product_id) FROM Order_Items | [
15307,
1502,
220,
2340,
290,
262,
1271,
286,
3186,
287,
1123,
1502,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
1502,
62,
312,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
312,
8,
16034,
8284,
62,
23022
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1502,
220,
2340,
290,
262,
1271,
286,
3186,
287,
1123,
1502,
13,
28114,
606,
355,
41058,
8262,
13,
46506,
1502,
62,
312,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
1720,
62,
312,
8,
16034,
8284,
62,
23022
] |
What is Tries Against, when Try Diff is +15? | SELECT tries_against FROM table_name_34 WHERE try_diff = "+15" | [
2061,
318,
309,
1678,
12914,
11,
618,
9993,
10631,
318,
1343,
1314,
30,
46506,
8404,
62,
32826,
16034,
3084,
62,
3672,
62,
2682,
33411,
1949,
62,
26069,
796,
43825,
1314,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
309,
1678,
12914,
11,
618,
9993,
10631,
318,
1343,
1314,
30,
46506,
8404,
62,
32826,
16034,
3084,
62,
3672,
62,
2682,
33411,
1949,
62,
26069,
796,
43825,
1314,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.