instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the acronym for the English name Northern management and technological institute? | SELECT "Acronym" FROM table_61911 WHERE "Name in English" = 'northern management and technological institute' | [
2061,
318,
262,
38787,
329,
262,
3594,
1438,
8342,
4542,
290,
14614,
24224,
30,
46506,
366,
12832,
1313,
4948,
1,
16034,
3084,
62,
21,
1129,
1157,
33411,
366,
5376,
287,
3594,
1,
796,
705,
77,
4824,
4542,
290,
14614,
24224,
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,
38787,
329,
262,
3594,
1438,
8342,
4542,
290,
14614,
24224,
30,
46506,
366,
12832,
1313,
4948,
1,
16034,
3084,
62,
21,
1129,
1157,
33411,
366,
5376,
287,
3594,
1,
796,
705,
77,
4824,
4542,
290,
14614,
24224,
6
] |
Return a bar chart about the distribution of other_details and the average of monthly_rental , and group by attribute other_details. | SELECT other_details, AVG(monthly_rental) FROM Student_Addresses GROUP BY other_details ORDER BY monthly_rental DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
584,
62,
36604,
290,
262,
2811,
286,
9651,
62,
1156,
282,
837,
290,
1448,
416,
11688,
584,
62,
36604,
13,
46506,
584,
62,
36604,
11,
35224,
7,
8424,
306,
62,
1156,
282,
8,
16034,
13613,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
584,
62,
36604,
290,
262,
2811,
286,
9651,
62,
1156,
282,
837,
290,
1448,
416,
11688,
584,
62,
36604,
13,
46506,
584,
62,
36604,
11,
35224,
7,
8424,
306,
62,
1156,
282,
8,
16034,
13613,
... |
What was the final score in week 3 ? | SELECT "Final Score" FROM table_80328 WHERE "Week" = '3' | [
2061,
373,
262,
2457,
4776,
287,
1285,
513,
5633,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
1795,
34256,
33411,
366,
20916,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2457,
4776,
287,
1285,
513,
5633,
46506,
366,
19006,
15178,
1,
16034,
3084,
62,
1795,
34256,
33411,
366,
20916,
1,
796,
705,
18,
6
] |
what are the top four most frequent specimen tests ordered for patients during the same month after they have been diagnosed with excessive cold nec? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, 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.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
389,
262,
1353,
1440,
749,
10792,
31674,
5254,
6149,
329,
3871,
1141,
262,
976,
1227,
706,
484,
423,
587,
14641,
351,
13181,
4692,
27576,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
17,
13,
16684... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1440,
749,
10792,
31674,
5254,
6149,
329,
3871,
1141,
262,
976,
1227,
706,
484,
423,
587,
14641,
351,
13181,
4692,
27576,
30,
46506,
256,
18,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
256,
17,
13,
16684... |
Name the least position | SELECT MIN("Position") FROM table_20499 | [
5376,
262,
1551,
2292,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
18638,
2079
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
2292,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
18638,
2079
] |
Name the least number | SELECT MIN(number) FROM table_22705586_1 | [
5376,
262,
1551,
1271,
46506,
20625,
7,
17618,
8,
16034,
3084,
62,
1828,
2154,
2816,
4521,
62,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
1271,
46506,
20625,
7,
17618,
8,
16034,
3084,
62,
1828,
2154,
2816,
4521,
62,
16
] |
How many were the minimum team that participated in the league? | SELECT MIN("Teams") FROM table_26409 | [
2437,
867,
547,
262,
5288,
1074,
326,
14888,
287,
262,
4652,
30,
46506,
20625,
7203,
6767,
4105,
4943,
16034,
3084,
62,
2075,
29416
] | [
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,
547,
262,
5288,
1074,
326,
14888,
287,
262,
4652,
30,
46506,
20625,
7203,
6767,
4105,
4943,
16034,
3084,
62,
2075,
29416
] |
for how many years did hallgrimur sveinsson serve as the bishop of iceland ? | SELECT "office ended" - "office started" FROM table_203_875 WHERE "name" = 'hallgrimur sveinsson' | [
1640,
703,
867,
812,
750,
6899,
33563,
333,
264,
303,
259,
16528,
4691,
355,
262,
24233,
286,
14158,
8822,
5633,
46506,
366,
31810,
4444,
1,
532,
366,
31810,
2067,
1,
16034,
3084,
62,
22416,
62,
31360,
33411,
366,
3672,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1640,
703,
867,
812,
750,
6899,
33563,
333,
264,
303,
259,
16528,
4691,
355,
262,
24233,
286,
14158,
8822,
5633,
46506,
366,
31810,
4444,
1,
532,
366,
31810,
2067,
1,
16034,
3084,
62,
22416,
62,
31360,
33411,
366,
3672,
1,
796,
705,
... |
What is the second team that has first team of Africa sports? | SELECT "Team 2" FROM table_15426 WHERE "Team 1" = 'africa sports' | [
2061,
318,
262,
1218,
1074,
326,
468,
717,
1074,
286,
5478,
5701,
30,
46506,
366,
15592,
362,
1,
16034,
3084,
62,
21526,
2075,
33411,
366,
15592,
352,
1,
796,
705,
1878,
30997,
5701,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1218,
1074,
326,
468,
717,
1074,
286,
5478,
5701,
30,
46506,
366,
15592,
362,
1,
16034,
3084,
62,
21526,
2075,
33411,
366,
15592,
352,
1,
796,
705,
1878,
30997,
5701,
6
] |
What's the code of the district with 800.5 people per km2? | SELECT code FROM table_2801442_1 WHERE density_in_2011___km²_ = "800.5" | [
2061,
338,
262,
2438,
286,
262,
4783,
351,
10460,
13,
20,
661,
583,
10571,
17,
30,
46506,
2438,
16034,
3084,
62,
2078,
486,
39506,
62,
16,
33411,
12109,
62,
259,
62,
9804,
17569,
13276,
31185,
62,
796,
366,
7410,
13,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
2438,
286,
262,
4783,
351,
10460,
13,
20,
661,
583,
10571,
17,
30,
46506,
2438,
16034,
3084,
62,
2078,
486,
39506,
62,
16,
33411,
12109,
62,
259,
62,
9804,
17569,
13276,
31185,
62,
796,
366,
7410,
13,
20,
1
] |
Name the game for june 7 | SELECT "Game" FROM table_22671 WHERE "Date" = 'June 7' | [
5376,
262,
983,
329,
474,
1726,
767,
46506,
366,
8777,
1,
16034,
3084,
62,
1828,
46250,
33411,
366,
10430,
1,
796,
705,
15749,
767,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
983,
329,
474,
1726,
767,
46506,
366,
8777,
1,
16034,
3084,
62,
1828,
46250,
33411,
366,
10430,
1,
796,
705,
15749,
767,
6
] |
Which date did South Melbourne play as the away team? | SELECT "Date" FROM table_51956 WHERE "Away team" = 'south melbourne' | [
13828,
3128,
750,
2520,
14819,
711,
355,
262,
1497,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
47785,
3980,
33411,
366,
32,
1014,
1074,
1,
796,
705,
35782,
7758,
12544,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3128,
750,
2520,
14819,
711,
355,
262,
1497,
1074,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
47785,
3980,
33411,
366,
32,
1014,
1074,
1,
796,
705,
35782,
7758,
12544,
6
] |
who spent the most years in the nba ? | SELECT "name" FROM table_203_622 ORDER BY "years in nba" DESC LIMIT 1 | [
8727,
3377,
262,
749,
812,
287,
262,
299,
7012,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
21,
1828,
38678,
11050,
366,
19002,
287,
299,
7012,
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,
1
] | [
8727,
3377,
262,
749,
812,
287,
262,
299,
7012,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
21,
1828,
38678,
11050,
366,
19002,
287,
299,
7012,
1,
22196,
34,
27564,
2043,
352
] |
What is the lowest game for a record of 32-12-3? | SELECT MIN("Game") FROM table_5517 WHERE "Record" = '32-12-3' | [
2061,
318,
262,
9016,
983,
329,
257,
1700,
286,
3933,
12,
1065,
12,
18,
30,
46506,
20625,
7203,
8777,
4943,
16034,
3084,
62,
2816,
1558,
33411,
366,
23739,
1,
796,
705,
2624,
12,
1065,
12,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
983,
329,
257,
1700,
286,
3933,
12,
1065,
12,
18,
30,
46506,
20625,
7203,
8777,
4943,
16034,
3084,
62,
2816,
1558,
33411,
366,
23739,
1,
796,
705,
2624,
12,
1065,
12,
18,
6
] |
Show me a bar chart comparing the total number of captains in each rank, and rank total number in descending order please. | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY COUNT(Rank) DESC | [
15307,
502,
257,
2318,
8262,
14176,
262,
2472,
1271,
286,
37551,
287,
1123,
4279,
11,
290,
4279,
2472,
1271,
287,
31491,
1502,
3387,
13,
46506,
10916,
11,
327,
28270,
7,
27520,
8,
16034,
10654,
44441,
11050,
10916,
38678,
11050,
327,
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
] | [
15307,
502,
257,
2318,
8262,
14176,
262,
2472,
1271,
286,
37551,
287,
1123,
4279,
11,
290,
4279,
2472,
1271,
287,
31491,
1502,
3387,
13,
46506,
10916,
11,
327,
28270,
7,
27520,
8,
16034,
10654,
44441,
11050,
10916,
38678,
11050,
327,
28... |
What is the Record for April 15? | SELECT "Record" FROM table_45713 WHERE "Date" = 'april 15' | [
2061,
318,
262,
13266,
329,
3035,
1315,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
33032,
1485,
33411,
366,
10430,
1,
796,
705,
499,
22379,
1315,
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,
318,
262,
13266,
329,
3035,
1315,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
33032,
1485,
33411,
366,
10430,
1,
796,
705,
499,
22379,
1315,
6
] |
What is the highest overall number for someone from round 16? | SELECT MAX(overall) FROM table_name_51 WHERE round = 16 | [
2061,
318,
262,
4511,
4045,
1271,
329,
2130,
422,
2835,
1467,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
2835,
796,
1467
] | [
1,
1,
1,
1,
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,
4045,
1271,
329,
2130,
422,
2835,
1467,
30,
46506,
25882,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
4349,
33411,
2835,
796,
1467
] |
What was the vote on the episode where the finish was '10th voted out 3rd jury member day 30'? | SELECT vote FROM table_1272844_2 WHERE finish = "10th voted Out 3rd Jury Member Day 30" | [
2061,
373,
262,
3015,
319,
262,
4471,
810,
262,
5461,
373,
705,
940,
400,
7052,
503,
513,
4372,
9002,
2888,
1110,
1542,
30960,
46506,
3015,
16034,
3084,
62,
16799,
2078,
2598,
62,
17,
33411,
5461,
796,
366,
940,
400,
7052,
3806,
513,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3015,
319,
262,
4471,
810,
262,
5461,
373,
705,
940,
400,
7052,
503,
513,
4372,
9002,
2888,
1110,
1542,
30960,
46506,
3015,
16034,
3084,
62,
16799,
2078,
2598,
62,
17,
33411,
5461,
796,
366,
940,
400,
7052,
3806,
513,
... |
What team has jordan 193 chassis after 1990? | SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" | [
2061,
1074,
468,
474,
7350,
29691,
24587,
706,
6303,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
5333,
33411,
614,
1875,
6303,
5357,
24587,
796,
366,
73,
7350,
29691,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1074,
468,
474,
7350,
29691,
24587,
706,
6303,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
5333,
33411,
614,
1875,
6303,
5357,
24587,
796,
366,
73,
7350,
29691,
1
] |
Which Record has a Match Report of recap, and a Result of l 30 20? | SELECT record FROM table_name_92 WHERE match_report = "recap" AND result = "l 30–20" | [
13828,
13266,
468,
257,
13225,
6358,
286,
26871,
11,
290,
257,
25414,
286,
300,
1542,
1160,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5892,
33411,
2872,
62,
13116,
796,
366,
8344,
499,
1,
5357,
1255,
796,
366,
75,
1542,
1906,
1238,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13266,
468,
257,
13225,
6358,
286,
26871,
11,
290,
257,
25414,
286,
300,
1542,
1160,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5892,
33411,
2872,
62,
13116,
796,
366,
8344,
499,
1,
5357,
1255,
796,
366,
75,
1542,
1906,
1238,
... |
when Sanchez ( esp ) w 5-0 were the bout 6, which were the class? | SELECT "Class" FROM table_22983 WHERE "Bout 6" = 'Sanchez ( ESP ) W 5-0' | [
12518,
21909,
357,
15024,
1267,
266,
642,
12,
15,
547,
262,
18222,
718,
11,
543,
547,
262,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
1828,
4089,
18,
33411,
366,
33,
448,
718,
1,
796,
705,
50,
20364,
357,
9428,
1267,
370,
642... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
21909,
357,
15024,
1267,
266,
642,
12,
15,
547,
262,
18222,
718,
11,
543,
547,
262,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
1828,
4089,
18,
33411,
366,
33,
448,
718,
1,
796,
705,
50,
20364,
357,
9428,
1267,
370,
642... |
how many male patients are diagnosed for intestinovesical fistula? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Intestinovesical fistula" | [
4919,
867,
4257,
3871,
389,
14641,
329,
20183,
259,
5241,
605,
18606,
4712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
4257,
3871,
389,
14641,
329,
20183,
259,
5241,
605,
18606,
4712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
3... |
What player has a score larger than 67? | SELECT "Player" FROM table_49646 WHERE "Score" > '67' | [
2061,
2137,
468,
257,
4776,
4025,
621,
8275,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2920,
27720,
33411,
366,
26595,
1,
1875,
705,
3134,
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
] | [
2061,
2137,
468,
257,
4776,
4025,
621,
8275,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2920,
27720,
33411,
366,
26595,
1,
1875,
705,
3134,
6
] |
give me a good place in mountain view for arabic food ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'mountain view' AND restaurant.food_type = 'arabic' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
26535,
502,
257,
922,
1295,
287,
8598,
1570,
329,
610,
397,
291,
2057,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
14948,
391,
1570,
6,
5357,
7072,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
922,
1295,
287,
8598,
1570,
329,
610,
397,
291,
2057,
5633,
46506,
4067,
13,
4803,
62,
17618,
11,
7072,
13,
3672,
16034,
4067,
11,
7072,
33411,
4067,
13,
19205,
62,
3672,
796,
705,
14948,
391,
1570,
6,
5357,
7072,
1... |
how many patients were diagnosed with acute respiratory failure - due to inability to clear secretions in 2102 within 2 months after they had undergone immunosuppressive therapy - mycophenolate mofetil? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'immunosuppressive therapy - mycophenolate mofetil' AND STRFTIME('%y', treatment.treatmenttime) = '2102') AS ... | [
4919,
867,
3871,
547,
14641,
351,
14352,
22949,
5287,
532,
2233,
284,
16612,
284,
1598,
3200,
507,
287,
362,
15377,
1626,
362,
1933,
706,
484,
550,
29900,
16217,
418,
7211,
3314,
9102,
532,
616,
22163,
831,
27976,
285,
1659,
316,
346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
547,
14641,
351,
14352,
22949,
5287,
532,
2233,
284,
16612,
284,
1598,
3200,
507,
287,
362,
15377,
1626,
362,
1933,
706,
484,
550,
29900,
16217,
418,
7211,
3314,
9102,
532,
616,
22163,
831,
27976,
285,
1659,
316,
346,
... |
hey what was patient 86792's average chloride value until 10 months ago? | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 86792) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'chloride') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-... | [
20342,
644,
373,
5827,
807,
3134,
5892,
338,
2811,
44921,
1988,
1566,
838,
1933,
2084,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20342,
644,
373,
5827,
807,
3134,
5892,
338,
2811,
44921,
1988,
1566,
838,
1933,
2084,
30,
46506,
35224,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
... |
tell me the cost of a protein - csf lab test. | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'protein - csf') | [
33331,
502,
262,
1575,
286,
257,
7532,
532,
269,
28202,
2248,
1332,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
23912,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
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
] | [
33331,
502,
262,
1575,
286,
257,
7532,
532,
269,
28202,
2248,
1332,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
23912,
6,
5357,
1575,
13,
15596,
312,
3268,
357,
46506,
2248,
... |
What are the complements when the commander is Major William Lloyd? | SELECT complement FROM table_11793221_2 WHERE commander = "Major William Lloyd" | [
2061,
389,
262,
1224,
902,
618,
262,
11561,
318,
8386,
3977,
22361,
30,
46506,
16829,
16034,
3084,
62,
1157,
44750,
26115,
62,
17,
33411,
11561,
796,
366,
24206,
3977,
22361,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1224,
902,
618,
262,
11561,
318,
8386,
3977,
22361,
30,
46506,
16829,
16034,
3084,
62,
1157,
44750,
26115,
62,
17,
33411,
11561,
796,
366,
24206,
3977,
22361,
1
] |
What is the maximum level of managers in countries that are not 'Australia'? | SELECT MAX(level) FROM manager WHERE country <> "Australia " | [
2061,
318,
262,
5415,
1241,
286,
11663,
287,
2678,
326,
389,
407,
705,
27429,
30960,
46506,
25882,
7,
5715,
8,
16034,
4706,
33411,
1499,
1279,
29,
366,
27429,
197,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5415,
1241,
286,
11663,
287,
2678,
326,
389,
407,
705,
27429,
30960,
46506,
25882,
7,
5715,
8,
16034,
4706,
33411,
1499,
1279,
29,
366,
27429,
197,
1
] |
what cities does NW fly out of | SELECT DISTINCT city.city_code FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND flight.airline_code = 'NW' AND flight.from_airport = airport_service.airport_code | [
10919,
4736,
857,
21966,
6129,
503,
286,
46506,
360,
8808,
1268,
4177,
1748,
13,
19205,
62,
8189,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
5474,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
4736,
857,
21966,
6129,
503,
286,
46506,
360,
8808,
1268,
4177,
1748,
13,
19205,
62,
8189,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
5474,
13,... |
What is the result on 20 July 2008? | SELECT result FROM table_name_52 WHERE date = "20 july 2008" | [
2061,
318,
262,
1255,
319,
1160,
2901,
3648,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
1238,
474,
2062,
3648,
1
] | [
1,
1,
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,
1255,
319,
1160,
2901,
3648,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
1238,
474,
2062,
3648,
1
] |
What date was the game when 40,000 attended? | SELECT date FROM table_name_65 WHERE attendance = "40,000" | [
2061,
3128,
373,
262,
983,
618,
2319,
11,
830,
9141,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
14858,
796,
366,
1821,
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
] | [
2061,
3128,
373,
262,
983,
618,
2319,
11,
830,
9141,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
14858,
796,
366,
1821,
11,
830,
1
] |
what is the total number of episodes that were written by craig o'neill ? | SELECT COUNT("title") FROM table_203_349 WHERE "written by" = "craig o'neill" | [
10919,
318,
262,
2472,
1271,
286,
8640,
326,
547,
3194,
416,
15671,
328,
267,
6,
710,
359,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
27371,
33411,
366,
15266,
416,
1,
796,
366,
66,
430,
328,
267,
6,
710,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
326,
547,
3194,
416,
15671,
328,
267,
6,
710,
359,
5633,
46506,
327,
28270,
7203,
7839,
4943,
16034,
3084,
62,
22416,
62,
27371,
33411,
366,
15266,
416,
1,
796,
366,
66,
430,
328,
267,
6,
710,... |
What was the pole position for jerez? | SELECT "Pole Position" FROM table_52255 WHERE "Location" = 'jerez' | [
2061,
373,
262,
16825,
2292,
329,
474,
567,
89,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
4309,
13381,
33411,
366,
14749,
1,
796,
705,
73,
567,
89,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
16825,
2292,
329,
474,
567,
89,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
4309,
13381,
33411,
366,
14749,
1,
796,
705,
73,
567,
89,
6
] |
How many delegates in each committee? Return a bar chart, and display by the y-axis in descending. | SELECT Committee, COUNT(Committee) FROM election GROUP BY Committee ORDER BY COUNT(Committee) DESC | [
2437,
867,
15265,
287,
1123,
5583,
30,
8229,
257,
2318,
8262,
11,
290,
3359,
416,
262,
331,
12,
22704,
287,
31491,
13,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
44441,
11050,
4606,
38678,
11050,
327,
28270,
7,
6935,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15265,
287,
1123,
5583,
30,
8229,
257,
2318,
8262,
11,
290,
3359,
416,
262,
331,
12,
22704,
287,
31491,
13,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
44441,
11050,
4606,
38678,
11050,
327,
28270,
7,
6935,
... |
On what date was their record 46-39? | SELECT date FROM table_name_17 WHERE record = "46-39" | [
2202,
644,
3128,
373,
511,
1700,
6337,
12,
2670,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1558,
33411,
1700,
796,
366,
3510,
12,
2670,
1
] | [
1,
1,
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,
644,
3128,
373,
511,
1700,
6337,
12,
2670,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1558,
33411,
1700,
796,
366,
3510,
12,
2670,
1
] |
Who had the most rebounds on January 3? | SELECT "High rebounds" FROM table_51099 WHERE "Date" = 'january 3' | [
8241,
550,
262,
749,
18841,
319,
3269,
513,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
33690,
2079,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
513,
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
] | [
8241,
550,
262,
749,
18841,
319,
3269,
513,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
33690,
2079,
33411,
366,
10430,
1,
796,
705,
13881,
2838,
513,
6
] |
When Estudiantes was team #2, what was their agg. value? | SELECT agg FROM table_name_28 WHERE team__number2 = "estudiantes" | [
2215,
10062,
463,
3014,
274,
373,
1074,
1303,
17,
11,
644,
373,
511,
4194,
13,
1988,
30,
46506,
4194,
16034,
3084,
62,
3672,
62,
2078,
33411,
1074,
834,
17618,
17,
796,
366,
395,
463,
3014,
274,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10062,
463,
3014,
274,
373,
1074,
1303,
17,
11,
644,
373,
511,
4194,
13,
1988,
30,
46506,
4194,
16034,
3084,
62,
3672,
62,
2078,
33411,
1074,
834,
17618,
17,
796,
366,
395,
463,
3014,
274,
1
] |
What was the build date of the railway(s) with 0-6-2 t wheels? | SELECT "Build date" FROM table_54265 WHERE "Wheels" = '0-6-2 t' | [
2061,
373,
262,
1382,
3128,
286,
262,
20515,
7,
82,
8,
351,
657,
12,
21,
12,
17,
256,
13666,
30,
46506,
366,
15580,
3128,
1,
16034,
3084,
62,
4051,
22980,
33411,
366,
10842,
1424,
1,
796,
705,
15,
12,
21,
12,
17,
256,
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
] | [
2061,
373,
262,
1382,
3128,
286,
262,
20515,
7,
82,
8,
351,
657,
12,
21,
12,
17,
256,
13666,
30,
46506,
366,
15580,
3128,
1,
16034,
3084,
62,
4051,
22980,
33411,
366,
10842,
1424,
1,
796,
705,
15,
12,
21,
12,
17,
256,
6
] |
What many times was the victoria derby raced? | SELECT COUNT(date) FROM table_2985987_2 WHERE race = "Victoria Derby" | [
2061,
867,
1661,
373,
262,
2210,
7661,
47317,
32897,
30,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
27728,
3270,
5774,
62,
17,
33411,
3234,
796,
366,
49898,
22962,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
867,
1661,
373,
262,
2210,
7661,
47317,
32897,
30,
46506,
327,
28270,
7,
4475,
8,
16034,
3084,
62,
27728,
3270,
5774,
62,
17,
33411,
3234,
796,
366,
49898,
22962,
1
] |
What was the score of the match in which mardy fish was the partner? | SELECT "Score" FROM table_68337 WHERE "Partner" = 'mardy fish' | [
2061,
373,
262,
4776,
286,
262,
2872,
287,
543,
285,
39124,
5916,
373,
262,
5212,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3104,
31496,
33411,
366,
7841,
1008,
1,
796,
705,
76,
39124,
5916,
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,
373,
262,
4776,
286,
262,
2872,
287,
543,
285,
39124,
5916,
373,
262,
5212,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3104,
31496,
33411,
366,
7841,
1008,
1,
796,
705,
76,
39124,
5916,
6
] |
What was the Clean and Jerk weight for the year that had a Snatch result of 190kg? | SELECT clean_and_jerk FROM table_name_13 WHERE snatch = "190kg" | [
2061,
373,
262,
5985,
290,
4230,
74,
3463,
329,
262,
614,
326,
550,
257,
5489,
963,
1255,
286,
19884,
10025,
30,
46506,
3424,
62,
392,
62,
73,
9587,
16034,
3084,
62,
3672,
62,
1485,
33411,
43388,
796,
366,
19782,
10025,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5985,
290,
4230,
74,
3463,
329,
262,
614,
326,
550,
257,
5489,
963,
1255,
286,
19884,
10025,
30,
46506,
3424,
62,
392,
62,
73,
9587,
16034,
3084,
62,
3672,
62,
1485,
33411,
43388,
796,
366,
19782,
10025,
1
] |
For those records from the products and each product's manufacturer, find name and code , and group by attribute founder, and visualize them by a bar chart, and display by the x axis in desc. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3359,
416,
262,
2124,
16488,
287,
1715,
13,
46506,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
9119,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
3359,
416,
262,
2124,
16488,
287,
1715,
13,
46506,
309,
1... |
Which player is featured for 2001-2002? | SELECT player FROM table_name_28 WHERE year = "2001-2002" | [
13828,
2137,
318,
8096,
329,
5878,
12,
16942,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2078,
33411,
614,
796,
366,
14585,
12,
16942,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
318,
8096,
329,
5878,
12,
16942,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
2078,
33411,
614,
796,
366,
14585,
12,
16942,
1
] |
Name the regions for usf45 | SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45" | [
5376,
262,
7652,
329,
514,
69,
2231,
46506,
3814,
62,
82,
62,
16034,
3084,
62,
23349,
1270,
38652,
62,
16,
33411,
24587,
62,
8189,
796,
366,
2937,
37,
2231,
1
] | [
1,
1,
1,
1,
1,
1,
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,
7652,
329,
514,
69,
2231,
46506,
3814,
62,
82,
62,
16034,
3084,
62,
23349,
1270,
38652,
62,
16,
33411,
24587,
62,
8189,
796,
366,
2937,
37,
2231,
1
] |
Which episode is number 3 in the season? | SELECT "Episode" FROM table_31407 WHERE "No. for season" = '3' | [
13828,
4471,
318,
1271,
513,
287,
262,
1622,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
33638,
2998,
33411,
366,
2949,
13,
329,
1622,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4471,
318,
1271,
513,
287,
262,
1622,
30,
46506,
366,
23758,
1,
16034,
3084,
62,
33638,
2998,
33411,
366,
2949,
13,
329,
1622,
1,
796,
705,
18,
6
] |
how many of the patients with left heart cardiac cath have unspecified death status? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Left heart cardiac cath" | [
4919,
867,
286,
262,
3871,
351,
1364,
2612,
26077,
32171,
423,
29547,
1918,
3722,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
1364,
2612,
26077,
32171,
423,
29547,
1918,
3722,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... |
What are the destinations and number of flights to each one Visualize by bar chart, and I want to display in desc by the x axis. | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY destination DESC | [
2061,
389,
262,
23982,
290,
1271,
286,
13956,
284,
1123,
530,
15612,
1096,
416,
2318,
8262,
11,
290,
314,
765,
284,
3359,
287,
1715,
416,
262,
2124,
16488,
13,
46506,
10965,
11,
327,
28270,
7,
28104,
16034,
5474,
44441,
11050,
10965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23982,
290,
1271,
286,
13956,
284,
1123,
530,
15612,
1096,
416,
2318,
8262,
11,
290,
314,
765,
284,
3359,
287,
1715,
416,
262,
2124,
16488,
13,
46506,
10965,
11,
327,
28270,
7,
28104,
16034,
5474,
44441,
11050,
10965,
... |
Which Construction is named of fu-hsing? | SELECT construction FROM table_name_89 WHERE name__wade_giles_ = "fu-hsing" | [
13828,
20395,
318,
3706,
286,
14035,
12,
11994,
278,
30,
46506,
5103,
16034,
3084,
62,
3672,
62,
4531,
33411,
1438,
834,
86,
671,
62,
70,
2915,
62,
796,
366,
20942,
12,
11994,
278,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20395,
318,
3706,
286,
14035,
12,
11994,
278,
30,
46506,
5103,
16034,
3084,
62,
3672,
62,
4531,
33411,
1438,
834,
86,
671,
62,
70,
2915,
62,
796,
366,
20942,
12,
11994,
278,
1
] |
What is the number of final position-tours Mariano Piccoli, who has more than 20 final position-giros, before 1999 has? | SELECT COUNT("Final Position - Tour") FROM table_69460 WHERE "Final Position - Giro" > '20' AND "Rider" = 'mariano piccoli' AND "Year" < '1999' | [
2061,
318,
262,
1271,
286,
2457,
2292,
12,
83,
4662,
1526,
10115,
15085,
4033,
72,
11,
508,
468,
517,
621,
1160,
2457,
2292,
12,
12397,
4951,
11,
878,
7358,
468,
30,
46506,
327,
28270,
7203,
19006,
23158,
532,
9852,
4943,
16034,
3084,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1271,
286,
2457,
2292,
12,
83,
4662,
1526,
10115,
15085,
4033,
72,
11,
508,
468,
517,
621,
1160,
2457,
2292,
12,
12397,
4951,
11,
878,
7358,
468,
30,
46506,
327,
28270,
7203,
19006,
23158,
532,
9852,
4943,
16034,
3084,... |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time, and show in ascending by the Y-axis. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(DEPARTMENT_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
905,
287,
419... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
5011,
62,
312,
9874,
11078,
62,
4475,
416,
640,
11,
290,
905,
287,
419... |
What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year? | SELECT MIN("Year") FROM table_48351 WHERE "Category" = 'top 10 selling mandarin albums of the year' | [
2061,
318,
262,
14555,
614,
351,
257,
6536,
286,
5849,
838,
47919,
41621,
23999,
82,
286,
262,
6280,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2780,
35273,
33411,
366,
27313,
1,
796,
705,
4852,
838,
6301,
6855,
17714,
16788,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14555,
614,
351,
257,
6536,
286,
5849,
838,
47919,
41621,
23999,
82,
286,
262,
6280,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2780,
35273,
33411,
366,
27313,
1,
796,
705,
4852,
838,
6301,
6855,
17714,
16788,... |
What is the constructor for time/retired of handling? | SELECT constructor FROM table_name_99 WHERE time_retired = "handling" | [
2061,
318,
262,
23772,
329,
640,
14,
1186,
1202,
286,
9041,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2079,
33411,
640,
62,
1186,
1202,
796,
366,
4993,
1359,
1
] | [
1,
1,
1,
1,
1,
1,
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,
23772,
329,
640,
14,
1186,
1202,
286,
9041,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
2079,
33411,
640,
62,
1186,
1202,
796,
366,
4993,
1359,
1
] |
Name the least december for hsbc arena/18,017 | SELECT MIN(december) FROM table_27537870_5 WHERE location_attendance = "HSBC Arena/18,017" | [
5376,
262,
1551,
390,
3273,
329,
289,
82,
15630,
13478,
14,
1507,
11,
29326,
46506,
20625,
7,
2934,
3273,
8,
16034,
3084,
62,
23195,
30695,
2154,
62,
20,
33411,
4067,
62,
1078,
437,
590,
796,
366,
7998,
2749,
10937,
14,
1507,
11,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1551,
390,
3273,
329,
289,
82,
15630,
13478,
14,
1507,
11,
29326,
46506,
20625,
7,
2934,
3273,
8,
16034,
3084,
62,
23195,
30695,
2154,
62,
20,
33411,
4067,
62,
1078,
437,
590,
796,
366,
7998,
2749,
10937,
14,
1507,
11,
29... |
Before 1987, what is the Entrant with bmw straight-4 (t/c) as Engine and a great than 2 Pts? | SELECT "Entrant" FROM table_67041 WHERE "Year" < '1987' AND "Engine" = 'bmw straight-4 (t/c)' AND "Pts." > '2' | [
8421,
12923,
11,
644,
318,
262,
7232,
5250,
351,
275,
76,
86,
3892,
12,
19,
357,
83,
14,
66,
8,
355,
7117,
290,
257,
1049,
621,
362,
350,
912,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
43798,
3901,
33411,
366,
17688,
1,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8421,
12923,
11,
644,
318,
262,
7232,
5250,
351,
275,
76,
86,
3892,
12,
19,
357,
83,
14,
66,
8,
355,
7117,
290,
257,
1049,
621,
362,
350,
912,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
43798,
3901,
33411,
366,
17688,
1,
1... |
In zip code 94107, on which day neither Fog nor Rain was not observed, and count them by a bar chart, sort by the y axis in desc. | SELECT date, COUNT(date) FROM weather WHERE zip_code = 94107 AND events <> "Fog" AND events <> "Rain" ORDER BY COUNT(date) DESC | [
818,
19974,
2438,
10048,
15982,
11,
319,
543,
1110,
6159,
33381,
4249,
10301,
373,
407,
6515,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
3297,
416,
262,
331,
16488,
287,
1715,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19974,
2438,
10048,
15982,
11,
319,
543,
1110,
6159,
33381,
4249,
10301,
373,
407,
6515,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
3297,
416,
262,
331,
16488,
287,
1715,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
61... |
What director has a worldwide gross of $149,022,650 and is ranked greater than 7? | SELECT director FROM table_name_39 WHERE rank > 7 AND worldwide_gross = "$149,022,650" | [
2061,
3437,
468,
257,
8688,
10319,
286,
720,
19442,
11,
44087,
11,
17544,
290,
318,
10307,
3744,
621,
767,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
2670,
33411,
4279,
1875,
767,
5357,
8688,
62,
47181,
796,
17971,
19442,
11,
44087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3437,
468,
257,
8688,
10319,
286,
720,
19442,
11,
44087,
11,
17544,
290,
318,
10307,
3744,
621,
767,
30,
46506,
3437,
16034,
3084,
62,
3672,
62,
2670,
33411,
4279,
1875,
767,
5357,
8688,
62,
47181,
796,
17971,
19442,
11,
44087,
... |
Show the minimum room count of apartments in different type with a bar chart. | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code | [
15307,
262,
5288,
2119,
954,
286,
19592,
287,
1180,
2099,
351,
257,
2318,
8262,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823,
62,
9127,
8,
16034,
22596,
902,
44441,
11050,
15409,
62,
4906,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
5288,
2119,
954,
286,
19592,
287,
1180,
2099,
351,
257,
2318,
8262,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823,
62,
9127,
8,
16034,
22596,
902,
44441,
11050,
15409,
62,
4906,
62,
8189
] |
How many customers use each payment method, and could you sort by the bars from high to low? | SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY payment_method_code DESC | [
2437,
867,
4297,
779,
1123,
6074,
2446,
11,
290,
714,
345,
3297,
416,
262,
9210,
422,
1029,
284,
1877,
30,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4297,
779,
1123,
6074,
2446,
11,
290,
714,
345,
3297,
416,
262,
9210,
422,
1029,
284,
1877,
30,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050... |
What is the Date of inauguration of the President with an Age at inauguration of 73years, 262days? | SELECT date_of_inauguration FROM table_name_10 WHERE age_at_inauguration = "73years, 262days" | [
2061,
318,
262,
7536,
286,
23166,
286,
262,
1992,
351,
281,
7129,
379,
23166,
286,
8854,
19002,
11,
35404,
12545,
30,
46506,
3128,
62,
1659,
62,
259,
7493,
3924,
16034,
3084,
62,
3672,
62,
940,
33411,
2479,
62,
265,
62,
259,
7493,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
23166,
286,
262,
1992,
351,
281,
7129,
379,
23166,
286,
8854,
19002,
11,
35404,
12545,
30,
46506,
3128,
62,
1659,
62,
259,
7493,
3924,
16034,
3084,
62,
3672,
62,
940,
33411,
2479,
62,
265,
62,
259,
7493,
3... |
Which easy class fulfill 's the Core requirement ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | [
13828,
2562,
1398,
14658,
705,
82,
262,
7231,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
13,
1818,
2220,
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... | [
13828,
2562,
1398,
14658,
705,
82,
262,
7231,
9079,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
... |
how many patients received the endotracheal tube within 2 months after receiving the laxatives - psyllium (metamucil, polycarbophil) this year? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'laxatives - psyllium (metamucil, polycarbophil)' AND DATETIME(treatment.treatmenttime, 'start of year') = DA... | [
4919,
867,
3871,
2722,
262,
46710,
81,
4891,
282,
12403,
1626,
362,
1933,
706,
6464,
262,
36919,
2929,
532,
17331,
297,
1505,
357,
4164,
321,
1229,
346,
11,
7514,
35684,
2522,
346,
8,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
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,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
2722,
262,
46710,
81,
4891,
282,
12403,
1626,
362,
1933,
706,
6464,
262,
36919,
2929,
532,
17331,
297,
1505,
357,
4164,
321,
1229,
346,
11,
7514,
35684,
2522,
346,
8,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
12... |
show me flights from SAN FRANCISCO to MINNEAPOLIS | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = '... | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
152... |
Which DVD Title has a Region 1 of n/a and greater than 3 in No. of Discs? | SELECT "DVD Title" FROM table_59342 WHERE "Region 1" = 'n/a' AND "No. of Discs" > '3' | [
13828,
12490,
11851,
468,
257,
17718,
352,
286,
299,
14,
64,
290,
3744,
621,
513,
287,
1400,
13,
286,
8444,
82,
30,
46506,
366,
39218,
11851,
1,
16034,
3084,
62,
3270,
31575,
33411,
366,
47371,
352,
1,
796,
705,
77,
14,
64,
6,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12490,
11851,
468,
257,
17718,
352,
286,
299,
14,
64,
290,
3744,
621,
513,
287,
1400,
13,
286,
8444,
82,
30,
46506,
366,
39218,
11851,
1,
16034,
3084,
62,
3270,
31575,
33411,
366,
47371,
352,
1,
796,
705,
77,
14,
64,
6,
535... |
What is Race 2, when Race 1 is 30? | SELECT "Race 2" FROM table_49950 WHERE "Race 1" = '30' | [
2061,
318,
12588,
362,
11,
618,
12588,
352,
318,
1542,
30,
46506,
366,
35157,
362,
1,
16034,
3084,
62,
28324,
1120,
33411,
366,
35157,
352,
1,
796,
705,
1270,
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,
12588,
362,
11,
618,
12588,
352,
318,
1542,
30,
46506,
366,
35157,
362,
1,
16034,
3084,
62,
28324,
1120,
33411,
366,
35157,
352,
1,
796,
705,
1270,
6
] |
show me the type of aircraft that CP uses | SELECT DISTINCT aircraft.basic_type FROM aircraft, equipment_sequence, flight WHERE equipment_sequence.aircraft_code = aircraft.aircraft_code AND flight.aircraft_code_sequence = equipment_sequence.aircraft_code_sequence AND flight.airline_code = 'CP' | [
12860,
502,
262,
2099,
286,
6215,
326,
16932,
3544,
46506,
360,
8808,
1268,
4177,
6215,
13,
35487,
62,
4906,
16034,
6215,
11,
5112,
62,
43167,
11,
5474,
33411,
5112,
62,
43167,
13,
958,
3323,
62,
8189,
796,
6215,
13,
958,
3323,
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... | [
12860,
502,
262,
2099,
286,
6215,
326,
16932,
3544,
46506,
360,
8808,
1268,
4177,
6215,
13,
35487,
62,
4906,
16034,
6215,
11,
5112,
62,
43167,
11,
5474,
33411,
5112,
62,
43167,
13,
958,
3323,
62,
8189,
796,
6215,
13,
958,
3323,
62,
... |
What are the number of the names of products with price at most 200?, and could you list in ascending by the Y? | SELECT Name, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY COUNT(Name) | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
3186,
351,
2756,
379,
749,
939,
21747,
290,
714,
345,
1351,
287,
41988,
416,
262,
575,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
33411,
7886,
19841,
939,
44441,
11050,
6530,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
262,
3891,
286,
3186,
351,
2756,
379,
749,
939,
21747,
290,
714,
345,
1351,
287,
41988,
416,
262,
575,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
33411,
7886,
19841,
939,
44441,
11050,
6530,
... |
What was the 08-09 i/o best of the player with 1386 points? | SELECT "08-09 I/O best" FROM table_3177 WHERE "WS Points" = '1386' | [
2061,
373,
262,
8487,
12,
2931,
1312,
14,
78,
1266,
286,
262,
2137,
351,
1511,
4521,
2173,
30,
46506,
366,
2919,
12,
2931,
314,
14,
46,
1266,
1,
16034,
3084,
62,
18,
22413,
33411,
366,
19416,
11045,
1,
796,
705,
1485,
4521,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
8487,
12,
2931,
1312,
14,
78,
1266,
286,
262,
2137,
351,
1511,
4521,
2173,
30,
46506,
366,
2919,
12,
2931,
314,
14,
46,
1266,
1,
16034,
3084,
62,
18,
22413,
33411,
366,
19416,
11045,
1,
796,
705,
1485,
4521,
6
] |
Which location has 103.534 million passengers in 2011-12? | SELECT "Location" FROM table_72963 WHERE "Total Passengers (millions) 2011\u201312" = '103.534' | [
13828,
4067,
468,
15349,
13,
20,
2682,
1510,
10405,
287,
2813,
12,
1065,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
48555,
5066,
33411,
366,
14957,
6251,
9302,
357,
17805,
507,
8,
2813,
59,
84,
6390,
1065,
1,
796,
705,
15197,
13,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4067,
468,
15349,
13,
20,
2682,
1510,
10405,
287,
2813,
12,
1065,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
48555,
5066,
33411,
366,
14957,
6251,
9302,
357,
17805,
507,
8,
2813,
59,
84,
6390,
1065,
1,
796,
705,
15197,
13,
20... |
Which Season has 95 Points? | SELECT season FROM table_name_48 WHERE points = "95" | [
13828,
7369,
468,
6957,
11045,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
2780,
33411,
2173,
796,
366,
3865,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7369,
468,
6957,
11045,
30,
46506,
1622,
16034,
3084,
62,
3672,
62,
2780,
33411,
2173,
796,
366,
3865,
1
] |
what are the three most frequently given diagnoses for patients who had previously had ot cerv fusion post/post within 2 months,? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi... | [
10919,
389,
262,
1115,
749,
6777,
1813,
40567,
329,
3871,
508,
550,
4271,
550,
30972,
28987,
21748,
1281,
14,
7353,
1626,
362,
1933,
11,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1115,
749,
6777,
1813,
40567,
329,
3871,
508,
550,
4271,
550,
30972,
28987,
21748,
1281,
14,
7353,
1626,
362,
1933,
11,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,... |
how many shows were there in 2005 ? | SELECT COUNT("show") FROM table_203_485 WHERE "year" = 2005 | [
4919,
867,
2523,
547,
612,
287,
5075,
5633,
46506,
327,
28270,
7203,
12860,
4943,
16034,
3084,
62,
22416,
62,
32642,
33411,
366,
1941,
1,
796,
5075
] | [
1,
1,
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,
2523,
547,
612,
287,
5075,
5633,
46506,
327,
28270,
7203,
12860,
4943,
16034,
3084,
62,
22416,
62,
32642,
33411,
366,
1941,
1,
796,
5075
] |
What's the lowest goal difference when the position is higher than 16? | SELECT MIN("Goal Difference") FROM table_59486 WHERE "Position" > '16' | [
2061,
338,
262,
9016,
3061,
3580,
618,
262,
2292,
318,
2440,
621,
1467,
30,
46506,
20625,
7203,
49045,
43795,
4943,
16034,
3084,
62,
3270,
34251,
33411,
366,
26545,
1,
1875,
705,
1433,
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,
338,
262,
9016,
3061,
3580,
618,
262,
2292,
318,
2440,
621,
1467,
30,
46506,
20625,
7203,
49045,
43795,
4943,
16034,
3084,
62,
3270,
34251,
33411,
366,
26545,
1,
1875,
705,
1433,
6
] |
Show how many documents are stored and bin by year in a line chart, and order by the X-axis from low to high please. | SELECT Date_Stored, COUNT(Date_Stored) FROM All_Documents AS T1 JOIN Ref_Calendar AS T2 ON T1.Date_Stored = T2.Calendar_Date ORDER BY Date_Stored | [
15307,
703,
867,
4963,
389,
8574,
290,
9874,
416,
614,
287,
257,
1627,
8262,
11,
290,
1502,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
3387,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
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... | [
15307,
703,
867,
4963,
389,
8574,
290,
9874,
416,
614,
287,
257,
1627,
8262,
11,
290,
1502,
416,
262,
1395,
12,
22704,
422,
1877,
284,
1029,
3387,
13,
46506,
7536,
62,
1273,
1850,
11,
327,
28270,
7,
10430,
62,
1273,
1850,
8,
16034,
... |
get me the number of female patients who had elective hospital admission. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "ELECTIVE" | [
1136,
502,
262,
1271,
286,
4048,
3871,
508,
550,
1742,
425,
4436,
13938,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
3411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1136,
502,
262,
1271,
286,
4048,
3871,
508,
550,
1742,
425,
4436,
13938,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
3411... |
what are the top four most often ordered procedures since 6 years ago? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-6 year') GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | [
10919,
389,
262,
1353,
1440,
749,
1690,
6149,
9021,
1201,
718,
812,
2084,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1440,
749,
1690,
6149,
9021,
1201,
718,
812,
2084,
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,
... |
number of patients who had been diagnosed with diabetes mellitus - type i last year. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'diabetes mellitus - type i' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | [
17618,
286,
3871,
508,
550,
587,
14641,
351,
12593,
33748,
17506,
532,
2099,
1312,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
17618,
286,
3871,
508,
550,
587,
14641,
351,
12593,
33748,
17506,
532,
2099,
1312,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
326... |
What are the ids of all students who have attended at least one course? | SELECT student_id FROM student_course_attendance | [
2061,
389,
262,
220,
2340,
286,
477,
2444,
508,
423,
9141,
379,
1551,
530,
1781,
30,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
1078,
437,
590
] | [
1,
1,
1,
1,
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,
220,
2340,
286,
477,
2444,
508,
423,
9141,
379,
1551,
530,
1781,
30,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
1078,
437,
590
] |
during the previous year what were the top three most frequent diagnoses that patients were diagnosed with within the same hospital visit after being diagnosed with cardiac arrest - witnessed, < 15 minutes cpr? | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'cardi... | [
42122,
262,
2180,
614,
644,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
14641,
351,
1626,
262,
976,
4436,
3187,
706,
852,
14641,
351,
26077,
3251,
532,
13923,
11,
1279,
1315,
2431,
269,
1050,
30,
46506,
256,
18,
13,
47356... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
42122,
262,
2180,
614,
644,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
14641,
351,
1626,
262,
976,
4436,
3187,
706,
852,
14641,
351,
26077,
3251,
532,
13923,
11,
1279,
1315,
2431,
269,
1050,
30,
46506,
256,
18,
13,
47356... |
What was the final score of Washington's home game? | SELECT "Result" FROM table_30472 WHERE "Home team" = 'Washington' | [
2061,
373,
262,
2457,
4776,
286,
2669,
338,
1363,
983,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1270,
37856,
33411,
366,
16060,
1074,
1,
796,
705,
17402,
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
] | [
2061,
373,
262,
2457,
4776,
286,
2669,
338,
1363,
983,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1270,
37856,
33411,
366,
16060,
1074,
1,
796,
705,
17402,
6
] |
what is gender of subject id 26285? | SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "26285" | [
10919,
318,
5279,
286,
2426,
4686,
2608,
26279,
30,
46506,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2075,
26279,
1
] | [
1,
1,
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,
5279,
286,
2426,
4686,
2608,
26279,
30,
46506,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2075,
26279,
1
] |
For each record in schedule, show the number of films for each day in a bar chart, display by the y axis in ascending. | SELECT Date, COUNT(Date) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Date ORDER BY COUNT(Date) | [
1890,
1123,
1700,
287,
7269,
11,
905,
262,
1271,
286,
7328,
329,
1123,
1110,
287,
257,
2318,
8262,
11,
3359,
416,
262,
331,
16488,
287,
41988,
13,
46506,
7536,
11,
327,
28270,
7,
10430,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1123,
1700,
287,
7269,
11,
905,
262,
1271,
286,
7328,
329,
1123,
1110,
287,
257,
2318,
8262,
11,
3359,
416,
262,
331,
16488,
287,
41988,
13,
46506,
7536,
11,
327,
28270,
7,
10430,
8,
16034,
7269,
7054,
309,
16,
32357,
1268,
26... |
what was the last value of a lab test of anion gap since 168 months ago for patient 65786? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65786) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'anion gap') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-168 ... | [
10919,
373,
262,
938,
1988,
286,
257,
2248,
1332,
286,
281,
295,
7625,
1201,
23378,
1933,
2084,
329,
5827,
718,
3553,
4521,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
938,
1988,
286,
257,
2248,
1332,
286,
281,
295,
7625,
1201,
23378,
1933,
2084,
329,
5827,
718,
3553,
4521,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3... |
What is Place, when Score is '70-68=138', and when Player is 'Andrew Magee'? | SELECT place FROM table_name_1 WHERE score = 70 - 68 = 138 AND player = "andrew magee" | [
2061,
318,
8474,
11,
618,
15178,
318,
705,
2154,
12,
3104,
28,
20107,
3256,
290,
618,
7853,
318,
705,
20508,
17323,
68,
30960,
46506,
1295,
16034,
3084,
62,
3672,
62,
16,
33411,
4776,
796,
4317,
532,
8257,
796,
21503,
5357,
2137,
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
] | [
2061,
318,
8474,
11,
618,
15178,
318,
705,
2154,
12,
3104,
28,
20107,
3256,
290,
618,
7853,
318,
705,
20508,
17323,
68,
30960,
46506,
1295,
16034,
3084,
62,
3672,
62,
16,
33411,
4776,
796,
4317,
532,
8257,
796,
21503,
5357,
2137,
796,... |
Can you tell me the highest Gold that has the Bronze larger than 3, and the Total smaller than 24? | SELECT MAX(gold) FROM table_name_15 WHERE bronze > 3 AND total < 24 | [
6090,
345,
1560,
502,
262,
4511,
3561,
326,
468,
262,
19461,
4025,
621,
513,
11,
290,
262,
7472,
4833,
621,
1987,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
22101,
1875,
513,
5357,
2472,
1279,
1987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
4511,
3561,
326,
468,
262,
19461,
4025,
621,
513,
11,
290,
262,
7472,
4833,
621,
1987,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
22101,
1875,
513,
5357,
2472,
1279,
1987
] |
When the team is newman/haas racing and the grid size is 3, what's the time/retired? | SELECT "Time/Retired" FROM table_51158 WHERE "Team" = 'newman/haas racing' AND "Grid" = '3' | [
2215,
262,
1074,
318,
649,
805,
14,
3099,
292,
11717,
290,
262,
10706,
2546,
318,
513,
11,
644,
338,
262,
640,
14,
1186,
1202,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
41647,
3365,
33411,
366,
15592,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
1074,
318,
649,
805,
14,
3099,
292,
11717,
290,
262,
10706,
2546,
318,
513,
11,
644,
338,
262,
640,
14,
1186,
1202,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
41647,
3365,
33411,
366,
15592,
1,
796,
705,
... |
What was the venue when Carlton was the away team? | SELECT venue FROM table_name_28 WHERE away_team = "carlton" | [
2061,
373,
262,
14359,
618,
44348,
373,
262,
1497,
1074,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2078,
33411,
1497,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
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,
14359,
618,
44348,
373,
262,
1497,
1074,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2078,
33411,
1497,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
Questions with a certain tag by score. | SELECT Score, COUNT(Score) AS Number FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '<##Tag##>' GROUP BY Score ORDER BY Score | [
35741,
351,
257,
1728,
7621,
416,
4776,
13,
46506,
15178,
11,
327,
28270,
7,
26595,
8,
7054,
7913,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
44789,
34178,
705,
27,
2235,
24835,
2235,
29,
6,
44441,
11050,
15178,
38678,
11050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35741,
351,
257,
1728,
7621,
416,
4776,
13,
46506,
15178,
11,
327,
28270,
7,
26595,
8,
7054,
7913,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
44789,
34178,
705,
27,
2235,
24835,
2235,
29,
6,
44441,
11050,
15178,
38678,
11050... |
On which date was the game played on Week 13? | SELECT date FROM table_name_22 WHERE week = 13 | [
2202,
543,
3128,
373,
262,
983,
2826,
319,
6119,
1511,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1828,
33411,
1285,
796,
1511
] | [
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,
373,
262,
983,
2826,
319,
6119,
1511,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1828,
33411,
1285,
796,
1511
] |
when did patient 23070 visit the hospital last in 2105? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 23070 AND STRFTIME('%y', admissions.admittime) = '2105' ORDER BY admissions.admittime DESC LIMIT 1 | [
12518,
750,
5827,
18395,
2154,
3187,
262,
4436,
938,
287,
362,
13348,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
18395,
2154,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
25349,
13,
324,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12518,
750,
5827,
18395,
2154,
3187,
262,
4436,
938,
287,
362,
13348,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
18395,
2154,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
25349,
13,
324,... |
provide the number of patients whose language is span and age is less than 83? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "SPAN" AND demographic.age < "83" | [
15234,
485,
262,
1271,
286,
3871,
3025,
3303,
318,
11506,
290,
2479,
318,
1342,
621,
9698,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
4303,
1565,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3303,
318,
11506,
290,
2479,
318,
1342,
621,
9698,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
4303,
1565,
1,
... |
What was the GDP (in millions USD) of Hong Kong in 2009? | SELECT MAX("GDP millions of USD (2009)") FROM table_19737 WHERE "Country / territory" = 'Hong Kong' | [
2061,
373,
262,
12396,
357,
259,
5242,
11403,
8,
286,
9764,
9071,
287,
3717,
30,
46506,
25882,
7203,
38,
6322,
5242,
286,
11403,
357,
10531,
8,
4943,
16034,
3084,
62,
24991,
2718,
33411,
366,
33921,
1220,
7674,
1,
796,
705,
48559,
907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12396,
357,
259,
5242,
11403,
8,
286,
9764,
9071,
287,
3717,
30,
46506,
25882,
7203,
38,
6322,
5242,
286,
11403,
357,
10531,
8,
4943,
16034,
3084,
62,
24991,
2718,
33411,
366,
33921,
1220,
7674,
1,
796,
705,
48559,
907... |
What is the total number of olives of the governorate with less than 259,743 vegetables, more than 14,625 industrial crops, and 20,768 fruit trees? | SELECT COUNT("Olives") FROM table_12848 WHERE "Vegetables" < '259,743' AND "Industrial crops" > '14,625' AND "Fruit Trees" = '20,768' | [
2061,
318,
262,
2472,
1271,
286,
25776,
1083,
286,
262,
8153,
378,
351,
1342,
621,
37831,
11,
22,
3559,
13701,
11,
517,
621,
1478,
11,
26704,
7593,
14450,
11,
290,
1160,
11,
30610,
8234,
7150,
30,
46506,
327,
28270,
7203,
30098,
1083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
1271,
286,
25776,
1083,
286,
262,
8153,
378,
351,
1342,
621,
37831,
11,
22,
3559,
13701,
11,
517,
621,
1478,
11,
26704,
7593,
14450,
11,
290,
1160,
11,
30610,
8234,
7150,
30,
46506,
327,
28270,
7203,
30098,
1083,... |
Who played against the Celtics on Sat. Feb. 23? | SELECT opponent FROM table_name_99 WHERE date = "sat. feb. 23" | [
8241,
2826,
1028,
262,
24116,
319,
7031,
13,
3158,
13,
2242,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2079,
33411,
3128,
796,
366,
49720,
13,
730,
65,
13,
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
] | [
8241,
2826,
1028,
262,
24116,
319,
7031,
13,
3158,
13,
2242,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2079,
33411,
3128,
796,
366,
49720,
13,
730,
65,
13,
2242,
1
] |
What was the score of the game when the record was 68-39? | SELECT "Score" FROM table_67289 WHERE "Record" = '68-39' | [
2061,
373,
262,
4776,
286,
262,
983,
618,
262,
1700,
373,
8257,
12,
2670,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3134,
27693,
33411,
366,
23739,
1,
796,
705,
3104,
12,
2670,
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,
373,
262,
4776,
286,
262,
983,
618,
262,
1700,
373,
8257,
12,
2670,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3134,
27693,
33411,
366,
23739,
1,
796,
705,
3104,
12,
2670,
6
] |
Create a bar chart showing the total number across police force, sort in ascending by the y-axis. | SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force ORDER BY COUNT(*) | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
1644,
2700,
11,
3297,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
1644,
2700,
11,
3297,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
4287,
62,
3174,
11,
327,
28270,
7,
28104,
16034,
7968,
62,
11377,
62,
44708,
44441,
11050,
4287,
62,
3174,
386... |
what is the sum of total when year(s) won is 1985? | SELECT SUM("Total") FROM table_8248 WHERE "Year(s) won" = '1985' | [
10919,
318,
262,
2160,
286,
2472,
618,
614,
7,
82,
8,
1839,
318,
12863,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
23,
23045,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
29110,
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
] | [
10919,
318,
262,
2160,
286,
2472,
618,
614,
7,
82,
8,
1839,
318,
12863,
30,
46506,
35683,
7203,
14957,
4943,
16034,
3084,
62,
23,
23045,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
29110,
6
] |
What was the home teams score at Junction Oval? | SELECT "Home team score" FROM table_55846 WHERE "Venue" = 'junction oval' | [
2061,
373,
262,
1363,
3466,
4776,
379,
44410,
25165,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
40486,
3510,
33411,
366,
37522,
518,
1,
796,
705,
73,
4575,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1363,
3466,
4776,
379,
44410,
25165,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
40486,
3510,
33411,
366,
37522,
518,
1,
796,
705,
73,
4575,
41186,
6
] |
What's the total number of Heat recorded for the british virgin islands? | SELECT COUNT("Heat") FROM table_45034 WHERE "Country" = 'british virgin islands' | [
2061,
338,
262,
2472,
1271,
286,
12308,
6264,
329,
262,
275,
799,
680,
21772,
14807,
30,
46506,
327,
28270,
7203,
39596,
4943,
16034,
3084,
62,
17885,
2682,
33411,
366,
33921,
1,
796,
705,
65,
799,
680,
21772,
14807,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
2472,
1271,
286,
12308,
6264,
329,
262,
275,
799,
680,
21772,
14807,
30,
46506,
327,
28270,
7203,
39596,
4943,
16034,
3084,
62,
17885,
2682,
33411,
366,
33921,
1,
796,
705,
65,
799,
680,
21772,
14807,
6
] |
What was the 2002 dominant religion when the largest ethnic group (2002) was slovaks and type is village? | SELECT "Dominant religion (2002)" FROM table_27875 WHERE "Largest ethnic group (2002)" = 'Slovaks' AND "Type" = 'village' | [
2061,
373,
262,
6244,
11410,
5737,
618,
262,
4387,
9450,
1448,
357,
16942,
8,
373,
1017,
709,
4730,
290,
2099,
318,
7404,
30,
46506,
366,
43417,
415,
5737,
357,
16942,
16725,
16034,
3084,
62,
25870,
2425,
33411,
366,
43,
853,
395,
945... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6244,
11410,
5737,
618,
262,
4387,
9450,
1448,
357,
16942,
8,
373,
1017,
709,
4730,
290,
2099,
318,
7404,
30,
46506,
366,
43417,
415,
5737,
357,
16942,
16725,
16034,
3084,
62,
25870,
2425,
33411,
366,
43,
853,
395,
945... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.