instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Who ran for office in the Alabama 1 district? | SELECT "Candidates" FROM table_758 WHERE "District" = 'Alabama 1' | [
8241,
4966,
329,
2607,
287,
262,
9266,
352,
4783,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
38569,
33411,
366,
44857,
1,
796,
705,
49177,
352,
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,
4966,
329,
2607,
287,
262,
9266,
352,
4783,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
38569,
33411,
366,
44857,
1,
796,
705,
49177,
352,
6
] |
how many patients of asian ethnicity are administered additive drug types? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
286,
355,
666,
26289,
389,
17169,
38298,
2563,
3858,
30,
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,
312,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
286,
355,
666,
26289,
389,
17169,
38298,
2563,
3858,
30,
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,
312,
79... |
Which school had a player who played the C position? | SELECT school FROM table_name_64 WHERE position = "c" | [
13828,
1524,
550,
257,
2137,
508,
2826,
262,
327,
2292,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
2414,
33411,
2292,
796,
366,
66,
1
] | [
1,
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,
1524,
550,
257,
2137,
508,
2826,
262,
327,
2292,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
2414,
33411,
2292,
796,
366,
66,
1
] |
What is the result for SSV ULM 1846? | SELECT "Result" FROM table_59437 WHERE "Home" = 'ssv ulm 1846' | [
2061,
318,
262,
1255,
329,
6723,
53,
471,
31288,
1248,
3510,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3270,
43284,
33411,
366,
16060,
1,
796,
705,
824,
85,
14856,
76,
1248,
3510,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
329,
6723,
53,
471,
31288,
1248,
3510,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
3270,
43284,
33411,
366,
16060,
1,
796,
705,
824,
85,
14856,
76,
1248,
3510,
6
] |
allergy to sulfa; | SELECT * FROM table_train_182 WHERE allergy_to_sulfa = 1 | [
439,
26079,
284,
22443,
64,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
24294,
33411,
36197,
62,
1462,
62,
82,
4754,
64,
796,
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
] | [
439,
26079,
284,
22443,
64,
26,
46506,
1635,
16034,
3084,
62,
27432,
62,
24294,
33411,
36197,
62,
1462,
62,
82,
4754,
64,
796,
352
] |
What date was the score won 1-2? | SELECT "Date" FROM table_48120 WHERE "Score" = 'won 1-2' | [
2061,
3128,
373,
262,
4776,
1839,
352,
12,
17,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2780,
10232,
33411,
366,
26595,
1,
796,
705,
26502,
352,
12,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
262,
4776,
1839,
352,
12,
17,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2780,
10232,
33411,
366,
26595,
1,
796,
705,
26502,
352,
12,
17,
6
] |
What is the 8:30 program that airs on the station that airs various programs at 7:30? | SELECT "8:30" FROM table_35274 WHERE "7:30" = 'various programs' | [
2061,
318,
262,
807,
25,
1270,
1430,
326,
37112,
319,
262,
4429,
326,
37112,
2972,
4056,
379,
767,
25,
1270,
30,
46506,
366,
23,
25,
1270,
1,
16034,
3084,
62,
2327,
28857,
33411,
366,
22,
25,
1270,
1,
796,
705,
7785,
699,
4056,
6
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
807,
25,
1270,
1430,
326,
37112,
319,
262,
4429,
326,
37112,
2972,
4056,
379,
767,
25,
1270,
30,
46506,
366,
23,
25,
1270,
1,
16034,
3084,
62,
2327,
28857,
33411,
366,
22,
25,
1270,
1,
796,
705,
7785,
699,
4056,
6
... |
What is 1966's Qual rating? | SELECT qual FROM table_name_55 WHERE year = "1966" | [
2061,
318,
19322,
338,
9537,
7955,
30,
46506,
4140,
16034,
3084,
62,
3672,
62,
2816,
33411,
614,
796,
366,
44227,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
19322,
338,
9537,
7955,
30,
46506,
4140,
16034,
3084,
62,
3672,
62,
2816,
33411,
614,
796,
366,
44227,
1
] |
What is Player, when Country is 'United States', and when Year(s) Won is '1976'? | SELECT player FROM table_name_40 WHERE country = "united states" AND year_s__won = "1976" | [
2061,
318,
7853,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
6280,
7,
82,
8,
23306,
318,
705,
38108,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
1821,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
614,
62,
82,
834,
2650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
290,
618,
6280,
7,
82,
8,
23306,
318,
705,
38108,
30960,
46506,
2137,
16034,
3084,
62,
3672,
62,
1821,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
614,
62,
82,
834,
2650... |
What is the FSB of the model with part number lf80537gf0411m? | SELECT fsb FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M" | [
2061,
318,
262,
376,
16811,
286,
262,
2746,
351,
636,
1271,
300,
69,
28256,
2718,
70,
69,
3023,
1157,
76,
30,
46506,
277,
36299,
16034,
3084,
62,
1157,
1899,
1954,
1485,
62,
19,
33411,
636,
62,
17618,
62,
82,
62,
796,
366,
43,
37,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
376,
16811,
286,
262,
2746,
351,
636,
1271,
300,
69,
28256,
2718,
70,
69,
3023,
1157,
76,
30,
46506,
277,
36299,
16034,
3084,
62,
1157,
1899,
1954,
1485,
62,
19,
33411,
636,
62,
17618,
62,
82,
62,
796,
366,
43,
37,... |
What date was the ensemble in North East England closed? | SELECT closure_date FROM table_name_70 WHERE region = "north east england" | [
2061,
3128,
373,
262,
34549,
287,
2258,
3687,
4492,
4838,
30,
46506,
16512,
62,
4475,
16034,
3084,
62,
3672,
62,
2154,
33411,
3814,
796,
366,
43588,
7627,
1786,
1044,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
262,
34549,
287,
2258,
3687,
4492,
4838,
30,
46506,
16512,
62,
4475,
16034,
3084,
62,
3672,
62,
2154,
33411,
3814,
796,
366,
43588,
7627,
1786,
1044,
1
] |
Which date has a Tournament of la quinta? | SELECT "Date" FROM table_68758 WHERE "Tournament" = 'la quinta' | [
13828,
3128,
468,
257,
9595,
286,
8591,
28533,
64,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3104,
38569,
33411,
366,
51,
5138,
1,
796,
705,
5031,
28533,
64,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3128,
468,
257,
9595,
286,
8591,
28533,
64,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3104,
38569,
33411,
366,
51,
5138,
1,
796,
705,
5031,
28533,
64,
6
] |
WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582? | SELECT "Birth" FROM table_49976 WHERE "Ceased to be Duke of Girona" = '21 november 1582' | [
32971,
3180,
3336,
347,
4663,
4221,
360,
6158,
14603,
33930,
20101,
839,
284,
307,
11083,
286,
402,
1934,
64,
3963,
2310,
8005,
53,
28952,
1315,
6469,
30,
46506,
366,
38480,
1,
16034,
3084,
62,
28324,
4304,
33411,
366,
34,
68,
839,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
347,
4663,
4221,
360,
6158,
14603,
33930,
20101,
839,
284,
307,
11083,
286,
402,
1934,
64,
3963,
2310,
8005,
53,
28952,
1315,
6469,
30,
46506,
366,
38480,
1,
16034,
3084,
62,
28324,
4304,
33411,
366,
34,
68,
839,
28... |
how many division did not qualify for u.s. open cup in 2003 | SELECT division FROM table_1046170_5 WHERE us_open_cup = "Did Not Qualify" AND year = 2003 | [
4919,
867,
7297,
750,
407,
12780,
329,
334,
13,
82,
13,
1280,
6508,
287,
5816,
46506,
7297,
16034,
3084,
62,
940,
3510,
17279,
62,
20,
33411,
514,
62,
9654,
62,
25244,
796,
366,
11633,
1892,
9537,
1958,
1,
5357,
614,
796,
5816
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7297,
750,
407,
12780,
329,
334,
13,
82,
13,
1280,
6508,
287,
5816,
46506,
7297,
16034,
3084,
62,
940,
3510,
17279,
62,
20,
33411,
514,
62,
9654,
62,
25244,
796,
366,
11633,
1892,
9537,
1958,
1,
5357,
614,
796,
5816
] |
Which average Points have a Position of 7, and a Lost smaller than 4? | SELECT AVG(points) FROM table_name_34 WHERE position = 7 AND lost < 4 | [
13828,
2811,
11045,
423,
257,
23158,
286,
767,
11,
290,
257,
9164,
4833,
621,
604,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2682,
33411,
2292,
796,
767,
5357,
2626,
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
] | [
13828,
2811,
11045,
423,
257,
23158,
286,
767,
11,
290,
257,
9164,
4833,
621,
604,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2682,
33411,
2292,
796,
767,
5357,
2626,
1279,
604
] |
What are the numbers of wines for different grapes Plot them as bar chart, show by the the total number in ascending. | SELECT Grape, COUNT(*) FROM wine GROUP BY Grape ORDER BY COUNT(*) | [
2061,
389,
262,
3146,
286,
30680,
329,
1180,
36656,
28114,
606,
355,
2318,
8262,
11,
905,
416,
262,
262,
2472,
1271,
287,
41988,
13,
46506,
48315,
11,
327,
28270,
7,
28104,
16034,
8237,
44441,
11050,
48315,
38678,
11050,
327,
28270,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3146,
286,
30680,
329,
1180,
36656,
28114,
606,
355,
2318,
8262,
11,
905,
416,
262,
262,
2472,
1271,
287,
41988,
13,
46506,
48315,
11,
327,
28270,
7,
28104,
16034,
8237,
44441,
11050,
48315,
38678,
11050,
327,
28270,
7,
... |
What is average year for ayan mukerji? | SELECT AVG("Year") FROM table_58226 WHERE "Director" = 'ayan mukerji' | [
2061,
318,
2811,
614,
329,
257,
4121,
285,
2724,
263,
7285,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3365,
24909,
33411,
366,
28702,
1,
796,
705,
22931,
285,
2724,
263,
7285,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
2811,
614,
329,
257,
4121,
285,
2724,
263,
7285,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
3365,
24909,
33411,
366,
28702,
1,
796,
705,
22931,
285,
2724,
263,
7285,
6
] |
What state is Wesson in? | SELECT "State" FROM table_9198 WHERE "Owner" = 'wesson' | [
2061,
1181,
318,
370,
39670,
287,
30,
46506,
366,
9012,
1,
16034,
3084,
62,
24,
22337,
33411,
366,
42419,
1,
796,
705,
86,
39670,
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
] | [
2061,
1181,
318,
370,
39670,
287,
30,
46506,
366,
9012,
1,
16034,
3084,
62,
24,
22337,
33411,
366,
42419,
1,
796,
705,
86,
39670,
6
] |
when did patient 52736 get a insulin prescription for the last time in the first hospital visit? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52736 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.drug = 'insulin' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
12518,
750,
5827,
642,
1983,
2623,
651,
257,
14588,
15077,
329,
262,
938,
640,
287,
262,
717,
4436,
3187,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
642,
1983,
2623,
651,
257,
14588,
15077,
329,
262,
938,
640,
287,
262,
717,
4436,
3187,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62... |
When did the season located in the Netherlands premier? | SELECT premiere_air_dates FROM table_1949994_7 WHERE country = "The Netherlands" | [
2215,
750,
262,
1622,
5140,
287,
262,
12671,
18256,
30,
46506,
19245,
62,
958,
62,
19581,
16034,
3084,
62,
22913,
2079,
5824,
62,
22,
33411,
1499,
796,
366,
464,
12671,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
1622,
5140,
287,
262,
12671,
18256,
30,
46506,
19245,
62,
958,
62,
19581,
16034,
3084,
62,
22913,
2079,
5824,
62,
22,
33411,
1499,
796,
366,
464,
12671,
1
] |
which song has the most in us r & b ? | SELECT "song" FROM table_204_56 ORDER BY "us r&b" LIMIT 1 | [
4758,
3496,
468,
262,
749,
287,
514,
374,
1222,
275,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
3980,
38678,
11050,
366,
385,
374,
5,
65,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
3496,
468,
262,
749,
287,
514,
374,
1222,
275,
5633,
46506,
366,
34050,
1,
16034,
3084,
62,
18638,
62,
3980,
38678,
11050,
366,
385,
374,
5,
65,
1,
27564,
2043,
352
] |
What document types do have more than 10000 total access number. | SELECT document_type_code FROM documents GROUP BY document_type_code HAVING SUM(access_count) > 10000 | [
2061,
3188,
3858,
466,
423,
517,
621,
33028,
2472,
1895,
1271,
13,
46506,
3188,
62,
4906,
62,
8189,
16034,
4963,
44441,
11050,
3188,
62,
4906,
62,
8189,
367,
10116,
2751,
35683,
7,
15526,
62,
9127,
8,
1875,
33028
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3188,
3858,
466,
423,
517,
621,
33028,
2472,
1895,
1271,
13,
46506,
3188,
62,
4906,
62,
8189,
16034,
4963,
44441,
11050,
3188,
62,
4906,
62,
8189,
367,
10116,
2751,
35683,
7,
15526,
62,
9127,
8,
1875,
33028
] |
What is the Official # that has a French title of 'Pierre de Lune'? | SELECT "Official #" FROM table_43550 WHERE "French title" = 'pierre de lune' | [
2061,
318,
262,
15934,
1303,
326,
468,
257,
4141,
3670,
286,
705,
36910,
390,
406,
1726,
30960,
46506,
366,
28529,
1303,
1,
16034,
3084,
62,
40064,
1120,
33411,
366,
24111,
3670,
1,
796,
705,
79,
31058,
390,
300,
1726,
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
] | [
2061,
318,
262,
15934,
1303,
326,
468,
257,
4141,
3670,
286,
705,
36910,
390,
406,
1726,
30960,
46506,
366,
28529,
1303,
1,
16034,
3084,
62,
40064,
1120,
33411,
366,
24111,
3670,
1,
796,
705,
79,
31058,
390,
300,
1726,
6
] |
What was the highest number played when there were 21 goals conceded and a draw greater than 3? | SELECT MAX(played) FROM table_name_47 WHERE goals_conceded = 21 AND draw > 3 | [
2061,
373,
262,
4511,
1271,
2826,
618,
612,
547,
2310,
4661,
24684,
290,
257,
3197,
3744,
621,
513,
30,
46506,
25882,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
4661,
62,
1102,
771,
276,
796,
2310,
5357,
3197,
1875,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4511,
1271,
2826,
618,
612,
547,
2310,
4661,
24684,
290,
257,
3197,
3744,
621,
513,
30,
46506,
25882,
7,
21542,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
4661,
62,
1102,
771,
276,
796,
2310,
5357,
3197,
1875,
513
] |
list all flights from TAMPA FLORIDA to MIAMI that are the cheapest one way | 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, fare, flight, flight_fare, state WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'TAMPA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | [
4868,
477,
13956,
422,
33112,
4537,
9977,
1581,
41957,
284,
15789,
43870,
326,
389,
262,
28918,
530,
835,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
477,
13956,
422,
33112,
4537,
9977,
1581,
41957,
284,
15789,
43870,
326,
389,
262,
28918,
530,
835,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... |
Which Club Team has a Position of (d), a Nationality of canada, and a Player of andrew macwilliam? | SELECT club_team FROM table_name_7 WHERE position = "(d)" AND nationality = "canada" AND player = "andrew macwilliam" | [
13828,
6289,
4816,
468,
257,
23158,
286,
357,
67,
828,
257,
2351,
414,
286,
460,
4763,
11,
290,
257,
7853,
286,
290,
1809,
8352,
10594,
1789,
30,
46506,
3430,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
2292,
796,
30629,
67,
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
] | [
13828,
6289,
4816,
468,
257,
23158,
286,
357,
67,
828,
257,
2351,
414,
286,
460,
4763,
11,
290,
257,
7853,
286,
290,
1809,
8352,
10594,
1789,
30,
46506,
3430,
62,
15097,
16034,
3084,
62,
3672,
62,
22,
33411,
2292,
796,
30629,
67,
16... |
What is the Home team in the Game with a Score of 1 0? | SELECT "Home team" FROM table_62593 WHERE "Score" = '1–0' | [
2061,
318,
262,
5995,
1074,
287,
262,
3776,
351,
257,
15178,
286,
352,
657,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
26704,
6052,
33411,
366,
26595,
1,
796,
705,
16,
1906,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5995,
1074,
287,
262,
3776,
351,
257,
15178,
286,
352,
657,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
26704,
6052,
33411,
366,
26595,
1,
796,
705,
16,
1906,
15,
6
] |
Which Combination classification has Points classification of daniele bennati, and a Team classification of quick step? | SELECT "Combination classification" FROM table_5998 WHERE "Points classification" = 'daniele bennati' AND "Team classification" = 'quick step' | [
13828,
14336,
1883,
17923,
468,
11045,
17923,
286,
288,
34166,
293,
275,
1697,
7246,
11,
290,
257,
4816,
17923,
286,
2068,
2239,
30,
46506,
366,
20575,
1883,
17923,
1,
16034,
3084,
62,
20,
34808,
33411,
366,
40710,
17923,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14336,
1883,
17923,
468,
11045,
17923,
286,
288,
34166,
293,
275,
1697,
7246,
11,
290,
257,
4816,
17923,
286,
2068,
2239,
30,
46506,
366,
20575,
1883,
17923,
1,
16034,
3084,
62,
20,
34808,
33411,
366,
40710,
17923,
1,
796,
705,
... |
What is the fewest number of silver medals a nation who ranked below 8 received? | SELECT MIN(silver) FROM table_name_99 WHERE rank > 8 | [
2061,
318,
262,
1178,
395,
1271,
286,
8465,
28057,
257,
3277,
508,
10307,
2174,
807,
2722,
30,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
4279,
1875,
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,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
1271,
286,
8465,
28057,
257,
3277,
508,
10307,
2174,
807,
2722,
30,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
4279,
1875,
807
] |
What is the news frequency for the show Locker Room? | SELECT "News Freq" FROM table_62805 WHERE "Show Name" = 'locker room' | [
2061,
318,
262,
1705,
8373,
329,
262,
905,
406,
12721,
10096,
30,
46506,
366,
9980,
4848,
80,
1,
16034,
3084,
62,
5237,
28256,
33411,
366,
15307,
6530,
1,
796,
705,
5354,
263,
2119,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1705,
8373,
329,
262,
905,
406,
12721,
10096,
30,
46506,
366,
9980,
4848,
80,
1,
16034,
3084,
62,
5237,
28256,
33411,
366,
15307,
6530,
1,
796,
705,
5354,
263,
2119,
6
] |
what was this artists last album under the curling legs label ? | SELECT "album" FROM table_204_529 WHERE "label" = 'curling legs' ORDER BY "year" DESC LIMIT 1 | [
10919,
373,
428,
7912,
938,
5062,
739,
262,
1090,
1359,
7405,
6167,
5633,
46506,
366,
40916,
1,
16034,
3084,
62,
18638,
62,
49721,
33411,
366,
18242,
1,
796,
705,
22019,
1359,
7405,
6,
38678,
11050,
366,
1941,
1,
22196,
34,
27564,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
428,
7912,
938,
5062,
739,
262,
1090,
1359,
7405,
6167,
5633,
46506,
366,
40916,
1,
16034,
3084,
62,
18638,
62,
49721,
33411,
366,
18242,
1,
796,
705,
22019,
1359,
7405,
6,
38678,
11050,
366,
1941,
1,
22196,
34,
27564,
204... |
Of all the upper level classes , which ones are 8 credits ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.credits = 8 AND program_course.category LIKE 'ULCS' | [
5189,
477,
262,
6727,
1241,
6097,
837,
543,
3392,
389,
807,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5189,
477,
262,
6727,
1241,
6097,
837,
543,
3392,
389,
807,
10824,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
1430,
... |
in 1833, how many institutions were created? | SELECT COUNT("Institution") FROM table_73901 WHERE "Founded" = '1833' | [
259,
1248,
2091,
11,
703,
867,
6712,
547,
2727,
30,
46506,
327,
28270,
7203,
6310,
2738,
4943,
16034,
3084,
62,
22,
2670,
486,
33411,
366,
37,
6302,
1,
796,
705,
1507,
2091,
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
] | [
259,
1248,
2091,
11,
703,
867,
6712,
547,
2727,
30,
46506,
327,
28270,
7203,
6310,
2738,
4943,
16034,
3084,
62,
22,
2670,
486,
33411,
366,
37,
6302,
1,
796,
705,
1507,
2091,
6
] |
retrieve patient 4269's yearly minimum weight since 2 years ago. | SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4269)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit... | [
1186,
30227,
5827,
604,
26276,
338,
24169,
5288,
3463,
1201,
362,
812,
2084,
13,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1186,
30227,
5827,
604,
26276,
338,
24169,
5288,
3463,
1201,
362,
812,
2084,
13,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
... |
Who was the athlete from Hong Kong? | SELECT athlete FROM table_name_71 WHERE country = "hong kong" | [
8241,
373,
262,
16076,
422,
9764,
9071,
30,
46506,
16076,
16034,
3084,
62,
3672,
62,
4869,
33411,
1499,
796,
366,
71,
506,
479,
506,
1
] | [
1,
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,
16076,
422,
9764,
9071,
30,
46506,
16076,
16034,
3084,
62,
3672,
62,
4869,
33411,
1499,
796,
366,
71,
506,
479,
506,
1
] |
What is the position for the pick number 17? | SELECT "Position" FROM table_439 WHERE "Overall Pick #" = '17' | [
2061,
318,
262,
2292,
329,
262,
2298,
1271,
1596,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
47106,
33411,
366,
16350,
12346,
1303,
1,
796,
705,
1558,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2292,
329,
262,
2298,
1271,
1596,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
47106,
33411,
366,
16350,
12346,
1303,
1,
796,
705,
1558,
6
] |
what is the number of patients who died after diagnosis of hypoglycemia within the same month until 1 year ago? | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoglycemia') AS t1 GROUP BY t1.uniquepid HAVING MIN(t1.diagnos... | [
10919,
318,
262,
1271,
286,
3871,
508,
3724,
706,
13669,
286,
5328,
34619,
344,
20730,
1626,
262,
976,
1227,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
312,
8,
16034,
357,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
508,
3724,
706,
13669,
286,
5328,
34619,
344,
20730,
1626,
262,
976,
1227,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
312,
8,
16034,
357,
4650... |
How many games did they play with 88 points? | SELECT COUNT(record) FROM table_23308178_8 WHERE points = 88 | [
2437,
867,
1830,
750,
484,
711,
351,
9193,
2173,
30,
46506,
327,
28270,
7,
22105,
8,
16034,
3084,
62,
1954,
21495,
23188,
62,
23,
33411,
2173,
796,
9193
] | [
1,
1,
1,
1,
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,
1830,
750,
484,
711,
351,
9193,
2173,
30,
46506,
327,
28270,
7,
22105,
8,
16034,
3084,
62,
1954,
21495,
23188,
62,
23,
33411,
2173,
796,
9193
] |
Name the number of other builders for nant, visual studio | SELECT COUNT("Other builders") FROM table_25531 WHERE "Windows builders" = 'NAnt, Visual Studio' | [
5376,
262,
1271,
286,
584,
31606,
329,
299,
415,
11,
5874,
8034,
46506,
327,
28270,
7203,
6395,
31606,
4943,
16034,
3084,
62,
13381,
3132,
33411,
366,
11209,
31606,
1,
796,
705,
4535,
429,
11,
15612,
11733,
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
] | [
5376,
262,
1271,
286,
584,
31606,
329,
299,
415,
11,
5874,
8034,
46506,
327,
28270,
7203,
6395,
31606,
4943,
16034,
3084,
62,
13381,
3132,
33411,
366,
11209,
31606,
1,
796,
705,
4535,
429,
11,
15612,
11733,
6
] |
count the number of patients whose admission type is emergency and diagnoses long title is accidents occurring in other specified places? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Accidents occurring in other specified places" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
17390,
14963,
287,
584,
7368,
4113,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
17390,
14963,
287,
584,
7368,
4113,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
What date has 11 as the tie no.? | SELECT date FROM table_name_48 WHERE tie_no = "11" | [
2061,
3128,
468,
1367,
355,
262,
9839,
645,
40791,
46506,
3128,
16034,
3084,
62,
3672,
62,
2780,
33411,
9839,
62,
3919,
796,
366,
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
] | [
2061,
3128,
468,
1367,
355,
262,
9839,
645,
40791,
46506,
3128,
16034,
3084,
62,
3672,
62,
2780,
33411,
9839,
62,
3919,
796,
366,
1157,
1
] |
Posts that have ever had [game-systems]. | SELECT Posts.Id AS "post_link", Posts.Tags, PostHistory.CreationDate FROM Posts, PostHistory WHERE Posts.Id = PostHistory.PostId AND PostHistory.Text LIKE '%<game-systems>%' ORDER BY Posts.Id DESC, PostHistory.CreationDate | [
21496,
326,
423,
1683,
550,
685,
6057,
12,
10057,
82,
4083,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
36142,
11,
2947,
18122,
13,
12443,
341,
10430,
16034,
12043,
11,
2947,
18122,
33411,
12043,
13,
7390,
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... | [
21496,
326,
423,
1683,
550,
685,
6057,
12,
10057,
82,
4083,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
36142,
11,
2947,
18122,
13,
12443,
341,
10430,
16034,
12043,
11,
2947,
18122,
33411,
12043,
13,
7390,
796,
... |
What tournament in 2006 had a score of 0-0? | SELECT "Tournament" FROM table_39583 WHERE "2006" = '0-0' | [
2061,
7756,
287,
4793,
550,
257,
4776,
286,
657,
12,
15,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2670,
46239,
33411,
366,
13330,
1,
796,
705,
15,
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
] | [
2061,
7756,
287,
4793,
550,
257,
4776,
286,
657,
12,
15,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2670,
46239,
33411,
366,
13330,
1,
796,
705,
15,
12,
15,
6
] |
indicate the daily minimum amount of temperature c (calc) for patient 12726 on the current icu visit. | SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12726) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_item... | [
521,
5344,
262,
4445,
5288,
2033,
286,
5951,
269,
357,
9948,
66,
8,
329,
5827,
18112,
2075,
319,
262,
1459,
14158,
84,
3187,
13,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
521,
5344,
262,
4445,
5288,
2033,
286,
5951,
269,
357,
9948,
66,
8,
329,
5827,
18112,
2075,
319,
262,
1459,
14158,
84,
3187,
13,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
... |
What is the grid of driver tomas scheckter from vision racing team? | SELECT grid FROM table_name_22 WHERE team = "vision racing" AND driver = "tomas scheckter" | [
2061,
318,
262,
10706,
286,
4639,
284,
5356,
3897,
694,
353,
422,
5761,
11717,
1074,
30,
46506,
10706,
16034,
3084,
62,
3672,
62,
1828,
33411,
1074,
796,
366,
10178,
11717,
1,
5357,
4639,
796,
366,
83,
16911,
3897,
694,
353,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10706,
286,
4639,
284,
5356,
3897,
694,
353,
422,
5761,
11717,
1074,
30,
46506,
10706,
16034,
3084,
62,
3672,
62,
1828,
33411,
1074,
796,
366,
10178,
11717,
1,
5357,
4639,
796,
366,
83,
16911,
3897,
694,
353,
1
] |
Who is the player who's number is 3? | SELECT "Player" FROM table_17140 WHERE "No.(s)" = '3' | [
8241,
318,
262,
2137,
508,
338,
1271,
318,
513,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1558,
15187,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
2137,
508,
338,
1271,
318,
513,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1558,
15187,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
18,
6
] |
how many female patients are primarily diagnosed for left internal jugular vein thrombosis left arm edema? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" | [
4919,
867,
4048,
3871,
389,
7525,
14641,
329,
1364,
5387,
45808,
934,
27208,
294,
398,
65,
5958,
1364,
3211,
1225,
19687,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
4048,
3871,
389,
7525,
14641,
329,
1364,
5387,
45808,
934,
27208,
294,
398,
65,
5958,
1364,
3211,
1225,
19687,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
83... |
what is the mountain range when the state is colorado, rank is higher than 90 and mountain peak is whetstone mountain? | SELECT mountain_range FROM table_name_28 WHERE state = "colorado" AND rank > 90 AND mountain_peak = "whetstone mountain" | [
10919,
318,
262,
8598,
2837,
618,
262,
1181,
318,
3124,
4533,
11,
4279,
318,
2440,
621,
4101,
290,
8598,
9103,
318,
483,
83,
6440,
8598,
30,
46506,
8598,
62,
9521,
16034,
3084,
62,
3672,
62,
2078,
33411,
1181,
796,
366,
8043,
4533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8598,
2837,
618,
262,
1181,
318,
3124,
4533,
11,
4279,
318,
2440,
621,
4101,
290,
8598,
9103,
318,
483,
83,
6440,
8598,
30,
46506,
8598,
62,
9521,
16034,
3084,
62,
3672,
62,
2078,
33411,
1181,
796,
366,
8043,
4533,
... |
bmi > 24 kg / m2 | SELECT * FROM table_train_204 WHERE body_mass_index_bmi > 24 | [
65,
11632,
1875,
1987,
14211,
1220,
285,
17,
46506,
1635,
16034,
3084,
62,
27432,
62,
18638,
33411,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
1875,
1987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
65,
11632,
1875,
1987,
14211,
1220,
285,
17,
46506,
1635,
16034,
3084,
62,
27432,
62,
18638,
33411,
1767,
62,
22208,
62,
9630,
62,
65,
11632,
1875,
1987
] |
did patient 013-38992 have an allergic reaction to anything in 2105? | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992')) AND STRFTIME('%y', allergy.allergytime) = '2105' | [
20839,
5827,
5534,
18,
12,
2548,
41561,
423,
281,
31856,
6317,
284,
1997,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
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... | [
20839,
5827,
5534,
18,
12,
2548,
41561,
423,
281,
31856,
6317,
284,
1997,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3... |
what is the name of the role that has co-protagonist in the notes field and the years of 2008-2009? | SELECT "Role" FROM table_71662 WHERE "Notes" = 'co-protagonist' AND "Year" = '2008-2009' | [
10919,
318,
262,
1438,
286,
262,
2597,
326,
468,
763,
12,
11235,
15239,
287,
262,
4710,
2214,
290,
262,
812,
286,
3648,
12,
10531,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
22,
1433,
5237,
33411,
366,
16130,
1,
796,
705,
1073,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1438,
286,
262,
2597,
326,
468,
763,
12,
11235,
15239,
287,
262,
4710,
2214,
290,
262,
812,
286,
3648,
12,
10531,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
22,
1433,
5237,
33411,
366,
16130,
1,
796,
705,
1073,
12,
... |
Which Total has a Nation of japan (jpn), and a Silver smaller than 1? | SELECT AVG(total) FROM table_name_85 WHERE nation = "japan (jpn)" AND silver < 1 | [
13828,
7472,
468,
257,
8741,
286,
474,
2674,
357,
73,
21999,
828,
290,
257,
7698,
4833,
621,
352,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
3277,
796,
366,
73,
2674,
357,
73,
21999,
16725,
5357,
8465,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7472,
468,
257,
8741,
286,
474,
2674,
357,
73,
21999,
828,
290,
257,
7698,
4833,
621,
352,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
3277,
796,
366,
73,
2674,
357,
73,
21999,
16725,
5357,
8465,
12... |
what was the maximum value of patient 028-42654's -eos until 12/2102? | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '028-42654')) AND lab.labname = '-eos' AND STRFTIME('%y-%m', lab.labresulttime) <= ... | [
10919,
373,
262,
5415,
1988,
286,
5827,
657,
2078,
12,
42780,
4051,
338,
532,
68,
418,
1566,
1105,
14,
17,
15377,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1988,
286,
5827,
657,
2078,
12,
42780,
4051,
338,
532,
68,
418,
1566,
1105,
14,
17,
15377,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
4650... |
Which Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59? | SELECT AVG("Played") FROM table_79161 WHERE "Drawn" = '4' AND "Position" = '9' AND "Goals Against" > '59' | [
13828,
33101,
468,
257,
50061,
286,
604,
11,
290,
257,
23158,
286,
860,
11,
290,
28510,
12914,
4025,
621,
7863,
30,
46506,
35224,
7203,
11002,
276,
4943,
16034,
3084,
62,
3720,
25948,
33411,
366,
35,
5791,
1,
796,
705,
19,
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
] | [
13828,
33101,
468,
257,
50061,
286,
604,
11,
290,
257,
23158,
286,
860,
11,
290,
28510,
12914,
4025,
621,
7863,
30,
46506,
35224,
7203,
11002,
276,
4943,
16034,
3084,
62,
3720,
25948,
33411,
366,
35,
5791,
1,
796,
705,
19,
6,
5357,
... |
What percentage of voters choise McCain in Burlington? | SELECT mccain__percentage FROM table_20278716_2 WHERE county = "Burlington" | [
2061,
5873,
286,
4446,
1727,
786,
14264,
287,
37090,
30,
46506,
285,
535,
391,
834,
25067,
496,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
7968,
796,
366,
22991,
17299,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5873,
286,
4446,
1727,
786,
14264,
287,
37090,
30,
46506,
285,
535,
391,
834,
25067,
496,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
7968,
796,
366,
22991,
17299,
1
] |
Country/Territory of india, and a 4th Runner-up smaller than 1 has which lowest rank? | SELECT MIN("Rank") FROM table_39335 WHERE "Country/Territory" = 'india' AND "4th Runner-up" < '1' | [
33921,
14,
15156,
799,
652,
286,
773,
544,
11,
290,
257,
604,
400,
21529,
12,
929,
4833,
621,
352,
468,
543,
9016,
4279,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
2670,
27326,
33411,
366,
33921,
14,
15156,
799,
652,
1,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33921,
14,
15156,
799,
652,
286,
773,
544,
11,
290,
257,
604,
400,
21529,
12,
929,
4833,
621,
352,
468,
543,
9016,
4279,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
2670,
27326,
33411,
366,
33921,
14,
15156,
799,
652,
1,
7... |
For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the average of salary bin hire_date by time, rank in ascending by the total number. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(SALARY) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
4279,
287,
41988,
416,
262,
2472,
1271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
4279,
287,
41988,
416,
262,
2472,
1271... |
what was the top four of the most common output events that occurred until 1 year ago? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE DATETIME(outputevents.charttime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | [
10919,
373,
262,
1353,
1440,
286,
262,
749,
2219,
5072,
2995,
326,
5091,
1566,
352,
614,
2084,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1353,
1440,
286,
262,
749,
2219,
5072,
2995,
326,
5091,
1566,
352,
614,
2084,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
3... |
most reputation user from sri lanka. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%sri lanka%' ORDER BY Reputation DESC | [
1712,
8507,
2836,
422,
264,
380,
300,
15927,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1712,
8507,
2836,
422,
264,
380,
300,
15927,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
334... |
What is the name of the circuit when Phil Hill has the fastest lap? | SELECT circuit FROM table_name_1 WHERE fastest_lap = "phil hill" | [
2061,
318,
262,
1438,
286,
262,
10349,
618,
4543,
3327,
468,
262,
14162,
14779,
30,
46506,
10349,
16034,
3084,
62,
3672,
62,
16,
33411,
14162,
62,
37796,
796,
366,
28864,
12788,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
10349,
618,
4543,
3327,
468,
262,
14162,
14779,
30,
46506,
10349,
16034,
3084,
62,
3672,
62,
16,
33411,
14162,
62,
37796,
796,
366,
28864,
12788,
1
] |
what is the number of patients whose admission location is emergency room admit and with primary disease t5 fracture? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "T5 FRACTURE" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
351,
4165,
4369,
256,
20,
31846,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
351,
4165,
4369,
256,
20,
31846,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, find email and manager_id , and visualize them by a bar chart, and I want to list from low to high by the x axis. | SELECT EMAIL, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1064,
3053,
290,
4706,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1351,
422,
1877,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
3053,
290,
4706,
62,
312,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1351,
422,
1877,
284,
... |
provide the number of patients whose diagnoses long title is cellulitis and abscess of leg, except foot and drug type is main? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Cellulitis and abscess of leg, except foot" AND prescriptions.drug_type = "MAIN" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
47354,
11815,
290,
2352,
919,
286,
1232,
11,
2845,
2366,
290,
2563,
2099,
318,
1388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
890,
3670,
318,
47354,
11815,
290,
2352,
919,
286,
1232,
11,
2845,
2366,
290,
2563,
2099,
318,
1388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
... |
how many people had been admitted to hospital this year? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
4919,
867,
661,
550,
587,
6848,
284,
4436,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
20124,
524,
11,
705,
9688,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
587,
6848,
284,
4436,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
324,
20124,
524,
11,
705,
9688,
286,
... |
What is the low win total for players ranked below 4? | SELECT MIN(wins) FROM table_name_17 WHERE rank > 4 | [
2061,
318,
262,
1877,
1592,
2472,
329,
1938,
10307,
2174,
604,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
4279,
1875,
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
] | [
2061,
318,
262,
1877,
1592,
2472,
329,
1938,
10307,
2174,
604,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
4279,
1875,
604
] |
Show the ids and details of the investors who have at least two transactions with type code 'SALE' by a bar chart, rank in descending by the bar. | SELECT T1.Investor_details, T1.investor_id FROM Investors AS T1 JOIN Transactions AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" ORDER BY T1.Investor_details DESC | [
15307,
262,
220,
2340,
290,
3307,
286,
262,
7713,
508,
423,
379,
1551,
734,
8945,
351,
2099,
2438,
705,
50,
21358,
6,
416,
257,
2318,
8262,
11,
4279,
287,
31491,
416,
262,
2318,
13,
46506,
309,
16,
13,
19070,
273,
62,
36604,
11,
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... | [
15307,
262,
220,
2340,
290,
3307,
286,
262,
7713,
508,
423,
379,
1551,
734,
8945,
351,
2099,
2438,
705,
50,
21358,
6,
416,
257,
2318,
8262,
11,
4279,
287,
31491,
416,
262,
2318,
13,
46506,
309,
16,
13,
19070,
273,
62,
36604,
11,
3... |
Please show the most common occupation of players. | SELECT occupation FROM player GROUP BY occupation ORDER BY COUNT(*) DESC LIMIT 1 | [
5492,
905,
262,
749,
2219,
13755,
286,
1938,
13,
46506,
13755,
16034,
2137,
44441,
11050,
13755,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
5492,
905,
262,
749,
2219,
13755,
286,
1938,
13,
46506,
13755,
16034,
2137,
44441,
11050,
13755,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
which competitor finished immediately after karl hahnel ? | SELECT "name" FROM table_204_521 WHERE "rank" = (SELECT "rank" FROM table_204_521 WHERE "name" = 'karl hahnel') + 1 | [
4758,
20319,
5201,
3393,
706,
479,
7063,
387,
71,
4954,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
20,
2481,
33411,
366,
43027,
1,
796,
357,
46506,
366,
43027,
1,
16034,
3084,
62,
18638,
62,
20,
2481,
33411,
366,
3672,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
20319,
5201,
3393,
706,
479,
7063,
387,
71,
4954,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
20,
2481,
33411,
366,
43027,
1,
796,
357,
46506,
366,
43027,
1,
16034,
3084,
62,
18638,
62,
20,
2481,
33411,
366,
3672,
1... |
Where is the German Grand Prix? | SELECT "Location" FROM table_210 WHERE "Race" = 'German Grand Prix' | [
8496,
318,
262,
2679,
5675,
23832,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21536,
33411,
366,
35157,
1,
796,
705,
16010,
5675,
23832,
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
] | [
8496,
318,
262,
2679,
5675,
23832,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21536,
33411,
366,
35157,
1,
796,
705,
16010,
5675,
23832,
6
] |
how many entries are of each type? | SELECT COUNT(*), releasetype FROM torrents GROUP BY releasetype | [
4919,
867,
12784,
389,
286,
1123,
2099,
30,
46506,
327,
28270,
46491,
828,
1889,
292,
2963,
431,
16034,
24458,
82,
44441,
11050,
1889,
292,
2963,
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,
1
] | [
4919,
867,
12784,
389,
286,
1123,
2099,
30,
46506,
327,
28270,
46491,
828,
1889,
292,
2963,
431,
16034,
24458,
82,
44441,
11050,
1889,
292,
2963,
431
] |
What order year has a 30 Length (ft.) and 05.505 model? | SELECT "Order Year" FROM table_60636 WHERE "Length (ft.)" = '30' AND "Model" = '05.505' | [
2061,
1502,
614,
468,
257,
1542,
22313,
357,
701,
2014,
290,
8870,
13,
31654,
2746,
30,
46506,
366,
18743,
6280,
1,
16034,
3084,
62,
33206,
2623,
33411,
366,
24539,
357,
701,
2014,
1,
796,
705,
1270,
6,
5357,
366,
17633,
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
] | [
2061,
1502,
614,
468,
257,
1542,
22313,
357,
701,
2014,
290,
8870,
13,
31654,
2746,
30,
46506,
366,
18743,
6280,
1,
16034,
3084,
62,
33206,
2623,
33411,
366,
24539,
357,
701,
2014,
1,
796,
705,
1270,
6,
5357,
366,
17633,
1,
796,
705... |
Show me a bar chart about the number of areas for all appellations, and I want to show y axis in ascending order. | SELECT Area, COUNT(Area) FROM appellations GROUP BY Area ORDER BY COUNT(Area) | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
3006,
329,
477,
24781,
602,
11,
290,
314,
765,
284,
905,
331,
16488,
287,
41988,
1502,
13,
46506,
9498,
11,
327,
28270,
7,
30547,
8,
16034,
24781,
602,
44441,
11050,
9498,
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
] | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
3006,
329,
477,
24781,
602,
11,
290,
314,
765,
284,
905,
331,
16488,
287,
41988,
1502,
13,
46506,
9498,
11,
327,
28270,
7,
30547,
8,
16034,
24781,
602,
44441,
11050,
9498,
38678,
11050... |
count the number of patients who have been dead after having been diagnosed with intracranial injury - with subdural hematoma in the same hospital visit until 2 years ago. | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime, t1.patienthealthsystemstayid FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = ... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
2636,
706,
1719,
587,
14641,
351,
9913,
330,
2596,
498,
5095,
532,
351,
850,
67,
1523,
339,
6759,
6086,
287,
262,
976,
4436,
3187,
1566,
362,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
587,
2636,
706,
1719,
587,
14641,
351,
9913,
330,
2596,
498,
5095,
532,
351,
850,
67,
1523,
339,
6759,
6086,
287,
262,
976,
4436,
3187,
1566,
362,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
... |
What is the record of game 33? | SELECT record FROM table_name_97 WHERE game = 33 | [
2061,
318,
262,
1700,
286,
983,
4747,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5607,
33411,
983,
796,
4747
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1700,
286,
983,
4747,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5607,
33411,
983,
796,
4747
] |
Which name's 2012 club was deportivo nacional? | SELECT "Name" FROM table_41207 WHERE "2012 club" = 'deportivo nacional' | [
13828,
1438,
338,
2321,
3430,
373,
29489,
23593,
299,
330,
1538,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
39226,
2998,
33411,
366,
6999,
3430,
1,
796,
705,
10378,
419,
23593,
299,
330,
1538,
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
] | [
13828,
1438,
338,
2321,
3430,
373,
29489,
23593,
299,
330,
1538,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
39226,
2998,
33411,
366,
6999,
3430,
1,
796,
705,
10378,
419,
23593,
299,
330,
1538,
6
] |
What is the U.S. Christian with a Year that is 1989? | SELECT "U.S. Christian" FROM table_7100 WHERE "Year" = '1989' | [
2061,
318,
262,
471,
13,
50,
13,
4302,
351,
257,
6280,
326,
318,
11104,
30,
46506,
366,
52,
13,
50,
13,
4302,
1,
16034,
3084,
62,
22,
3064,
33411,
366,
17688,
1,
796,
705,
25475,
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,
318,
262,
471,
13,
50,
13,
4302,
351,
257,
6280,
326,
318,
11104,
30,
46506,
366,
52,
13,
50,
13,
4302,
1,
16034,
3084,
62,
22,
3064,
33411,
366,
17688,
1,
796,
705,
25475,
6
] |
Who is Gerolsteiner's cyclist? | SELECT cyclist FROM table_name_89 WHERE team = "gerolsteiner" | [
8241,
318,
13573,
349,
5714,
263,
338,
34632,
30,
46506,
34632,
16034,
3084,
62,
3672,
62,
4531,
33411,
1074,
796,
366,
1362,
349,
5714,
263,
1
] | [
1,
1,
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,
13573,
349,
5714,
263,
338,
34632,
30,
46506,
34632,
16034,
3084,
62,
3672,
62,
4531,
33411,
1074,
796,
366,
1362,
349,
5714,
263,
1
] |
how many patients of asian ethnicity are under 48 years of age? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.age < "48" | [
4919,
867,
3871,
286,
355,
666,
26289,
389,
739,
4764,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
5357,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
355,
666,
26289,
389,
739,
4764,
812,
286,
2479,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
5357,
16728,
... |
how much weight was patient 021-139760's first weight until 29 months ago? | SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-139760') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-29 month') ORDER BY patient.unit... | [
4919,
881,
3463,
373,
5827,
657,
2481,
12,
1485,
5607,
1899,
338,
717,
3463,
1566,
2808,
1933,
2084,
30,
46506,
5827,
13,
324,
3411,
6551,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
881,
3463,
373,
5827,
657,
2481,
12,
1485,
5607,
1899,
338,
717,
3463,
1566,
2808,
1933,
2084,
30,
46506,
5827,
13,
324,
3411,
6551,
16034,
5827,
33411,
5827,
13,
26029,
13948,
10057,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,... |
Who had most laps led at Chicagoland speedway? | SELECT "Most Laps Led" FROM table_26921 WHERE "Track" = 'Chicagoland Speedway' | [
8241,
550,
749,
24590,
2957,
379,
48854,
363,
23573,
2866,
1014,
30,
46506,
366,
6943,
406,
1686,
22964,
1,
16034,
3084,
62,
26276,
2481,
33411,
366,
24802,
1,
796,
705,
1925,
291,
363,
23573,
46000,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
749,
24590,
2957,
379,
48854,
363,
23573,
2866,
1014,
30,
46506,
366,
6943,
406,
1686,
22964,
1,
16034,
3084,
62,
26276,
2481,
33411,
366,
24802,
1,
796,
705,
1925,
291,
363,
23573,
46000,
6
] |
What grade was the 2.4km Run (min:sec) of 13:01-13:40? | SELECT "Grade" FROM table_56766 WHERE "2.4km Run (min:sec)" = '13:01-13:40' | [
2061,
9559,
373,
262,
362,
13,
19,
13276,
5660,
357,
1084,
25,
2363,
8,
286,
1511,
25,
486,
12,
1485,
25,
1821,
30,
46506,
366,
42233,
1,
16034,
3084,
62,
20,
3134,
2791,
33411,
366,
17,
13,
19,
13276,
5660,
357,
1084,
25,
2363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9559,
373,
262,
362,
13,
19,
13276,
5660,
357,
1084,
25,
2363,
8,
286,
1511,
25,
486,
12,
1485,
25,
1821,
30,
46506,
366,
42233,
1,
16034,
3084,
62,
20,
3134,
2791,
33411,
366,
17,
13,
19,
13276,
5660,
357,
1084,
25,
2363,
... |
What conferences did li dong publish in in 2016 ? | SELECT DISTINCT paper.venueid FROM author, paper, writes WHERE author.authorname = 'li dong' AND paper.year = 2016 AND writes.authorid = author.authorid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
19993,
750,
7649,
288,
506,
7715,
287,
287,
1584,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
4528,
288,
506,
6,
5357,
3348,
13,
1941,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19993,
750,
7649,
288,
506,
7715,
287,
287,
1584,
5633,
46506,
360,
8808,
1268,
4177,
3348,
13,
4080,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
4528,
288,
506,
6,
5357,
3348,
13,
1941,
... |
Who is the MVP finals that includes Detroit shock from the eastern championship and Sacramento monarchs from western championship? | SELECT finals_mvp FROM table_name_26 WHERE eastern_champion = "detroit shock" AND western_champion = "sacramento monarchs" | [
8241,
318,
262,
12742,
18576,
326,
3407,
8488,
6380,
422,
262,
10183,
12184,
290,
19375,
26464,
82,
422,
8830,
12184,
30,
46506,
18576,
62,
76,
36133,
16034,
3084,
62,
3672,
62,
2075,
33411,
10183,
62,
354,
6734,
796,
366,
15255,
7775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12742,
18576,
326,
3407,
8488,
6380,
422,
262,
10183,
12184,
290,
19375,
26464,
82,
422,
8830,
12184,
30,
46506,
18576,
62,
76,
36133,
16034,
3084,
62,
3672,
62,
2075,
33411,
10183,
62,
354,
6734,
796,
366,
15255,
7775,
... |
How many against points for 16 matches? | SELECT "Points against" FROM table_31878 WHERE "Matches" = '16' | [
2437,
867,
1028,
2173,
329,
1467,
7466,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
36042,
3695,
33411,
366,
19044,
2052,
1,
796,
705,
1433,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1028,
2173,
329,
1467,
7466,
30,
46506,
366,
40710,
1028,
1,
16034,
3084,
62,
36042,
3695,
33411,
366,
19044,
2052,
1,
796,
705,
1433,
6
] |
Which player has a to par of +8? | SELECT "Player" FROM table_63803 WHERE "To par" = '+8' | [
13828,
2137,
468,
257,
284,
1582,
286,
1343,
23,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5066,
43564,
33411,
366,
2514,
1582,
1,
796,
705,
10,
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
] | [
13828,
2137,
468,
257,
284,
1582,
286,
1343,
23,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
5066,
43564,
33411,
366,
2514,
1582,
1,
796,
705,
10,
23,
6
] |
A bar chart showing the average weight for each gender, I want to sort total number from high to low order. | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) DESC | [
32,
2318,
8262,
4478,
262,
2811,
3463,
329,
1123,
5279,
11,
314,
765,
284,
3297,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
14419,
11,
35224,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
35224,
7,
25844,
8,
2219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
4478,
262,
2811,
3463,
329,
1123,
5279,
11,
314,
765,
284,
3297,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
14419,
11,
35224,
7,
25844,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
35224,
7,
25844,
8,
2219... |
which is the first church located in los angeles ? | SELECT "church name" FROM table_203_274 WHERE "community" = 'los angeles' ORDER BY id LIMIT 1 | [
4758,
318,
262,
717,
4928,
5140,
287,
22346,
18304,
274,
5633,
46506,
366,
36964,
1438,
1,
16034,
3084,
62,
22416,
62,
28857,
33411,
366,
28158,
1,
796,
705,
33280,
18304,
274,
6,
38678,
11050,
4686,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
318,
262,
717,
4928,
5140,
287,
22346,
18304,
274,
5633,
46506,
366,
36964,
1438,
1,
16034,
3084,
62,
22416,
62,
28857,
33411,
366,
28158,
1,
796,
705,
33280,
18304,
274,
6,
38678,
11050,
4686,
27564,
2043,
352
] |
Who was on the Republican ticket for the office of Inspector of state prisons? | SELECT "Republican ticket" FROM table_42803 WHERE "Office" = 'inspector of state prisons' | [
8241,
373,
319,
262,
3415,
7846,
329,
262,
2607,
286,
24625,
286,
1181,
19224,
30,
46506,
366,
25777,
7846,
1,
16034,
3084,
62,
3682,
43564,
33411,
366,
27743,
1,
796,
705,
1040,
806,
273,
286,
1181,
19224,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
319,
262,
3415,
7846,
329,
262,
2607,
286,
24625,
286,
1181,
19224,
30,
46506,
366,
25777,
7846,
1,
16034,
3084,
62,
3682,
43564,
33411,
366,
27743,
1,
796,
705,
1040,
806,
273,
286,
1181,
19224,
6
] |
What was the record at the game with a loss of Cook (14 7)? | SELECT record FROM table_name_61 WHERE loss = "cook (14–7)" | [
2061,
373,
262,
1700,
379,
262,
983,
351,
257,
2994,
286,
8261,
357,
1415,
767,
19427,
46506,
1700,
16034,
3084,
62,
3672,
62,
5333,
33411,
2994,
796,
366,
27916,
357,
1415,
1906,
22,
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
] | [
2061,
373,
262,
1700,
379,
262,
983,
351,
257,
2994,
286,
8261,
357,
1415,
767,
19427,
46506,
1700,
16034,
3084,
62,
3672,
62,
5333,
33411,
2994,
796,
366,
27916,
357,
1415,
1906,
22,
16725
] |
When Geelong is the Away team, what did the Home team score? | SELECT "Home team score" FROM table_11475 WHERE "Away team" = 'geelong' | [
2215,
2269,
21537,
318,
262,
21986,
1074,
11,
644,
750,
262,
5995,
1074,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
16562,
2425,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
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
] | [
2215,
2269,
21537,
318,
262,
21986,
1074,
11,
644,
750,
262,
5995,
1074,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
16562,
2425,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
6
] |
what is the total of tournament on the chart ? | SELECT COUNT("tournament") FROM table_204_335 | [
10919,
318,
262,
2472,
286,
7756,
319,
262,
8262,
5633,
46506,
327,
28270,
7203,
83,
5138,
4943,
16034,
3084,
62,
18638,
62,
27326
] | [
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,
286,
7756,
319,
262,
8262,
5633,
46506,
327,
28270,
7203,
83,
5138,
4943,
16034,
3084,
62,
18638,
62,
27326
] |
What was the high amount of assists before game 60? | SELECT high_assists FROM table_name_1 WHERE game < 60 | [
2061,
373,
262,
1029,
2033,
286,
13648,
878,
983,
3126,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
16,
33411,
983,
1279,
3126
] | [
1,
1,
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,
1029,
2033,
286,
13648,
878,
983,
3126,
30,
46506,
1029,
62,
562,
1023,
16034,
3084,
62,
3672,
62,
16,
33411,
983,
1279,
3126
] |
Who were the scorers in the game against neuch tel xamax played on 10 December 1985? | SELECT scorers FROM table_name_64 WHERE opponent = "neuchâtel xamax" AND date = "10 december 1985" | [
8241,
547,
262,
4776,
3808,
287,
262,
983,
1028,
497,
794,
13632,
2124,
321,
897,
2826,
319,
838,
3426,
12863,
30,
46506,
4776,
3808,
16034,
3084,
62,
3672,
62,
2414,
33411,
6125,
796,
366,
710,
794,
22940,
37524,
2124,
321,
897,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
3808,
287,
262,
983,
1028,
497,
794,
13632,
2124,
321,
897,
2826,
319,
838,
3426,
12863,
30,
46506,
4776,
3808,
16034,
3084,
62,
3672,
62,
2414,
33411,
6125,
796,
366,
710,
794,
22940,
37524,
2124,
321,
897,
1,
... |
What is Record, when High Points is 'Thaddeus Young (19)', and when Team is '@ Orlando'? | SELECT "Record" FROM table_48669 WHERE "High points" = 'thaddeus young (19)' AND "Team" = '@ orlando' | [
2061,
318,
13266,
11,
618,
3334,
11045,
318,
705,
817,
2860,
27650,
6960,
357,
1129,
8,
3256,
290,
618,
4816,
318,
705,
31,
13117,
30960,
46506,
366,
23739,
1,
16034,
3084,
62,
2780,
36657,
33411,
366,
11922,
2173,
1,
796,
705,
400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13266,
11,
618,
3334,
11045,
318,
705,
817,
2860,
27650,
6960,
357,
1129,
8,
3256,
290,
618,
4816,
318,
705,
31,
13117,
30960,
46506,
366,
23739,
1,
16034,
3084,
62,
2780,
36657,
33411,
366,
11922,
2173,
1,
796,
705,
400,
... |
Top Users from Indian, Kolkata. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, LastAccessDate FROM Users WHERE LOWER(Location) LIKE '%kolkata%' OR LOWER(Location) LIKE '%india%' ORDER BY Reputation DESC LIMIT 300 | [
9126,
18987,
422,
3942,
11,
509,
13597,
1045,
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,
11,
4586,
15457,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
18987,
422,
3942,
11,
509,
13597,
1045,
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,
11,
4586,
15457,... |
Who has friends that are older than the average age? Print their name and their ages as well using a bar chart, and could you show by the name in desc? | SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person) ORDER BY T1.name DESC | [
8241,
468,
2460,
326,
389,
4697,
621,
262,
2811,
2479,
30,
12578,
511,
1438,
290,
511,
9337,
355,
880,
1262,
257,
2318,
8262,
11,
290,
714,
345,
905,
416,
262,
1438,
287,
1715,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
2460,
326,
389,
4697,
621,
262,
2811,
2479,
30,
12578,
511,
1438,
290,
511,
9337,
355,
880,
1262,
257,
2318,
8262,
11,
290,
714,
345,
905,
416,
262,
1438,
287,
1715,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
496,
... |
Show the names and ids of tourist attractions that are visited at most once by a bar chart. | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
416,
257,
2318,
8262,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8086,
37810,
7054,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
416,
257,
2318,
8262,
13,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8086,
37810,
7054,... |
what are all of the flights into and out of ATLANTA 's airport | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (flight.to_airport = AIRPORT_SERVICE_0.airport_code AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA') OR (flight.from_airport ... | [
10919,
389,
477,
286,
262,
13956,
656,
290,
503,
286,
5161,
25697,
5603,
705,
82,
9003,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
286,
262,
13956,
656,
290,
503,
286,
5161,
25697,
5603,
705,
82,
9003,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,... |
find the number of patients under the age of 47 who had joint fluid as lab test fluid. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "47" AND lab.fluid = "Joint Fluid" | [
19796,
262,
1271,
286,
3871,
739,
262,
2479,
286,
6298,
508,
550,
6466,
11711,
355,
2248,
1332,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
739,
262,
2479,
286,
6298,
508,
550,
6466,
11711,
355,
2248,
1332,
11711,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1... |
Give me a histogram for how old is each gender, on average?, rank in asc by the x-axis. | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY gender | [
23318,
502,
257,
1554,
21857,
329,
703,
1468,
318,
1123,
5279,
11,
319,
2811,
21747,
4279,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
5279
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
703,
1468,
318,
1123,
5279,
11,
319,
2811,
21747,
4279,
287,
10570,
416,
262,
2124,
12,
22704,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
5279
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.