instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
sequence | attention_mask
sequence | labels
sequence |
---|---|---|---|---|
What is the 2012 with A in 2009 and 2r in 2010? | SELECT 2012 FROM table_name_96 WHERE 2009 = "a" AND 2010 = "2r" | [
2061,
318,
262,
2321,
351,
317,
287,
3717,
290,
362,
81,
287,
3050,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
4846,
33411,
3717,
796,
366,
64,
1,
5357,
3050,
796,
366,
17,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2321,
351,
317,
287,
3717,
290,
362,
81,
287,
3050,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
4846,
33411,
3717,
796,
366,
64,
1,
5357,
3050,
796,
366,
17,
81,
1
] |
Show the average age for male and female students Visualize by bar chart, I want to rank by the mean age in asc please. | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY AVG(Age) | [
15307,
262,
2811,
2479,
329,
4257,
290,
4048,
2444,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
4279,
416,
262,
1612,
2479,
287,
10570,
3387,
13,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
35224,
7,
23396,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2811,
2479,
329,
4257,
290,
4048,
2444,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
4279,
416,
262,
1612,
2479,
287,
10570,
3387,
13,
46506,
14419,
11,
35224,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
35224,
7,
23396,
8
] |
Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged? | SELECT "Condition" FROM table_42607 WHERE "Bleeding time" = 'prolonged' AND "Platelet count" = 'decreased' AND "Prothrombin time" = 'prolonged' | [
13828,
24295,
468,
257,
17175,
8228,
640,
286,
20573,
11,
257,
23648,
1616,
954,
286,
11832,
11,
290,
1041,
400,
398,
8800,
640,
286,
20573,
30,
46506,
366,
48362,
1,
16034,
3084,
62,
3682,
31980,
33411,
366,
43413,
8228,
640,
1,
796,
705,
1676,
6511,
276,
6,
5357,
366,
3646,
378,
1616,
954,
1,
796,
705,
12501,
260,
839,
6,
5357,
366,
2964,
400,
398,
8800,
640,
1,
796,
705,
1676,
6511,
276,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
24295,
468,
257,
17175,
8228,
640,
286,
20573,
11,
257,
23648,
1616,
954,
286,
11832,
11,
290,
1041,
400,
398,
8800,
640,
286,
20573,
30,
46506,
366,
48362,
1,
16034,
3084,
62,
3682,
31980,
33411,
366,
43413,
8228,
640,
1,
796,
705,
1676,
6511,
276,
6,
5357,
366,
3646,
378,
1616,
954,
1,
796,
705,
12501,
260,
839,
6,
5357,
366,
2964,
400,
398,
8800,
640,
1,
796,
705,
1676,
6511,
276,
6
] |
what is the number of patients whose gender is f and diagnoses short title is preterm nec 2500+g? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Preterm NEC 2500+g" | [
10919,
318,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
40567,
1790,
3670,
318,
662,
4354,
27576,
33507,
10,
70,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
40567,
13,
19509,
62,
7839,
796,
366,
6719,
4354,
41804,
33507,
10,
70,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5279,
318,
277,
290,
40567,
1790,
3670,
318,
662,
4354,
27576,
33507,
10,
70,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
40567,
13,
19509,
62,
7839,
796,
366,
6719,
4354,
41804,
33507,
10,
70,
1
] |
give the number of patients admitted before the year 2197 had other body fluid as lab test fluid. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2197" AND lab.fluid = "Other Body Fluid" | [
26535,
262,
1271,
286,
3871,
6848,
878,
262,
614,
362,
24991,
550,
584,
1767,
11711,
355,
2248,
1332,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
24991,
1,
5357,
2248,
13,
35522,
312,
796,
366,
6395,
12290,
1610,
27112,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
6848,
878,
262,
614,
362,
24991,
550,
584,
1767,
11711,
355,
2248,
1332,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
24991,
1,
5357,
2248,
13,
35522,
312,
796,
366,
6395,
12290,
1610,
27112,
1
] |
What is the Attendance at the Hereford United Away game? | SELECT attendance FROM table_name_94 WHERE away_team = "hereford united" | [
2061,
318,
262,
46502,
590,
379,
262,
3423,
3841,
1578,
21986,
983,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5824,
33411,
1497,
62,
15097,
796,
366,
1456,
3841,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
46502,
590,
379,
262,
3423,
3841,
1578,
21986,
983,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
5824,
33411,
1497,
62,
15097,
796,
366,
1456,
3841,
16503,
1
] |
what was the score on the game that happened on May 15? | SELECT score FROM table_name_49 WHERE date = "may 15" | [
10919,
373,
262,
4776,
319,
262,
983,
326,
3022,
319,
1737,
1315,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
3128,
796,
366,
11261,
1315,
1
] | [
1,
1,
1,
1,
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,
4776,
319,
262,
983,
326,
3022,
319,
1737,
1315,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
3128,
796,
366,
11261,
1315,
1
] |
What is the value in 1971 when 30 is the value for 1969? | SELECT "1971" FROM table_42326 WHERE "1969" = '30' | [
2061,
318,
262,
1988,
287,
16382,
618,
1542,
318,
262,
1988,
329,
16450,
30,
46506,
366,
41208,
1,
16034,
3084,
62,
43356,
2075,
33411,
366,
38391,
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,
1
] | [
2061,
318,
262,
1988,
287,
16382,
618,
1542,
318,
262,
1988,
329,
16450,
30,
46506,
366,
41208,
1,
16034,
3084,
62,
43356,
2075,
33411,
366,
38391,
1,
796,
705,
1270,
6
] |
provide the number of patients whose discharge location is home health care and procedure long title is percutaneous abdominal drainage? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.long_title = "Percutaneous abdominal drainage" | [
15234,
485,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1363,
1535,
1337,
290,
8771,
890,
3670,
318,
583,
8968,
11655,
32692,
37664,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
39069,
11179,
40818,
47342,
1,
5357,
9021,
13,
6511,
62,
7839,
796,
366,
47,
2798,
315,
11655,
32692,
37664,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
1363,
1535,
1337,
290,
8771,
890,
3670,
318,
583,
8968,
11655,
32692,
37664,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
39069,
11179,
40818,
47342,
1,
5357,
9021,
13,
6511,
62,
7839,
796,
366,
47,
2798,
315,
11655,
32692,
37664,
1
] |
what is the name of the last episode of season 1 ? | SELECT "title" FROM table_203_349 ORDER BY "no. in\nseason" DESC LIMIT 1 | [
10919,
318,
262,
1438,
286,
262,
938,
4471,
286,
1622,
352,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
27371,
38678,
11050,
366,
3919,
13,
287,
59,
77,
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,
1,
1,
1,
1
] | [
10919,
318,
262,
1438,
286,
262,
938,
4471,
286,
1622,
352,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
27371,
38678,
11050,
366,
3919,
13,
287,
59,
77,
6230,
1,
22196,
34,
27564,
2043,
352
] |
Who directed 'sperminator'? | SELECT "Directed by" FROM table_27829 WHERE "Title" = 'Sperminator' | [
8241,
7924,
705,
82,
525,
1084,
1352,
30960,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
25870,
1959,
33411,
366,
19160,
1,
796,
705,
50,
525,
1084,
1352,
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
] | [
8241,
7924,
705,
82,
525,
1084,
1352,
30960,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
25870,
1959,
33411,
366,
19160,
1,
796,
705,
50,
525,
1084,
1352,
6
] |
how many patients are diagnosed with pure glyceridemia and suggested for replace drug route? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Pure hyperglyceridemia" AND prescriptions.route = "REPLACE" | [
4919,
867,
3871,
389,
14641,
351,
5899,
13874,
2189,
312,
22859,
290,
5220,
329,
6330,
2563,
6339,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
49548,
8718,
10853,
2189,
312,
22859,
1,
5357,
34092,
13,
38629,
796,
366,
2200,
6489,
11598,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
14641,
351,
5899,
13874,
2189,
312,
22859,
290,
5220,
329,
6330,
2563,
6339,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
40567,
13,
19509,
62,
7839,
796,
366,
49548,
8718,
10853,
2189,
312,
22859,
1,
5357,
34092,
13,
38629,
796,
366,
2200,
6489,
11598,
1
] |
A bar chart for what are the number of the names of catalog entries with level number 8?, and rank from high to low by the X-axis. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
21747,
290,
4279,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
62,
13000,
62,
3672,
8,
16034,
44515,
62,
15842,
7054,
256,
16,
32357,
1268,
44515,
62,
15842,
62,
17699,
62,
29021,
7054,
256,
17,
6177,
256,
16,
13,
9246,
11794,
62,
13000,
62,
312,
796,
256,
17,
13,
9246,
11794,
62,
13000,
62,
312,
33411,
256,
17,
13,
9246,
11794,
62,
5715,
62,
17618,
796,
366,
23,
1,
44441,
11050,
18388,
62,
13000,
62,
3672,
38678,
11050,
18388,
62,
13000,
62,
3672,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
21747,
290,
4279,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
62,
13000,
62,
3672,
8,
16034,
44515,
62,
15842,
7054,
256,
16,
32357,
1268,
44515,
62,
15842,
62,
17699,
62,
29021,
7054,
256,
17,
6177,
256,
16,
13,
9246,
11794,
62,
13000,
62,
312,
796,
256,
17,
13,
9246,
11794,
62,
13000,
62,
312,
33411,
256,
17,
13,
9246,
11794,
62,
5715,
62,
17618,
796,
366,
23,
1,
44441,
11050,
18388,
62,
13000,
62,
3672,
38678,
11050,
18388,
62,
13000,
62,
3672,
22196,
34
] |
How many dorms are there? | SELECT COUNT(*) FROM dorm | [
2437,
867,
18586,
82,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
18586
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
18586,
82,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
18586
] |
Where is the station with a coverage of yucat n quintana roo campeche transmitting from? | SELECT transmitting_from FROM table_name_15 WHERE coverage = "yucatán quintana roo campeche" | [
8496,
318,
262,
4429,
351,
257,
5197,
286,
331,
1229,
265,
299,
28533,
2271,
686,
78,
12172,
431,
2395,
39573,
422,
30,
46506,
39573,
62,
6738,
16034,
3084,
62,
3672,
62,
1314,
33411,
5197,
796,
366,
88,
1229,
265,
21162,
28533,
2271,
686,
78,
12172,
431,
2395,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
4429,
351,
257,
5197,
286,
331,
1229,
265,
299,
28533,
2271,
686,
78,
12172,
431,
2395,
39573,
422,
30,
46506,
39573,
62,
6738,
16034,
3084,
62,
3672,
62,
1314,
33411,
5197,
796,
366,
88,
1229,
265,
21162,
28533,
2271,
686,
78,
12172,
431,
2395,
1
] |
What are the names of the states that have some college students playing in the positions of goalie and mid-field? | SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname WHERE T2.ppos = 'goalie' INTERSECT SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname WHERE T2.ppos = 'mid' | [
2061,
389,
262,
3891,
286,
262,
2585,
326,
423,
617,
4152,
2444,
2712,
287,
262,
6116,
286,
31071,
290,
3095,
12,
3245,
30,
46506,
309,
16,
13,
5219,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672,
33411,
309,
17,
13,
381,
418,
796,
705,
35231,
494,
6,
17828,
4877,
9782,
33493,
309,
16,
13,
5219,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672,
33411,
309,
17,
13,
381,
418,
796,
705,
13602,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
262,
2585,
326,
423,
617,
4152,
2444,
2712,
287,
262,
6116,
286,
31071,
290,
3095,
12,
3245,
30,
46506,
309,
16,
13,
5219,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672,
33411,
309,
17,
13,
381,
418,
796,
705,
35231,
494,
6,
17828,
4877,
9782,
33493,
309,
16,
13,
5219,
16034,
4152,
7054,
309,
16,
32357,
1268,
1949,
448,
7054,
309,
17,
6177,
309,
16,
13,
66,
3672,
796,
309,
17,
13,
66,
3672,
33411,
309,
17,
13,
381,
418,
796,
705,
13602,
6
] |
what is the type when the rank is smaller than 70, the province is british columbia and the capacity (mw) is more than 2,480? | SELECT type FROM table_name_14 WHERE rank < 70 AND province = "british columbia" AND capacity___mw__ > 2 OFFSET 480 | [
10919,
318,
262,
2099,
618,
262,
4279,
318,
4833,
621,
4317,
11,
262,
8473,
318,
275,
799,
680,
951,
2178,
544,
290,
262,
5339,
357,
76,
86,
8,
318,
517,
621,
362,
11,
22148,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
1415,
33411,
4279,
1279,
4317,
5357,
8473,
796,
366,
65,
799,
680,
951,
2178,
544,
1,
5357,
5339,
17569,
76,
86,
834,
1875,
362,
3963,
10652,
2767,
23487
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2099,
618,
262,
4279,
318,
4833,
621,
4317,
11,
262,
8473,
318,
275,
799,
680,
951,
2178,
544,
290,
262,
5339,
357,
76,
86,
8,
318,
517,
621,
362,
11,
22148,
30,
46506,
2099,
16034,
3084,
62,
3672,
62,
1415,
33411,
4279,
1279,
4317,
5357,
8473,
796,
366,
65,
799,
680,
951,
2178,
544,
1,
5357,
5339,
17569,
76,
86,
834,
1875,
362,
3963,
10652,
2767,
23487
] |
patient 022-187132 was diagnosed on this hospital encounter for the first time with what? | SELECT diagnosis.diagnosisname FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-187132' AND patient.hospitaldischargetime IS NULL)) ORDER BY diagnosis.diagnosistime LIMIT 1 | [
26029,
657,
1828,
12,
23451,
19924,
373,
14641,
319,
428,
4436,
8791,
329,
262,
717,
640,
351,
644,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
23451,
19924,
6,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
4008,
38678,
11050,
13669,
13,
47356,
418,
396,
524,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26029,
657,
1828,
12,
23451,
19924,
373,
14641,
319,
428,
4436,
8791,
329,
262,
717,
640,
351,
644,
30,
46506,
13669,
13,
47356,
5958,
3672,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
23451,
19924,
6,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
4008,
38678,
11050,
13669,
13,
47356,
418,
396,
524,
27564,
2043,
352
] |
Give me the comparison about the average of Team_ID over the ACC_Road , and group by attribute ACC_Road, and rank in desc by the bars please. | SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY ACC_Road DESC | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
4816,
62,
2389,
625,
262,
15859,
62,
29197,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
4279,
287,
1715,
416,
262,
9210,
3387,
13,
46506,
15859,
62,
29197,
11,
35224,
7,
15592,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
29197,
38678,
11050,
15859,
62,
29197,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
4816,
62,
2389,
625,
262,
15859,
62,
29197,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
290,
4279,
287,
1715,
416,
262,
9210,
3387,
13,
46506,
15859,
62,
29197,
11,
35224,
7,
15592,
62,
2389,
8,
16034,
9669,
62,
15699,
44441,
11050,
15859,
62,
29197,
38678,
11050,
15859,
62,
29197,
22196,
34
] |
Name the start date with lsap and end date of present day | SELECT "Start date" FROM table_14846 WHERE "Party" = 'lsap' AND "End date" = 'present day' | [
5376,
262,
923,
3128,
351,
43979,
499,
290,
886,
3128,
286,
1944,
1110,
46506,
366,
10434,
3128,
1,
16034,
3084,
62,
18294,
3510,
33411,
366,
33553,
1,
796,
705,
7278,
499,
6,
5357,
366,
12915,
3128,
1,
796,
705,
25579,
1110,
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,
923,
3128,
351,
43979,
499,
290,
886,
3128,
286,
1944,
1110,
46506,
366,
10434,
3128,
1,
16034,
3084,
62,
18294,
3510,
33411,
366,
33553,
1,
796,
705,
7278,
499,
6,
5357,
366,
12915,
3128,
1,
796,
705,
25579,
1110,
6
] |
Count the number of patients who were born before the year 2065 and have procedure short title as skin closure nec. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2065" AND procedures.short_title = "Skin closure NEC" | [
12332,
262,
1271,
286,
3871,
508,
547,
4642,
878,
262,
614,
1160,
2996,
290,
423,
8771,
1790,
3670,
355,
4168,
16512,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
2996,
1,
5357,
9021,
13,
19509,
62,
7839,
796,
366,
42455,
16512,
41804,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
3871,
508,
547,
4642,
878,
262,
614,
1160,
2996,
290,
423,
8771,
1790,
3670,
355,
4168,
16512,
27576,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
672,
62,
1941,
1279,
366,
1238,
2996,
1,
5357,
9021,
13,
19509,
62,
7839,
796,
366,
42455,
16512,
41804,
1
] |
indicate the monthly minimum volume of chest tube mediastinal that patient 011-36282 has had since 159 months ago. | SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-36282')) AND intakeoutput.celllabel = 'chest tube mediastinal' AND intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-159 month') GROUP BY STRFTIME('%y-%m', intakeoutput.intakeoutputtime) | [
521,
5344,
262,
9651,
5288,
6115,
286,
7721,
12403,
16957,
459,
1292,
326,
5827,
5534,
16,
12,
2623,
32568,
468,
550,
1201,
26422,
1933,
2084,
13,
46506,
20625,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
2623,
32568,
6,
4008,
5357,
10337,
22915,
13,
3846,
18242,
796,
705,
46713,
12403,
16957,
459,
1292,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
22915,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
19707,
1227,
11537,
44441,
11050,
19269,
9792,
12789,
10786,
4,
88,
12,
4,
76,
3256,
10337,
22915,
13,
600,
539,
22915,
2435,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
521,
5344,
262,
9651,
5288,
6115,
286,
7721,
12403,
16957,
459,
1292,
326,
5827,
5534,
16,
12,
2623,
32568,
468,
550,
1201,
26422,
1933,
2084,
13,
46506,
20625,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
2623,
32568,
6,
4008,
5357,
10337,
22915,
13,
3846,
18242,
796,
705,
46713,
12403,
16957,
459,
1292,
6,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
22915,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
18189,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
19707,
1227,
11537,
44441,
11050,
19269,
9792,
12789,
10786,
4,
88,
12,
4,
76,
3256,
10337,
22915,
13,
600,
539,
22915,
2435,
8
] |
how many patients whose ethnicity is black/haitian and procedure icd9 code is 8854? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND procedures.icd9_code = "8854" | [
4919,
867,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
8771,
14158,
67,
24,
2438,
318,
9193,
4051,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
9148,
8120,
14,
7801,
2043,
16868,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3459,
4051,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
8771,
14158,
67,
24,
2438,
318,
9193,
4051,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
9148,
8120,
14,
7801,
2043,
16868,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3459,
4051,
1
] |
What is the winning score for the runner-up Ernie Els? | SELECT winning_score FROM table_name_7 WHERE runner_s__up = "ernie els" | [
2061,
318,
262,
5442,
4776,
329,
262,
17490,
12,
929,
5256,
11952,
2574,
82,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
22,
33411,
17490,
62,
82,
834,
929,
796,
366,
1142,
494,
1288,
82,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5442,
4776,
329,
262,
17490,
12,
929,
5256,
11952,
2574,
82,
30,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
22,
33411,
17490,
62,
82,
834,
929,
796,
366,
1142,
494,
1288,
82,
1
] |
How many Assists for the Player with a Rank greater than 3 in less than 25 Games? | SELECT AVG(assists) FROM table_name_66 WHERE rank > 3 AND games < 25 | [
2437,
867,
2195,
1023,
329,
262,
7853,
351,
257,
10916,
3744,
621,
513,
287,
1342,
621,
1679,
5776,
30,
46506,
35224,
7,
562,
1023,
8,
16034,
3084,
62,
3672,
62,
2791,
33411,
4279,
1875,
513,
5357,
1830,
1279,
1679
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2195,
1023,
329,
262,
7853,
351,
257,
10916,
3744,
621,
513,
287,
1342,
621,
1679,
5776,
30,
46506,
35224,
7,
562,
1023,
8,
16034,
3084,
62,
3672,
62,
2791,
33411,
4279,
1875,
513,
5357,
1830,
1279,
1679
] |
Return a histogram on how many actors have appeared in each musical?, could you display in asc by the total number? | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY COUNT(*) | [
13615,
257,
1554,
21857,
319,
703,
867,
10544,
423,
4120,
287,
1123,
10530,
21747,
714,
345,
3359,
287,
10570,
416,
262,
2472,
1271,
30,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
10694,
605,
62,
2389,
796,
309,
17,
13,
10694,
605,
62,
2389,
44441,
11050,
309,
16,
13,
10694,
605,
62,
2389,
38678,
11050,
327,
28270,
7,
28104
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1554,
21857,
319,
703,
867,
10544,
423,
4120,
287,
1123,
10530,
21747,
714,
345,
3359,
287,
10570,
416,
262,
2472,
1271,
30,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
10694,
605,
62,
2389,
796,
309,
17,
13,
10694,
605,
62,
2389,
44441,
11050,
309,
16,
13,
10694,
605,
62,
2389,
38678,
11050,
327,
28270,
7,
28104
] |
Who is the current champion for the event in Beverly, MA, with previous champions of Mike Webb and Nick Fahrenheit? | SELECT "Current champion(s)" FROM table_40105 WHERE "Location" = 'beverly, ma' AND "Previous champion(s)" = 'mike webb and nick fahrenheit' | [
8241,
318,
262,
1459,
8783,
329,
262,
1785,
287,
30633,
11,
8779,
11,
351,
2180,
7827,
286,
4995,
25130,
290,
8047,
35935,
30,
46506,
366,
11297,
8783,
7,
82,
16725,
16034,
3084,
62,
21844,
2713,
33411,
366,
14749,
1,
796,
705,
65,
964,
306,
11,
17266,
6,
5357,
366,
21448,
8783,
7,
82,
16725,
796,
705,
76,
522,
3992,
65,
290,
14428,
277,
993,
34032,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
1459,
8783,
329,
262,
1785,
287,
30633,
11,
8779,
11,
351,
2180,
7827,
286,
4995,
25130,
290,
8047,
35935,
30,
46506,
366,
11297,
8783,
7,
82,
16725,
16034,
3084,
62,
21844,
2713,
33411,
366,
14749,
1,
796,
705,
65,
964,
306,
11,
17266,
6,
5357,
366,
21448,
8783,
7,
82,
16725,
796,
705,
76,
522,
3992,
65,
290,
14428,
277,
993,
34032,
6
] |
List the number of enginners in a stacked bar chart The x-axis is first name and group by skill description, and I want to list by the y-axis from high to low. | SELECT first_name, COUNT(first_name) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description, first_name ORDER BY COUNT(first_name) DESC | [
8053,
262,
1271,
286,
551,
1655,
2741,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
717,
1438,
290,
1448,
416,
5032,
6764,
11,
290,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
717,
62,
3672,
11,
327,
28270,
7,
11085,
62,
3672,
8,
16034,
34857,
62,
28620,
7054,
309,
16,
32357,
1268,
23164,
62,
15739,
2171,
7054,
309,
17,
6177,
309,
16,
13,
18392,
263,
62,
312,
796,
309,
17,
13,
18392,
263,
62,
312,
32357,
1268,
20389,
7054,
309,
18,
6177,
309,
17,
13,
42401,
62,
312,
796,
309,
18,
13,
42401,
62,
312,
44441,
11050,
5032,
62,
11213,
11,
717,
62,
3672,
38678,
11050,
327,
28270,
7,
11085,
62,
3672,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1271,
286,
551,
1655,
2741,
287,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
717,
1438,
290,
1448,
416,
5032,
6764,
11,
290,
314,
765,
284,
1351,
416,
262,
331,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
717,
62,
3672,
11,
327,
28270,
7,
11085,
62,
3672,
8,
16034,
34857,
62,
28620,
7054,
309,
16,
32357,
1268,
23164,
62,
15739,
2171,
7054,
309,
17,
6177,
309,
16,
13,
18392,
263,
62,
312,
796,
309,
17,
13,
18392,
263,
62,
312,
32357,
1268,
20389,
7054,
309,
18,
6177,
309,
17,
13,
42401,
62,
312,
796,
309,
18,
13,
42401,
62,
312,
44441,
11050,
5032,
62,
11213,
11,
717,
62,
3672,
38678,
11050,
327,
28270,
7,
11085,
62,
3672,
8,
22196,
34
] |
What is the quantity preserved for the serial number of mallet and simple articulated locomotives? | SELECT quantity_preserved FROM table_name_19 WHERE serial_numbers = "mallet and simple articulated locomotives" | [
2061,
318,
262,
12040,
17232,
329,
262,
11389,
1271,
286,
6428,
1616,
290,
2829,
36877,
33334,
313,
1083,
30,
46506,
12040,
62,
18302,
8520,
16034,
3084,
62,
3672,
62,
1129,
33411,
11389,
62,
77,
17024,
796,
366,
7617,
1616,
290,
2829,
36877,
33334,
313,
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
] | [
2061,
318,
262,
12040,
17232,
329,
262,
11389,
1271,
286,
6428,
1616,
290,
2829,
36877,
33334,
313,
1083,
30,
46506,
12040,
62,
18302,
8520,
16034,
3084,
62,
3672,
62,
1129,
33411,
11389,
62,
77,
17024,
796,
366,
7617,
1616,
290,
2829,
36877,
33334,
313,
1083,
1
] |
michelle skidmore is suffering from which primary disease? | SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Michelle Skidmore" | [
9383,
34454,
1341,
312,
3549,
318,
7195,
422,
543,
4165,
4369,
30,
46506,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
48736,
3661,
312,
3549,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9383,
34454,
1341,
312,
3549,
318,
7195,
422,
543,
4165,
4369,
30,
46506,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
48736,
3661,
312,
3549,
1
] |
Name the highest Profits (billion $) which has a Company of walmart? | SELECT MAX("Profits (billion $)") FROM table_76162 WHERE "Company" = 'walmart' | [
5376,
262,
4511,
4415,
896,
357,
24540,
720,
8,
543,
468,
257,
5834,
286,
6514,
13822,
30,
46506,
25882,
7203,
15404,
896,
357,
24540,
720,
8,
4943,
16034,
3084,
62,
4304,
25061,
33411,
366,
39154,
1,
796,
705,
16783,
13822,
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
] | [
5376,
262,
4511,
4415,
896,
357,
24540,
720,
8,
543,
468,
257,
5834,
286,
6514,
13822,
30,
46506,
25882,
7203,
15404,
896,
357,
24540,
720,
8,
4943,
16034,
3084,
62,
4304,
25061,
33411,
366,
39154,
1,
796,
705,
16783,
13822,
6
] |
Show the party and the number of drivers in each party with a bar chart, and I want to order in desc by the the total number please. | SELECT Party, COUNT(*) FROM driver GROUP BY Party ORDER BY COUNT(*) DESC | [
15307,
262,
2151,
290,
262,
1271,
286,
6643,
287,
1123,
2151,
351,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
287,
1715,
416,
262,
262,
2472,
1271,
3387,
13,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
4639,
44441,
11050,
3615,
38678,
11050,
327,
28270,
7,
28104,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2151,
290,
262,
1271,
286,
6643,
287,
1123,
2151,
351,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
287,
1715,
416,
262,
262,
2472,
1271,
3387,
13,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
4639,
44441,
11050,
3615,
38678,
11050,
327,
28270,
7,
28104,
22196,
34
] |
How many external (cm 2 ) are there for the .338 lapua magnum chambering? | SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum" | [
2437,
867,
7097,
357,
11215,
362,
1267,
389,
612,
329,
262,
764,
28460,
14779,
6413,
7842,
388,
11847,
278,
30,
46506,
327,
28270,
7,
64,
62,
22615,
834,
11215,
62,
17,
834,
8,
16034,
3084,
62,
26276,
37601,
3023,
62,
17,
33411,
11847,
278,
796,
27071,
28460,
26944,
6413,
48019,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7097,
357,
11215,
362,
1267,
389,
612,
329,
262,
764,
28460,
14779,
6413,
7842,
388,
11847,
278,
30,
46506,
327,
28270,
7,
64,
62,
22615,
834,
11215,
62,
17,
834,
8,
16034,
3084,
62,
26276,
37601,
3023,
62,
17,
33411,
11847,
278,
796,
27071,
28460,
26944,
6413,
48019,
1
] |
What player was the number 1 draft pick? | SELECT "Player" FROM table_3226 WHERE "Pick #" = '1' | [
2061,
2137,
373,
262,
1271,
352,
4538,
2298,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
18,
24909,
33411,
366,
31686,
1303,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
373,
262,
1271,
352,
4538,
2298,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
18,
24909,
33411,
366,
31686,
1303,
1,
796,
705,
16,
6
] |
Which Rank has Notes of fb, and a Time of 5:57.31? | SELECT "Rank" FROM table_65191 WHERE "Notes" = 'fb' AND "Time" = '5:57.31' | [
13828,
10916,
468,
11822,
286,
277,
65,
11,
290,
257,
3862,
286,
642,
25,
3553,
13,
3132,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2996,
26492,
33411,
366,
16130,
1,
796,
705,
21855,
6,
5357,
366,
7575,
1,
796,
705,
20,
25,
3553,
13,
3132,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
10916,
468,
11822,
286,
277,
65,
11,
290,
257,
3862,
286,
642,
25,
3553,
13,
3132,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2996,
26492,
33411,
366,
16130,
1,
796,
705,
21855,
6,
5357,
366,
7575,
1,
796,
705,
20,
25,
3553,
13,
3132,
6
] |
Who was the builder of Gannet from the United Kingdom? | SELECT builder FROM table_name_60 WHERE country = "united kingdom" AND ship = "gannet" | [
8241,
373,
262,
27098,
286,
402,
1236,
316,
422,
262,
1578,
7526,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
1899,
33411,
1499,
796,
366,
41187,
13239,
1,
5357,
4074,
796,
366,
1030,
3262,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27098,
286,
402,
1236,
316,
422,
262,
1578,
7526,
30,
46506,
27098,
16034,
3084,
62,
3672,
62,
1899,
33411,
1499,
796,
366,
41187,
13239,
1,
5357,
4074,
796,
366,
1030,
3262,
1
] |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the distribution of hire_date and the sum of manager_id bin hire_date by weekday in a bar chart, and sort from low to high by the Y-axis. | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(MANAGER_ID) | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
290,
3297,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
10725,
4760,
1137,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423,
1,
6375,
5550,
30709,
10979,
62,
2389,
1279,
29,
2319,
38678,
11050,
35683,
7,
10725,
4760,
1137,
62,
2389,
8
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
290,
3297,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
35683,
7,
10725,
4760,
1137,
62,
2389,
8,
16034,
4409,
33411,
42475,
13153,
38651,
8845,
1677,
38055,
5357,
1105,
830,
5357,
22240,
40373,
62,
47,
4177,
1279,
29,
366,
8423,
1,
6375,
5550,
30709,
10979,
62,
2389,
1279,
29,
2319,
38678,
11050,
35683,
7,
10725,
4760,
1137,
62,
2389,
8
] |
What is the average high temperature for each day of week Plot them as bar chart, display in ascending by the X. | SELECT day_of_week, AVG(high_temperature) FROM weekly_weather GROUP BY day_of_week ORDER BY day_of_week | [
2061,
318,
262,
2811,
1029,
5951,
329,
1123,
1110,
286,
1285,
28114,
606,
355,
2318,
8262,
11,
3359,
287,
41988,
416,
262,
1395,
13,
46506,
1110,
62,
1659,
62,
10464,
11,
35224,
7,
8929,
62,
11498,
21069,
8,
16034,
10273,
62,
23563,
44441,
11050,
1110,
62,
1659,
62,
10464,
38678,
11050,
1110,
62,
1659,
62,
10464
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1029,
5951,
329,
1123,
1110,
286,
1285,
28114,
606,
355,
2318,
8262,
11,
3359,
287,
41988,
416,
262,
1395,
13,
46506,
1110,
62,
1659,
62,
10464,
11,
35224,
7,
8929,
62,
11498,
21069,
8,
16034,
10273,
62,
23563,
44441,
11050,
1110,
62,
1659,
62,
10464,
38678,
11050,
1110,
62,
1659,
62,
10464
] |
i would like to fly from BOSTON to BALTIMORE in the afternoon what flights are there | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time BETWEEN 1200 AND 1800 | [
72,
561,
588,
284,
6129,
422,
347,
10892,
1340,
284,
347,
31429,
3955,
6965,
287,
262,
6672,
644,
13956,
389,
612,
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,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
357,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
33,
31429,
3955,
6965,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
5474,
13,
10378,
433,
495,
62,
2435,
38651,
8845,
1677,
24938,
5357,
21431
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
72,
561,
588,
284,
6129,
422,
347,
10892,
1340,
284,
347,
31429,
3955,
6965,
287,
262,
6672,
644,
13956,
389,
612,
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,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
357,
34,
9050,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
33,
31429,
3955,
6965,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
5474,
13,
10378,
433,
495,
62,
2435,
38651,
8845,
1677,
24938,
5357,
21431
] |
Which circuits had a race on October 4? | SELECT circuit FROM table_10725629_2 WHERE date = "October 4" | [
13828,
24907,
550,
257,
3234,
319,
3267,
604,
30,
46506,
10349,
16034,
3084,
62,
15982,
11645,
1959,
62,
17,
33411,
3128,
796,
366,
18517,
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,
1
] | [
13828,
24907,
550,
257,
3234,
319,
3267,
604,
30,
46506,
10349,
16034,
3084,
62,
15982,
11645,
1959,
62,
17,
33411,
3128,
796,
366,
18517,
604,
1
] |
Name the competition for stephanie cox on 2011-07-02 | SELECT competition FROM table_name_64 WHERE assist_pass = "stephanie cox" AND date = "2011-07-02" | [
5376,
262,
5449,
329,
2239,
7637,
494,
763,
87,
319,
2813,
12,
2998,
12,
2999,
46506,
5449,
16034,
3084,
62,
3672,
62,
2414,
33411,
3342,
62,
6603,
796,
366,
9662,
7637,
494,
763,
87,
1,
5357,
3128,
796,
366,
9804,
12,
2998,
12,
2999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5449,
329,
2239,
7637,
494,
763,
87,
319,
2813,
12,
2998,
12,
2999,
46506,
5449,
16034,
3084,
62,
3672,
62,
2414,
33411,
3342,
62,
6603,
796,
366,
9662,
7637,
494,
763,
87,
1,
5357,
3128,
796,
366,
9804,
12,
2998,
12,
2999,
1
] |
What week has December 19, 2004 as the date? | SELECT "Week" FROM table_65565 WHERE "Date" = 'december 19, 2004' | [
2061,
1285,
468,
3426,
678,
11,
5472,
355,
262,
3128,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
35916,
2996,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
678,
11,
5472,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1285,
468,
3426,
678,
11,
5472,
355,
262,
3128,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
35916,
2996,
33411,
366,
10430,
1,
796,
705,
2934,
3273,
678,
11,
5472,
6
] |
During next Winter , what will the special topics classes be ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE (course.number = 398 OR course.number = 498 OR course.number = 598) AND course.department = 'EECS' AND semester.semester = 'Winter' AND semester.year = 2017 | [
7191,
1306,
10633,
837,
644,
481,
262,
2041,
10233,
6097,
307,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
24878,
6177,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
33411,
357,
17319,
13,
17618,
796,
39260,
6375,
1781,
13,
17618,
796,
604,
4089,
6375,
1781,
13,
17618,
796,
642,
4089,
8,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
24878,
13,
325,
6880,
353,
796,
705,
35376,
6,
5357,
24878,
13,
1941,
796,
2177
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7191,
1306,
10633,
837,
644,
481,
262,
2041,
10233,
6097,
307,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
3268,
21479,
32357,
1268,
24878,
6177,
24878,
13,
325,
6880,
353,
62,
312,
796,
1781,
62,
2364,
1586,
13,
325,
6880,
353,
33411,
357,
17319,
13,
17618,
796,
39260,
6375,
1781,
13,
17618,
796,
604,
4089,
6375,
1781,
13,
17618,
796,
642,
4089,
8,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357,
24878,
13,
325,
6880,
353,
796,
705,
35376,
6,
5357,
24878,
13,
1941,
796,
2177
] |
What is average December when game is 30? | SELECT AVG("December") FROM table_9024 WHERE "Game" = '30' | [
2061,
318,
2811,
3426,
618,
983,
318,
1542,
30,
46506,
35224,
7203,
20588,
4943,
16034,
3084,
62,
3829,
1731,
33411,
366,
8777,
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
] | [
2061,
318,
2811,
3426,
618,
983,
318,
1542,
30,
46506,
35224,
7203,
20588,
4943,
16034,
3084,
62,
3829,
1731,
33411,
366,
8777,
1,
796,
705,
1270,
6
] |
What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers? | SELECT SUM("Rank") FROM table_77030 WHERE "Bronze" < '5' AND "Country" = 'japan' AND "Silver" > '3' | [
2061,
373,
262,
2160,
286,
262,
9803,
329,
2869,
508,
550,
1342,
621,
642,
22101,
28057,
290,
517,
621,
513,
3313,
690,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
41820,
1270,
33411,
366,
18760,
2736,
1,
1279,
705,
20,
6,
5357,
366,
33921,
1,
796,
705,
73,
2674,
6,
5357,
366,
26766,
1,
1875,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
262,
9803,
329,
2869,
508,
550,
1342,
621,
642,
22101,
28057,
290,
517,
621,
513,
3313,
690,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
41820,
1270,
33411,
366,
18760,
2736,
1,
1279,
705,
20,
6,
5357,
366,
33921,
1,
796,
705,
73,
2674,
6,
5357,
366,
26766,
1,
1875,
705,
18,
6
] |
What score in the final has hard as the surface, and june 13, 2011 as the date? | SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011" | [
2061,
4776,
287,
262,
2457,
468,
1327,
355,
262,
4417,
11,
290,
474,
1726,
1511,
11,
2813,
355,
262,
3128,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
3553,
33411,
4417,
796,
366,
10424,
1,
5357,
3128,
796,
366,
73,
1726,
1511,
11,
2813,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
287,
262,
2457,
468,
1327,
355,
262,
4417,
11,
290,
474,
1726,
1511,
11,
2813,
355,
262,
3128,
30,
46506,
4776,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
3553,
33411,
4417,
796,
366,
10424,
1,
5357,
3128,
796,
366,
73,
1726,
1511,
11,
2813,
1
] |
How many entries for start of stage occur in the year 2006? | SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = "2006" | [
2437,
867,
12784,
329,
923,
286,
3800,
3051,
287,
262,
614,
4793,
30,
46506,
327,
28270,
7,
9688,
62,
1659,
62,
14247,
8,
16034,
3084,
62,
1983,
22730,
21,
62,
16,
33411,
614,
796,
366,
13330,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12784,
329,
923,
286,
3800,
3051,
287,
262,
614,
4793,
30,
46506,
327,
28270,
7,
9688,
62,
1659,
62,
14247,
8,
16034,
3084,
62,
1983,
22730,
21,
62,
16,
33411,
614,
796,
366,
13330,
1
] |
What is the average score for the player who is T5 in the United States? | SELECT AVG("Score") FROM table_76810 WHERE "Place" = 't5' AND "Country" = 'united states' | [
2061,
318,
262,
2811,
4776,
329,
262,
2137,
508,
318,
309,
20,
287,
262,
1578,
1829,
30,
46506,
35224,
7203,
26595,
4943,
16034,
3084,
62,
30610,
940,
33411,
366,
27271,
1,
796,
705,
83,
20,
6,
5357,
366,
33921,
1,
796,
705,
41187,
2585,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
4776,
329,
262,
2137,
508,
318,
309,
20,
287,
262,
1578,
1829,
30,
46506,
35224,
7203,
26595,
4943,
16034,
3084,
62,
30610,
940,
33411,
366,
27271,
1,
796,
705,
83,
20,
6,
5357,
366,
33921,
1,
796,
705,
41187,
2585,
6
] |
get me the number of patients less than 70 years who had arterial catheterization. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "70" AND procedures.short_title = "Arterial catheterization" | [
1136,
502,
262,
1271,
286,
3871,
1342,
621,
4317,
812,
508,
550,
30675,
498,
3797,
43332,
1634,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
496,
1279,
366,
2154,
1,
5357,
9021,
13,
19509,
62,
7839,
796,
366,
3163,
353,
498,
3797,
43332,
1634,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
1342,
621,
4317,
812,
508,
550,
30675,
498,
3797,
43332,
1634,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
496,
1279,
366,
2154,
1,
5357,
9021,
13,
19509,
62,
7839,
796,
366,
3163,
353,
498,
3797,
43332,
1634,
1
] |
which Score points has a Rank points of 10, and an Event of wc milan? | SELECT score_points FROM table_name_42 WHERE rank_points = "10" AND event = "wc milan" | [
4758,
15178,
2173,
468,
257,
10916,
2173,
286,
838,
11,
290,
281,
8558,
286,
266,
66,
1465,
272,
30,
46506,
4776,
62,
13033,
16034,
3084,
62,
3672,
62,
3682,
33411,
4279,
62,
13033,
796,
366,
940,
1,
5357,
1785,
796,
366,
86,
66,
1465,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
15178,
2173,
468,
257,
10916,
2173,
286,
838,
11,
290,
281,
8558,
286,
266,
66,
1465,
272,
30,
46506,
4776,
62,
13033,
16034,
3084,
62,
3672,
62,
3682,
33411,
4279,
62,
13033,
796,
366,
940,
1,
5357,
1785,
796,
366,
86,
66,
1465,
272,
1
] |
among patients with other preterm infants 1,750-1,999 grams how many of them were male? | 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 = "Other preterm infants, 1,750-1,999 grams" | [
35131,
3871,
351,
584,
662,
4354,
18775,
352,
11,
15426,
12,
16,
11,
17032,
16379,
703,
867,
286,
606,
547,
4257,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
662,
4354,
18775,
11,
352,
11,
15426,
12,
16,
11,
17032,
16379,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35131,
3871,
351,
584,
662,
4354,
18775,
352,
11,
15426,
12,
16,
11,
17032,
16379,
703,
867,
286,
606,
547,
4257,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
40567,
13,
6511,
62,
7839,
796,
366,
6395,
662,
4354,
18775,
11,
352,
11,
15426,
12,
16,
11,
17032,
16379,
1
] |
How many people live in ? | SELECT MAX(population) FROM table_1300525_1 WHERE simplified = "铅山县" | [
2437,
867,
661,
2107,
287,
5633,
46506,
25882,
7,
39748,
8,
16034,
3084,
62,
1485,
22544,
1495,
62,
16,
33411,
27009,
796,
366,
165,
241,
227,
161,
109,
109,
43889,
123,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
661,
2107,
287,
5633,
46506,
25882,
7,
39748,
8,
16034,
3084,
62,
1485,
22544,
1495,
62,
16,
33411,
27009,
796,
366,
165,
241,
227,
161,
109,
109,
43889,
123,
1
] |
What was the minimum population in 2011? | SELECT MIN("Population (2011)") FROM table_25852 | [
2061,
373,
262,
5288,
3265,
287,
2813,
30,
46506,
20625,
7203,
45251,
357,
9804,
8,
4943,
16034,
3084,
62,
25600,
4309
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5288,
3265,
287,
2813,
30,
46506,
20625,
7203,
45251,
357,
9804,
8,
4943,
16034,
3084,
62,
25600,
4309
] |
what is the number of patients whose days of hospital stay is greater than 4 and diagnoses icd9 code is 45821? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "4" AND diagnoses.icd9_code = "45821" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
40567,
14158,
67,
24,
2438,
318,
50154,
2481,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
12545,
62,
31712,
1875,
366,
19,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
29334,
2481,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
40567,
14158,
67,
24,
2438,
318,
50154,
2481,
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,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
12545,
62,
31712,
1875,
366,
19,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
29334,
2481,
1
] |
what were the top four most prescribed drugs for patients who had also been prescribed atropine sulfate ophth 1% at the same time in 2105? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'atropine sulfate ophth 1%' AND STRFTIME('%y', prescriptions.startdate) = '2105') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE STRFTIME('%y', prescriptions.startdate) = '2105') AS t2 ON t1.subject_id = t2.subject_id WHERE DATETIME(t1.startdate) = DATETIME(t2.startdate) GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 4 | [
10919,
547,
262,
1353,
1440,
749,
14798,
5010,
329,
3871,
508,
550,
635,
587,
14798,
379,
1773,
500,
22443,
378,
267,
746,
400,
352,
4,
379,
262,
976,
640,
287,
362,
13348,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
796,
705,
265,
1773,
500,
22443,
378,
267,
746,
400,
352,
4,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
17,
13348,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
30349,
11,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
17,
13348,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
360,
1404,
2767,
12789,
7,
83,
16,
13,
9688,
4475,
8,
796,
360,
1404,
2767,
12789,
7,
83,
17,
13,
9688,
4475,
8,
44441,
11050,
256,
17,
13,
30349,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
547,
262,
1353,
1440,
749,
14798,
5010,
329,
3871,
508,
550,
635,
587,
14798,
379,
1773,
500,
22443,
378,
267,
746,
400,
352,
4,
379,
262,
976,
640,
287,
362,
13348,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
34092,
13,
30349,
796,
705,
265,
1773,
500,
22443,
378,
267,
746,
400,
352,
4,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
17,
13348,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
25349,
13,
32796,
62,
312,
11,
34092,
13,
30349,
11,
34092,
13,
9688,
4475,
16034,
34092,
32357,
1268,
25349,
6177,
34092,
13,
18108,
76,
62,
312,
796,
25349,
13,
18108,
76,
62,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
34092,
13,
9688,
4475,
8,
796,
705,
17,
13348,
11537,
7054,
256,
17,
6177,
256,
16,
13,
32796,
62,
312,
796,
256,
17,
13,
32796,
62,
312,
33411,
360,
1404,
2767,
12789,
7,
83,
16,
13,
9688,
4475,
8,
796,
360,
1404,
2767,
12789,
7,
83,
17,
13,
9688,
4475,
8,
44441,
11050,
256,
17,
13,
30349,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
604
] |
What is the date for the name of Granville? | SELECT date FROM table_name_39 WHERE name = "granville" | [
2061,
318,
262,
3128,
329,
262,
1438,
286,
17113,
4244,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
46324,
4244,
1
] | [
1,
1,
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,
3128,
329,
262,
1438,
286,
17113,
4244,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
46324,
4244,
1
] |
Which pick was MIchael Holper? | SELECT MIN("Pick") FROM table_53676 WHERE "Player" = 'michael holper' | [
13828,
2298,
373,
15789,
354,
3010,
6479,
525,
30,
46506,
20625,
7203,
31686,
4943,
16034,
3084,
62,
44468,
4304,
33411,
366,
14140,
1,
796,
705,
76,
40302,
6039,
525,
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
] | [
13828,
2298,
373,
15789,
354,
3010,
6479,
525,
30,
46506,
20625,
7203,
31686,
4943,
16034,
3084,
62,
44468,
4304,
33411,
366,
14140,
1,
796,
705,
76,
40302,
6039,
525,
6
] |
what were the top five most common microbiology tests that followed during the same month for patients who had a surgery consultation in the last year? | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'surgery consultation' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT patient.uniquepid, microlab.culturesite, microlab.culturetakentime FROM microlab JOIN patient ON microlab.patientunitstayid = patient.patientunitstayid WHERE DATETIME(microlab.culturetakentime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.culturetakentime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.culturetakentime, 'start of month') GROUP BY t2.culturesite) AS t3 WHERE t3.c1 <= 5 | [
10919,
547,
262,
1353,
1936,
749,
2219,
24559,
1435,
5254,
326,
3940,
1141,
262,
976,
1227,
329,
3871,
508,
550,
257,
8185,
18103,
287,
262,
938,
614,
30,
46506,
256,
18,
13,
40820,
942,
578,
16034,
357,
46506,
256,
17,
13,
40820,
942,
578,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
2435,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
3513,
13,
42487,
3672,
796,
705,
11793,
7076,
18103,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
6,
4008,
7054,
256,
16,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
4580,
23912,
13,
40820,
942,
578,
11,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
32357,
1268,
5827,
6177,
4580,
23912,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
360,
1404,
2767,
12789,
7,
24055,
23912,
13,
25584,
83,
461,
298,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
6,
4008,
7054,
256,
17,
6177,
256,
16,
13,
403,
1557,
538,
312,
796,
256,
17,
13,
403,
1557,
538,
312,
33411,
256,
16,
13,
42487,
2435,
1279,
256,
17,
13,
25584,
83,
461,
298,
524,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
42487,
2435,
11,
705,
9688,
286,
1227,
11537,
796,
360,
1404,
2767,
12789,
7,
83,
17,
13,
25584,
83,
461,
298,
524,
11,
705,
9688,
286,
1227,
11537,
44441,
11050,
256,
17,
13,
40820,
942,
578,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
547,
262,
1353,
1936,
749,
2219,
24559,
1435,
5254,
326,
3940,
1141,
262,
976,
1227,
329,
3871,
508,
550,
257,
8185,
18103,
287,
262,
938,
614,
30,
46506,
256,
18,
13,
40820,
942,
578,
16034,
357,
46506,
256,
17,
13,
40820,
942,
578,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
2435,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
3513,
13,
42487,
3672,
796,
705,
11793,
7076,
18103,
6,
5357,
360,
1404,
2767,
12789,
7,
42487,
13,
42487,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
6,
4008,
7054,
256,
16,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
4580,
23912,
13,
40820,
942,
578,
11,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
32357,
1268,
5827,
6177,
4580,
23912,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
360,
1404,
2767,
12789,
7,
24055,
23912,
13,
25584,
83,
461,
298,
524,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
6,
4008,
7054,
256,
17,
6177,
256,
16,
13,
403,
1557,
538,
312,
796,
256,
17,
13,
403,
1557,
538,
312,
33411,
256,
16,
13,
42487,
2435,
1279,
256,
17,
13,
25584,
83,
461,
298,
524,
5357,
360,
1404,
2767,
12789,
7,
83,
16,
13,
42487,
2435,
11,
705,
9688,
286,
1227,
11537,
796,
360,
1404,
2767,
12789,
7,
83,
17,
13,
25584,
83,
461,
298,
524,
11,
705,
9688,
286,
1227,
11537,
44441,
11050,
256,
17,
13,
40820,
942,
578,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
642
] |
For those products with a price between 60 and 120, draw a scatter chart about the correlation between code and manufacturer . | SELECT Code, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 | [
1890,
883,
3186,
351,
257,
2756,
1022,
3126,
290,
7982,
11,
3197,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
11554,
764,
46506,
6127,
11,
40218,
16034,
18675,
33411,
7886,
38651,
8845,
1677,
3126,
5357,
7982
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3186,
351,
257,
2756,
1022,
3126,
290,
7982,
11,
3197,
257,
41058,
8262,
546,
262,
16096,
1022,
2438,
290,
11554,
764,
46506,
6127,
11,
40218,
16034,
18675,
33411,
7886,
38651,
8845,
1677,
3126,
5357,
7982
] |
What class is the RML Team? | SELECT class FROM table_name_40 WHERE team = "rml" | [
2061,
1398,
318,
262,
371,
5805,
4816,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
1821,
33411,
1074,
796,
366,
81,
4029,
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,
1398,
318,
262,
371,
5805,
4816,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
1821,
33411,
1074,
796,
366,
81,
4029,
1
] |
how many actors have appeared in each musical?, order x-axis in ascending order please. | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY T2.Name | [
4919,
867,
10544,
423,
4120,
287,
1123,
10530,
21747,
1502,
2124,
12,
22704,
287,
41988,
1502,
3387,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
10694,
605,
62,
2389,
796,
309,
17,
13,
10694,
605,
62,
2389,
44441,
11050,
309,
16,
13,
10694,
605,
62,
2389,
38678,
11050,
309,
17,
13,
5376
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10544,
423,
4120,
287,
1123,
10530,
21747,
1502,
2124,
12,
22704,
287,
41988,
1502,
3387,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054,
309,
16,
32357,
1268,
10530,
7054,
309,
17,
6177,
309,
16,
13,
10694,
605,
62,
2389,
796,
309,
17,
13,
10694,
605,
62,
2389,
44441,
11050,
309,
16,
13,
10694,
605,
62,
2389,
38678,
11050,
309,
17,
13,
5376
] |
In what year was the artist Afro-dite? | SELECT year FROM table_name_54 WHERE artist = "afro-dite" | [
818,
644,
614,
373,
262,
6802,
2483,
305,
12,
67,
578,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
4051,
33411,
6802,
796,
366,
1878,
305,
12,
67,
578,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
614,
373,
262,
6802,
2483,
305,
12,
67,
578,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
4051,
33411,
6802,
796,
366,
1878,
305,
12,
67,
578,
1
] |
Who was the home team when grimsby town was the away team? | SELECT "Home team" FROM table_12654 WHERE "Away team" = 'grimsby town' | [
8241,
373,
262,
1363,
1074,
618,
1036,
12078,
1525,
3240,
373,
262,
1497,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
1065,
39111,
33411,
366,
32,
1014,
1074,
1,
796,
705,
2164,
12078,
1525,
3240,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1363,
1074,
618,
1036,
12078,
1525,
3240,
373,
262,
1497,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
1065,
39111,
33411,
366,
32,
1014,
1074,
1,
796,
705,
2164,
12078,
1525,
3240,
6
] |
Name the height for 2008 club of trentino volley | SELECT "Height" FROM table_52910 WHERE "2008 club" = 'trentino volley' | [
5376,
262,
6001,
329,
3648,
3430,
286,
256,
1156,
2879,
32967,
46506,
366,
23106,
1,
16034,
3084,
62,
49721,
940,
33411,
366,
11528,
3430,
1,
796,
705,
83,
1156,
2879,
32967,
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
] | [
5376,
262,
6001,
329,
3648,
3430,
286,
256,
1156,
2879,
32967,
46506,
366,
23106,
1,
16034,
3084,
62,
49721,
940,
33411,
366,
11528,
3430,
1,
796,
705,
83,
1156,
2879,
32967,
6
] |
What is the result of the 2007 AFC asian cup? | SELECT result FROM table_name_19 WHERE competition = "2007 afc asian cup" | [
2061,
318,
262,
1255,
286,
262,
4343,
27987,
355,
666,
6508,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1129,
33411,
5449,
796,
366,
12726,
6580,
66,
355,
666,
6508,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
4343,
27987,
355,
666,
6508,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1129,
33411,
5449,
796,
366,
12726,
6580,
66,
355,
666,
6508,
1
] |
Who wrote the episodes that had a viewership of 7.14? | SELECT written_by FROM table_24910737_1 WHERE us_viewers__millions_ = "7.14" | [
8241,
2630,
262,
8640,
326,
550,
257,
48347,
286,
767,
13,
1415,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
21626,
15982,
2718,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
22,
13,
1415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2630,
262,
8640,
326,
550,
257,
48347,
286,
767,
13,
1415,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
21626,
15982,
2718,
62,
16,
33411,
514,
62,
1177,
364,
834,
17805,
507,
62,
796,
366,
22,
13,
1415,
1
] |
when was the last 2009 utah utes football game ? | SELECT "date" FROM table_203_158 ORDER BY id DESC LIMIT 1 | [
12518,
373,
262,
938,
3717,
3384,
993,
220,
1769,
4346,
983,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
21273,
38678,
11050,
4686,
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
] | [
12518,
373,
262,
938,
3717,
3384,
993,
220,
1769,
4346,
983,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
22416,
62,
21273,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
Return a histogram on what are the ids and names of the companies that operated more than one flight?, display in asc by the x axis please. | SELECT T1.name, T1.id FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id ORDER BY T1.name | [
13615,
257,
1554,
21857,
319,
644,
389,
262,
220,
2340,
290,
3891,
286,
262,
2706,
326,
12228,
517,
621,
530,
5474,
21747,
3359,
287,
10570,
416,
262,
2124,
16488,
3387,
13,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
312,
16034,
8076,
62,
39722,
7054,
309,
16,
32357,
1268,
5474,
7054,
256,
17,
6177,
309,
16,
13,
312,
796,
309,
17,
13,
39722,
62,
312,
38678,
11050,
309,
16,
13,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1554,
21857,
319,
644,
389,
262,
220,
2340,
290,
3891,
286,
262,
2706,
326,
12228,
517,
621,
530,
5474,
21747,
3359,
287,
10570,
416,
262,
2124,
16488,
3387,
13,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
312,
16034,
8076,
62,
39722,
7054,
309,
16,
32357,
1268,
5474,
7054,
256,
17,
6177,
309,
16,
13,
312,
796,
309,
17,
13,
39722,
62,
312,
38678,
11050,
309,
16,
13,
3672
] |
Find out the top 10 customers by total number of orders. List customers' first and last name and the number of total orders. | SELECT T1.first_name, T1.last_name, COUNT(*) FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 10 | [
16742,
503,
262,
1353,
838,
4297,
416,
2472,
1271,
286,
6266,
13,
7343,
4297,
6,
717,
290,
938,
1438,
290,
262,
1271,
286,
2472,
6266,
13,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
4297,
7054,
309,
16,
32357,
1268,
800,
78,
1063,
7054,
309,
17,
6177,
309,
17,
13,
23144,
263,
62,
312,
796,
309,
16,
13,
312,
44441,
11050,
309,
16,
13,
312,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
503,
262,
1353,
838,
4297,
416,
2472,
1271,
286,
6266,
13,
7343,
4297,
6,
717,
290,
938,
1438,
290,
262,
1271,
286,
2472,
6266,
13,
46506,
309,
16,
13,
11085,
62,
3672,
11,
309,
16,
13,
12957,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
4297,
7054,
309,
16,
32357,
1268,
800,
78,
1063,
7054,
309,
17,
6177,
309,
17,
13,
23144,
263,
62,
312,
796,
309,
16,
13,
312,
44441,
11050,
309,
16,
13,
312,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
838
] |
What date is associated with the label Village Records? | SELECT "Date" FROM table_15650 WHERE "Label" = 'village records' | [
2061,
3128,
318,
3917,
351,
262,
6167,
14812,
13407,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1314,
17544,
33411,
366,
33986,
1,
796,
705,
41082,
496,
4406,
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,
3128,
318,
3917,
351,
262,
6167,
14812,
13407,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1314,
17544,
33411,
366,
33986,
1,
796,
705,
41082,
496,
4406,
6
] |
Who corned the most points for the game that ended with a score of l 85 94 (ot)? | SELECT "High points" FROM table_29884 WHERE "Score" = 'L 85–94 (OT)' | [
8241,
1162,
2817,
262,
749,
2173,
329,
262,
983,
326,
4444,
351,
257,
4776,
286,
300,
7600,
10048,
357,
313,
19427,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
1959,
40353,
33411,
366,
26595,
1,
796,
705,
43,
7600,
1906,
5824,
357,
2394,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
1162,
2817,
262,
749,
2173,
329,
262,
983,
326,
4444,
351,
257,
4776,
286,
300,
7600,
10048,
357,
313,
19427,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
1959,
40353,
33411,
366,
26595,
1,
796,
705,
43,
7600,
1906,
5824,
357,
2394,
33047
] |
Which constructor was present at the Redex Trophy race? | SELECT "Constructor" FROM table_222 WHERE "Race Name" = 'RedeX Trophy' | [
13828,
23772,
373,
1944,
379,
262,
2297,
1069,
25640,
3234,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
23148,
33411,
366,
35157,
6530,
1,
796,
705,
7738,
68,
55,
25640,
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,
23772,
373,
1944,
379,
262,
2297,
1069,
25640,
3234,
30,
46506,
366,
42316,
273,
1,
16034,
3084,
62,
23148,
33411,
366,
35157,
6530,
1,
796,
705,
7738,
68,
55,
25640,
6
] |
how far from the airport in the DFW airport is DALLAS | SELECT DISTINCT airport_service.miles_distant FROM airport, airport_service, city WHERE airport.airport_code = 'DFW' AND airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'DALLAS' | [
4919,
1290,
422,
262,
9003,
287,
262,
360,
24160,
9003,
318,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
9003,
62,
15271,
13,
76,
2915,
62,
67,
10167,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
8068,
54,
6,
5357,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
1748,
13,
19205,
62,
3672,
796,
705,
35,
7036,
1921,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1290,
422,
262,
9003,
287,
262,
360,
24160,
9003,
318,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
9003,
62,
15271,
13,
76,
2915,
62,
67,
10167,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
8068,
54,
6,
5357,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19205,
62,
8189,
5357,
1748,
13,
19205,
62,
3672,
796,
705,
35,
7036,
1921,
6
] |
give me the number of patients whose marital status is single and procedure icd9 code is 8968? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.icd9_code = "8968" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
4531,
3104,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
318,
2060,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
4531,
3104,
1
] |
what is the one year survival rate of acute respiratory failure - due to pulmonary infiltrates patients who were prescribed with cefazolin 2 gm in ns 100 ml ivpb (repackage)? | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'acute respiratory failure - due to pulmonary infiltrates' GROUP BY patient.uniquepid HAVING MIN(diagnosis.diagnosistime) = diagnosis.diagnosistime) AS t1) AS t2 JOIN (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'cefazolin 2 gm in ns 100 ml ivpb (repackage)') AS t3 ON t2.uniquepid = t3.uniquepid WHERE t2.diagnosistime < t3.drugstarttime) AS t4 JOIN patient ON t4.uniquepid = patient.uniquepid | [
10919,
318,
262,
530,
614,
9441,
2494,
286,
14352,
22949,
5287,
532,
2233,
284,
45105,
21086,
689,
3871,
508,
547,
14798,
351,
269,
891,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
357,
7856,
441,
496,
19427,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
352,
42099,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
49257,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
256,
19,
13,
47356,
418,
396,
524,
8,
1875,
352,
1635,
21268,
42243,
352,
17852,
5188,
657,
23578,
8,
1635,
1802,
1220,
327,
28270,
7,
28104,
16034,
357,
46506,
256,
17,
13,
403,
1557,
538,
312,
11,
256,
17,
13,
47356,
418,
396,
524,
16034,
357,
46506,
256,
16,
13,
403,
1557,
538,
312,
11,
256,
16,
13,
47356,
418,
396,
524,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
32357,
1268,
5827,
6177,
13669,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
13669,
13,
47356,
5958,
3672,
796,
705,
330,
1133,
22949,
5287,
532,
2233,
284,
45105,
21086,
689,
6,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
367,
10116,
2751,
20625,
7,
47356,
5958,
13,
47356,
418,
396,
524,
8,
796,
13669,
13,
47356,
418,
396,
524,
8,
7054,
256,
16,
8,
7054,
256,
17,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
14103,
13,
30349,
9688,
2435,
16034,
14103,
32357,
1268,
5827,
6177,
14103,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
14103,
13,
30349,
3672,
796,
705,
344,
69,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
357,
7856,
441,
496,
8,
11537,
7054,
256,
18,
6177,
256,
17,
13,
403,
1557,
538,
312,
796,
256,
18,
13,
403,
1557,
538,
312,
33411,
256,
17,
13,
47356,
418,
396,
524,
1279,
256,
18,
13,
30349,
9688,
2435,
8,
7054,
256,
19,
32357,
1268,
5827,
6177,
256,
19,
13,
403,
1557,
538,
312,
796,
5827,
13,
403,
1557,
538,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
530,
614,
9441,
2494,
286,
14352,
22949,
5287,
532,
2233,
284,
45105,
21086,
689,
3871,
508,
547,
14798,
351,
269,
891,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
357,
7856,
441,
496,
19427,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
352,
42099,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
49257,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
256,
19,
13,
47356,
418,
396,
524,
8,
1875,
352,
1635,
21268,
42243,
352,
17852,
5188,
657,
23578,
8,
1635,
1802,
1220,
327,
28270,
7,
28104,
16034,
357,
46506,
256,
17,
13,
403,
1557,
538,
312,
11,
256,
17,
13,
47356,
418,
396,
524,
16034,
357,
46506,
256,
16,
13,
403,
1557,
538,
312,
11,
256,
16,
13,
47356,
418,
396,
524,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
13669,
13,
47356,
418,
396,
524,
16034,
13669,
32357,
1268,
5827,
6177,
13669,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
13669,
13,
47356,
5958,
3672,
796,
705,
330,
1133,
22949,
5287,
532,
2233,
284,
45105,
21086,
689,
6,
44441,
11050,
5827,
13,
403,
1557,
538,
312,
367,
10116,
2751,
20625,
7,
47356,
5958,
13,
47356,
418,
396,
524,
8,
796,
13669,
13,
47356,
418,
396,
524,
8,
7054,
256,
16,
8,
7054,
256,
17,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
14103,
13,
30349,
9688,
2435,
16034,
14103,
32357,
1268,
5827,
6177,
14103,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
14103,
13,
30349,
3672,
796,
705,
344,
69,
1031,
24910,
362,
308,
76,
287,
36545,
1802,
25962,
21628,
40842,
357,
7856,
441,
496,
8,
11537,
7054,
256,
18,
6177,
256,
17,
13,
403,
1557,
538,
312,
796,
256,
18,
13,
403,
1557,
538,
312,
33411,
256,
17,
13,
47356,
418,
396,
524,
1279,
256,
18,
13,
30349,
9688,
2435,
8,
7054,
256,
19,
32357,
1268,
5827,
6177,
256,
19,
13,
403,
1557,
538,
312,
796,
5827,
13,
403,
1557,
538,
312
] |
Who played the mathematics student? | SELECT "Played by" FROM table_31094 WHERE "Occupation" = 'Mathematics Student' | [
8241,
2826,
262,
19473,
3710,
30,
46506,
366,
11002,
276,
416,
1,
16034,
3084,
62,
26717,
5824,
33411,
366,
47658,
341,
1,
796,
705,
19044,
10024,
873,
13613,
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,
2826,
262,
19473,
3710,
30,
46506,
366,
11002,
276,
416,
1,
16034,
3084,
62,
26717,
5824,
33411,
366,
47658,
341,
1,
796,
705,
19044,
10024,
873,
13613,
6
] |
Show the different headquarters and number of companies at each headquarter, and list X-axis in descending order. | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY Headquarters DESC | [
15307,
262,
1180,
10043,
290,
1271,
286,
2706,
379,
1123,
1182,
24385,
11,
290,
1351,
1395,
12,
22704,
287,
31491,
1502,
13,
46506,
32193,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
32193,
38678,
11050,
32193,
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,
1,
1
] | [
15307,
262,
1180,
10043,
290,
1271,
286,
2706,
379,
1123,
1182,
24385,
11,
290,
1351,
1395,
12,
22704,
287,
31491,
1502,
13,
46506,
32193,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
32193,
38678,
11050,
32193,
22196,
34
] |
What is the interview score for the state of Virginia? | SELECT "Interview" FROM table_17631 WHERE "State" = 'Virginia' | [
2061,
318,
262,
2720,
4776,
329,
262,
1181,
286,
6025,
30,
46506,
366,
39945,
1,
16034,
3084,
62,
24096,
3132,
33411,
366,
9012,
1,
796,
705,
41017,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2720,
4776,
329,
262,
1181,
286,
6025,
30,
46506,
366,
39945,
1,
16034,
3084,
62,
24096,
3132,
33411,
366,
9012,
1,
796,
705,
41017,
6
] |
On what date is the Crowd larger than 28,049, and an Home team score of 17.15 (117)? | SELECT "Date" FROM table_57426 WHERE "Crowd" > '28,049' AND "Home team score" = '17.15 (117)' | [
2202,
644,
3128,
318,
262,
29452,
4025,
621,
2579,
11,
15,
2920,
11,
290,
281,
5995,
1074,
4776,
286,
1596,
13,
1314,
357,
17657,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
3553,
42780,
33411,
366,
34,
3986,
1,
1875,
705,
2078,
11,
15,
2920,
6,
5357,
366,
16060,
1074,
4776,
1,
796,
705,
1558,
13,
1314,
357,
17657,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
29452,
4025,
621,
2579,
11,
15,
2920,
11,
290,
281,
5995,
1074,
4776,
286,
1596,
13,
1314,
357,
17657,
19427,
46506,
366,
10430,
1,
16034,
3084,
62,
3553,
42780,
33411,
366,
34,
3986,
1,
1875,
705,
2078,
11,
15,
2920,
6,
5357,
366,
16060,
1074,
4776,
1,
796,
705,
1558,
13,
1314,
357,
17657,
33047
] |
Where was the race on 09-13-2008? | SELECT track FROM table_name_34 WHERE date = "09-13-2008" | [
8496,
373,
262,
3234,
319,
7769,
12,
1485,
12,
11528,
30,
46506,
2610,
16034,
3084,
62,
3672,
62,
2682,
33411,
3128,
796,
366,
2931,
12,
1485,
12,
11528,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
3234,
319,
7769,
12,
1485,
12,
11528,
30,
46506,
2610,
16034,
3084,
62,
3672,
62,
2682,
33411,
3128,
796,
366,
2931,
12,
1485,
12,
11528,
1
] |
What venue was round 20 held at? | SELECT venue FROM table_name_11 WHERE round = 20 | [
2061,
14359,
373,
2835,
1160,
2714,
379,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1157,
33411,
2835,
796,
1160
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
373,
2835,
1160,
2714,
379,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1157,
33411,
2835,
796,
1160
] |
A bar chart shows the distribution of All_Road and ACC_Percent , display in ascending by the y-axis. | SELECT All_Road, ACC_Percent FROM basketball_match ORDER BY ACC_Percent | [
32,
2318,
8262,
2523,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
837,
3359,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
1439,
62,
29197,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
15859,
62,
31905
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2523,
262,
6082,
286,
1439,
62,
29197,
290,
15859,
62,
31905,
837,
3359,
287,
41988,
416,
262,
331,
12,
22704,
13,
46506,
1439,
62,
29197,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
15859,
62,
31905
] |
What is the team sites entry for Microsoft Sharepoint? | SELECT team_sites FROM table_name_59 WHERE name = "microsoft sharepoint" | [
2061,
318,
262,
1074,
5043,
5726,
329,
5413,
8734,
4122,
30,
46506,
1074,
62,
49315,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
40485,
2648,
4122,
1
] | [
1,
1,
1,
1,
1,
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,
1074,
5043,
5726,
329,
5413,
8734,
4122,
30,
46506,
1074,
62,
49315,
16034,
3084,
62,
3672,
62,
3270,
33411,
1438,
796,
366,
40485,
2648,
4122,
1
] |
Name who directed the episode for the series number 236 | SELECT "Directed by" FROM table_72896 WHERE "Series #" = '236' | [
5376,
508,
7924,
262,
4471,
329,
262,
2168,
1271,
34044,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
48524,
4846,
33411,
366,
27996,
1303,
1,
796,
705,
24940,
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,
508,
7924,
262,
4471,
329,
262,
2168,
1271,
34044,
46506,
366,
13470,
276,
416,
1,
16034,
3084,
62,
48524,
4846,
33411,
366,
27996,
1303,
1,
796,
705,
24940,
6
] |
How many of the episodes have Roger Goldby as the director? | SELECT "Total#" FROM table_19255 WHERE "Director" = 'Roger Goldby' | [
2437,
867,
286,
262,
8640,
423,
13637,
3561,
1525,
355,
262,
3437,
30,
46506,
366,
14957,
2,
1,
16034,
3084,
62,
1129,
13381,
33411,
366,
28702,
1,
796,
705,
43719,
3561,
1525,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
286,
262,
8640,
423,
13637,
3561,
1525,
355,
262,
3437,
30,
46506,
366,
14957,
2,
1,
16034,
3084,
62,
1129,
13381,
33411,
366,
28702,
1,
796,
705,
43719,
3561,
1525,
6
] |
List every album whose title starts with A in alphabetical order. | SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title | [
8053,
790,
5062,
3025,
3670,
4940,
351,
317,
287,
24830,
605,
1502,
13,
46506,
3670,
16034,
16788,
33411,
3670,
34178,
705,
32,
4,
6,
38678,
11050,
3670
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
790,
5062,
3025,
3670,
4940,
351,
317,
287,
24830,
605,
1502,
13,
46506,
3670,
16034,
16788,
33411,
3670,
34178,
705,
32,
4,
6,
38678,
11050,
3670
] |
Find Questions with No Answers by Users with 1 Reputation. | SELECT q.Id, q.Title, q.CreationDate, q.Body, q.Tags FROM Posts AS q, Users AS u WHERE q.AnswerCount = 0 AND q.OwnerUserId = u.Id AND u.Reputation = 1 AND NOT q.PostTypeId = 2 ORDER BY CreationDate DESC | [
16742,
20396,
351,
1400,
42612,
416,
18987,
351,
352,
1432,
7094,
13,
46506,
10662,
13,
7390,
11,
10662,
13,
19160,
11,
10662,
13,
12443,
341,
10430,
11,
10662,
13,
25842,
11,
10662,
13,
36142,
16034,
12043,
7054,
10662,
11,
18987,
7054,
334,
33411,
10662,
13,
33706,
12332,
796,
657,
5357,
10662,
13,
42419,
12982,
7390,
796,
334,
13,
7390,
5357,
334,
13,
6207,
7094,
796,
352,
5357,
5626,
10662,
13,
6307,
6030,
7390,
796,
362,
38678,
11050,
21582,
10430,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20396,
351,
1400,
42612,
416,
18987,
351,
352,
1432,
7094,
13,
46506,
10662,
13,
7390,
11,
10662,
13,
19160,
11,
10662,
13,
12443,
341,
10430,
11,
10662,
13,
25842,
11,
10662,
13,
36142,
16034,
12043,
7054,
10662,
11,
18987,
7054,
334,
33411,
10662,
13,
33706,
12332,
796,
657,
5357,
10662,
13,
42419,
12982,
7390,
796,
334,
13,
7390,
5357,
334,
13,
6207,
7094,
796,
352,
5357,
5626,
10662,
13,
6307,
6030,
7390,
796,
362,
38678,
11050,
21582,
10430,
22196,
34
] |
What is the 2006 value of the 2009 A value, 2011 A value, and A as the 2007 value? | SELECT 2006 FROM table_name_68 WHERE 2009 = "a" AND 2011 = "a" AND 2007 = "a" | [
2061,
318,
262,
4793,
1988,
286,
262,
3717,
317,
1988,
11,
2813,
317,
1988,
11,
290,
317,
355,
262,
4343,
1988,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
3104,
33411,
3717,
796,
366,
64,
1,
5357,
2813,
796,
366,
64,
1,
5357,
4343,
796,
366,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4793,
1988,
286,
262,
3717,
317,
1988,
11,
2813,
317,
1988,
11,
290,
317,
355,
262,
4343,
1988,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
3104,
33411,
3717,
796,
366,
64,
1,
5357,
2813,
796,
366,
64,
1,
5357,
4343,
796,
366,
64,
1
] |
how much is the minimum total cost of a hospital that involves a drug called albumin human in 2104? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'albumin human')) AND STRFTIME('%y', cost.chargetime) = '2104' GROUP BY cost.patienthealthsystemstayid) AS t1 | [
4919,
881,
318,
262,
5288,
2472,
1575,
286,
257,
4436,
326,
9018,
257,
2563,
1444,
5062,
259,
1692,
287,
362,
13464,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
14103,
13,
26029,
20850,
31712,
312,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
40916,
259,
1692,
6,
4008,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
1575,
13,
354,
7641,
524,
8,
796,
705,
17,
13464,
6,
44441,
11050,
1575,
13,
26029,
13948,
10057,
31712,
312,
8,
7054,
256,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
318,
262,
5288,
2472,
1575,
286,
257,
4436,
326,
9018,
257,
2563,
1444,
5062,
259,
1692,
287,
362,
13464,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
14103,
13,
26029,
20850,
31712,
312,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
40916,
259,
1692,
6,
4008,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
1575,
13,
354,
7641,
524,
8,
796,
705,
17,
13464,
6,
44441,
11050,
1575,
13,
26029,
13948,
10057,
31712,
312,
8,
7054,
256,
16
] |
For all players, show the number of different club names they come from, and display y axis in desc order. | SELECT T1.name, COUNT(T1.name) FROM club AS T1 JOIN player AS T2 ON T1.Club_ID = T2.Club_ID GROUP BY T1.name ORDER BY COUNT(T1.name) DESC | [
1890,
477,
1938,
11,
905,
262,
1271,
286,
1180,
3430,
3891,
484,
1282,
422,
11,
290,
3359,
331,
16488,
287,
1715,
1502,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
51,
16,
13,
3672,
8,
16034,
3430,
7054,
309,
16,
32357,
1268,
2137,
7054,
309,
17,
6177,
309,
16,
13,
42350,
62,
2389,
796,
309,
17,
13,
42350,
62,
2389,
44441,
11050,
309,
16,
13,
3672,
38678,
11050,
327,
28270,
7,
51,
16,
13,
3672,
8,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
11,
905,
262,
1271,
286,
1180,
3430,
3891,
484,
1282,
422,
11,
290,
3359,
331,
16488,
287,
1715,
1502,
13,
46506,
309,
16,
13,
3672,
11,
327,
28270,
7,
51,
16,
13,
3672,
8,
16034,
3430,
7054,
309,
16,
32357,
1268,
2137,
7054,
309,
17,
6177,
309,
16,
13,
42350,
62,
2389,
796,
309,
17,
13,
42350,
62,
2389,
44441,
11050,
309,
16,
13,
3672,
38678,
11050,
327,
28270,
7,
51,
16,
13,
3672,
8,
22196,
34
] |
what was the name of the first intake that patient 022-109861 had until 1810 days ago. | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-109861')) AND intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) <= DATETIME(CURRENT_TIME(), '-1810 day') ORDER BY intakeoutput.intakeoutputtime LIMIT 1 | [
10919,
373,
262,
1438,
286,
262,
717,
10337,
326,
5827,
657,
1828,
12,
940,
4089,
5333,
550,
1566,
1248,
940,
1528,
2084,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
940,
4089,
5333,
6,
4008,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
600,
539,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
1507,
940,
1110,
11537,
38678,
11050,
10337,
22915,
13,
600,
539,
22915,
2435,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
1438,
286,
262,
717,
10337,
326,
5827,
657,
1828,
12,
940,
4089,
5333,
550,
1566,
1248,
940,
1528,
2084,
13,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44087,
12,
940,
4089,
5333,
6,
4008,
5357,
10337,
22915,
13,
3846,
6978,
34178,
705,
4,
600,
539,
4,
6,
5357,
360,
1404,
2767,
12789,
7,
600,
539,
22915,
13,
600,
539,
22915,
2435,
8,
19841,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
12,
1507,
940,
1110,
11537,
38678,
11050,
10337,
22915,
13,
600,
539,
22915,
2435,
27564,
2043,
352
] |
What is the record for the Utah Jazz? | SELECT record FROM table_name_4 WHERE team = "utah jazz" | [
2061,
318,
262,
1700,
329,
262,
10202,
21406,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
19,
33411,
1074,
796,
366,
315,
993,
21274,
1
] | [
1,
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,
1700,
329,
262,
10202,
21406,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
19,
33411,
1074,
796,
366,
315,
993,
21274,
1
] |
For those records from the products and each product's manufacturer, give me the comparison about the average of price over the headquarter , and group by attribute headquarter by a bar chart, could you show in ascending by the Headquarter? | SELECT Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2756,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
714,
345,
905,
287,
41988,
416,
262,
7123,
24385,
30,
46506,
7123,
24385,
11,
35224,
7,
18124,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
7123,
24385,
38678,
11050,
7123,
24385
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2756,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
714,
345,
905,
287,
41988,
416,
262,
7123,
24385,
30,
46506,
7123,
24385,
11,
35224,
7,
18124,
8,
16034,
18675,
7054,
309,
16,
32357,
1268,
17858,
17496,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
10669,
44441,
11050,
7123,
24385,
38678,
11050,
7123,
24385
] |
List of databases on the StackExchange network. | SELECT name FROM sysdatabases WHERE name NOT IN ('master', 'tempdb', 'model', 'msdb', 'Data.StackExchange') | [
8053,
286,
20083,
319,
262,
23881,
3109,
3803,
3127,
13,
46506,
1438,
16034,
25064,
19608,
18826,
33411,
1438,
5626,
3268,
19203,
9866,
3256,
705,
29510,
9945,
3256,
705,
19849,
3256,
705,
907,
9945,
3256,
705,
6601,
13,
25896,
3109,
3803,
11537
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
286,
20083,
319,
262,
23881,
3109,
3803,
3127,
13,
46506,
1438,
16034,
25064,
19608,
18826,
33411,
1438,
5626,
3268,
19203,
9866,
3256,
705,
29510,
9945,
3256,
705,
19849,
3256,
705,
907,
9945,
3256,
705,
6601,
13,
25896,
3109,
3803,
11537
] |
Who is listed as the Visitor that has a Home of Boston Bruins and a Date of November 15? | SELECT "Visitor" FROM table_69993 WHERE "Home" = 'boston bruins' AND "Date" = 'november 15' | [
8241,
318,
5610,
355,
262,
6911,
2072,
326,
468,
257,
5995,
286,
6182,
27607,
290,
257,
7536,
286,
3389,
1315,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
47325,
6052,
33411,
366,
16060,
1,
796,
705,
65,
5744,
18145,
1040,
6,
5357,
366,
10430,
1,
796,
705,
77,
3239,
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,
1,
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,
5610,
355,
262,
6911,
2072,
326,
468,
257,
5995,
286,
6182,
27607,
290,
257,
7536,
286,
3389,
1315,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
47325,
6052,
33411,
366,
16060,
1,
796,
705,
65,
5744,
18145,
1040,
6,
5357,
366,
10430,
1,
796,
705,
77,
3239,
1315,
6
] |
how many wrestlers entered the battle royal ? | SELECT COUNT("wrestler") FROM table_203_277 | [
4919,
867,
41758,
5982,
262,
3344,
15100,
5633,
46506,
327,
28270,
7203,
86,
2118,
1754,
4943,
16034,
3084,
62,
22416,
62,
27019
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
41758,
5982,
262,
3344,
15100,
5633,
46506,
327,
28270,
7203,
86,
2118,
1754,
4943,
16034,
3084,
62,
22416,
62,
27019
] |
What is the decor of room Recluse and defiance? | SELECT decor FROM Rooms WHERE roomName = "Recluse and defiance" | [
2061,
318,
262,
11705,
286,
2119,
797,
565,
1904,
290,
35287,
30,
46506,
11705,
16034,
42043,
33411,
2119,
5376,
796,
366,
3041,
565,
1904,
290,
35287,
1
] | [
1,
1,
1,
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,
11705,
286,
2119,
797,
565,
1904,
290,
35287,
30,
46506,
11705,
16034,
42043,
33411,
2119,
5376,
796,
366,
3041,
565,
1904,
290,
35287,
1
] |
Show the account name and other account detail for all accounts by the customer with first name Meaghan and last name Keeling. | SELECT T1.account_name, T1.other_account_details FROM accounts AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Meaghan" AND T2.customer_last_name = "Keeling" | [
15307,
262,
1848,
1438,
290,
584,
1848,
3703,
329,
477,
5504,
416,
262,
6491,
351,
717,
1438,
2185,
45109,
290,
938,
1438,
3873,
10809,
13,
46506,
309,
16,
13,
23317,
62,
3672,
11,
309,
16,
13,
847,
62,
23317,
62,
36604,
16034,
5504,
7054,
309,
16,
32357,
1268,
4297,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
33411,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
796,
366,
5308,
45109,
1,
5357,
309,
17,
13,
23144,
263,
62,
12957,
62,
3672,
796,
366,
8896,
10809,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1848,
1438,
290,
584,
1848,
3703,
329,
477,
5504,
416,
262,
6491,
351,
717,
1438,
2185,
45109,
290,
938,
1438,
3873,
10809,
13,
46506,
309,
16,
13,
23317,
62,
3672,
11,
309,
16,
13,
847,
62,
23317,
62,
36604,
16034,
5504,
7054,
309,
16,
32357,
1268,
4297,
7054,
309,
17,
6177,
309,
16,
13,
23144,
263,
62,
312,
796,
309,
17,
13,
23144,
263,
62,
312,
33411,
309,
17,
13,
23144,
263,
62,
11085,
62,
3672,
796,
366,
5308,
45109,
1,
5357,
309,
17,
13,
23144,
263,
62,
12957,
62,
3672,
796,
366,
8896,
10809,
1
] |
what airlines fly from BOSTON to SAN FRANCISCO | SELECT DISTINCT airline.airline_code FROM airline, 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code | [
10919,
26225,
6129,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
18091,
13,
958,
1370,
62,
8189,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26225,
6129,
422,
347,
10892,
1340,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
8202,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
958,
1370,
62,
8189,
796,
18091,
13,
958,
1370,
62,
8189,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] |
If the district ID is 74907, what is the name of the district? | SELECT district_name FROM table_22665117_1 WHERE dist_id = 74907 | [
1532,
262,
4783,
4522,
318,
767,
2920,
2998,
11,
644,
318,
262,
1438,
286,
262,
4783,
30,
46506,
4783,
62,
3672,
16034,
3084,
62,
1828,
36879,
17657,
62,
16,
33411,
1233,
62,
312,
796,
767,
2920,
2998
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4783,
4522,
318,
767,
2920,
2998,
11,
644,
318,
262,
1438,
286,
262,
4783,
30,
46506,
4783,
62,
3672,
16034,
3084,
62,
1828,
36879,
17657,
62,
16,
33411,
1233,
62,
312,
796,
767,
2920,
2998
] |
Subsets and Splits