instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
For each type of store, how many of them are there Plot them as bar chart, and display from high to low by the Y-axis. | SELECT Type, COUNT(*) FROM store GROUP BY Type ORDER BY COUNT(*) DESC | [
1890,
1123,
2099,
286,
3650,
11,
703,
867,
286,
606,
389,
612,
28114,
606,
355,
2318,
8262,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
3650,
44441,
11050,
5994,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
2099,
286,
3650,
11,
703,
867,
286,
606,
389,
612,
28114,
606,
355,
2318,
8262,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
3650,
44441,
11050,
5994,
3... |
What place does Fred Funk, who has a score of 69-69=138, have? | SELECT "Place" FROM table_67162 WHERE "Score" = '69-69=138' AND "Player" = 'fred funk' | [
2061,
1295,
857,
8559,
37299,
11,
508,
468,
257,
4776,
286,
8644,
12,
3388,
28,
20107,
11,
423,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3134,
25061,
33411,
366,
26595,
1,
796,
705,
3388,
12,
3388,
28,
20107,
6,
5357,
366,
14140,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1295,
857,
8559,
37299,
11,
508,
468,
257,
4776,
286,
8644,
12,
3388,
28,
20107,
11,
423,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3134,
25061,
33411,
366,
26595,
1,
796,
705,
3388,
12,
3388,
28,
20107,
6,
5357,
366,
14140,
... |
What is the average Attendance for the final round? | SELECT AVG("Attendance") FROM table_67946 WHERE "Round" = 'final' | [
2061,
318,
262,
2811,
46502,
590,
329,
262,
2457,
2835,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
37601,
3510,
33411,
366,
22685,
1,
796,
705,
20311,
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,
2811,
46502,
590,
329,
262,
2457,
2835,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
37601,
3510,
33411,
366,
22685,
1,
796,
705,
20311,
6
] |
Which Rank has a Nation of china (chn), and a Bronze smaller than 4? | SELECT MAX(rank) FROM table_name_17 WHERE nation = "china (chn)" AND bronze < 4 | [
13828,
10916,
468,
257,
8741,
286,
442,
1437,
357,
1349,
828,
290,
257,
19461,
4833,
621,
604,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
3277,
796,
366,
354,
1437,
357,
1349,
16725,
5357,
22101,
1279,
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
] | [
13828,
10916,
468,
257,
8741,
286,
442,
1437,
357,
1349,
828,
290,
257,
19461,
4833,
621,
604,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
3277,
796,
366,
354,
1437,
357,
1349,
16725,
5357,
22101,
1279,
604
... |
did patient 13528 have osteoarthros nos-unspec diagnosed since 2 years ago? | SELECT COUNT(*) > 0 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'osteoarthros nos-unspec') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13528) AND DATETIME(diagnoses... | [
20839,
5827,
17501,
2078,
423,
32674,
78,
11999,
4951,
43630,
12,
403,
16684,
14641,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
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... | [
20839,
5827,
17501,
2078,
423,
32674,
78,
11999,
4951,
43630,
12,
403,
16684,
14641,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
40567,
62,
291,
67,
33411,
40567,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
... |
How many frequencies have a model number of core i5-655k? | SELECT COUNT(frequency) FROM table_23028629_2 WHERE model_number = "Core i5-655K" | [
2437,
867,
19998,
423,
257,
2746,
1271,
286,
4755,
1312,
20,
12,
35916,
74,
30,
46506,
327,
28270,
7,
35324,
8,
16034,
3084,
62,
19214,
27033,
1959,
62,
17,
33411,
2746,
62,
17618,
796,
366,
14055,
1312,
20,
12,
35916,
42,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19998,
423,
257,
2746,
1271,
286,
4755,
1312,
20,
12,
35916,
74,
30,
46506,
327,
28270,
7,
35324,
8,
16034,
3084,
62,
19214,
27033,
1959,
62,
17,
33411,
2746,
62,
17618,
796,
366,
14055,
1312,
20,
12,
35916,
42,
1
] |
What is the B Score when the total is more than 16.125, and position is 3rd? | SELECT SUM(b_score) FROM table_name_70 WHERE total > 16.125 AND position = "3rd" | [
2061,
318,
262,
347,
15178,
618,
262,
2472,
318,
517,
621,
1467,
13,
11623,
11,
290,
2292,
318,
513,
4372,
30,
46506,
35683,
7,
65,
62,
26675,
8,
16034,
3084,
62,
3672,
62,
2154,
33411,
2472,
1875,
1467,
13,
11623,
5357,
2292,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
347,
15178,
618,
262,
2472,
318,
517,
621,
1467,
13,
11623,
11,
290,
2292,
318,
513,
4372,
30,
46506,
35683,
7,
65,
62,
26675,
8,
16034,
3084,
62,
3672,
62,
2154,
33411,
2472,
1875,
1467,
13,
11623,
5357,
2292,
796,
... |
What is the smallest grid with collision as the Time/Retired for pedro diniz? | SELECT MIN("Grid") FROM table_51664 WHERE "Time/Retired" = 'collision' AND "Driver" = 'pedro diniz' | [
2061,
318,
262,
18197,
10706,
351,
17661,
355,
262,
3862,
14,
9781,
1202,
329,
7190,
305,
16278,
528,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
47493,
2414,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
26000,
1166,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
10706,
351,
17661,
355,
262,
3862,
14,
9781,
1202,
329,
7190,
305,
16278,
528,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
47493,
2414,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
26000,
1166,
6,
53... |
What is the coordinate velocity v dx/dt in units of c total number if the velocity angle in i-radians is ln[2 + 5] 1.444? | SELECT COUNT(coordinate_velocity_v_dx_dt_in_units_of_c) FROM table_15314901_1 WHERE velocity_angle_η_in_i_radians = "ln[2 + √5] ≅ 1.444" | [
2061,
318,
262,
20435,
15432,
410,
44332,
14,
28664,
287,
4991,
286,
269,
2472,
1271,
611,
262,
15432,
9848,
287,
1312,
12,
6335,
1547,
318,
300,
77,
58,
17,
1343,
642,
60,
352,
13,
30272,
30,
46506,
327,
28270,
7,
37652,
4559,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
20435,
15432,
410,
44332,
14,
28664,
287,
4991,
286,
269,
2472,
1271,
611,
262,
15432,
9848,
287,
1312,
12,
6335,
1547,
318,
300,
77,
58,
17,
1343,
642,
60,
352,
13,
30272,
30,
46506,
327,
28270,
7,
37652,
4559,
62,
... |
Who did the Trail Blazers play on January 2? | SELECT team FROM table_17058178_8 WHERE date = "January 2" | [
8241,
750,
262,
13069,
34766,
711,
319,
3269,
362,
30,
46506,
1074,
16034,
3084,
62,
1558,
2713,
23,
23188,
62,
23,
33411,
3128,
796,
366,
21339,
362,
1
] | [
1,
1,
1,
1,
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,
750,
262,
13069,
34766,
711,
319,
3269,
362,
30,
46506,
1074,
16034,
3084,
62,
1558,
2713,
23,
23188,
62,
23,
33411,
3128,
796,
366,
21339,
362,
1
] |
provide the number of patients whose diagnoses icd9 code is v4281 and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V4281" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
410,
19,
30368,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
410,
19,
30368,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
6... |
tell me the number of patients on main drug type prescription who were born before the year 2058. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2058" AND prescriptions.drug_type = "MAIN" | [
33331,
502,
262,
1271,
286,
3871,
319,
1388,
2563,
2099,
15077,
508,
547,
4642,
878,
262,
614,
1160,
3365,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1271,
286,
3871,
319,
1388,
2563,
2099,
15077,
508,
547,
4642,
878,
262,
614,
1160,
3365,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
61... |
Who was the winner with a score of 7 6 (7 3) , 2 6, [10 6]? | SELECT "Winner" FROM table_55900 WHERE "Score" = '7–6 (7–3) , 2–6, [10–6]' | [
8241,
373,
262,
8464,
351,
257,
4776,
286,
767,
718,
357,
22,
513,
8,
837,
362,
718,
11,
685,
940,
718,
60,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
2816,
12865,
33411,
366,
26595,
1,
796,
705,
22,
1906,
21,
357,
22,
1906,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
8464,
351,
257,
4776,
286,
767,
718,
357,
22,
513,
8,
837,
362,
718,
11,
685,
940,
718,
60,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
2816,
12865,
33411,
366,
26595,
1,
796,
705,
22,
1906,
21,
357,
22,
1906,
18,... |
On what grounds did the away team of the Toronto Rebels play? | SELECT "Ground" FROM table_75903 WHERE "Away" = 'toronto rebels' | [
2202,
644,
9384,
750,
262,
1497,
1074,
286,
262,
6586,
36069,
711,
30,
46506,
366,
35539,
1,
16034,
3084,
62,
38314,
3070,
33411,
366,
32,
1014,
1,
796,
705,
13165,
5957,
12669,
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
] | [
2202,
644,
9384,
750,
262,
1497,
1074,
286,
262,
6586,
36069,
711,
30,
46506,
366,
35539,
1,
16034,
3084,
62,
38314,
3070,
33411,
366,
32,
1014,
1,
796,
705,
13165,
5957,
12669,
6
] |
Which Overall has a College of florida state, and a Round larger than 2? | SELECT SUM("Overall") FROM table_39369 WHERE "College" = 'florida state' AND "Round" > '2' | [
13828,
14674,
468,
257,
5535,
286,
781,
273,
3755,
1181,
11,
290,
257,
10485,
4025,
621,
362,
30,
46506,
35683,
7203,
16350,
4943,
16034,
3084,
62,
2670,
30803,
33411,
366,
38951,
1,
796,
705,
2704,
273,
3755,
1181,
6,
5357,
366,
2268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14674,
468,
257,
5535,
286,
781,
273,
3755,
1181,
11,
290,
257,
10485,
4025,
621,
362,
30,
46506,
35683,
7203,
16350,
4943,
16034,
3084,
62,
2670,
30803,
33411,
366,
38951,
1,
796,
705,
2704,
273,
3755,
1181,
6,
5357,
366,
2268... |
what album is 4:30 long | SELECT album FROM table_name_95 WHERE length = "4:30" | [
10919,
5062,
318,
604,
25,
1270,
890,
46506,
5062,
16034,
3084,
62,
3672,
62,
3865,
33411,
4129,
796,
366,
19,
25,
1270,
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,
5062,
318,
604,
25,
1270,
890,
46506,
5062,
16034,
3084,
62,
3672,
62,
3865,
33411,
4129,
796,
366,
19,
25,
1270,
1
] |
What was the format for catalog 660-51-015? | SELECT format FROM table_name_51 WHERE catalog = "660-51-015" | [
2061,
373,
262,
5794,
329,
18388,
41717,
12,
4349,
12,
25150,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
4349,
33411,
18388,
796,
366,
39885,
12,
4349,
12,
25150,
1
] | [
1,
1,
1,
1,
1,
1,
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,
5794,
329,
18388,
41717,
12,
4349,
12,
25150,
30,
46506,
5794,
16034,
3084,
62,
3672,
62,
4349,
33411,
18388,
796,
366,
39885,
12,
4349,
12,
25150,
1
] |
Which player had an opponent of Blackburn Rovers? | SELECT player FROM table_24765815_1 WHERE opponent = "Blackburn Rovers" | [
13828,
2137,
550,
281,
6125,
286,
42603,
5564,
690,
30,
46506,
2137,
16034,
3084,
62,
23753,
38431,
1314,
62,
16,
33411,
6125,
796,
366,
9915,
10899,
5564,
690,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
550,
281,
6125,
286,
42603,
5564,
690,
30,
46506,
2137,
16034,
3084,
62,
23753,
38431,
1314,
62,
16,
33411,
6125,
796,
366,
9915,
10899,
5564,
690,
1
] |
what event comes before hardcore tv # 14 ? | SELECT "event" FROM table_204_23 WHERE id = (SELECT id FROM table_204_23 WHERE "event" = 'hardcore tv #14') - 1 | [
10919,
1785,
2058,
878,
22823,
31557,
1303,
1478,
5633,
46506,
366,
15596,
1,
16034,
3084,
62,
18638,
62,
1954,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
1954,
33411,
366,
15596,
1,
796,
705,
10424,
7295,
31557,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1785,
2058,
878,
22823,
31557,
1303,
1478,
5633,
46506,
366,
15596,
1,
16034,
3084,
62,
18638,
62,
1954,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
1954,
33411,
366,
15596,
1,
796,
705,
10424,
7295,
31557,
13... |
If the mountains classification is Mathias Frank, and the General Classification is Fabian Cancellara, what is the Points classification? | SELECT "Points classification" FROM table_3800 WHERE "General classification" = 'Fabian Cancellara' AND "Mountains Classification" = 'Mathias Frank' | [
1532,
262,
12269,
17923,
318,
16320,
4448,
5278,
11,
290,
262,
3611,
40984,
318,
14236,
666,
43780,
297,
3301,
11,
644,
318,
262,
11045,
17923,
30,
46506,
366,
40710,
17923,
1,
16034,
3084,
62,
2548,
405,
33411,
366,
12218,
17923,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12269,
17923,
318,
16320,
4448,
5278,
11,
290,
262,
3611,
40984,
318,
14236,
666,
43780,
297,
3301,
11,
644,
318,
262,
11045,
17923,
30,
46506,
366,
40710,
17923,
1,
16034,
3084,
62,
2548,
405,
33411,
366,
12218,
17923,
1,
... |
Who was the team captain for Crystal Palace? | SELECT "Captain" FROM table_70937 WHERE "Team" = 'crystal palace' | [
8241,
373,
262,
1074,
10654,
329,
12969,
15301,
30,
46506,
366,
27898,
1,
16034,
3084,
62,
31495,
2718,
33411,
366,
15592,
1,
796,
705,
20470,
7757,
20562,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
1074,
10654,
329,
12969,
15301,
30,
46506,
366,
27898,
1,
16034,
3084,
62,
31495,
2718,
33411,
366,
15592,
1,
796,
705,
20470,
7757,
20562,
6
] |
which player had the least amount listed in transfer fees ? | SELECT "player" FROM table_204_402 ORDER BY "transfer fee\n(\u20ac million)" LIMIT 1 | [
4758,
2137,
550,
262,
1551,
2033,
5610,
287,
4351,
6642,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
32531,
38678,
11050,
366,
39437,
6838,
59,
77,
38016,
84,
1238,
330,
1510,
16725,
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
] | [
4758,
2137,
550,
262,
1551,
2033,
5610,
287,
4351,
6642,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
32531,
38678,
11050,
366,
39437,
6838,
59,
77,
38016,
84,
1238,
330,
1510,
16725,
27564,
2043,
352
] |
What are the average prices of wines for different years Show the trend, and list x axis in asc order please. | SELECT Year, AVG(Price) FROM wine GROUP BY Year ORDER BY Year | [
2061,
389,
262,
2811,
4536,
286,
30680,
329,
1180,
812,
5438,
262,
5182,
11,
290,
1351,
2124,
16488,
287,
10570,
1502,
3387,
13,
46506,
6280,
11,
35224,
7,
18124,
8,
16034,
8237,
44441,
11050,
6280,
38678,
11050,
6280
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
4536,
286,
30680,
329,
1180,
812,
5438,
262,
5182,
11,
290,
1351,
2124,
16488,
287,
10570,
1502,
3387,
13,
46506,
6280,
11,
35224,
7,
18124,
8,
16034,
8237,
44441,
11050,
6280,
38678,
11050,
6280
] |
Who was the opponent at the game that had a loss of Caldwell (10-11)? | SELECT opponent FROM table_name_35 WHERE loss = "caldwell (10-11)" | [
8241,
373,
262,
6125,
379,
262,
983,
326,
550,
257,
2994,
286,
37387,
357,
940,
12,
1157,
19427,
46506,
6125,
16034,
3084,
62,
3672,
62,
2327,
33411,
2994,
796,
366,
66,
1940,
4053,
357,
940,
12,
1157,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6125,
379,
262,
983,
326,
550,
257,
2994,
286,
37387,
357,
940,
12,
1157,
19427,
46506,
6125,
16034,
3084,
62,
3672,
62,
2327,
33411,
2994,
796,
366,
66,
1940,
4053,
357,
940,
12,
1157,
16725
] |
Which Social Liberal Party has 4.5% of the Conservative People's Party? | SELECT "Social Liberal Party (B)" FROM table_39238 WHERE "Conservative People's Party (C)" = '4.5%' | [
13828,
5483,
12266,
3615,
468,
604,
13,
20,
4,
286,
262,
11132,
4380,
338,
3615,
30,
46506,
366,
20636,
12266,
3615,
357,
33,
16725,
16034,
3084,
62,
2670,
23721,
33411,
366,
42039,
4380,
338,
3615,
357,
34,
16725,
796,
705,
19,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5483,
12266,
3615,
468,
604,
13,
20,
4,
286,
262,
11132,
4380,
338,
3615,
30,
46506,
366,
20636,
12266,
3615,
357,
33,
16725,
16034,
3084,
62,
2670,
23721,
33411,
366,
42039,
4380,
338,
3615,
357,
34,
16725,
796,
705,
19,
13,
... |
what was the dose of ambisome that was prescribed since 02/2103 for the last time to patient 5561? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 5561) AND prescriptions.drug = 'ambisome' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2103-02' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
10919,
373,
262,
10742,
286,
4915,
271,
462,
326,
373,
14798,
1201,
7816,
14,
17,
15197,
329,
262,
938,
640,
284,
5827,
642,
47915,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
10742,
286,
4915,
271,
462,
326,
373,
14798,
1201,
7816,
14,
17,
15197,
329,
262,
938,
640,
284,
5827,
642,
47915,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
... |
what is the maximum age of patients with private insurance who were discharged to location - disc-tran cancer/chldrn h? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" | [
10919,
318,
262,
5415,
2479,
286,
3871,
351,
2839,
5096,
508,
547,
26476,
284,
4067,
532,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5415,
2479,
286,
3871,
351,
2839,
5096,
508,
547,
26476,
284,
4067,
532,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
... |
parsing 2014 papers | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2014 | [
79,
945,
278,
1946,
9473,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
705,
79,
945,
278,
6,
5357,
3348,
2539,
34675,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
79,
945,
278,
1946,
9473,
46506,
360,
8808,
1268,
4177,
3348,
13,
20189,
312,
16034,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1994,
34675,
13,
2539,
746,
8847,
12453,
796,
705,
79,
945,
278,
6,
5357,
3348,
2539,
34675,
13,... |
when was the first blood, venipuncture microbiology test conducted in patient 031-3355 on their current hospital encounter? | SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355' AND patient.hospitaldischargetime IS NULL)) AND microla... | [
12518,
373,
262,
717,
2910,
11,
8710,
541,
39187,
24559,
1435,
1332,
5952,
287,
5827,
657,
3132,
12,
2091,
2816,
319,
511,
1459,
4436,
8791,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
2910,
11,
8710,
541,
39187,
24559,
1435,
1332,
5952,
287,
5827,
657,
3132,
12,
2091,
2816,
319,
511,
1459,
4436,
8791,
30,
46506,
4580,
23912,
13,
25584,
83,
461,
298,
524,
16034,
4580,
23912,
33411,
4580,
23912,
... |
What date has 0-6700-30838-2-9 for a catalog? | SELECT "Date" FROM table_62835 WHERE "Catalog" = '0-6700-30838-2-9' | [
2061,
3128,
468,
657,
12,
3134,
405,
12,
21495,
2548,
12,
17,
12,
24,
329,
257,
18388,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
48200,
2327,
33411,
366,
49015,
1,
796,
705,
15,
12,
3134,
405,
12,
21495,
2548,
12,
17,
12,
24,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
468,
657,
12,
3134,
405,
12,
21495,
2548,
12,
17,
12,
24,
329,
257,
18388,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
48200,
2327,
33411,
366,
49015,
1,
796,
705,
15,
12,
3134,
405,
12,
21495,
2548,
12,
17,
12,
24,
6... |
what drug is prescribed to patient 3125 two or more times since 10/2105? | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3125) AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-10' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1... | [
10919,
2563,
318,
14798,
284,
5827,
513,
11623,
734,
393,
517,
1661,
1201,
838,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7054,
269,
16,
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... | [
10919,
2563,
318,
14798,
284,
5827,
513,
11623,
734,
393,
517,
1661,
1201,
838,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7054,
269,
16,
16... |
How old was the horse when the SP was 200/1? | SELECT COUNT("Age") FROM table_2582 WHERE "SP" = '200/1' | [
2437,
1468,
373,
262,
8223,
618,
262,
6226,
373,
939,
14,
16,
30,
46506,
327,
28270,
7203,
23396,
4943,
16034,
3084,
62,
1495,
6469,
33411,
366,
4303,
1,
796,
705,
2167,
14,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
1468,
373,
262,
8223,
618,
262,
6226,
373,
939,
14,
16,
30,
46506,
327,
28270,
7203,
23396,
4943,
16034,
3084,
62,
1495,
6469,
33411,
366,
4303,
1,
796,
705,
2167,
14,
16,
6
] |
Name the most male life expectancy for pakistan | SELECT MAX(male_life_expectancy) FROM table_2701625_1 WHERE country = "Pakistan" | [
5376,
262,
749,
4257,
1204,
29098,
329,
279,
461,
4103,
46506,
25882,
7,
22606,
62,
6042,
62,
1069,
806,
3883,
8,
16034,
3084,
62,
1983,
486,
26704,
62,
16,
33411,
1499,
796,
366,
38485,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
4257,
1204,
29098,
329,
279,
461,
4103,
46506,
25882,
7,
22606,
62,
6042,
62,
1069,
806,
3883,
8,
16034,
3084,
62,
1983,
486,
26704,
62,
16,
33411,
1499,
796,
366,
38485,
1
] |
An easy GEOSCI class is what I 'm looking for . | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department LIKE '%GEOSCI%' AND program_course.course_id = course.course_id AND program_course.workload < 3 | [
2025,
2562,
22319,
2640,
25690,
1398,
318,
644,
314,
705,
76,
2045,
329,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2025,
2562,
22319,
2640,
25690,
1398,
318,
644,
314,
705,
76,
2045,
329,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
... |
List the publisher of the publication with the highest price. | SELECT Publisher FROM publication ORDER BY Price DESC LIMIT 1 | [
8053,
262,
9991,
286,
262,
9207,
351,
262,
4511,
2756,
13,
46506,
28045,
16034,
9207,
38678,
11050,
7886,
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
] | [
8053,
262,
9991,
286,
262,
9207,
351,
262,
4511,
2756,
13,
46506,
28045,
16034,
9207,
38678,
11050,
7886,
22196,
34,
27564,
2043,
352
] |
did the broncos on september 29th win by less than 5 points ? | SELECT (SELECT "result" - "result" FROM table_204_219 WHERE "date" = 'september 29') < 5 | [
20839,
262,
18443,
6966,
319,
384,
457,
1491,
2808,
400,
1592,
416,
1342,
621,
642,
2173,
5633,
46506,
357,
46506,
366,
20274,
1,
532,
366,
20274,
1,
16034,
3084,
62,
18638,
62,
28896,
33411,
366,
4475,
1,
796,
705,
325,
457,
1491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20839,
262,
18443,
6966,
319,
384,
457,
1491,
2808,
400,
1592,
416,
1342,
621,
642,
2173,
5633,
46506,
357,
46506,
366,
20274,
1,
532,
366,
20274,
1,
16034,
3084,
62,
18638,
62,
28896,
33411,
366,
4475,
1,
796,
705,
325,
457,
1491,
... |
give me the number of patients under 70 years of age who had regional lymph node excision. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "70" AND procedures.long_title = "Regional lymph node excision" | [
26535,
502,
262,
1271,
286,
3871,
739,
4317,
812,
286,
2479,
508,
550,
7915,
28837,
10139,
2859,
1166,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
739,
4317,
812,
286,
2479,
508,
550,
7915,
28837,
10139,
2859,
1166,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1... |
What is the total attendance for Candlestick Park? | SELECT COUNT(attendance) FROM table_name_74 WHERE game_site = "candlestick park" | [
2061,
318,
262,
2472,
14858,
329,
15518,
32712,
624,
3250,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
983,
62,
15654,
796,
366,
46188,
32712,
624,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
14858,
329,
15518,
32712,
624,
3250,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
983,
62,
15654,
796,
366,
46188,
32712,
624,
3952,
1
] |
What was Datsun Twin 200's fastest lap? | SELECT fastest_lap FROM table_10527215_3 WHERE name = "Datsun Twin 200" | [
2061,
373,
360,
1381,
403,
14968,
939,
338,
14162,
14779,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
13348,
1983,
23349,
62,
18,
33411,
1438,
796,
366,
35,
1381,
403,
14968,
939,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
360,
1381,
403,
14968,
939,
338,
14162,
14779,
30,
46506,
14162,
62,
37796,
16034,
3084,
62,
13348,
1983,
23349,
62,
18,
33411,
1438,
796,
366,
35,
1381,
403,
14968,
939,
1
] |
list the four most frequently prescribed medications in this year that patients were prescribed during the same month after being diagnosed with nutritional deficiency. | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'nutritional deficiency' AND DATETIME(diagnosis.dia... | [
4868,
262,
1440,
749,
6777,
14798,
17638,
287,
428,
614,
326,
3871,
547,
14798,
1141,
262,
976,
1227,
706,
852,
14641,
351,
24000,
23580,
13,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
360,
24290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
262,
1440,
749,
6777,
14798,
17638,
287,
428,
614,
326,
3871,
547,
14798,
1141,
262,
976,
1227,
706,
852,
14641,
351,
24000,
23580,
13,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
3672,
11,
360,
24290... |
Which company or product was invested in by peter jones with more than 35,000 requested ? | SELECT "Company or product name" FROM table_68428 WHERE "Money requested (\u00a3)" > '35,000' AND "Investing Dragon(s)" = 'peter jones' | [
13828,
1664,
393,
1720,
373,
13356,
287,
416,
279,
2357,
474,
1952,
351,
517,
621,
3439,
11,
830,
9167,
5633,
46506,
366,
39154,
393,
1720,
1438,
1,
16034,
3084,
62,
3104,
40173,
33411,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
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... | [
13828,
1664,
393,
1720,
373,
13356,
287,
416,
279,
2357,
474,
1952,
351,
517,
621,
3439,
11,
830,
9167,
5633,
46506,
366,
39154,
393,
1720,
1438,
1,
16034,
3084,
62,
3104,
40173,
33411,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
16... |
Name the host for john rotz and howard cosell | SELECT s_host FROM table_22514845_5 WHERE s_analyst = "John Rotz and Howard Cosell" | [
5376,
262,
2583,
329,
45610,
5724,
89,
290,
703,
446,
269,
577,
297,
46506,
264,
62,
4774,
16034,
3084,
62,
18182,
18294,
2231,
62,
20,
33411,
264,
62,
272,
21470,
796,
366,
7554,
18481,
89,
290,
8442,
327,
577,
297,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2583,
329,
45610,
5724,
89,
290,
703,
446,
269,
577,
297,
46506,
264,
62,
4774,
16034,
3084,
62,
18182,
18294,
2231,
62,
20,
33411,
264,
62,
272,
21470,
796,
366,
7554,
18481,
89,
290,
8442,
327,
577,
297,
1
] |
Average question score by reputation. | SELECT AVG(CAST(ROUND(Reputation, -FLOOR(LOG(10, Reputation))) AS INT)) AS UserReputation, AVG(CAST(Posts.Score AS FLOAT)) AS AverageQuestionScore FROM Posts INNER JOIN Users ON (Users.Id = Posts.OwnerUserId) WHERE PostTypeId = 1 GROUP BY ROUND(Reputation, -FLOOR(LOG(10, Reputation))) ORDER BY UserReputation | [
26287,
1808,
4776,
416,
8507,
13,
46506,
35224,
7,
44647,
7,
49,
15919,
7,
6207,
7094,
11,
532,
3697,
46,
1581,
7,
25294,
7,
940,
11,
1432,
7094,
22305,
7054,
17828,
4008,
7054,
11787,
6207,
7094,
11,
35224,
7,
44647,
7,
21496,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26287,
1808,
4776,
416,
8507,
13,
46506,
35224,
7,
44647,
7,
49,
15919,
7,
6207,
7094,
11,
532,
3697,
46,
1581,
7,
25294,
7,
940,
11,
1432,
7094,
22305,
7054,
17828,
4008,
7054,
11787,
6207,
7094,
11,
35224,
7,
44647,
7,
21496,
13,
... |
What's the highest Rank for the County of Offaly, the Player of Mark Corrigan, and the Total that is smaller than 8? | SELECT MAX(rank) FROM table_name_49 WHERE county = "offaly" AND player = "mark corrigan" AND total < 8 | [
2061,
338,
262,
4511,
10916,
329,
262,
3418,
286,
3242,
3400,
11,
262,
7853,
286,
2940,
2744,
35631,
11,
290,
262,
7472,
326,
318,
4833,
621,
807,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
7968,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
4511,
10916,
329,
262,
3418,
286,
3242,
3400,
11,
262,
7853,
286,
2940,
2744,
35631,
11,
290,
262,
7472,
326,
318,
4833,
621,
807,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
7968,
796,
366... |
count the number of patients who received a venous cath nec procedure during the same hospital visit after they have been diagnosed with ac diastolic hrt failure the last year. | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title =... | [
9127,
262,
1271,
286,
3871,
508,
2722,
257,
8710,
516,
32171,
27576,
8771,
1141,
262,
976,
4436,
3187,
706,
484,
423,
587,
14641,
351,
936,
2566,
459,
4160,
289,
17034,
5287,
262,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
2722,
257,
8710,
516,
32171,
27576,
8771,
1141,
262,
976,
4436,
3187,
706,
484,
423,
587,
14641,
351,
936,
2566,
459,
4160,
289,
17034,
5287,
262,
938,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
... |
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, visualize a bar chart about the distribution of hire_date and the average of department_id bin hire_date by time, I want to rank by the total number in descending. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC | [
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
2... |
How much absorption in nm does the orange dye have? | SELECT MIN("Absorb (nm)") FROM table_28682 WHERE "Color" = 'orange' | [
2437,
881,
24774,
287,
28642,
857,
262,
10912,
30121,
423,
30,
46506,
20625,
7203,
24849,
27688,
357,
21533,
8,
4943,
16034,
3084,
62,
2078,
43950,
33411,
366,
10258,
1,
796,
705,
43745,
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,
881,
24774,
287,
28642,
857,
262,
10912,
30121,
423,
30,
46506,
20625,
7203,
24849,
27688,
357,
21533,
8,
4943,
16034,
3084,
62,
2078,
43950,
33411,
366,
10258,
1,
796,
705,
43745,
6
] |
provide the number of patients taking drug via td route who have procedure icd9 code 2501. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "2501" AND prescriptions.route = "TD" | [
15234,
485,
262,
1271,
286,
3871,
2263,
2563,
2884,
41560,
6339,
508,
423,
8771,
14158,
67,
24,
2438,
1679,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
902... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2263,
2563,
2884,
41560,
6339,
508,
423,
8771,
14158,
67,
24,
2438,
1679,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
902... |
Who were the Opponents on December 18, 2005? | SELECT opponent FROM table_name_31 WHERE date = "december 18, 2005" | [
8241,
547,
262,
9385,
3906,
319,
3426,
1248,
11,
5075,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3132,
33411,
3128,
796,
366,
2934,
3273,
1248,
11,
5075,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
547,
262,
9385,
3906,
319,
3426,
1248,
11,
5075,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3132,
33411,
3128,
796,
366,
2934,
3273,
1248,
11,
5075,
1
] |
what was the last time since 12/07/2105 patient 30826 had a minimum arterial bp mean? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30826)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial... | [
10919,
373,
262,
938,
640,
1201,
1105,
14,
2998,
14,
17,
13348,
5827,
35617,
2075,
550,
257,
5288,
30675,
498,
275,
79,
1612,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
938,
640,
1201,
1105,
14,
2998,
14,
17,
13348,
5827,
35617,
2075,
550,
257,
5288,
30675,
498,
275,
79,
1612,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,... |
calculate the average age of white ethnic background patients who stayed in hospital for 2 days. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay = "2" | [
9948,
3129,
378,
262,
2811,
2479,
286,
2330,
9450,
4469,
3871,
508,
9658,
287,
4436,
329,
362,
1528,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
5357,
16728,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
2330,
9450,
4469,
3871,
508,
9658,
287,
4436,
329,
362,
1528,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
5357,
16728,
13,
... |
what is the place for costantino rocca? | SELECT place FROM table_name_13 WHERE player = "costantino rocca" | [
10919,
318,
262,
1295,
329,
1575,
415,
2879,
686,
13227,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
1485,
33411,
2137,
796,
366,
15805,
415,
2879,
686,
13227,
1
] | [
1,
1,
1,
1,
1,
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,
1295,
329,
1575,
415,
2879,
686,
13227,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
1485,
33411,
2137,
796,
366,
15805,
415,
2879,
686,
13227,
1
] |
How much did Nina Carberry win? | SELECT prize_money FROM table_26903214_1 WHERE rider = "Nina Carberry" | [
2437,
881,
750,
36300,
1879,
8396,
1592,
30,
46506,
11596,
62,
26316,
16034,
3084,
62,
2075,
3829,
2624,
1415,
62,
16,
33411,
17876,
796,
366,
45,
1437,
1879,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
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,
881,
750,
36300,
1879,
8396,
1592,
30,
46506,
11596,
62,
26316,
16034,
3084,
62,
2075,
3829,
2624,
1415,
62,
16,
33411,
17876,
796,
366,
45,
1437,
1879,
8396,
1
] |
Give me a histogram for what are the total number of credits offered by each department?, and display DEPT_CODE in descending order. | SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE ORDER BY DEPT_CODE DESC | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
2472,
1271,
286,
10824,
4438,
416,
1123,
5011,
21747,
290,
3359,
5550,
11571,
62,
34,
16820,
287,
31491,
1502,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
51,
16,
13,
34,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
2472,
1271,
286,
10824,
4438,
416,
1123,
5011,
21747,
290,
3359,
5550,
11571,
62,
34,
16820,
287,
31491,
1502,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
51,
16,
13,
34,
69... |
what is the total role in the year 2008 ? | SELECT COUNT("role") FROM table_203_133 WHERE "year" = 2008 | [
10919,
318,
262,
2472,
2597,
287,
262,
614,
3648,
5633,
46506,
327,
28270,
7203,
18090,
4943,
16034,
3084,
62,
22416,
62,
16945,
33411,
366,
1941,
1,
796,
3648
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
2597,
287,
262,
614,
3648,
5633,
46506,
327,
28270,
7203,
18090,
4943,
16034,
3084,
62,
22416,
62,
16945,
33411,
366,
1941,
1,
796,
3648
] |
Create a bar chart showing total number of meter 100 across meter 200, and could you order from low to high by the Y-axis please? | SELECT meter_200, SUM(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY SUM(meter_100) | [
16447,
257,
2318,
8262,
4478,
2472,
1271,
286,
16430,
1802,
1973,
16430,
939,
11,
290,
714,
345,
1502,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
3387,
30,
46506,
16430,
62,
2167,
11,
35683,
7,
27231,
62,
3064,
8,
16034,
9422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
2472,
1271,
286,
16430,
1802,
1973,
16430,
939,
11,
290,
714,
345,
1502,
422,
1877,
284,
1029,
416,
262,
575,
12,
22704,
3387,
30,
46506,
16430,
62,
2167,
11,
35683,
7,
27231,
62,
3064,
8,
16034,
9422,
... |
What is the name of the away team with a Tie no of 7? | SELECT away_team FROM table_name_40 WHERE tie_no = "7" | [
2061,
318,
262,
1438,
286,
262,
1497,
1074,
351,
257,
36286,
645,
286,
767,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
1821,
33411,
9839,
62,
3919,
796,
366,
22,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
1497,
1074,
351,
257,
36286,
645,
286,
767,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
1821,
33411,
9839,
62,
3919,
796,
366,
22,
1
] |
What is the constructor for Jackie Stewart's car? | SELECT constructor FROM table_name_3 WHERE driver = "jackie stewart" | [
2061,
318,
262,
23772,
329,
24766,
13671,
338,
1097,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
18,
33411,
4639,
796,
366,
19650,
494,
20798,
433,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
23772,
329,
24766,
13671,
338,
1097,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
18,
33411,
4639,
796,
366,
19650,
494,
20798,
433,
1
] |
HONORS will be offered how many courses next semester ? | SELECT COUNT(DISTINCT course_offering.course_id) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'HONORS' AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | [
39,
1340,
20673,
481,
307,
4438,
703,
867,
10902,
1306,
24878,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
39,
1340,
20673,
481,
307,
4438,
703,
867,
10902,
1306,
24878,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
17319,
62,
312,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
... |
What amount of earnings corresponds with a Top 10s rank of 23? | SELECT "Earnings ( $ )" FROM table_67786 WHERE "Top 10s" = '23' | [
2061,
2033,
286,
12042,
24866,
351,
257,
5849,
838,
82,
4279,
286,
2242,
30,
46506,
366,
49725,
654,
357,
720,
1267,
1,
16034,
3084,
62,
3134,
46302,
33411,
366,
9126,
838,
82,
1,
796,
705,
1954,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2033,
286,
12042,
24866,
351,
257,
5849,
838,
82,
4279,
286,
2242,
30,
46506,
366,
49725,
654,
357,
720,
1267,
1,
16034,
3084,
62,
3134,
46302,
33411,
366,
9126,
838,
82,
1,
796,
705,
1954,
6
] |
Visualize a bar chart about the distribution of Sex and the sum of Height , and group by attribute Sex, sort x axis in descending order. | SELECT Sex, SUM(Height) FROM people GROUP BY Sex ORDER BY Sex DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
3297,
2124,
16488,
287,
31491,
1502,
13,
46506,
14419,
11,
35683,
7,
23106,
8,
16034,
661,
44441,
11050,
14419,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
3297,
2124,
16488,
287,
31491,
1502,
13,
46506,
14419,
11,
35683,
7,
23106,
8,
16034,
661,
44441,
11050,
14419,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of first_name and manager_id . | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
4706,
62,
312,
764,
46506,
31328,
62,
20608,
11,
17254,
4760... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
4706,
62,
312,
764,
46506,
31328,
62,
20608,
11,
17254,
4760... |
Are all the upper-level classes 3 credits ? | SELECT COUNT(*) = 0 FROM course, program_course WHERE course.credits <> 3 AND course.department = 'EECS' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id | [
8491,
477,
262,
6727,
12,
5715,
6097,
513,
10824,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
66,
20696,
1279,
29,
513,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
477,
262,
6727,
12,
5715,
6097,
513,
10824,
5633,
46506,
327,
28270,
7,
28104,
796,
657,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
66,
20696,
1279,
29,
513,
5357,
1781,
13,
10378,
1823,
796,
705,
36,
2943,
50,
6,
5357... |
With a 2008 result of 153 what is the result for 2007? | SELECT 2007 FROM table_name_23 WHERE 2008 = "153" | [
3152,
257,
3648,
1255,
286,
24652,
644,
318,
262,
1255,
329,
4343,
30,
46506,
4343,
16034,
3084,
62,
3672,
62,
1954,
33411,
3648,
796,
366,
21395,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
257,
3648,
1255,
286,
24652,
644,
318,
262,
1255,
329,
4343,
30,
46506,
4343,
16034,
3084,
62,
3672,
62,
1954,
33411,
3648,
796,
366,
21395,
1
] |
display the users ordered by decreasing reputation. | SELECT Badges.Class, COUNT(DISTINCT Badges.Id) AS BadgeCount, Users.DisplayName, Users.Location, Users.Reputation FROM Users JOIN Badges ON Users.Id = Badges.UserId WHERE YEAR(Date) = 2016 AND MONTH(Date) = 01 GROUP BY Badges.Class, Users.DisplayName, Users.Location, Users.Reputation ORDER BY BadgeCount DESC | [
13812,
262,
2985,
6149,
416,
24030,
8507,
13,
46506,
7772,
3212,
13,
9487,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
7772,
3212,
13,
7390,
8,
7054,
44308,
12332,
11,
18987,
13,
23114,
5376,
11,
18987,
13,
14749,
11,
18987,
13,
6207,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13812,
262,
2985,
6149,
416,
24030,
8507,
13,
46506,
7772,
3212,
13,
9487,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
7772,
3212,
13,
7390,
8,
7054,
44308,
12332,
11,
18987,
13,
23114,
5376,
11,
18987,
13,
14749,
11,
18987,
13,
6207,
... |
Which Pali has an English of meditative concentration? | SELECT "Pali" FROM table_45210 WHERE "English" = 'meditative concentration' | [
13828,
3175,
72,
468,
281,
3594,
286,
1117,
12464,
10368,
30,
46506,
366,
47,
7344,
1,
16034,
3084,
62,
2231,
21536,
33411,
366,
15823,
1,
796,
705,
1150,
12464,
10368,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3175,
72,
468,
281,
3594,
286,
1117,
12464,
10368,
30,
46506,
366,
47,
7344,
1,
16034,
3084,
62,
2231,
21536,
33411,
366,
15823,
1,
796,
705,
1150,
12464,
10368,
6
] |
What episode was the last appearance of the character, rikki sandoval? | SELECT last_appearance FROM table_11240028_3 WHERE character = "Rikki Sandoval" | [
2061,
4471,
373,
262,
938,
5585,
286,
262,
2095,
11,
374,
1134,
4106,
6450,
8325,
30,
46506,
938,
62,
1324,
23435,
16034,
3084,
62,
14686,
7029,
2078,
62,
18,
33411,
2095,
796,
366,
49,
1134,
4106,
3837,
8325,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
373,
262,
938,
5585,
286,
262,
2095,
11,
374,
1134,
4106,
6450,
8325,
30,
46506,
938,
62,
1324,
23435,
16034,
3084,
62,
14686,
7029,
2078,
62,
18,
33411,
2095,
796,
366,
49,
1134,
4106,
3837,
8325,
1
] |
What are the positions with both players having more than 20 points and less than 10 points. | SELECT POSITION FROM player WHERE Points > 20 INTERSECT SELECT POSITION FROM player WHERE Points < 10 | [
2061,
389,
262,
6116,
351,
1111,
1938,
1719,
517,
621,
1160,
2173,
290,
1342,
621,
838,
2173,
13,
46506,
28069,
17941,
16034,
2137,
33411,
11045,
1875,
1160,
17828,
4877,
9782,
33493,
28069,
17941,
16034,
2137,
33411,
11045,
1279,
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
] | [
2061,
389,
262,
6116,
351,
1111,
1938,
1719,
517,
621,
1160,
2173,
290,
1342,
621,
838,
2173,
13,
46506,
28069,
17941,
16034,
2137,
33411,
11045,
1875,
1160,
17828,
4877,
9782,
33493,
28069,
17941,
16034,
2137,
33411,
11045,
1279,
838
] |
Which Platform / OS has a Name of altova umodel? | SELECT platform___os FROM table_name_97 WHERE name = "altova umodel" | [
13828,
19193,
1220,
7294,
468,
257,
6530,
286,
5988,
10071,
334,
19849,
30,
46506,
3859,
17569,
418,
16034,
3084,
62,
3672,
62,
5607,
33411,
1438,
796,
366,
2501,
10071,
334,
19849,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
19193,
1220,
7294,
468,
257,
6530,
286,
5988,
10071,
334,
19849,
30,
46506,
3859,
17569,
418,
16034,
3084,
62,
3672,
62,
5607,
33411,
1438,
796,
366,
2501,
10071,
334,
19849,
1
] |
Who wrote the episode with the production code 2j5153? | SELECT written_by FROM table_25830834_2 WHERE production_code = "2J5153" | [
8241,
2630,
262,
4471,
351,
262,
3227,
2438,
362,
73,
20,
21395,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
25600,
21495,
2682,
62,
17,
33411,
3227,
62,
8189,
796,
366,
17,
41,
20,
21395,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
351,
262,
3227,
2438,
362,
73,
20,
21395,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
25600,
21495,
2682,
62,
17,
33411,
3227,
62,
8189,
796,
366,
17,
41,
20,
21395,
1
] |
Show the capacity for each cinema in a bar chart, and rank by the names from low to high. | SELECT Name, Capacity FROM cinema ORDER BY Name | [
15307,
262,
5339,
329,
1123,
22041,
287,
257,
2318,
8262,
11,
290,
4279,
416,
262,
3891,
422,
1877,
284,
1029,
13,
46506,
6530,
11,
29765,
16034,
22041,
38678,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
5339,
329,
1123,
22041,
287,
257,
2318,
8262,
11,
290,
4279,
416,
262,
3891,
422,
1877,
284,
1029,
13,
46506,
6530,
11,
29765,
16034,
22041,
38678,
11050,
6530
] |
Name the highest Dist (f) with Odds of 11/4 and a Placing larger than 1? | SELECT MAX("Dist (f)") FROM table_79625 WHERE "Odds" = '11/4' AND "Placing" > '1' | [
5376,
262,
4511,
4307,
357,
69,
8,
351,
20664,
82,
286,
1367,
14,
19,
290,
257,
1345,
4092,
4025,
621,
352,
30,
46506,
25882,
7203,
20344,
357,
69,
8,
4943,
16034,
3084,
62,
3720,
26704,
33411,
366,
46,
33714,
1,
796,
705,
1157,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4307,
357,
69,
8,
351,
20664,
82,
286,
1367,
14,
19,
290,
257,
1345,
4092,
4025,
621,
352,
30,
46506,
25882,
7203,
20344,
357,
69,
8,
4943,
16034,
3084,
62,
3720,
26704,
33411,
366,
46,
33714,
1,
796,
705,
1157,
1... |
how many songs were juried about eight ? | SELECT COUNT("song") FROM table_203_430 WHERE "televote" = 8 | [
4919,
867,
7259,
547,
8174,
798,
546,
3624,
5633,
46506,
327,
28270,
7203,
34050,
4943,
16034,
3084,
62,
22416,
62,
31794,
33411,
366,
660,
2768,
1258,
1,
796,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
7259,
547,
8174,
798,
546,
3624,
5633,
46506,
327,
28270,
7203,
34050,
4943,
16034,
3084,
62,
22416,
62,
31794,
33411,
366,
660,
2768,
1258,
1,
796,
807
] |
Give me a pie to show team_id from different acc regular season. | SELECT ACC_Regular_Season, Team_ID FROM basketball_match | [
23318,
502,
257,
2508,
284,
905,
1074,
62,
312,
422,
1180,
697,
3218,
1622,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
257,
2508,
284,
905,
1074,
62,
312,
422,
1180,
697,
3218,
1622,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
4816,
62,
2389,
16034,
9669,
62,
15699
] |
Show me a bar chart for what are all the employee ids and the names of the countries in which they work?, and list bar in descending order. | SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME ORDER BY COUNTRY_NAME DESC | [
15307,
502,
257,
2318,
8262,
329,
644,
389,
477,
262,
6538,
220,
2340,
290,
262,
3891,
286,
262,
2678,
287,
543,
484,
670,
21747,
290,
1351,
2318,
287,
31491,
1502,
13,
46506,
31404,
40405,
62,
20608,
11,
35683,
7,
3620,
6489,
21414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
502,
257,
2318,
8262,
329,
644,
389,
477,
262,
6538,
220,
2340,
290,
262,
3891,
286,
262,
2678,
287,
543,
484,
670,
21747,
290,
1351,
2318,
287,
31491,
1502,
13,
46506,
31404,
40405,
62,
20608,
11,
35683,
7,
3620,
6489,
21414,
... |
In what season did Raquel Pacheco finish in third place? | SELECT season FROM table_25214321_1 WHERE third_place = "Raquel Pacheco" | [
818,
644,
1622,
750,
7567,
31735,
350,
4891,
1073,
5461,
287,
2368,
1295,
30,
46506,
1622,
16034,
3084,
62,
22800,
21139,
2481,
62,
16,
33411,
2368,
62,
5372,
796,
366,
21762,
31735,
350,
4891,
1073,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1622,
750,
7567,
31735,
350,
4891,
1073,
5461,
287,
2368,
1295,
30,
46506,
1622,
16034,
3084,
62,
22800,
21139,
2481,
62,
16,
33411,
2368,
62,
5372,
796,
366,
21762,
31735,
350,
4891,
1073,
1
] |
Provide the number of patients who stayed in the hospital for more than 8 days and were given the drug trazodone. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "8" AND prescriptions.drug = "traZODONE" | [
15946,
485,
262,
1271,
286,
3871,
508,
9658,
287,
262,
4436,
329,
517,
621,
807,
1528,
290,
547,
1813,
262,
2563,
1291,
89,
375,
505,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15946,
485,
262,
1271,
286,
3871,
508,
9658,
287,
262,
4436,
329,
517,
621,
807,
1528,
290,
547,
1813,
262,
2563,
1291,
89,
375,
505,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
show me the number of married patients who were on non-invasive mechanical ventilation. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "MARRIED" AND procedures.long_title = "Non-invasive mechanical ventilation" | [
12860,
502,
262,
1271,
286,
6405,
3871,
508,
547,
319,
1729,
12,
259,
23747,
12370,
34834,
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,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
1271,
286,
6405,
3871,
508,
547,
319,
1729,
12,
259,
23747,
12370,
34834,
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,
18... |
What is the date of birth of Kameli Ratuvou? | SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou" | [
2061,
318,
262,
3128,
286,
4082,
286,
12670,
43733,
11738,
14795,
280,
30,
46506,
3128,
62,
1659,
62,
24280,
834,
496,
62,
16034,
3084,
62,
3672,
62,
2231,
33411,
2137,
796,
366,
74,
17983,
72,
4227,
14795,
280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
4082,
286,
12670,
43733,
11738,
14795,
280,
30,
46506,
3128,
62,
1659,
62,
24280,
834,
496,
62,
16034,
3084,
62,
3672,
62,
2231,
33411,
2137,
796,
366,
74,
17983,
72,
4227,
14795,
280,
1
] |
What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner? | SELECT "Score in Final" FROM table_60164 WHERE "Partnering" = 'robin ammerlaan' AND "Opponents in Final" = 'shingo kunieda maikel scheffers' | [
2061,
373,
262,
2457,
4776,
286,
262,
983,
1028,
427,
32735,
479,
403,
798,
64,
17266,
522,
75,
3897,
487,
364,
618,
3857,
259,
716,
647,
5031,
272,
373,
14430,
569,
676,
338,
5212,
30,
46506,
366,
26595,
287,
8125,
1,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
373,
262,
2457,
4776,
286,
262,
983,
1028,
427,
32735,
479,
403,
798,
64,
17266,
522,
75,
3897,
487,
364,
618,
3857,
259,
716,
647,
5031,
272,
373,
14430,
569,
676,
338,
5212,
30,
46506,
366,
26595,
287,
8125,
1,
16034,
3084,
... |
What is the vacancy date of Dundee? | SELECT date_of_vacancy FROM table_name_75 WHERE team = "dundee" | [
2061,
318,
262,
39836,
3128,
286,
37921,
1453,
30,
46506,
3128,
62,
1659,
62,
85,
330,
3883,
16034,
3084,
62,
3672,
62,
2425,
33411,
1074,
796,
366,
646,
358,
1453,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
39836,
3128,
286,
37921,
1453,
30,
46506,
3128,
62,
1659,
62,
85,
330,
3883,
16034,
3084,
62,
3672,
62,
2425,
33411,
1074,
796,
366,
646,
358,
1453,
1
] |
Which Thursday has a Wednesday of xingqisen? | SELECT "Thursday" FROM table_66844 WHERE "Wednesday" = '星期三 xingqisen' | [
13828,
3635,
468,
257,
3583,
286,
2124,
278,
80,
13254,
30,
46506,
366,
25381,
1,
16034,
3084,
62,
35809,
2598,
33411,
366,
27150,
1,
796,
705,
23626,
253,
17312,
253,
49011,
2124,
278,
80,
13254,
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
] | [
13828,
3635,
468,
257,
3583,
286,
2124,
278,
80,
13254,
30,
46506,
366,
25381,
1,
16034,
3084,
62,
35809,
2598,
33411,
366,
27150,
1,
796,
705,
23626,
253,
17312,
253,
49011,
2124,
278,
80,
13254,
6
] |
Can you tell me who teaches Great Books of Spain and Latin America this semester ? | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester... | [
6090,
345,
1560,
502,
508,
17324,
3878,
13661,
286,
8602,
290,
9133,
2253,
428,
24878,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6090,
345,
1560,
502,
508,
17324,
3878,
13661,
286,
8602,
290,
9133,
2253,
428,
24878,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
7249,
273... |
Find cName and enr , and visualize them by a bar chart. | SELECT cName, enr FROM College ORDER BY enr | [
16742,
269,
5376,
290,
551,
81,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
269,
5376,
11,
551,
81,
16034,
5535,
38678,
11050,
551,
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
] | [
16742,
269,
5376,
290,
551,
81,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
269,
5376,
11,
551,
81,
16034,
5535,
38678,
11050,
551,
81
] |
what's the race winner with location being jacarepagu | SELECT "Race Winner" FROM table_16711 WHERE "Location" = 'Jacarepaguá' | [
10919,
338,
262,
3234,
8464,
351,
4067,
852,
474,
330,
533,
79,
11433,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
21940,
1157,
33411,
366,
14749,
1,
796,
705,
28821,
533,
79,
11433,
6557,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
3234,
8464,
351,
4067,
852,
474,
330,
533,
79,
11433,
46506,
366,
35157,
25358,
1,
16034,
3084,
62,
21940,
1157,
33411,
366,
14749,
1,
796,
705,
28821,
533,
79,
11433,
6557,
6
] |
SELECT TOP 10 Id AS [Post Link] FROM Posts ORDER BY CreationDate DESC. | SELECT Id AS "post_link" FROM Posts ORDER BY CreationDate DESC LIMIT 10 | [
46506,
28662,
838,
5121,
7054,
685,
6307,
7502,
60,
16034,
12043,
38678,
11050,
21582,
10430,
22196,
34,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
38678,
11050,
21582,
10430,
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
] | [
46506,
28662,
838,
5121,
7054,
685,
6307,
7502,
60,
16034,
12043,
38678,
11050,
21582,
10430,
22196,
34,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
38678,
11050,
21582,
10430,
22196,
34,
27564,
2043,
838
] |
Find the total number of instructors for each department with a bar chart, show by the total number in asc. | SELECT T1.dept_name, COUNT(DISTINCT T3.ID) FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name ORDER BY COUNT(DISTINCT T3.ID) | [
16742,
262,
2472,
1271,
286,
33667,
329,
1123,
5011,
351,
257,
2318,
8262,
11,
905,
416,
262,
2472,
1271,
287,
10570,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
2389,
8,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
2472,
1271,
286,
33667,
329,
1123,
5011,
351,
257,
2318,
8262,
11,
905,
416,
262,
2472,
1271,
287,
10570,
13,
46506,
309,
16,
13,
2934,
457,
62,
3672,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
18,
13,
2389,
8,
1603... |
was the game versus canada later than the game versus belgium ? | SELECT (SELECT "edition" FROM table_204_194 WHERE "opponent team" = 'canada') > (SELECT "edition" FROM table_204_194 WHERE "opponent team" = 'belgium') | [
9776,
262,
983,
9051,
460,
4763,
1568,
621,
262,
983,
9051,
894,
70,
1505,
5633,
46506,
357,
46506,
366,
28736,
1,
16034,
3084,
62,
18638,
62,
22913,
33411,
366,
10365,
3471,
1074,
1,
796,
705,
5171,
4763,
11537,
1875,
357,
46506,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9776,
262,
983,
9051,
460,
4763,
1568,
621,
262,
983,
9051,
894,
70,
1505,
5633,
46506,
357,
46506,
366,
28736,
1,
16034,
3084,
62,
18638,
62,
22913,
33411,
366,
10365,
3471,
1074,
1,
796,
705,
5171,
4763,
11537,
1875,
357,
46506,
366... |
which country won the second highest number of silver medals ? | SELECT "nation" FROM table_203_206 WHERE "silver" < (SELECT MAX("silver") FROM table_203_206) ORDER BY "silver" DESC LIMIT 1 | [
4758,
1499,
1839,
262,
1218,
4511,
1271,
286,
8465,
28057,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
22136,
33411,
366,
40503,
1,
1279,
357,
46506,
25882,
7203,
40503,
4943,
16034,
3084,
62,
22416,
62,
22136,
8,
38678,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1499,
1839,
262,
1218,
4511,
1271,
286,
8465,
28057,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
22136,
33411,
366,
40503,
1,
1279,
357,
46506,
25882,
7203,
40503,
4943,
16034,
3084,
62,
22416,
62,
22136,
8,
38678,
110... |
What was the score of the match played on 14 October 1998, resulting in more than 10 goals? | SELECT score FROM table_name_59 WHERE date = "14 october 1998" AND goal > 10 | [
2061,
373,
262,
4776,
286,
262,
2872,
2826,
319,
1478,
3267,
7795,
11,
7186,
287,
517,
621,
838,
4661,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3270,
33411,
3128,
796,
366,
1415,
19318,
2023,
7795,
1,
5357,
3061,
1875,
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
] | [
2061,
373,
262,
4776,
286,
262,
2872,
2826,
319,
1478,
3267,
7795,
11,
7186,
287,
517,
621,
838,
4661,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3270,
33411,
3128,
796,
366,
1415,
19318,
2023,
7795,
1,
5357,
3061,
1875,
838
] |
What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals? | SELECT COUNT("Bronze") FROM table_70917 WHERE "Gold" < '2' AND "Nation" = 'uganda' AND "Total" > '2' | [
2061,
318,
262,
1271,
286,
19461,
329,
262,
8741,
286,
30872,
351,
1342,
621,
362,
3561,
290,
7472,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
31495,
1558,
33411,
366,
13306,
1,
1279,
705,
17,
6,
5357,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
19461,
329,
262,
8741,
286,
30872,
351,
1342,
621,
362,
3561,
290,
7472,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
31495,
1558,
33411,
366,
13306,
1,
1279,
705,
17,
6,
5357,
366... |
What is the average FA Cup that has gary jones as the player, and an FA trophy greater than 5? | SELECT AVG(fa_cup) FROM table_name_15 WHERE player = "gary jones" AND fa_trophy > 5 | [
2061,
318,
262,
2811,
9677,
5454,
326,
468,
308,
560,
474,
1952,
355,
262,
2137,
11,
290,
281,
9677,
16383,
3744,
621,
642,
30,
46506,
35224,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
2137,
796,
366,
14849,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9677,
5454,
326,
468,
308,
560,
474,
1952,
355,
262,
2137,
11,
290,
281,
9677,
16383,
3744,
621,
642,
30,
46506,
35224,
7,
13331,
62,
25244,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
2137,
796,
366,
14849,
474... |
What was the attendance for St Andrew's? | SELECT "Attendance" FROM table_62258 WHERE "Venue" = 'st andrew''s' | [
2061,
373,
262,
14858,
329,
520,
6858,
338,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
5237,
25600,
33411,
366,
37522,
518,
1,
796,
705,
301,
290,
1809,
7061,
82,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14858,
329,
520,
6858,
338,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
5237,
25600,
33411,
366,
37522,
518,
1,
796,
705,
301,
290,
1809,
7061,
82,
6
] |
What is the Chinese Type Chinese Name of the holiday with a Tamil Name of ( 3)? | SELECT chinese_name FROM table_name_25 WHERE type = "chinese" AND tamil_name = "சந்திர புத்தாண்டு (தினம் 3)" | [
2061,
318,
262,
3999,
5994,
3999,
6530,
286,
262,
9912,
351,
257,
32519,
6530,
286,
357,
513,
19427,
46506,
442,
3762,
62,
3672,
16034,
3084,
62,
3672,
62,
1495,
33411,
2099,
796,
366,
354,
3762,
1,
5357,
21885,
346,
62,
3672,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
3999,
5994,
3999,
6530,
286,
262,
9912,
351,
257,
32519,
6530,
286,
357,
513,
19427,
46506,
442,
3762,
62,
3672,
16034,
3084,
62,
3672,
62,
1495,
33411,
2099,
796,
366,
354,
3762,
1,
5357,
21885,
346,
62,
3672,
796,
... |
what is the last team ? | SELECT "team" FROM table_204_129 ORDER BY id DESC LIMIT 1 | [
10919,
318,
262,
938,
1074,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
18741,
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
] | [
10919,
318,
262,
938,
1074,
5633,
46506,
366,
15097,
1,
16034,
3084,
62,
18638,
62,
18741,
38678,
11050,
4686,
22196,
34,
27564,
2043,
352
] |
What is Country of Origin, when Year of Intro is 1977? | SELECT country_of_origin FROM table_name_10 WHERE year_of_intro = 1977 | [
2061,
318,
12946,
286,
19349,
11,
618,
6280,
286,
37219,
318,
15589,
30,
46506,
1499,
62,
1659,
62,
47103,
16034,
3084,
62,
3672,
62,
940,
33411,
614,
62,
1659,
62,
600,
305,
796,
15589
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
286,
19349,
11,
618,
6280,
286,
37219,
318,
15589,
30,
46506,
1499,
62,
1659,
62,
47103,
16034,
3084,
62,
3672,
62,
940,
33411,
614,
62,
1659,
62,
600,
305,
796,
15589
] |
Find the total rating ratio for each channel owner. | SELECT SUM(rating_in_percent), owner FROM channel GROUP BY owner | [
16742,
262,
2472,
7955,
8064,
329,
1123,
6518,
4870,
13,
46506,
35683,
7,
8821,
62,
259,
62,
25067,
828,
4870,
16034,
6518,
44441,
11050,
4870
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
2472,
7955,
8064,
329,
1123,
6518,
4870,
13,
46506,
35683,
7,
8821,
62,
259,
62,
25067,
828,
4870,
16034,
6518,
44441,
11050,
4870
] |
Which team was the visitor with a record of 5-2-0? | SELECT "Visitor" FROM table_36877 WHERE "Record" = '5-2-0' | [
13828,
1074,
373,
262,
21493,
351,
257,
1700,
286,
642,
12,
17,
12,
15,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
27412,
3324,
33411,
366,
23739,
1,
796,
705,
20,
12,
17,
12,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
373,
262,
21493,
351,
257,
1700,
286,
642,
12,
17,
12,
15,
30,
46506,
366,
15854,
2072,
1,
16034,
3084,
62,
27412,
3324,
33411,
366,
23739,
1,
796,
705,
20,
12,
17,
12,
15,
6
] |
Find all the product whose name contains the word 'Scanner'. | SELECT product FROM product WHERE product LIKE "%Scanner%" | [
16742,
477,
262,
1720,
3025,
1438,
4909,
262,
1573,
705,
33351,
1008,
4458,
46506,
1720,
16034,
1720,
33411,
1720,
34178,
36521,
33351,
1008,
39658
] | [
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,
477,
262,
1720,
3025,
1438,
4909,
262,
1573,
705,
33351,
1008,
4458,
46506,
1720,
16034,
1720,
33411,
1720,
34178,
36521,
33351,
1008,
39658
] |
provide me the number of patients with cholangitis primary disease who were born before 2111. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.dob_year < "2111" | [
15234,
485,
502,
262,
1271,
286,
3871,
351,
442,
349,
648,
11815,
4165,
4369,
508,
547,
4642,
878,
362,
16243,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
502,
262,
1271,
286,
3871,
351,
442,
349,
648,
11815,
4165,
4369,
508,
547,
4642,
878,
362,
16243,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.