instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
give me the number of patients whose ethnicity is black/cape verdean and age is less than 89? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.age < "89" | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
2479,
318,
1342,
621,
9919,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
290,
2479,
318,
1342,
621,
9919,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546... |
Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date of october 24, 2008? | SELECT "Format" FROM table_64720 WHERE "Label" = 'columbia' AND "Catalog" < '88697411432' AND "Date" = 'october 24, 2008' | [
13828,
18980,
468,
257,
36052,
286,
951,
2178,
544,
11,
290,
257,
44515,
4833,
621,
9193,
3388,
4524,
16562,
2624,
11,
290,
257,
7536,
286,
19318,
2023,
1987,
11,
3648,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
2414,
23906,
33411,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18980,
468,
257,
36052,
286,
951,
2178,
544,
11,
290,
257,
44515,
4833,
621,
9193,
3388,
4524,
16562,
2624,
11,
290,
257,
7536,
286,
19318,
2023,
1987,
11,
3648,
30,
46506,
366,
26227,
1,
16034,
3084,
62,
2414,
23906,
33411,
36... |
don january won the tucson open invitational twice , in 1960 and which year ? | SELECT "date" FROM table_204_621 WHERE "tournament" = 'tucson open invitational' AND "date" <> 1960 | [
9099,
42897,
2838,
1839,
262,
256,
1229,
1559,
1280,
800,
22181,
5403,
837,
287,
9507,
290,
543,
614,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
21,
2481,
33411,
366,
83,
5138,
1,
796,
705,
83,
1229,
1559,
1280,
800,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9099,
42897,
2838,
1839,
262,
256,
1229,
1559,
1280,
800,
22181,
5403,
837,
287,
9507,
290,
543,
614,
5633,
46506,
366,
4475,
1,
16034,
3084,
62,
18638,
62,
21,
2481,
33411,
366,
83,
5138,
1,
796,
705,
83,
1229,
1559,
1280,
800,
221... |
Among patients admitted before the year 2123, how many of them had a blood gas test by lab? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2123" AND lab."CATEGORY" = "Blood Gas" | [
14311,
3871,
6848,
878,
262,
614,
362,
10163,
11,
703,
867,
286,
606,
550,
257,
2910,
3623,
1332,
416,
2248,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14311,
3871,
6848,
878,
262,
614,
362,
10163,
11,
703,
867,
286,
606,
550,
257,
2910,
3623,
1332,
416,
2248,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
How many players had the most points in the game @ Milwaukee? | SELECT COUNT(high_points) FROM table_11960944_6 WHERE team = "@ Milwaukee" | [
2437,
867,
1938,
550,
262,
749,
2173,
287,
262,
983,
2488,
16629,
30,
46506,
327,
28270,
7,
8929,
62,
13033,
8,
16034,
3084,
62,
16315,
31751,
2598,
62,
21,
33411,
1074,
796,
44212,
16629,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
550,
262,
749,
2173,
287,
262,
983,
2488,
16629,
30,
46506,
327,
28270,
7,
8929,
62,
13033,
8,
16034,
3084,
62,
16315,
31751,
2598,
62,
21,
33411,
1074,
796,
44212,
16629,
1
] |
Name the party for bensalem | SELECT "Party" FROM table_23332 WHERE "Residence" = 'Bensalem' | [
5376,
262,
2151,
329,
275,
641,
282,
368,
46506,
366,
33553,
1,
16034,
3084,
62,
1954,
32148,
33411,
366,
4965,
1704,
1,
796,
705,
33,
641,
282,
368,
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
] | [
5376,
262,
2151,
329,
275,
641,
282,
368,
46506,
366,
33553,
1,
16034,
3084,
62,
1954,
32148,
33411,
366,
4965,
1704,
1,
796,
705,
33,
641,
282,
368,
6
] |
which athlete from kenya participated but came in third place ? | SELECT "athlete" FROM table_204_669 WHERE id = 3 | [
4758,
16076,
422,
479,
268,
3972,
14888,
475,
1625,
287,
2368,
1295,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
18638,
62,
36657,
33411,
4686,
796,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
16076,
422,
479,
268,
3972,
14888,
475,
1625,
287,
2368,
1295,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
18638,
62,
36657,
33411,
4686,
796,
513
] |
find the number of patients admitted in emergency whose drug route is ed. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.route = "ED" | [
19796,
262,
1271,
286,
3871,
6848,
287,
6334,
3025,
2563,
6339,
318,
1225,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
3871,
6848,
287,
6334,
3025,
2563,
6339,
318,
1225,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
31... |
Name the 2012 with 2013 of 2r and 2009 of 3r | SELECT "2012" FROM table_37810 WHERE "2013" = '2r' AND "2009" = '3r' | [
5376,
262,
2321,
351,
2211,
286,
362,
81,
290,
3717,
286,
513,
81,
46506,
366,
6999,
1,
16034,
3084,
62,
30695,
940,
33411,
366,
6390,
1,
796,
705,
17,
81,
6,
5357,
366,
10531,
1,
796,
705,
18,
81,
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
] | [
5376,
262,
2321,
351,
2211,
286,
362,
81,
290,
3717,
286,
513,
81,
46506,
366,
6999,
1,
16034,
3084,
62,
30695,
940,
33411,
366,
6390,
1,
796,
705,
17,
81,
6,
5357,
366,
10531,
1,
796,
705,
18,
81,
6
] |
SELECT Id, DisplayName, Location FROM Users WHERE Views > 100 AND UpVotes = 3. | SELECT Id, DisplayName, Location FROM Users WHERE Views > 100 AND Views < 999 AND UpVotes = 3 | [
46506,
5121,
11,
16531,
5376,
11,
13397,
16034,
18987,
33411,
29978,
1875,
1802,
5357,
3205,
53,
6421,
796,
513,
13,
46506,
5121,
11,
16531,
5376,
11,
13397,
16034,
18987,
33411,
29978,
1875,
1802,
5357,
29978,
1279,
36006,
5357,
3205,
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
] | [
46506,
5121,
11,
16531,
5376,
11,
13397,
16034,
18987,
33411,
29978,
1875,
1802,
5357,
3205,
53,
6421,
796,
513,
13,
46506,
5121,
11,
16531,
5376,
11,
13397,
16034,
18987,
33411,
29978,
1875,
1802,
5357,
29978,
1279,
36006,
5357,
3205,
53... |
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, a bar chart shows the distribution of job_id and the sum of manager_id , and group by attribute job_id, and display by the y axis in desc please. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(MANAGER_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,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706... |
How many of the married patients belonged to hispanic, latino, or puerto rican ethnic origin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" | [
2437,
867,
286,
262,
6405,
3871,
19611,
284,
465,
35843,
11,
3042,
2879,
11,
393,
47574,
13806,
374,
7490,
9450,
8159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6405,
3871,
19611,
284,
465,
35843,
11,
3042,
2879,
11,
393,
47574,
13806,
374,
7490,
9450,
8159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,... |
Which driver has a Time/Retired of +1 lap? | SELECT driver FROM table_name_66 WHERE time_retired = "+1 lap" | [
13828,
4639,
468,
257,
3862,
14,
9781,
1202,
286,
1343,
16,
14779,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
2791,
33411,
640,
62,
1186,
1202,
796,
43825,
16,
14779,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4639,
468,
257,
3862,
14,
9781,
1202,
286,
1343,
16,
14779,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
2791,
33411,
640,
62,
1186,
1202,
796,
43825,
16,
14779,
1
] |
Name th most poles for macau grand prix | SELECT MAX(poles) FROM table_24466191_1 WHERE series = "Macau Grand Prix" | [
5376,
294,
749,
24971,
329,
8352,
559,
4490,
1293,
87,
46506,
25882,
7,
79,
4316,
8,
16034,
3084,
62,
25707,
2791,
26492,
62,
16,
33411,
2168,
796,
366,
14155,
559,
5675,
23832,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
749,
24971,
329,
8352,
559,
4490,
1293,
87,
46506,
25882,
7,
79,
4316,
8,
16034,
3084,
62,
25707,
2791,
26492,
62,
16,
33411,
2168,
796,
366,
14155,
559,
5675,
23832,
1
] |
What is the name of the member with a costume Role of monster? | SELECT name FROM table_name_9 WHERE costume_role = "monster" | [
2061,
318,
262,
1438,
286,
262,
2888,
351,
257,
16569,
20934,
286,
9234,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
24,
33411,
16569,
62,
18090,
796,
366,
39050,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2888,
351,
257,
16569,
20934,
286,
9234,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
24,
33411,
16569,
62,
18090,
796,
366,
39050,
1
] |
Which Position has a Pick of 74? | SELECT "Position" FROM table_66487 WHERE "Pick" = '74' | [
13828,
23158,
468,
257,
12346,
286,
8915,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
21,
2414,
5774,
33411,
366,
31686,
1,
796,
705,
4524,
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
] | [
13828,
23158,
468,
257,
12346,
286,
8915,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
21,
2414,
5774,
33411,
366,
31686,
1,
796,
705,
4524,
6
] |
Sfax has a total ordered number of? | SELECT COUNT(ordered) FROM table_name_54 WHERE name = "sfax" | [
50,
23560,
468,
257,
2472,
6149,
1271,
286,
30,
46506,
327,
28270,
7,
24071,
8,
16034,
3084,
62,
3672,
62,
4051,
33411,
1438,
796,
366,
82,
23560,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
50,
23560,
468,
257,
2472,
6149,
1271,
286,
30,
46506,
327,
28270,
7,
24071,
8,
16034,
3084,
62,
3672,
62,
4051,
33411,
1438,
796,
366,
82,
23560,
1
] |
Who is the opponent on October 28, 2001? | SELECT "Opponent" FROM table_45571 WHERE "Date" = 'october 28, 2001' | [
8241,
318,
262,
6125,
319,
3267,
2579,
11,
5878,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2231,
42875,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
2579,
11,
5878,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
6125,
319,
3267,
2579,
11,
5878,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2231,
42875,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
2579,
11,
5878,
6
] |
of those listed , which compound has the highest density ? | SELECT "formula" FROM table_203_613 ORDER BY "density, g/cm3" DESC LIMIT 1 | [
1659,
883,
5610,
837,
543,
13061,
468,
262,
4511,
12109,
5633,
46506,
366,
687,
4712,
1,
16034,
3084,
62,
22416,
62,
47512,
38678,
11050,
366,
43337,
11,
308,
14,
11215,
18,
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
] | [
1659,
883,
5610,
837,
543,
13061,
468,
262,
4511,
12109,
5633,
46506,
366,
687,
4712,
1,
16034,
3084,
62,
22416,
62,
47512,
38678,
11050,
366,
43337,
11,
308,
14,
11215,
18,
1,
22196,
34,
27564,
2043,
352
] |
did patient 010-16627 underwent antibiotics - quinolone in another hospital since 2105? | SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitalid <> (SELECT DISTINCT patient.hospitalid FROM patient WHERE patient.uniquepid = '010-16627' AND patient.hospitaldischargetime IS NULL)) AND tr... | [
20839,
5827,
5534,
15,
12,
23055,
1983,
25289,
22392,
532,
627,
259,
349,
505,
287,
1194,
4436,
1201,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5534,
15,
12,
23055,
1983,
25289,
22392,
532,
627,
259,
349,
505,
287,
1194,
4436,
1201,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
3513,
33411,
3513,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... |
Name the date successor seated for contested election; served until february 14, 1794 | SELECT "Date successor seated" FROM table_73391 WHERE "Reason for change" = 'Contested election; served until February 14, 1794' | [
5376,
262,
3128,
17270,
21639,
329,
24163,
3071,
26,
4983,
1566,
730,
65,
3728,
1478,
11,
1596,
5824,
46506,
366,
10430,
17270,
21639,
1,
16034,
3084,
62,
49995,
6420,
33411,
366,
45008,
329,
1487,
1,
796,
705,
4264,
7287,
3071,
26,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
17270,
21639,
329,
24163,
3071,
26,
4983,
1566,
730,
65,
3728,
1478,
11,
1596,
5824,
46506,
366,
10430,
17270,
21639,
1,
16034,
3084,
62,
49995,
6420,
33411,
366,
45008,
329,
1487,
1,
796,
705,
4264,
7287,
3071,
26,
4... |
which athlete consecutively scored the lowest ? | SELECT "athlete" FROM table_203_865 ORDER BY "best mark" LIMIT 1 | [
4758,
16076,
12358,
2280,
7781,
262,
9016,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
22416,
62,
23,
2996,
38678,
11050,
366,
13466,
1317,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
16076,
12358,
2280,
7781,
262,
9016,
5633,
46506,
366,
776,
5807,
1,
16034,
3084,
62,
22416,
62,
23,
2996,
38678,
11050,
366,
13466,
1317,
1,
27564,
2043,
352
] |
What was the record when the TKO (elbows) method was used? | SELECT "Record" FROM table_8820 WHERE "Method" = 'tko (elbows)' | [
2061,
373,
262,
1700,
618,
262,
309,
22328,
357,
417,
25435,
8,
2446,
373,
973,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3459,
1238,
33411,
366,
17410,
1,
796,
705,
83,
7204,
357,
417,
25435,
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
] | [
2061,
373,
262,
1700,
618,
262,
309,
22328,
357,
417,
25435,
8,
2446,
373,
973,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3459,
1238,
33411,
366,
17410,
1,
796,
705,
83,
7204,
357,
417,
25435,
33047
] |
Name the candidates for texas 20 | SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20" | [
5376,
262,
5871,
329,
48659,
292,
1160,
46506,
5871,
16034,
3084,
62,
19880,
1433,
3829,
62,
3559,
33411,
4783,
796,
366,
21607,
1160,
1
] | [
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,
5871,
329,
48659,
292,
1160,
46506,
5871,
16034,
3084,
62,
19880,
1433,
3829,
62,
3559,
33411,
4783,
796,
366,
21607,
1160,
1
] |
What numbered pick was dominic picard, ol, selected? | SELECT pick__number FROM table_name_8 WHERE position = "ol" AND player = "dominic picard" | [
2061,
25840,
2298,
373,
7462,
291,
8301,
446,
11,
25776,
11,
6163,
30,
46506,
2298,
834,
17618,
16034,
3084,
62,
3672,
62,
23,
33411,
2292,
796,
366,
349,
1,
5357,
2137,
796,
366,
3438,
47277,
8301,
446,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25840,
2298,
373,
7462,
291,
8301,
446,
11,
25776,
11,
6163,
30,
46506,
2298,
834,
17618,
16034,
3084,
62,
3672,
62,
23,
33411,
2292,
796,
366,
349,
1,
5357,
2137,
796,
366,
3438,
47277,
8301,
446,
1
] |
developers over 500 reps in Ahmedabad. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE (LOWER(Location) LIKE '%ahmedabad%' OR UPPER(Location) LIKE '%AHMEDABAD%' OR Location LIKE '%Ahmedabad%') AND Reputation >= 500 ORDER BY Reputation DESC | [
16244,
364,
625,
5323,
20982,
287,
21157,
17325,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16244,
364,
625,
5323,
20982,
287,
21157,
17325,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
... |
How many patients admitted before the year 2144 had a lab test named heparin and Imw? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2144" AND lab.label = "Heparin, LMW" | [
2437,
867,
3871,
6848,
878,
262,
614,
362,
18444,
550,
257,
2248,
1332,
3706,
339,
1845,
259,
290,
1846,
86,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3871,
6848,
878,
262,
614,
362,
18444,
550,
257,
2248,
1332,
3706,
339,
1845,
259,
290,
1846,
86,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
get me the number of widow patients with diagnosis of nnb transitory tachypnea. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "WIDOWED" AND diagnoses.short_title = "NB transitory tachypnea" | [
1136,
502,
262,
1271,
286,
27075,
3871,
351,
13669,
286,
299,
46803,
11168,
652,
256,
620,
4464,
39718,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
502,
262,
1271,
286,
27075,
3871,
351,
13669,
286,
299,
46803,
11168,
652,
256,
620,
4464,
39718,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
... |
What is the Score of T2 Place Player Dow Finsterwald? | SELECT "Score" FROM table_49164 WHERE "Place" = 't2' AND "Player" = 'dow finsterwald' | [
2061,
318,
262,
15178,
286,
309,
17,
8474,
7853,
21842,
4463,
1706,
21667,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2920,
23237,
33411,
366,
27271,
1,
796,
705,
83,
17,
6,
5357,
366,
14140,
1,
796,
705,
67,
322,
957,
1706,
21667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
286,
309,
17,
8474,
7853,
21842,
4463,
1706,
21667,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2920,
23237,
33411,
366,
27271,
1,
796,
705,
83,
17,
6,
5357,
366,
14140,
1,
796,
705,
67,
322,
957,
1706,
21667,
... |
What is the frequency for the radio owned by bell media with a call sign of chsu-fm? | SELECT "Frequency" FROM table_63070 WHERE "Owner" = 'bell media' AND "Call sign" = 'chsu-fm' | [
2061,
318,
262,
8373,
329,
262,
5243,
6898,
416,
8966,
2056,
351,
257,
869,
1051,
286,
442,
2385,
12,
38353,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
30005,
2154,
33411,
366,
42419,
1,
796,
705,
7923,
2056,
6,
5357,
366,
14134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8373,
329,
262,
5243,
6898,
416,
8966,
2056,
351,
257,
869,
1051,
286,
442,
2385,
12,
38353,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
30005,
2154,
33411,
366,
42419,
1,
796,
705,
7923,
2056,
6,
5357,
366,
14134... |
When the record was 2-29 who had the most assists? | SELECT "High assists" FROM table_25487 WHERE "Record" = '2-29' | [
2215,
262,
1700,
373,
362,
12,
1959,
508,
550,
262,
749,
13648,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
1495,
35133,
33411,
366,
23739,
1,
796,
705,
17,
12,
1959,
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
] | [
2215,
262,
1700,
373,
362,
12,
1959,
508,
550,
262,
749,
13648,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
1495,
35133,
33411,
366,
23739,
1,
796,
705,
17,
12,
1959,
6
] |
For those records from the products and each product's manufacturer, find name and code , and group by attribute name, and visualize them by a bar chart, and list X from high to low order please. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1351,
1395,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1351,
1395,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
... |
Who was the loser of the heavyweight division fight that lasted a time of 2:24? | SELECT "Loser" FROM table_36610 WHERE "Weight Division" = 'heavyweight' AND "Time" = '2:24' | [
8241,
373,
262,
30256,
286,
262,
32489,
7297,
1907,
326,
15436,
257,
640,
286,
362,
25,
1731,
30,
46506,
366,
43,
13416,
1,
16034,
3084,
62,
32459,
940,
33411,
366,
25844,
7458,
1,
796,
705,
23701,
6551,
6,
5357,
366,
7575,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
30256,
286,
262,
32489,
7297,
1907,
326,
15436,
257,
640,
286,
362,
25,
1731,
30,
46506,
366,
43,
13416,
1,
16034,
3084,
62,
32459,
940,
33411,
366,
25844,
7458,
1,
796,
705,
23701,
6551,
6,
5357,
366,
7575,
1,
796,
... |
what city has a past season of n/a? | SELECT city FROM table_name_43 WHERE past_season = "n/a" | [
10919,
1748,
468,
257,
1613,
1622,
286,
299,
14,
64,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3559,
33411,
1613,
62,
6230,
796,
366,
77,
14,
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
] | [
10919,
1748,
468,
257,
1613,
1622,
286,
299,
14,
64,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
3559,
33411,
1613,
62,
6230,
796,
366,
77,
14,
64,
1
] |
What driver had a total time of 16:58? | SELECT driver FROM table_name_66 WHERE total_time = "16:58" | [
2061,
4639,
550,
257,
2472,
640,
286,
1467,
25,
3365,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
2791,
33411,
2472,
62,
2435,
796,
366,
1433,
25,
3365,
1
] | [
1,
1,
1,
1,
1,
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,
4639,
550,
257,
2472,
640,
286,
1467,
25,
3365,
30,
46506,
4639,
16034,
3084,
62,
3672,
62,
2791,
33411,
2472,
62,
2435,
796,
366,
1433,
25,
3365,
1
] |
What is the final score in 2007 for the world league in novi sad played against Italy? | SELECT final_score FROM table_name_31 WHERE year = 2007 AND competition = "world league" AND town = "novi sad" AND opponent = "italy" | [
2061,
318,
262,
2457,
4776,
287,
4343,
329,
262,
995,
4652,
287,
645,
8903,
6507,
2826,
1028,
8031,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
796,
4343,
5357,
5449,
796,
366,
6894,
4652,
1,
5357,
3240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2457,
4776,
287,
4343,
329,
262,
995,
4652,
287,
645,
8903,
6507,
2826,
1028,
8031,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
796,
4343,
5357,
5449,
796,
366,
6894,
4652,
1,
5357,
3240,
... |
What is the name when the position is de and college is ohio state? | SELECT "Name" FROM table_401 WHERE "Position" = 'DE' AND "College" = 'Ohio State' | [
2061,
318,
262,
1438,
618,
262,
2292,
318,
390,
290,
4152,
318,
11752,
952,
1181,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21844,
33411,
366,
26545,
1,
796,
705,
7206,
6,
5357,
366,
38951,
1,
796,
705,
31274,
1812,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
618,
262,
2292,
318,
390,
290,
4152,
318,
11752,
952,
1181,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
21844,
33411,
366,
26545,
1,
796,
705,
7206,
6,
5357,
366,
38951,
1,
796,
705,
31274,
1812,
6
] |
Badge: Supporter, by month (2011). | SELECT DATEADD(m, MONTH(Date), '2010-12-01') AS "month", COUNT(Id) AS "supporter" FROM Badges WHERE YEAR(Date) = 2011 AND Name = 'Supporter' GROUP BY MONTH(Date) ORDER BY MONTH(Date) | [
22069,
469,
25,
8105,
4337,
11,
416,
1227,
357,
9804,
737,
46506,
360,
6158,
29266,
7,
76,
11,
25000,
4221,
7,
10430,
828,
705,
10333,
12,
1065,
12,
486,
11537,
7054,
366,
8424,
1600,
327,
28270,
7,
7390,
8,
7054,
366,
18608,
4337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22069,
469,
25,
8105,
4337,
11,
416,
1227,
357,
9804,
737,
46506,
360,
6158,
29266,
7,
76,
11,
25000,
4221,
7,
10430,
828,
705,
10333,
12,
1065,
12,
486,
11537,
7054,
366,
8424,
1600,
327,
28270,
7,
7390,
8,
7054,
366,
18608,
4337,
... |
Who won the round in Europe? | SELECT race_winner FROM table_name_1 WHERE round = "europe" | [
8241,
1839,
262,
2835,
287,
2031,
30,
46506,
3234,
62,
39791,
16034,
3084,
62,
3672,
62,
16,
33411,
2835,
796,
366,
44252,
431,
1
] | [
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,
1839,
262,
2835,
287,
2031,
30,
46506,
3234,
62,
39791,
16034,
3084,
62,
3672,
62,
16,
33411,
2835,
796,
366,
44252,
431,
1
] |
How many bullet tips colors had other features of a blue band on case base? | SELECT COUNT("Bullet Tip Color") FROM table_16084 WHERE "Other Features" = 'Blue band on case base' | [
2437,
867,
10492,
9040,
7577,
550,
584,
3033,
286,
257,
4171,
4097,
319,
1339,
2779,
30,
46506,
327,
28270,
7203,
33481,
1616,
23095,
5315,
4943,
16034,
3084,
62,
1433,
2919,
19,
33411,
366,
6395,
17571,
1,
796,
705,
14573,
4097,
319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10492,
9040,
7577,
550,
584,
3033,
286,
257,
4171,
4097,
319,
1339,
2779,
30,
46506,
327,
28270,
7203,
33481,
1616,
23095,
5315,
4943,
16034,
3084,
62,
1433,
2919,
19,
33411,
366,
6395,
17571,
1,
796,
705,
14573,
4097,
319,
... |
What was the class when part 3 was *heldun? | SELECT "Class" FROM table_49399 WHERE "Part 3" = '*heldun' | [
2061,
373,
262,
1398,
618,
636,
513,
373,
1635,
10217,
403,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2920,
28771,
33411,
366,
7841,
513,
1,
796,
705,
9,
10217,
403,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1398,
618,
636,
513,
373,
1635,
10217,
403,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
2920,
28771,
33411,
366,
7841,
513,
1,
796,
705,
9,
10217,
403,
6
] |
count the number of times patient 002-39247 has been tested for creatinine in labs since 51 months ago. | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-39247')) AND lab.labname = 'creatinine' AND DATETIME(lab.labresulttime) >= DATETIME(CURR... | [
9127,
262,
1271,
286,
1661,
5827,
3571,
17,
12,
2670,
23753,
468,
587,
6789,
329,
1827,
259,
500,
287,
27887,
1201,
6885,
1933,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
1661,
5827,
3571,
17,
12,
2670,
23753,
468,
587,
6789,
329,
1827,
259,
500,
287,
27887,
1201,
6885,
1933,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
... |
What was the quantity for Inchicore of J7? | SELECT quantity_made FROM table_name_3 WHERE inchicore_class = "j7" | [
2061,
373,
262,
12040,
329,
554,
354,
291,
382,
286,
449,
22,
30,
46506,
12040,
62,
9727,
16034,
3084,
62,
3672,
62,
18,
33411,
11111,
291,
382,
62,
4871,
796,
366,
73,
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,
1
] | [
2061,
373,
262,
12040,
329,
554,
354,
291,
382,
286,
449,
22,
30,
46506,
12040,
62,
9727,
16034,
3084,
62,
3672,
62,
18,
33411,
11111,
291,
382,
62,
4871,
796,
366,
73,
22,
1
] |
What is the place with a 71-72-70=213 score? | SELECT place FROM table_name_28 WHERE score = 71 - 72 - 70 = 213 | [
2061,
318,
262,
1295,
351,
257,
9166,
12,
4761,
12,
2154,
28,
26427,
4776,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2078,
33411,
4776,
796,
9166,
532,
7724,
532,
4317,
796,
28658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1295,
351,
257,
9166,
12,
4761,
12,
2154,
28,
26427,
4776,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2078,
33411,
4776,
796,
9166,
532,
7724,
532,
4317,
796,
28658
] |
Name the replaced by for 8 july 2009 | SELECT "Replaced by" FROM table_2665 WHERE "Date of appointment" = '8 July 2009' | [
5376,
262,
6928,
416,
329,
807,
474,
2062,
3717,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
2075,
2996,
33411,
366,
10430,
286,
12557,
1,
796,
705,
23,
2901,
3717,
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,
6928,
416,
329,
807,
474,
2062,
3717,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
2075,
2996,
33411,
366,
10430,
286,
12557,
1,
796,
705,
23,
2901,
3717,
6
] |
when was first time the respiratory rate of patient 26799 was less than 18.0 on 09/20/last year? | 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 = 26799)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respirat... | [
12518,
373,
717,
640,
262,
22949,
2494,
286,
5827,
37364,
2079,
373,
1342,
621,
1248,
13,
15,
319,
7769,
14,
1238,
14,
12957,
614,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
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... | [
12518,
373,
717,
640,
262,
22949,
2494,
286,
5827,
37364,
2079,
373,
1342,
621,
1248,
13,
15,
319,
7769,
14,
1238,
14,
12957,
614,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,... |
For all employees who have the letters D or S in their first name, give me the comparison about the average of employee_id over the hire_date bin hire_date by weekday, I want to rank by the total number in desc. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
11,
314,
765,
284,
4279,
416,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6538,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
11,
314,
765,
284,
4279,
416,
26... |
Which nation hosted the competition in 2004? | SELECT "Host Nation(s)" FROM table_4050 WHERE "Year" = '2004' | [
13828,
3277,
12007,
262,
5449,
287,
5472,
30,
46506,
366,
17932,
8741,
7,
82,
16725,
16034,
3084,
62,
1821,
1120,
33411,
366,
17688,
1,
796,
705,
15724,
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
] | [
13828,
3277,
12007,
262,
5449,
287,
5472,
30,
46506,
366,
17932,
8741,
7,
82,
16725,
16034,
3084,
62,
1821,
1120,
33411,
366,
17688,
1,
796,
705,
15724,
6
] |
Where did Trinidad and Tobago play? | SELECT place FROM table_name_99 WHERE country = "trinidad and tobago" | [
8496,
750,
48269,
290,
13695,
3839,
711,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2079,
33411,
1499,
796,
366,
2213,
259,
32482,
290,
10773,
3839,
1
] | [
1,
1,
1,
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,
750,
48269,
290,
13695,
3839,
711,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2079,
33411,
1499,
796,
366,
2213,
259,
32482,
290,
10773,
3839,
1
] |
What is the smallest number of goals against when there are 1 of 18 points, and more than 8 are drawn? | SELECT MIN(goals_against) FROM table_name_58 WHERE points_1 = "18" AND drawn > 8 | [
2061,
318,
262,
18197,
1271,
286,
4661,
1028,
618,
612,
389,
352,
286,
1248,
2173,
11,
290,
517,
621,
807,
389,
7428,
30,
46506,
20625,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
2173,
62,
16,
796,
366,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
18197,
1271,
286,
4661,
1028,
618,
612,
389,
352,
286,
1248,
2173,
11,
290,
517,
621,
807,
389,
7428,
30,
46506,
20625,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
62,
3365,
33411,
2173,
62,
16,
796,
366,
15... |
How many rooms cost more than 120, for each different decor Plot them as bar chart, order in desc by the X. | SELECT decor, COUNT(*) FROM Rooms WHERE basePrice > 120 GROUP BY decor ORDER BY decor DESC | [
2437,
867,
9519,
1575,
517,
621,
7982,
11,
329,
1123,
1180,
11705,
28114,
606,
355,
2318,
8262,
11,
1502,
287,
1715,
416,
262,
1395,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
9519,
1575,
517,
621,
7982,
11,
329,
1123,
1180,
11705,
28114,
606,
355,
2318,
8262,
11,
1502,
287,
1715,
416,
262,
1395,
13,
46506,
11705,
11,
327,
28270,
7,
28104,
16034,
42043,
33411,
2779,
18124,
1875,
7982,
44441,
11050,... |
How many to par for Greg Norman? | SELECT "To par" FROM table_50958 WHERE "Player" = 'greg norman' | [
2437,
867,
284,
1582,
329,
8547,
19636,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
29022,
3365,
33411,
366,
14140,
1,
796,
705,
9903,
2593,
272,
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
] | [
2437,
867,
284,
1582,
329,
8547,
19636,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
29022,
3365,
33411,
366,
14140,
1,
796,
705,
9903,
2593,
272,
6
] |
Leeds City Council is the local authority for what type of location? | SELECT "Type" FROM table_25268 WHERE "Local authority" = 'Leeds City Council' | [
43,
39642,
2254,
4281,
318,
262,
1957,
4934,
329,
644,
2099,
286,
4067,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
1495,
25022,
33411,
366,
14565,
4934,
1,
796,
705,
43,
39642,
2254,
4281,
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
] | [
43,
39642,
2254,
4281,
318,
262,
1957,
4934,
329,
644,
2099,
286,
4067,
30,
46506,
366,
6030,
1,
16034,
3084,
62,
1495,
25022,
33411,
366,
14565,
4934,
1,
796,
705,
43,
39642,
2254,
4281,
6
] |
When did the episode with production code 213 air for the first time? | SELECT "Original air date" FROM table_26038 WHERE "Prod. code" = '213' | [
2215,
750,
262,
4471,
351,
3227,
2438,
28658,
1633,
329,
262,
717,
640,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
21719,
2548,
33411,
366,
2964,
67,
13,
2438,
1,
796,
705,
26427,
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
] | [
2215,
750,
262,
4471,
351,
3227,
2438,
28658,
1633,
329,
262,
717,
640,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
21719,
2548,
33411,
366,
2964,
67,
13,
2438,
1,
796,
705,
26427,
6
] |
Questions with more than 5 tags ( meta ).. | SELECT Id, CreationDate, Tags FROM Posts WHERE LENGTH(Tags) - LENGTH(REPLACE(Tags, '<', '')) > 5 | [
35741,
351,
517,
621,
642,
15940,
357,
13634,
1267,
492,
46506,
5121,
11,
21582,
10430,
11,
44789,
16034,
12043,
33411,
406,
49494,
7,
36142,
8,
532,
406,
49494,
7,
2200,
6489,
11598,
7,
36142,
11,
705,
27,
3256,
10148,
4008,
1875,
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
] | [
35741,
351,
517,
621,
642,
15940,
357,
13634,
1267,
492,
46506,
5121,
11,
21582,
10430,
11,
44789,
16034,
12043,
33411,
406,
49494,
7,
36142,
8,
532,
406,
49494,
7,
2200,
6489,
11598,
7,
36142,
11,
705,
27,
3256,
10148,
4008,
1875,
64... |
What is the average Bronze for rank 3 and total is more than 8? | SELECT AVG("Bronze") FROM table_76079 WHERE "Rank" = '3' AND "Total" > '8' | [
2061,
318,
262,
2811,
19461,
329,
4279,
513,
290,
2472,
318,
517,
621,
807,
30,
46506,
35224,
7203,
18760,
2736,
4943,
16034,
3084,
62,
40761,
3720,
33411,
366,
27520,
1,
796,
705,
18,
6,
5357,
366,
14957,
1,
1875,
705,
23,
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
] | [
2061,
318,
262,
2811,
19461,
329,
4279,
513,
290,
2472,
318,
517,
621,
807,
30,
46506,
35224,
7203,
18760,
2736,
4943,
16034,
3084,
62,
40761,
3720,
33411,
366,
27520,
1,
796,
705,
18,
6,
5357,
366,
14957,
1,
1875,
705,
23,
6
] |
Name the golden ticket for invesco field | SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = "Invesco Field" | [
5376,
262,
10861,
7846,
329,
800,
274,
1073,
2214,
46506,
10861,
62,
83,
15970,
16034,
3084,
62,
1828,
4531,
3720,
3134,
62,
16,
33411,
31678,
62,
4080,
796,
366,
818,
1158,
1073,
7663,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10861,
7846,
329,
800,
274,
1073,
2214,
46506,
10861,
62,
83,
15970,
16034,
3084,
62,
1828,
4531,
3720,
3134,
62,
16,
33411,
31678,
62,
4080,
796,
366,
818,
1158,
1073,
7663,
1
] |
Score of new york yankees 2, brooklyn dodgers 3 involves how many number of games? | SELECT COUNT("Game") FROM table_68584 WHERE "Score" = 'new york yankees – 2, brooklyn dodgers – 3' | [
26595,
286,
649,
331,
967,
331,
272,
16683,
362,
11,
1379,
482,
6213,
20764,
5355,
513,
9018,
703,
867,
1271,
286,
1830,
30,
46506,
327,
28270,
7203,
8777,
4943,
16034,
3084,
62,
3104,
46352,
33411,
366,
26595,
1,
796,
705,
3605,
331,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26595,
286,
649,
331,
967,
331,
272,
16683,
362,
11,
1379,
482,
6213,
20764,
5355,
513,
9018,
703,
867,
1271,
286,
1830,
30,
46506,
327,
28270,
7203,
8777,
4943,
16034,
3084,
62,
3104,
46352,
33411,
366,
26595,
1,
796,
705,
3605,
331,... |
Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team? | SELECT winning_driver FROM table_29361707_2 WHERE pole_position = "Roberval Andrade" AND fastest_lap = "Felipe Giaffone" AND winning_team = "RVR Corinthians Motorsport" | [
8241,
373,
262,
8464,
379,
262,
2610,
810,
4109,
2100,
843,
27585,
1839,
16825,
11,
13937,
3757,
402,
544,
487,
505,
550,
262,
14162,
14779,
11,
290,
371,
13024,
39546,
49996,
373,
262,
5442,
1074,
30,
46506,
5442,
62,
26230,
16034,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8241,
373,
262,
8464,
379,
262,
2610,
810,
4109,
2100,
843,
27585,
1839,
16825,
11,
13937,
3757,
402,
544,
487,
505,
550,
262,
14162,
14779,
11,
290,
371,
13024,
39546,
49996,
373,
262,
5442,
1074,
30,
46506,
5442,
62,
26230,
16034,
3... |
What is the playoffs 1 result of season 2004-05? | SELECT playoffs_1 FROM table_name_41 WHERE season = "2004-05" | [
2061,
318,
262,
12980,
352,
1255,
286,
1622,
5472,
12,
2713,
30,
46506,
12980,
62,
16,
16034,
3084,
62,
3672,
62,
3901,
33411,
1622,
796,
366,
15724,
12,
2713,
1
] | [
1,
1,
1,
1,
1,
1,
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,
12980,
352,
1255,
286,
1622,
5472,
12,
2713,
30,
46506,
12980,
62,
16,
16034,
3084,
62,
3672,
62,
3901,
33411,
1622,
796,
366,
15724,
12,
2713,
1
] |
In what League is Left Wing Yanick Dupre? | SELECT "College/Junior/Club Team (League)" FROM table_38788 WHERE "Position" = 'left wing' AND "Player" = 'yanick dupre' | [
818,
644,
4041,
318,
9578,
13405,
10642,
624,
37916,
260,
30,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
32220,
3459,
33411,
366,
26545,
1,
796,
705,
9464,
8539,
6,
5357,
366,
14140,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
4041,
318,
9578,
13405,
10642,
624,
37916,
260,
30,
46506,
366,
38951,
14,
22396,
1504,
14,
42350,
4816,
357,
24623,
16725,
16034,
3084,
62,
32220,
3459,
33411,
366,
26545,
1,
796,
705,
9464,
8539,
6,
5357,
366,
14140,
1,
79... |
Which Socialist candidate ran against American Labor candidate Caroline O'Day? | SELECT "Socialist ticket" FROM table_42090 WHERE "American Labor ticket" = 'caroline o''day' | [
13828,
21773,
4540,
4966,
1028,
1605,
7882,
4540,
29037,
440,
6,
12393,
30,
46506,
366,
20636,
396,
7846,
1,
16034,
3084,
62,
27211,
3829,
33411,
366,
7437,
7882,
7846,
1,
796,
705,
7718,
14453,
267,
7061,
820,
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
] | [
13828,
21773,
4540,
4966,
1028,
1605,
7882,
4540,
29037,
440,
6,
12393,
30,
46506,
366,
20636,
396,
7846,
1,
16034,
3084,
62,
27211,
3829,
33411,
366,
7437,
7882,
7846,
1,
796,
705,
7718,
14453,
267,
7061,
820,
6
] |
Show me EEB Capstone Seminar courses that offer 11 credits . | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%EEB Capstone Seminar%' OR name LIKE '%EEB Capstone Seminar%') AND credits = 11 | [
15307,
502,
27254,
33,
4476,
6440,
12449,
22050,
10902,
326,
2897,
1367,
10824,
764,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
6500,
33,
4476,
6440,
12449,
22050,
4,
6,
6375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27254,
33,
4476,
6440,
12449,
22050,
10902,
326,
2897,
1367,
10824,
764,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
6500,
33,
4476,
6440,
12449,
22050,
4,
6,
6375,
... |
in 2007, what is the avg finish that had a start less than 1? | SELECT SUM(avg_finish) FROM table_name_91 WHERE year = 2007 AND starts < 1 | [
259,
4343,
11,
644,
318,
262,
42781,
5461,
326,
550,
257,
923,
1342,
621,
352,
30,
46506,
35683,
7,
615,
70,
62,
15643,
680,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
614,
796,
4343,
5357,
4940,
1279,
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
] | [
259,
4343,
11,
644,
318,
262,
42781,
5461,
326,
550,
257,
923,
1342,
621,
352,
30,
46506,
35683,
7,
615,
70,
62,
15643,
680,
8,
16034,
3084,
62,
3672,
62,
6420,
33411,
614,
796,
4343,
5357,
4940,
1279,
352
] |
What was the result of the game played in front of 65,473? | SELECT result FROM table_name_19 WHERE attendance = "65,473" | [
2061,
373,
262,
1255,
286,
262,
983,
2826,
287,
2166,
286,
6135,
11,
37804,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1129,
33411,
14858,
796,
366,
2996,
11,
37804,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
2826,
287,
2166,
286,
6135,
11,
37804,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1129,
33411,
14858,
796,
366,
2996,
11,
37804,
1
] |
what are the five most frequent drugs which were prescribed until 2104 to the male patients of the 60 or above after they were diagnosed with atrial fibrillation within 2 months? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | [
10919,
389,
262,
1936,
749,
10792,
5010,
543,
547,
14798,
1566,
362,
13464,
284,
262,
4257,
3871,
286,
262,
3126,
393,
2029,
706,
484,
547,
14641,
351,
379,
4454,
277,
2889,
40903,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
749,
10792,
5010,
543,
547,
14798,
1566,
362,
13464,
284,
262,
4257,
3871,
286,
262,
3126,
393,
2029,
706,
484,
547,
14641,
351,
379,
4454,
277,
2889,
40903,
1626,
362,
1933,
30,
46506,
256,
18,
13,
30349,
16034... |
What's the 1991 census of the city of Carpi? | SELECT MAX("1991 Census") FROM table_15976 WHERE "City" = 'Carpi' | [
2061,
338,
262,
10249,
21649,
286,
262,
1748,
286,
1879,
14415,
30,
46506,
25882,
7203,
24529,
20962,
4943,
16034,
3084,
62,
19707,
4304,
33411,
366,
14941,
1,
796,
705,
34,
5117,
72,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
10249,
21649,
286,
262,
1748,
286,
1879,
14415,
30,
46506,
25882,
7203,
24529,
20962,
4943,
16034,
3084,
62,
19707,
4304,
33411,
366,
14941,
1,
796,
705,
34,
5117,
72,
6
] |
What is the score when To par was 3, in South Africa, for Richard Sterne? | SELECT AVG("Score") FROM table_13484 WHERE "To par" = '−3' AND "Country" = 'south africa' AND "Player" = 'richard sterne' | [
2061,
318,
262,
4776,
618,
1675,
1582,
373,
513,
11,
287,
2520,
5478,
11,
329,
6219,
18949,
710,
30,
46506,
35224,
7203,
26595,
4943,
16034,
3084,
62,
1485,
34137,
33411,
366,
2514,
1582,
1,
796,
705,
14095,
18,
6,
5357,
366,
33921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
618,
1675,
1582,
373,
513,
11,
287,
2520,
5478,
11,
329,
6219,
18949,
710,
30,
46506,
35224,
7203,
26595,
4943,
16034,
3084,
62,
1485,
34137,
33411,
366,
2514,
1582,
1,
796,
705,
14095,
18,
6,
5357,
366,
33921,
... |
What is the lowest price of product, grouped by product type? Show a pie chart. | SELECT product_type_code, MIN(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code | [
2061,
318,
262,
9016,
2756,
286,
1720,
11,
32824,
416,
1720,
2099,
30,
5438,
257,
2508,
8262,
13,
46506,
1720,
62,
4906,
62,
8189,
11,
20625,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
4906,
62,
8189,
38678,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
2756,
286,
1720,
11,
32824,
416,
1720,
2099,
30,
5438,
257,
2508,
8262,
13,
46506,
1720,
62,
4906,
62,
8189,
11,
20625,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
4906,
62,
8189,
38678,
11050,
... |
What episode number in the season is episode 24 in the series? | SELECT "No. in season" FROM table_24638 WHERE "No. in series" = '24' | [
2061,
4471,
1271,
287,
262,
1622,
318,
4471,
1987,
287,
262,
2168,
30,
46506,
366,
2949,
13,
287,
1622,
1,
16034,
3084,
62,
26912,
2548,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
1731,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4471,
1271,
287,
262,
1622,
318,
4471,
1987,
287,
262,
2168,
30,
46506,
366,
2949,
13,
287,
1622,
1,
16034,
3084,
62,
26912,
2548,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
1731,
6
] |
When Keey has 58.1% what % does Bush have? | SELECT bush_percentage FROM table_name_39 WHERE kerry_percentage = "58.1%" | [
2215,
19799,
88,
468,
7618,
13,
16,
4,
644,
4064,
857,
5511,
423,
30,
46506,
24484,
62,
25067,
496,
16034,
3084,
62,
3672,
62,
2670,
33411,
479,
6996,
62,
25067,
496,
796,
366,
3365,
13,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
19799,
88,
468,
7618,
13,
16,
4,
644,
4064,
857,
5511,
423,
30,
46506,
24484,
62,
25067,
496,
16034,
3084,
62,
3672,
62,
2670,
33411,
479,
6996,
62,
25067,
496,
796,
366,
3365,
13,
16,
39658
] |
What place is S.K. Ho in? | SELECT place FROM table_name_93 WHERE player = "s.k. ho" | [
2061,
1295,
318,
311,
13,
42,
13,
9544,
287,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
6052,
33411,
2137,
796,
366,
82,
13,
74,
13,
8169,
1
] | [
1,
1,
1,
1,
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,
318,
311,
13,
42,
13,
9544,
287,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
6052,
33411,
2137,
796,
366,
82,
13,
74,
13,
8169,
1
] |
give the minimum age of patients whose marital status is single and admission location is emergency room . | SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
26535,
262,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
4067,
318,
6334,
2119,
764,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
262,
5288,
2479,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
4067,
318,
6334,
2119,
764,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357... |
In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won? | SELECT MIN(ends_won) FROM table_name_45 WHERE stolen_ends = 10 AND locale = "italy" AND blank_ends < 14 | [
818,
340,
3400,
11,
618,
262,
9909,
5645,
547,
838,
290,
9178,
5645,
547,
739,
1478,
11,
644,
338,
262,
9016,
5645,
1839,
30,
46506,
20625,
7,
2412,
62,
26502,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
9909,
62,
2412,
796,
838,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
340,
3400,
11,
618,
262,
9909,
5645,
547,
838,
290,
9178,
5645,
547,
739,
1478,
11,
644,
338,
262,
9016,
5645,
1839,
30,
46506,
20625,
7,
2412,
62,
26502,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
9909,
62,
2412,
796,
838,
5... |
what is the most number where the calendar shows october 20 | SELECT high_points FROM table_27733909_1 WHERE date = "October 20" | [
10919,
318,
262,
749,
1271,
810,
262,
11845,
2523,
19318,
2023,
1160,
46506,
1029,
62,
13033,
16034,
3084,
62,
27019,
29626,
2931,
62,
16,
33411,
3128,
796,
366,
18517,
1160,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
749,
1271,
810,
262,
11845,
2523,
19318,
2023,
1160,
46506,
1029,
62,
13033,
16034,
3084,
62,
27019,
29626,
2931,
62,
16,
33411,
3128,
796,
366,
18517,
1160,
1
] |
What 2006 has 1r as the 2007? | SELECT 2006 FROM table_name_74 WHERE 2007 = "1r" | [
2061,
4793,
468,
352,
81,
355,
262,
4343,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
4524,
33411,
4343,
796,
366,
16,
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
] | [
2061,
4793,
468,
352,
81,
355,
262,
4343,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
4524,
33411,
4343,
796,
366,
16,
81,
1
] |
Find the names of all the tracks that contain the word 'you'. | SELECT name FROM track WHERE name LIKE '%you%' | [
16742,
262,
3891,
286,
477,
262,
8339,
326,
3994,
262,
1573,
705,
5832,
4458,
46506,
1438,
16034,
2610,
33411,
1438,
34178,
705,
4,
5832,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
3891,
286,
477,
262,
8339,
326,
3994,
262,
1573,
705,
5832,
4458,
46506,
1438,
16034,
2610,
33411,
1438,
34178,
705,
4,
5832,
4,
6
] |
What was the date of the game in week 3? | SELECT "Date" FROM table_24602 WHERE "Week" = '3' | [
2061,
373,
262,
3128,
286,
262,
983,
287,
1285,
513,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1731,
31418,
33411,
366,
20916,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
286,
262,
983,
287,
1285,
513,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1731,
31418,
33411,
366,
20916,
1,
796,
705,
18,
6
] |
Tell me the trend about the claim dates using a trend line. | SELECT Date_Claim_Settled, COUNT(Date_Claim_Settled) FROM Settlements GROUP BY Date_Claim_Settled | [
24446,
502,
262,
5182,
546,
262,
1624,
9667,
1262,
257,
5182,
1627,
13,
46506,
7536,
62,
44819,
62,
50,
3087,
992,
11,
327,
28270,
7,
10430,
62,
44819,
62,
50,
3087,
992,
8,
16034,
41479,
3639,
44441,
11050,
7536,
62,
44819,
62,
50,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
5182,
546,
262,
1624,
9667,
1262,
257,
5182,
1627,
13,
46506,
7536,
62,
44819,
62,
50,
3087,
992,
11,
327,
28270,
7,
10430,
62,
44819,
62,
50,
3087,
992,
8,
16034,
41479,
3639,
44441,
11050,
7536,
62,
44819,
62,
50,... |
how many patients whose admission type is newborn and admission location is transfer from hosp/extram? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
23856,
290,
13938,
4067,
318,
4351,
422,
10496,
14,
2302,
859,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
318,
23856,
290,
13938,
4067,
318,
4351,
422,
10496,
14,
2302,
859,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,... |
Which Written by has a Code of 1.2 1.3? | SELECT "Written by" FROM table_13037 WHERE "Code" = '1.2 1.3' | [
13828,
22503,
416,
468,
257,
6127,
286,
352,
13,
17,
352,
13,
18,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
12952,
2718,
33411,
366,
10669,
1,
796,
705,
16,
13,
17,
352,
13,
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
] | [
13828,
22503,
416,
468,
257,
6127,
286,
352,
13,
17,
352,
13,
18,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
12952,
2718,
33411,
366,
10669,
1,
796,
705,
16,
13,
17,
352,
13,
18,
6
] |
how many people from ethiopia ranked in the top 9 ? | SELECT COUNT("name") FROM table_204_90 WHERE "nationality" = 'ethiopia' AND id <= 9 | [
4919,
867,
661,
422,
4555,
14922,
544,
10307,
287,
262,
1353,
860,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
3829,
33411,
366,
14648,
414,
1,
796,
705,
2788,
14922,
544,
6,
5357,
4686,
19841,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
422,
4555,
14922,
544,
10307,
287,
262,
1353,
860,
5633,
46506,
327,
28270,
7203,
3672,
4943,
16034,
3084,
62,
18638,
62,
3829,
33411,
366,
14648,
414,
1,
796,
705,
2788,
14922,
544,
6,
5357,
4686,
19841,
860
] |
View for Habib Ahmed Post 2014-2015. | SELECT DISTINCT (p1.Id) AS "post_link", p2.ViewCount FROM Posts AS p1 JOIN Posts AS p2 ON p1.ParentId = p2.Id WHERE p1.OwnerUserId = 961113 AND p1.CreationDate > '2015-07-01' | [
7680,
329,
19654,
571,
21157,
2947,
1946,
12,
4626,
13,
46506,
360,
8808,
1268,
4177,
357,
79,
16,
13,
7390,
8,
7054,
366,
7353,
62,
8726,
1600,
279,
17,
13,
7680,
12332,
16034,
12043,
7054,
279,
16,
32357,
1268,
12043,
7054,
279,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7680,
329,
19654,
571,
21157,
2947,
1946,
12,
4626,
13,
46506,
360,
8808,
1268,
4177,
357,
79,
16,
13,
7390,
8,
7054,
366,
7353,
62,
8726,
1600,
279,
17,
13,
7680,
12332,
16034,
12043,
7054,
279,
16,
32357,
1268,
12043,
7054,
279,
1... |
since 1804 days ago, had patient 007-16517 excreted any urine count? | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | [
20777,
1248,
3023,
1528,
2084,
11,
550,
5827,
3571,
22,
12,
20986,
1558,
2859,
1186,
276,
597,
18922,
954,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
1248,
3023,
1528,
2084,
11,
550,
5827,
3571,
22,
12,
20986,
1558,
2859,
1186,
276,
597,
18922,
954,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46... |
how many bishops per adherent in serbia ? | SELECT "bishops" / "adherents" FROM table_204_284 WHERE "jurisdiction" = 'serbia' | [
4919,
867,
27538,
583,
40971,
287,
1055,
23339,
5633,
46506,
366,
65,
21863,
1,
1220,
366,
324,
8334,
82,
1,
16034,
3084,
62,
18638,
62,
30336,
33411,
366,
73,
333,
9409,
2867,
1,
796,
705,
2655,
23339,
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
] | [
4919,
867,
27538,
583,
40971,
287,
1055,
23339,
5633,
46506,
366,
65,
21863,
1,
1220,
366,
324,
8334,
82,
1,
16034,
3084,
62,
18638,
62,
30336,
33411,
366,
73,
333,
9409,
2867,
1,
796,
705,
2655,
23339,
6
] |
Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened. | SELECT year_opened FROM track WHERE seating BETWEEN 4000 AND 5000 | [
15307,
614,
810,
257,
2610,
351,
257,
24800,
379,
1551,
23336,
4721,
290,
257,
2610,
351,
24800,
645,
517,
621,
30123,
4721,
13,
46506,
614,
62,
26350,
16034,
2610,
33411,
24800,
38651,
8845,
1677,
30123,
5357,
23336
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
810,
257,
2610,
351,
257,
24800,
379,
1551,
23336,
4721,
290,
257,
2610,
351,
24800,
645,
517,
621,
30123,
4721,
13,
46506,
614,
62,
26350,
16034,
2610,
33411,
24800,
38651,
8845,
1677,
30123,
5357,
23336
] |
Distribution of question & answers scores. | SELECT Score, SUM(CASE PostTypeId WHEN 1 THEN 1 ELSE 0 END) AS "Questions", SUM(CASE PostTypeId WHEN 2 THEN 1 ELSE 0 END) AS "Answers" FROM Posts WHERE OwnerUserId = '##UserId:int##' GROUP BY Score ORDER BY Score | [
20344,
3890,
286,
1808,
1222,
7429,
8198,
13,
46506,
15178,
11,
35683,
7,
34,
11159,
2947,
6030,
7390,
42099,
352,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
35741,
1600,
35683,
7,
34,
11159,
2947,
6030,
7390,
42099,
362,
42243,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20344,
3890,
286,
1808,
1222,
7429,
8198,
13,
46506,
15178,
11,
35683,
7,
34,
11159,
2947,
6030,
7390,
42099,
352,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
35741,
1600,
35683,
7,
34,
11159,
2947,
6030,
7390,
42099,
362,
42243,... |
Which Game 1 has a fullback? | SELECT "Game 1" FROM table_58355 WHERE "Position" = 'fullback' | [
13828,
3776,
352,
468,
257,
49570,
30,
46506,
366,
8777,
352,
1,
16034,
3084,
62,
3365,
28567,
33411,
366,
26545,
1,
796,
705,
12853,
1891,
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
] | [
13828,
3776,
352,
468,
257,
49570,
30,
46506,
366,
8777,
352,
1,
16034,
3084,
62,
3365,
28567,
33411,
366,
26545,
1,
796,
705,
12853,
1891,
6
] |
what flights are available from PITTSBURGH to BALTIMORE on 7 25 1991 | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 25 AND date_day.month_number = 7 AND... | [
10919,
13956,
389,
1695,
422,
49040,
4694,
38926,
17511,
284,
347,
31429,
3955,
6965,
319,
767,
1679,
10249,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
13956,
389,
1695,
422,
49040,
4694,
38926,
17511,
284,
347,
31429,
3955,
6965,
319,
767,
1679,
10249,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
1... |
count the number of patients whose marital status is divorced and item id is 51274? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.itemid = "51274" | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2378,
4686,
318,
22243,
4524,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
2378,
4686,
318,
22243,
4524,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
... |
Users with highest average post score. | SELECT MAX(U.DisplayName), COUNT(P.Id) AS NumPosts, AVG(P.Score) AS AvgScore FROM Users AS U INNER JOIN Posts AS P ON P.OwnerUserId = U.Id WHERE P.PostTypeId IN (1, 2) GROUP BY U.Id HAVING COUNT(P.Id) > 5 ORDER BY AvgScore DESC | [
14490,
351,
4511,
2811,
1281,
4776,
13,
46506,
25882,
7,
52,
13,
23114,
5376,
828,
327,
28270,
7,
47,
13,
7390,
8,
7054,
31835,
21496,
11,
35224,
7,
47,
13,
26595,
8,
7054,
33455,
26595,
16034,
18987,
7054,
471,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
351,
4511,
2811,
1281,
4776,
13,
46506,
25882,
7,
52,
13,
23114,
5376,
828,
327,
28270,
7,
47,
13,
7390,
8,
7054,
31835,
21496,
11,
35224,
7,
47,
13,
26595,
8,
7054,
33455,
26595,
16034,
18987,
7054,
471,
3268,
21479,
32357,
... |
Who's the First District with a Fifth District of prudy adam? | SELECT first_district FROM table_name_9 WHERE fifth_district = "prudy adam" | [
8241,
338,
262,
3274,
5665,
351,
257,
19383,
5665,
286,
25220,
88,
23197,
30,
46506,
717,
62,
17080,
2012,
16034,
3084,
62,
3672,
62,
24,
33411,
8150,
62,
17080,
2012,
796,
366,
1050,
463,
88,
23197,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
338,
262,
3274,
5665,
351,
257,
19383,
5665,
286,
25220,
88,
23197,
30,
46506,
717,
62,
17080,
2012,
16034,
3084,
62,
3672,
62,
24,
33411,
8150,
62,
17080,
2012,
796,
366,
1050,
463,
88,
23197,
1
] |
until 1 year ago, how many patients have undergone therapeutic antibacterials - carbapenem during the same month after the procedure of oncology consultation? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'oncology consultation' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1 J... | [
28446,
352,
614,
2084,
11,
703,
867,
3871,
423,
29900,
21546,
11310,
7321,
8231,
532,
13265,
499,
268,
368,
1141,
262,
976,
1227,
706,
262,
8771,
286,
319,
66,
1435,
18103,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
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... | [
28446,
352,
614,
2084,
11,
703,
867,
3871,
423,
29900,
21546,
11310,
7321,
8231,
532,
13265,
499,
268,
368,
1141,
262,
976,
1227,
706,
262,
8771,
286,
319,
66,
1435,
18103,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13... |
what was the title of the publication after issue 1 ? | SELECT "title" FROM table_204_696 WHERE "release date" > (SELECT "release date" FROM table_204_696 WHERE "issue" = 1) ORDER BY "release date" LIMIT 1 | [
10919,
373,
262,
3670,
286,
262,
9207,
706,
2071,
352,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
38205,
33411,
366,
20979,
3128,
1,
1875,
357,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
18638,
62,
38205,
33411,
366,
219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
286,
262,
9207,
706,
2071,
352,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
38205,
33411,
366,
20979,
3128,
1,
1875,
357,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
18638,
62,
38205,
33411,
366,
219... |
Which Venue has an Against of 25? | SELECT venue FROM table_name_26 WHERE against = 25 | [
13828,
9932,
518,
468,
281,
12914,
286,
1679,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2075,
33411,
1028,
796,
1679
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9932,
518,
468,
281,
12914,
286,
1679,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2075,
33411,
1028,
796,
1679
] |
What was the result of the election in the Arkansas 2 district? | SELECT "Result" FROM table_18677 WHERE "District" = 'Arkansas 2' | [
2061,
373,
262,
1255,
286,
262,
3071,
287,
262,
14538,
362,
4783,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1507,
40179,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
362,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
3071,
287,
262,
14538,
362,
4783,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1507,
40179,
33411,
366,
44857,
1,
796,
705,
42007,
6618,
362,
6
] |
Get top users for Greece. Get top users by country | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE Location LIKE '%Greece%' OR Location LIKE '%Hellas%' ORDER BY Reputation DESC | [
3855,
1353,
2985,
329,
10315,
13,
3497,
1353,
2985,
416,
1499,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3855,
1353,
2985,
329,
10315,
13,
3497,
1353,
2985,
416,
1499,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
160... |
What is the total of medium earth orbital regime, accidentally achieved and successes greater than 3? | SELECT SUM("Accidentally Achieved") FROM table_38105 WHERE "Orbital regime" = 'medium earth' AND "Successes" > '3' | [
2061,
318,
262,
2472,
286,
7090,
4534,
32362,
7142,
11,
14716,
8793,
290,
23682,
3744,
621,
513,
30,
46506,
35683,
7203,
17320,
23961,
317,
3043,
1079,
4943,
16034,
3084,
62,
2548,
13348,
33411,
366,
5574,
65,
1287,
7142,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
286,
7090,
4534,
32362,
7142,
11,
14716,
8793,
290,
23682,
3744,
621,
513,
30,
46506,
35683,
7203,
17320,
23961,
317,
3043,
1079,
4943,
16034,
3084,
62,
2548,
13348,
33411,
366,
5574,
65,
1287,
7142,
1,
796,
705,
... |
Plot the number of investor details by grouped by investor details as a bar graph, display Y from high to low order. | SELECT Investor_details, COUNT(Investor_details) FROM Investors GROUP BY Investor_details ORDER BY COUNT(Investor_details) DESC | [
43328,
262,
1271,
286,
15811,
3307,
416,
32824,
416,
15811,
3307,
355,
257,
2318,
4823,
11,
3359,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
47979,
62,
36604,
11,
327,
28270,
7,
19070,
273,
62,
36604,
8,
16034,
38898,
44441,
11050,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
1271,
286,
15811,
3307,
416,
32824,
416,
15811,
3307,
355,
257,
2318,
4823,
11,
3359,
575,
422,
1029,
284,
1877,
1502,
13,
46506,
47979,
62,
36604,
11,
327,
28270,
7,
19070,
273,
62,
36604,
8,
16034,
38898,
44441,
11050,
4... |
What is the position of a player from North Carolina? | SELECT position FROM table_name_57 WHERE school = "north carolina" | [
2061,
318,
262,
2292,
286,
257,
2137,
422,
2258,
5913,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3553,
33411,
1524,
796,
366,
43588,
1097,
47196,
1
] | [
1,
1,
1,
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,
2292,
286,
257,
2137,
422,
2258,
5913,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3553,
33411,
1524,
796,
366,
43588,
1097,
47196,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.