instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many years had the best actress in a Revival category? | SELECT COUNT("Year") FROM table_47434 WHERE "Category" = 'best actress in a revival' | [
2437,
867,
812,
550,
262,
1266,
14549,
287,
257,
48095,
6536,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
38652,
2682,
33411,
366,
27313,
1,
796,
705,
13466,
14549,
287,
257,
26624,
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
] | [
2437,
867,
812,
550,
262,
1266,
14549,
287,
257,
48095,
6536,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
38652,
2682,
33411,
366,
27313,
1,
796,
705,
13466,
14549,
287,
257,
26624,
6
] |
have patient 033-22108 been to the er in the current hospital encounter? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '033-22108' AND patient.hospitaladmitsource = 'emergency department' AND patient.hospitaldischargetime IS NULL | [
14150,
5827,
657,
2091,
12,
1828,
15711,
587,
284,
262,
1931,
287,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44427,
12,
1828,
15711,
6,
5357,
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
] | [
14150,
5827,
657,
2091,
12,
1828,
15711,
587,
284,
262,
1931,
287,
262,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44427,
12,
1828,
15711,
6,
5357,
5827,
... |
What was the college team of the player whose former WNBA team was the Cleveland Rockers? | SELECT "College/Country/Team" FROM table_45805 WHERE "Former WNBA Team" = 'cleveland rockers' | [
2061,
373,
262,
4152,
1074,
286,
262,
2137,
3025,
1966,
370,
32470,
1074,
373,
262,
10306,
4631,
364,
30,
46506,
366,
38951,
14,
33921,
14,
15592,
1,
16034,
3084,
62,
2231,
28256,
33411,
366,
14282,
370,
32470,
4816,
1,
796,
705,
2375... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4152,
1074,
286,
262,
2137,
3025,
1966,
370,
32470,
1074,
373,
262,
10306,
4631,
364,
30,
46506,
366,
38951,
14,
33921,
14,
15592,
1,
16034,
3084,
62,
2231,
28256,
33411,
366,
14282,
370,
32470,
4816,
1,
796,
705,
2375... |
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 average of manager_id , and group by attribute job_id, and could you display by the Y-axis in descending? | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(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,
2811,
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,
2811,
286,
4706... |
Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7? | SELECT "Opponent" FROM table_9025 WHERE "Game" > '23' AND "December" > '8' AND "Record" = '8-10-7' | [
13828,
6125,
468,
257,
983,
4025,
621,
2242,
11,
3426,
4025,
621,
807,
11,
290,
1700,
286,
807,
12,
940,
12,
22,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3829,
1495,
33411,
366,
8777,
1,
1875,
705,
1954,
6,
5357,
366,
2058... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6125,
468,
257,
983,
4025,
621,
2242,
11,
3426,
4025,
621,
807,
11,
290,
1700,
286,
807,
12,
940,
12,
22,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3829,
1495,
33411,
366,
8777,
1,
1875,
705,
1954,
6,
5357,
366,
2058... |
has patient 739 had normal levels of arterial bp [systolic] on 12/16/this year? | SELECT COUNT(*) > 0 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 = 739)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systol... | [
10134,
5827,
767,
2670,
550,
3487,
2974,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
319,
1105,
14,
1433,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
767,
2670,
550,
3487,
2974,
286,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
319,
1105,
14,
1433,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... |
count the number of patients who were admitted for more than 5 days in hospital and had chemistry lab test category. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "5" AND lab."CATEGORY" = "Chemistry" | [
9127,
262,
1271,
286,
3871,
508,
547,
6848,
329,
517,
621,
642,
1528,
287,
4436,
290,
550,
16585,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
547,
6848,
329,
517,
621,
642,
1528,
287,
4436,
290,
550,
16585,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
what was the first ward identification of patient 53176 in this year? | SELECT transfers.wardid FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 53176) AND NOT transfers.wardid IS NULL AND DATETIME(transfers.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY transfers.intime LIMIT 1 | [
10919,
373,
262,
717,
15305,
11795,
286,
5827,
7192,
24096,
287,
428,
614,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
15305,
11795,
286,
5827,
7192,
24096,
287,
428,
614,
30,
46506,
16395,
13,
904,
312,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
... |
What manner of departure is listed with an appointment date of 13 march 2008 | SELECT manner_of_departure FROM table_11206916_2 WHERE date_of_appointment = "13 March 2008" | [
2061,
5642,
286,
12928,
318,
5610,
351,
281,
12557,
3128,
286,
1511,
9960,
3648,
46506,
5642,
62,
1659,
62,
10378,
433,
495,
16034,
3084,
62,
14686,
3312,
48894,
62,
17,
33411,
3128,
62,
1659,
62,
1324,
49805,
796,
366,
1485,
2805,
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
] | [
2061,
5642,
286,
12928,
318,
5610,
351,
281,
12557,
3128,
286,
1511,
9960,
3648,
46506,
5642,
62,
1659,
62,
10378,
433,
495,
16034,
3084,
62,
14686,
3312,
48894,
62,
17,
33411,
3128,
62,
1659,
62,
1324,
49805,
796,
366,
1485,
2805,
36... |
What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? | SELECT "Replaced by" FROM table_59256 WHERE "Manner of departure" = 'end of contract' AND "Date of appointment" = 'dec. 16, 2008' | [
2061,
1611,
286,
18407,
2286,
468,
257,
1869,
1008,
286,
12928,
286,
886,
286,
2775,
319,
875,
13,
1467,
11,
3648,
30,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
3270,
11645,
33411,
366,
5124,
1008,
286,
12928,
1,
796,
705,
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,
1,
1,
1,
1
] | [
2061,
1611,
286,
18407,
2286,
468,
257,
1869,
1008,
286,
12928,
286,
886,
286,
2775,
319,
875,
13,
1467,
11,
3648,
30,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
3270,
11645,
33411,
366,
5124,
1008,
286,
12928,
1,
796,
705,
4... |
What was his money list rank in 2001? | SELECT MIN("Money list rank") FROM table_25419 WHERE "Year" = '2001' | [
2061,
373,
465,
1637,
1351,
4279,
287,
5878,
30,
46506,
20625,
7203,
26788,
1351,
4279,
4943,
16034,
3084,
62,
24970,
1129,
33411,
366,
17688,
1,
796,
705,
14585,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
465,
1637,
1351,
4279,
287,
5878,
30,
46506,
20625,
7203,
26788,
1351,
4279,
4943,
16034,
3084,
62,
24970,
1129,
33411,
366,
17688,
1,
796,
705,
14585,
6
] |
What is Reserved Instruments, when Conduct of Litigation is Yes, and when Probate Activities is No? | SELECT reserved_instruments FROM table_name_95 WHERE conduct_of_litigation = "yes" AND probate_activities = "no" | [
2061,
318,
33876,
43953,
11,
618,
28579,
286,
25659,
7065,
318,
3363,
11,
290,
618,
30873,
378,
36270,
318,
1400,
30,
46506,
10395,
62,
259,
2536,
2886,
16034,
3084,
62,
3672,
62,
3865,
33411,
3189,
62,
1659,
62,
18250,
7065,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
33876,
43953,
11,
618,
28579,
286,
25659,
7065,
318,
3363,
11,
290,
618,
30873,
378,
36270,
318,
1400,
30,
46506,
10395,
62,
259,
2536,
2886,
16034,
3084,
62,
3672,
62,
3865,
33411,
3189,
62,
1659,
62,
18250,
7065,
796,
366... |
For those appellations whose score is higher than 93, return a stacked to group them by appellation, count appellation, and ordered by Name | SELECT Appelation, COUNT(Appelation) FROM wine WHERE Score > 93 GROUP BY Grape, Appelation ORDER BY Name | [
1890,
883,
24781,
602,
3025,
4776,
318,
2440,
621,
10261,
11,
1441,
257,
24167,
284,
1448,
606,
416,
24781,
341,
11,
954,
24781,
341,
11,
290,
6149,
416,
6530,
46506,
2034,
417,
341,
11,
327,
28270,
7,
4677,
417,
341,
8,
16034,
8237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24781,
602,
3025,
4776,
318,
2440,
621,
10261,
11,
1441,
257,
24167,
284,
1448,
606,
416,
24781,
341,
11,
954,
24781,
341,
11,
290,
6149,
416,
6530,
46506,
2034,
417,
341,
11,
327,
28270,
7,
4677,
417,
341,
8,
16034,
8237... |
What is the name of the episode written by Sheila Lawrence & Henry Alonso Myers? | SELECT episode_title FROM table_12146637_1 WHERE writer_s_ = "Sheila Lawrence & Henry Alonso Myers" | [
2061,
318,
262,
1438,
286,
262,
4471,
3194,
416,
49627,
13914,
1222,
8616,
36345,
25434,
30,
46506,
4471,
62,
7839,
16034,
3084,
62,
1065,
1415,
2791,
2718,
62,
16,
33411,
6260,
62,
82,
62,
796,
366,
3347,
10102,
13914,
1222,
8616,
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
] | [
2061,
318,
262,
1438,
286,
262,
4471,
3194,
416,
49627,
13914,
1222,
8616,
36345,
25434,
30,
46506,
4471,
62,
7839,
16034,
3084,
62,
1065,
1415,
2791,
2718,
62,
16,
33411,
6260,
62,
82,
62,
796,
366,
3347,
10102,
13914,
1222,
8616,
36... |
what are the costs of klebsiella pneumoniae diagnosis? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'klebsiella pneumoniae')) | [
10919,
389,
262,
3484,
286,
479,
293,
1443,
494,
8466,
35647,
68,
13669,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
47356,
4629,
62,
291,
67,
6,
5357,
1575,
13,
15596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3484,
286,
479,
293,
1443,
494,
8466,
35647,
68,
13669,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
47356,
4629,
62,
291,
67,
6,
5357,
1575,
13,
15596,
... |
What is the production code for season episode 8? | SELECT MIN(production_code) FROM table_13505192_3 WHERE season_number = 8 | [
2061,
318,
262,
3227,
2438,
329,
1622,
4471,
807,
30,
46506,
20625,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
1485,
31654,
17477,
62,
18,
33411,
1622,
62,
17618,
796,
807
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3227,
2438,
329,
1622,
4471,
807,
30,
46506,
20625,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
1485,
31654,
17477,
62,
18,
33411,
1622,
62,
17618,
796,
807
] |
What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team? | SELECT scores FROM table_23292220_13 WHERE seans_team = "Russell Kane and Louise Redknapp" | [
2061,
373,
262,
4776,
319,
262,
4471,
326,
550,
11563,
20055,
290,
31774,
2297,
15418,
1324,
319,
11465,
338,
1074,
30,
46506,
8198,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
1485,
33411,
384,
504,
62,
15097,
796,
366,
46325,
20055,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
319,
262,
4471,
326,
550,
11563,
20055,
290,
31774,
2297,
15418,
1324,
319,
11465,
338,
1074,
30,
46506,
8198,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
1485,
33411,
384,
504,
62,
15097,
796,
366,
46325,
20055,
... |
What is the Home team in the Game with a Score of 1 0? | SELECT home_team FROM table_name_40 WHERE score = "1–0" | [
2061,
318,
262,
5995,
1074,
287,
262,
3776,
351,
257,
15178,
286,
352,
657,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
1821,
33411,
4776,
796,
366,
16,
1906,
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
] | [
2061,
318,
262,
5995,
1074,
287,
262,
3776,
351,
257,
15178,
286,
352,
657,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
1821,
33411,
4776,
796,
366,
16,
1906,
15,
1
] |
Which Reason for termination has Appointed by of eisenhower category:articles with hcards? | SELECT "Reason for termination" FROM table_59404 WHERE "Appointed by" = 'eisenhower category:articles with hcards' | [
13828,
23219,
329,
19883,
468,
2034,
20909,
416,
286,
304,
13254,
33539,
6536,
25,
26845,
351,
289,
27761,
30,
46506,
366,
45008,
329,
19883,
1,
16034,
3084,
62,
3270,
26429,
33411,
366,
4677,
20909,
416,
1,
796,
705,
68,
13254,
33539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23219,
329,
19883,
468,
2034,
20909,
416,
286,
304,
13254,
33539,
6536,
25,
26845,
351,
289,
27761,
30,
46506,
366,
45008,
329,
19883,
1,
16034,
3084,
62,
3270,
26429,
33411,
366,
4677,
20909,
416,
1,
796,
705,
68,
13254,
33539,
... |
A bar chart for finding the number of the names of catalog entries with level number 8, and I want to show x-axis in desc order. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name DESC | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
11,
290,
314,
765,
284,
905,
2124,
12,
22704,
287,
1715,
1502,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
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... | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
11,
290,
314,
765,
284,
905,
2124,
12,
22704,
287,
1715,
1502,
13,
46506,
18388,
62,
13000,
62,
3672,
11,
327,
28270,
7,
9246,
11794,
62,... |
what country is listed before germany ? | SELECT "country" FROM table_204_437 WHERE id = (SELECT id FROM table_204_437 WHERE "country" = 'germany') - 1 | [
10919,
1499,
318,
5610,
878,
308,
2224,
88,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
43284,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
43284,
33411,
366,
19315,
1,
796,
705,
1362,
21834,
11537,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
318,
5610,
878,
308,
2224,
88,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
43284,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
43284,
33411,
366,
19315,
1,
796,
705,
1362,
21834,
11537,
532,
... |
when is the last time in 2103 that patient 6440 received incision of chest wall? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'incision of chest wall') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6440) AND ST... | [
12518,
318,
262,
938,
640,
287,
362,
15197,
326,
5827,
5598,
1821,
2722,
753,
1166,
286,
7721,
3355,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
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... | [
12518,
318,
262,
938,
640,
287,
362,
15197,
326,
5827,
5598,
1821,
2722,
753,
1166,
286,
7721,
3355,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796... |
What is Agricultural Use (m 3 /p/yr)(in %), when Per Capita Withdrawal (m 3 /p/yr) is greater than 923, and when Domestic Use (m 3 /p/yr)(in %) is 73(7%)? | SELECT "Agricultural Use (m 3 /p/yr)(in %)" FROM table_76024 WHERE "Per Capita Withdrawal (m 3 /p/yr)" > '923' AND "Domestic Use (m 3 /p/yr)(in %)" = '73(7%)' | [
2061,
318,
36694,
5765,
357,
76,
513,
1220,
79,
14,
2417,
5769,
259,
4064,
828,
618,
2448,
4476,
5350,
2080,
19334,
282,
357,
76,
513,
1220,
79,
14,
2417,
8,
318,
3744,
621,
860,
1954,
11,
290,
618,
29015,
5765,
357,
76,
513,
1220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
36694,
5765,
357,
76,
513,
1220,
79,
14,
2417,
5769,
259,
4064,
828,
618,
2448,
4476,
5350,
2080,
19334,
282,
357,
76,
513,
1220,
79,
14,
2417,
8,
318,
3744,
621,
860,
1954,
11,
290,
618,
29015,
5765,
357,
76,
513,
1220... |
Which team does Robert Brooks play with? | SELECT "NFL Team" FROM table_19487 WHERE "Player" = 'Robert Brooks' | [
13828,
1074,
857,
5199,
17704,
711,
351,
30,
46506,
366,
32078,
4816,
1,
16034,
3084,
62,
1129,
35133,
33411,
366,
14140,
1,
796,
705,
19156,
17704,
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
] | [
13828,
1074,
857,
5199,
17704,
711,
351,
30,
46506,
366,
32078,
4816,
1,
16034,
3084,
62,
1129,
35133,
33411,
366,
14140,
1,
796,
705,
19156,
17704,
6
] |
what is the team website when the institution is indiana university of pennsylvania? | SELECT team_website FROM table_name_93 WHERE institution = "indiana university of pennsylvania" | [
10919,
318,
262,
1074,
3052,
618,
262,
9901,
318,
773,
7484,
6403,
286,
22429,
9270,
30,
46506,
1074,
62,
732,
12485,
16034,
3084,
62,
3672,
62,
6052,
33411,
9901,
796,
366,
521,
7484,
6403,
286,
22429,
9270,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
3052,
618,
262,
9901,
318,
773,
7484,
6403,
286,
22429,
9270,
30,
46506,
1074,
62,
732,
12485,
16034,
3084,
62,
3672,
62,
6052,
33411,
9901,
796,
366,
521,
7484,
6403,
286,
22429,
9270,
1
] |
What is the archive of the show that aired on 18april1970? | SELECT archive FROM table_2102898_1 WHERE broadcast_date = "18April1970" | [
2061,
318,
262,
15424,
286,
262,
905,
326,
18530,
319,
1248,
499,
22379,
30986,
30,
46506,
15424,
16034,
3084,
62,
21536,
2078,
4089,
62,
16,
33411,
7025,
62,
4475,
796,
366,
1507,
16784,
30986,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15424,
286,
262,
905,
326,
18530,
319,
1248,
499,
22379,
30986,
30,
46506,
15424,
16034,
3084,
62,
21536,
2078,
4089,
62,
16,
33411,
7025,
62,
4475,
796,
366,
1507,
16784,
30986,
1
] |
Which player had 9 blocks? | SELECT player FROM table_25353861_5 WHERE blocks = 9 | [
13828,
2137,
550,
860,
7021,
30,
46506,
2137,
16034,
3084,
62,
1495,
2327,
2548,
5333,
62,
20,
33411,
7021,
796,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
550,
860,
7021,
30,
46506,
2137,
16034,
3084,
62,
1495,
2327,
2548,
5333,
62,
20,
33411,
7021,
796,
860
] |
How many ranks by average for the couple Tana and Stuart? | SELECT COUNT("Rank by average") FROM table_28645 WHERE "Couple" = 'Tana and Stuart' | [
2437,
867,
9803,
416,
2811,
329,
262,
3155,
309,
2271,
290,
22559,
30,
46506,
327,
28270,
7203,
27520,
416,
2811,
4943,
16034,
3084,
62,
27033,
2231,
33411,
366,
34,
43846,
1,
796,
705,
51,
2271,
290,
22559,
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
] | [
2437,
867,
9803,
416,
2811,
329,
262,
3155,
309,
2271,
290,
22559,
30,
46506,
327,
28270,
7203,
27520,
416,
2811,
4943,
16034,
3084,
62,
27033,
2231,
33411,
366,
34,
43846,
1,
796,
705,
51,
2271,
290,
22559,
6
] |
Which player had a To par of 13? | SELECT "Player" FROM table_46673 WHERE "To par" = '13' | [
13828,
2137,
550,
257,
1675,
1582,
286,
1511,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
42199,
4790,
33411,
366,
2514,
1582,
1,
796,
705,
1485,
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
] | [
13828,
2137,
550,
257,
1675,
1582,
286,
1511,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
42199,
4790,
33411,
366,
2514,
1582,
1,
796,
705,
1485,
6
] |
What is the altitude for the distance medellin downtown (km) is 42? | SELECT "Altitude m" FROM table_11334 WHERE "Distance Medell\u00edn Downtown ( km )" = '42' | [
2061,
318,
262,
20334,
329,
262,
5253,
1117,
695,
259,
9436,
357,
13276,
8,
318,
5433,
30,
46506,
366,
29161,
3984,
285,
1,
16034,
3084,
62,
1157,
31380,
33411,
366,
45767,
2019,
695,
59,
84,
405,
276,
77,
25657,
357,
10571,
1267,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20334,
329,
262,
5253,
1117,
695,
259,
9436,
357,
13276,
8,
318,
5433,
30,
46506,
366,
29161,
3984,
285,
1,
16034,
3084,
62,
1157,
31380,
33411,
366,
45767,
2019,
695,
59,
84,
405,
276,
77,
25657,
357,
10571,
1267,
1... |
How many rounds were there in the 2006 davis cup europe/africa group I? | SELECT COUNT(round) FROM table_22853654_10 WHERE edition = "2006 Davis Cup Europe/Africa Group I" | [
2437,
867,
9196,
547,
612,
287,
262,
4793,
288,
23401,
6508,
11063,
431,
14,
1878,
30997,
1448,
314,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
1828,
5332,
2623,
4051,
62,
940,
33411,
8313,
796,
366,
13330,
7802,
5454,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9196,
547,
612,
287,
262,
4793,
288,
23401,
6508,
11063,
431,
14,
1878,
30997,
1448,
314,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
1828,
5332,
2623,
4051,
62,
940,
33411,
8313,
796,
366,
13330,
7802,
5454,
2031,
... |
since 2103 what are the top five most frequent lab tests ordered for patients during the same hospital encounter after the diagnosis of bacteremia - vascular catheter associated? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bacteremia - vasc... | [
20777,
362,
15197,
644,
389,
262,
1353,
1936,
749,
10792,
2248,
5254,
6149,
329,
3871,
1141,
262,
976,
4436,
8791,
706,
262,
13669,
286,
275,
529,
567,
20730,
532,
39495,
3797,
43332,
3917,
30,
46506,
256,
18,
13,
23912,
3672,
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... | [
20777,
362,
15197,
644,
389,
262,
1353,
1936,
749,
10792,
2248,
5254,
6149,
329,
3871,
1141,
262,
976,
4436,
8791,
706,
262,
13669,
286,
275,
529,
567,
20730,
532,
39495,
3797,
43332,
3917,
30,
46506,
256,
18,
13,
23912,
3672,
16034,
... |
What is the score when the record was 40 36? | SELECT score FROM table_name_65 WHERE record = "40–36" | [
2061,
318,
262,
4776,
618,
262,
1700,
373,
2319,
4570,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2996,
33411,
1700,
796,
366,
1821,
1906,
2623,
1
] | [
1,
1,
1,
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,
262,
1700,
373,
2319,
4570,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2996,
33411,
1700,
796,
366,
1821,
1906,
2623,
1
] |
How many rounds had a selection of 165? | SELECT SUM(round) FROM table_name_74 WHERE selection = 165 | [
2437,
867,
9196,
550,
257,
6356,
286,
21409,
30,
46506,
35683,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
6356,
796,
21409
] | [
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,
9196,
550,
257,
6356,
286,
21409,
30,
46506,
35683,
7,
744,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
6356,
796,
21409
] |
What is the Wins before 1960 with less than 2 Points? | SELECT SUM(wins) FROM table_name_47 WHERE year < 1960 AND points < 2 | [
2061,
318,
262,
24423,
878,
9507,
351,
1342,
621,
362,
11045,
30,
46506,
35683,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
614,
1279,
9507,
5357,
2173,
1279,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
24423,
878,
9507,
351,
1342,
621,
362,
11045,
30,
46506,
35683,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
614,
1279,
9507,
5357,
2173,
1279,
362
] |
Tell me the number of weeks for bye | SELECT COUNT("Week") FROM table_31750 WHERE "Date" = 'bye' | [
24446,
502,
262,
1271,
286,
2745,
329,
33847,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
34125,
1120,
33411,
366,
10430,
1,
796,
705,
16390,
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
] | [
24446,
502,
262,
1271,
286,
2745,
329,
33847,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
34125,
1120,
33411,
366,
10430,
1,
796,
705,
16390,
6
] |
what was the name of the organism found in patient 031-3507's first stool microbiology test since 91 months ago? | SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507')) AND microlab.culturesite = 'stool' AND DATETIME(microlab.cult... | [
10919,
373,
262,
1438,
286,
262,
26433,
1043,
287,
5827,
657,
3132,
12,
14877,
22,
338,
717,
38753,
24559,
1435,
1332,
1201,
10495,
1933,
2084,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
26433,
1043,
287,
5827,
657,
3132,
12,
14877,
22,
338,
717,
38753,
24559,
1435,
1332,
1201,
10495,
1933,
2084,
30,
46506,
4580,
23912,
13,
9971,
1042,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
2... |
What is the entrant of a chassis maserati 250f, also has 6 points and older than year 1957? | SELECT "Entrant" FROM table_79905 WHERE "Chassis" = 'maserati 250f' AND "Points" = '6' AND "Year" < '1957' | [
2061,
318,
262,
920,
5250,
286,
257,
24587,
285,
6005,
7246,
8646,
69,
11,
635,
468,
718,
2173,
290,
4697,
621,
614,
25177,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
45455,
2713,
33411,
366,
1925,
20297,
1,
796,
705,
5356,
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... | [
2061,
318,
262,
920,
5250,
286,
257,
24587,
285,
6005,
7246,
8646,
69,
11,
635,
468,
718,
2173,
290,
4697,
621,
614,
25177,
30,
46506,
366,
14539,
5250,
1,
16034,
3084,
62,
45455,
2713,
33411,
366,
1925,
20297,
1,
796,
705,
5356,
26... |
What is Season, when Prize is '$100,000'? | SELECT season FROM table_name_37 WHERE prize = "$100,000" | [
2061,
318,
7369,
11,
618,
15895,
318,
705,
3,
3064,
11,
830,
30960,
46506,
1622,
16034,
3084,
62,
3672,
62,
2718,
33411,
11596,
796,
17971,
3064,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
7369,
11,
618,
15895,
318,
705,
3,
3064,
11,
830,
30960,
46506,
1622,
16034,
3084,
62,
3672,
62,
2718,
33411,
11596,
796,
17971,
3064,
11,
830,
1
] |
How many seasons have motopark team? | SELECT COUNT("Season") FROM table_25981 WHERE "Team" = 'Motopark' | [
2437,
867,
7028,
423,
2369,
404,
668,
1074,
30,
46506,
327,
28270,
7203,
18960,
4943,
16034,
3084,
62,
1495,
4089,
16,
33411,
366,
15592,
1,
796,
705,
47733,
404,
668,
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
] | [
2437,
867,
7028,
423,
2369,
404,
668,
1074,
30,
46506,
327,
28270,
7203,
18960,
4943,
16034,
3084,
62,
1495,
4089,
16,
33411,
366,
15592,
1,
796,
705,
47733,
404,
668,
6
] |
how many patients left against medical advice were born before 2150? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND demographic.dob_year < "2150" | [
4919,
867,
3871,
1364,
1028,
3315,
5608,
547,
4642,
878,
2310,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
2538,
9792,
36218,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1364,
1028,
3315,
5608,
547,
4642,
878,
2310,
1120,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796,
366,
2538,
9792,
36218,
38... |
What is Score, when Country is 'United States', when Place is 'T9', and when Player is 'Jay Hebert'? | SELECT score FROM table_name_28 WHERE country = "united states" AND place = "t9" AND player = "jay hebert" | [
2061,
318,
15178,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
618,
8474,
318,
705,
51,
24,
3256,
290,
618,
7853,
318,
705,
30568,
679,
4835,
30960,
46506,
4776,
16034,
3084,
62,
3672,
62,
2078,
33411,
1499,
796,
366,
41187,
2585,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
11,
618,
12946,
318,
705,
17013,
1829,
3256,
618,
8474,
318,
705,
51,
24,
3256,
290,
618,
7853,
318,
705,
30568,
679,
4835,
30960,
46506,
4776,
16034,
3084,
62,
3672,
62,
2078,
33411,
1499,
796,
366,
41187,
2585,
1,
... |
Bar chart x axis sex y axis how many sex, sort by the x axis in asc. | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY Sex | [
10374,
8262,
2124,
16488,
1714,
331,
16488,
703,
867,
1714,
11,
3297,
416,
262,
2124,
16488,
287,
10570,
13,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
1714,
331,
16488,
703,
867,
1714,
11,
3297,
416,
262,
2124,
16488,
287,
10570,
13,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
14419
] |
is there ground transportation in BOS from the airport | SELECT DISTINCT ground_service.transport_type FROM airport, ground_service WHERE airport.airport_code = 'BOS' AND ground_service.airport_code = airport.airport_code | [
271,
612,
2323,
9358,
287,
347,
2640,
422,
262,
9003,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
33,
2640,
6,
5357,
2323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
271,
612,
2323,
9358,
287,
347,
2640,
422,
262,
9003,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
33,
2640,
6,
5357,
2323,
... |
what lane was new zealand in? | SELECT lane FROM table_name_86 WHERE nationality = "new zealand" | [
10919,
11193,
373,
649,
27689,
392,
287,
30,
46506,
11193,
16034,
3084,
62,
3672,
62,
4521,
33411,
29835,
796,
366,
3605,
27689,
392,
1
] | [
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,
11193,
373,
649,
27689,
392,
287,
30,
46506,
11193,
16034,
3084,
62,
3672,
62,
4521,
33411,
29835,
796,
366,
3605,
27689,
392,
1
] |
Who won 5th place with olivia franciska won 4th place? | SELECT "4th Runner Up" FROM table_26491 WHERE "3rd Runner Up" = 'Olivia Franciska' | [
8241,
1839,
642,
400,
1295,
351,
267,
16017,
544,
46754,
1984,
64,
1839,
604,
400,
1295,
30,
46506,
366,
19,
400,
21529,
3205,
1,
16034,
3084,
62,
2075,
41289,
33411,
366,
18,
4372,
21529,
3205,
1,
796,
705,
46,
16017,
544,
4682,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
642,
400,
1295,
351,
267,
16017,
544,
46754,
1984,
64,
1839,
604,
400,
1295,
30,
46506,
366,
19,
400,
21529,
3205,
1,
16034,
3084,
62,
2075,
41289,
33411,
366,
18,
4372,
21529,
3205,
1,
796,
705,
46,
16017,
544,
4682,
19... |
When chen lu'an is the skip what is the lowest amount l's? | SELECT MIN("L") FROM table_29120 WHERE "Skip" = 'Chen Lu''an' | [
2215,
269,
831,
300,
84,
6,
272,
318,
262,
14267,
644,
318,
262,
9016,
2033,
300,
338,
30,
46506,
20625,
7203,
43,
4943,
16034,
3084,
62,
1959,
10232,
33411,
366,
50232,
1,
796,
705,
34,
831,
6026,
7061,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
269,
831,
300,
84,
6,
272,
318,
262,
14267,
644,
318,
262,
9016,
2033,
300,
338,
30,
46506,
20625,
7203,
43,
4943,
16034,
3084,
62,
1959,
10232,
33411,
366,
50232,
1,
796,
705,
34,
831,
6026,
7061,
272,
6
] |
Find the start and end dates of behavior incidents of students with last name 'Fahey'. | SELECT T1.date_incident_start, date_incident_end FROM behavior_incident AS T1 JOIN students AS T2 ON T1.student_id = T2.student_id WHERE T2.last_name = "Fahey" | [
16742,
262,
923,
290,
886,
9667,
286,
4069,
10207,
286,
2444,
351,
938,
1438,
705,
50110,
20342,
4458,
46506,
309,
16,
13,
4475,
62,
1939,
738,
62,
9688,
11,
3128,
62,
1939,
738,
62,
437,
16034,
4069,
62,
1939,
738,
7054,
309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
923,
290,
886,
9667,
286,
4069,
10207,
286,
2444,
351,
938,
1438,
705,
50110,
20342,
4458,
46506,
309,
16,
13,
4475,
62,
1939,
738,
62,
9688,
11,
3128,
62,
1939,
738,
62,
437,
16034,
4069,
62,
1939,
738,
7054,
309,
16,
... |
What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson? | SELECT years_in_orlando FROM table_name_7 WHERE nationality = "united states" AND school_club_team = "clemson" | [
2061,
812,
750,
262,
2137,
287,
13117,
711,
326,
318,
422,
262,
1578,
1829,
11,
290,
318,
636,
286,
262,
1524,
14,
18664,
1074,
27801,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
22,
33411,
29835,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
812,
750,
262,
2137,
287,
13117,
711,
326,
318,
422,
262,
1578,
1829,
11,
290,
318,
636,
286,
262,
1524,
14,
18664,
1074,
27801,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
22,
33411,
29835,
796,
366,
... |
jow many seasons with the number of division 4 | SELECT COUNT("season") FROM table_204_738 WHERE "division" = 4 | [
73,
322,
867,
7028,
351,
262,
1271,
286,
7297,
604,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
22,
2548,
33411,
366,
21426,
1,
796,
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
] | [
73,
322,
867,
7028,
351,
262,
1271,
286,
7297,
604,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
22,
2548,
33411,
366,
21426,
1,
796,
604
] |
have patient 31854 received a lab test in 09/this year? | SELECT COUNT(*) > 0 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31854) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', labevents.charttime) = '09' | [
14150,
5827,
39320,
4051,
2722,
257,
2248,
1332,
287,
7769,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
5827,
39320,
4051,
2722,
257,
2248,
1332,
287,
7769,
14,
5661,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16... |
What's Luis Siri's shooting score? | SELECT "Shooting" FROM table_17649 WHERE "Athlete (NOC)" = 'Luis Siri' | [
2061,
338,
20894,
34461,
338,
4395,
4776,
30,
46506,
366,
2484,
12494,
1,
16034,
3084,
62,
1558,
33300,
33411,
366,
32,
400,
5807,
357,
45,
4503,
16725,
796,
705,
25596,
271,
34461,
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,
20894,
34461,
338,
4395,
4776,
30,
46506,
366,
2484,
12494,
1,
16034,
3084,
62,
1558,
33300,
33411,
366,
32,
400,
5807,
357,
45,
4503,
16725,
796,
705,
25596,
271,
34461,
6
] |
Top New York City JavaScript answerers. | SELECT u.DisplayName, u.Reputation, u.WebsiteUrl, COUNT(*) AS JavaScriptAnswers FROM Users AS u, Posts AS p, Posts AS pp WHERE u.Id IN (SELECT Id FROM Users WHERE Location LIKE ('%New York')) AND p.OwnerUserId = u.Id AND pp.Id = p.ParentId AND pp.Tags LIKE ('%<javascript>%') GROUP BY u.DisplayName, u.Reputation, u.Webs... | [
9126,
968,
1971,
2254,
11933,
2590,
19288,
13,
46506,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
334,
13,
33420,
28165,
11,
327,
28270,
7,
28104,
7054,
11933,
2025,
37848,
16034,
18987,
7054,
334,
11,
12043,
7054,
279,
11,
120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
968,
1971,
2254,
11933,
2590,
19288,
13,
46506,
334,
13,
23114,
5376,
11,
334,
13,
6207,
7094,
11,
334,
13,
33420,
28165,
11,
327,
28270,
7,
28104,
7054,
11933,
2025,
37848,
16034,
18987,
7054,
334,
11,
12043,
7054,
279,
11,
120... |
how many people were diagnosed with sepsis during the same hospital encounter after being diagnosed with metabolic acidosis? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosistime, p... | [
4919,
867,
661,
547,
14641,
351,
384,
862,
271,
1141,
262,
976,
4436,
8791,
706,
852,
14641,
351,
19737,
7408,
5958,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
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... | [
4919,
867,
661,
547,
14641,
351,
384,
862,
271,
1141,
262,
976,
4436,
8791,
706,
852,
14641,
351,
19737,
7408,
5958,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
357,
46506,
5827,
13,
... |
Does Zigbee need neutral wire when the open source is yes? | SELECT "Needs Neutral Wire?" FROM table_13726 WHERE "Open Source?" = 'yes' AND "Protocol" = 'zigbee' | [
13921,
24992,
20963,
761,
8500,
6503,
618,
262,
1280,
2723,
318,
3763,
30,
46506,
366,
23037,
82,
25627,
14712,
1701,
16034,
3084,
62,
19708,
2075,
33411,
366,
11505,
8090,
1701,
796,
705,
8505,
6,
5357,
366,
19703,
4668,
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
] | [
13921,
24992,
20963,
761,
8500,
6503,
618,
262,
1280,
2723,
318,
3763,
30,
46506,
366,
23037,
82,
25627,
14712,
1701,
16034,
3084,
62,
19708,
2075,
33411,
366,
11505,
8090,
1701,
796,
705,
8505,
6,
5357,
366,
19703,
4668,
1,
796,
705,
... |
Who wrote the episode with the production code of 942A? | SELECT "Written by" FROM table_20806 WHERE "Production code" = '942A' | [
8241,
2630,
262,
4471,
351,
262,
3227,
2438,
286,
860,
3682,
32,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1238,
37988,
33411,
366,
35027,
2438,
1,
796,
705,
24,
3682,
32,
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
] | [
8241,
2630,
262,
4471,
351,
262,
3227,
2438,
286,
860,
3682,
32,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1238,
37988,
33411,
366,
35027,
2438,
1,
796,
705,
24,
3682,
32,
6
] |
How many teams played against the Mavericks in a game where the score was w 99 91 (ot)? | SELECT COUNT(team) FROM table_23284271_7 WHERE score = "W 99–91 (OT)" | [
2437,
867,
3466,
2826,
1028,
262,
36002,
287,
257,
983,
810,
262,
4776,
373,
266,
7388,
10495,
357,
313,
19427,
46506,
327,
28270,
7,
15097,
8,
16034,
3084,
62,
1954,
30336,
28977,
62,
22,
33411,
4776,
796,
366,
54,
7388,
1906,
6420,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3466,
2826,
1028,
262,
36002,
287,
257,
983,
810,
262,
4776,
373,
266,
7388,
10495,
357,
313,
19427,
46506,
327,
28270,
7,
15097,
8,
16034,
3084,
62,
1954,
30336,
28977,
62,
22,
33411,
4776,
796,
366,
54,
7388,
1906,
6420,
... |
what was the name of the drug that was prescribed to patient 75170 first via dialys route? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 75170) AND prescriptions.route = 'dialys' ORDER BY prescriptions.startdate LIMIT 1 | [
10919,
373,
262,
1438,
286,
262,
2563,
326,
373,
14798,
284,
5827,
5441,
17279,
717,
2884,
5980,
893,
6339,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
2563,
326,
373,
14798,
284,
5827,
5441,
17279,
717,
2884,
5980,
893,
6339,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... |
What's the sum of the points when attendance is 8,000 on february 22? | SELECT SUM("Points") FROM table_7888 WHERE "Attendance" = '8,000' AND "Date" = 'february 22' | [
2061,
338,
262,
2160,
286,
262,
2173,
618,
14858,
318,
807,
11,
830,
319,
730,
65,
3728,
2534,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
22,
28011,
33411,
366,
8086,
437,
590,
1,
796,
705,
23,
11,
830,
6,
5357,
366,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
262,
2173,
618,
14858,
318,
807,
11,
830,
319,
730,
65,
3728,
2534,
30,
46506,
35683,
7203,
40710,
4943,
16034,
3084,
62,
22,
28011,
33411,
366,
8086,
437,
590,
1,
796,
705,
23,
11,
830,
6,
5357,
366,
10... |
Give a bar chart showing how many shops in each carrier, I want to show by the bars from high to low. | SELECT Carrier, COUNT(Carrier) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Carrier ORDER BY Carrier DESC | [
23318,
257,
2318,
8262,
4478,
703,
867,
12437,
287,
1123,
11920,
11,
314,
765,
284,
905,
416,
262,
9210,
422,
1029,
284,
1877,
13,
46506,
30252,
11,
327,
28270,
7,
9914,
5277,
8,
16034,
4283,
7054,
309,
16,
32357,
1268,
3335,
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... | [
23318,
257,
2318,
8262,
4478,
703,
867,
12437,
287,
1123,
11920,
11,
314,
765,
284,
905,
416,
262,
9210,
422,
1029,
284,
1877,
13,
46506,
30252,
11,
327,
28270,
7,
9914,
5277,
8,
16034,
4283,
7054,
309,
16,
32357,
1268,
3335,
7054,
... |
Who are the foreign players representing Ekaterinburg? | SELECT "Foreign Players (max. 2)" FROM table_19072 WHERE "Town" = 'Ekaterinburg' | [
8241,
389,
262,
3215,
1938,
10200,
31873,
729,
259,
7423,
30,
46506,
366,
33616,
13094,
357,
9806,
13,
362,
16725,
16034,
3084,
62,
1129,
2998,
17,
33411,
366,
38097,
1,
796,
705,
36,
74,
729,
259,
7423,
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,
389,
262,
3215,
1938,
10200,
31873,
729,
259,
7423,
30,
46506,
366,
33616,
13094,
357,
9806,
13,
362,
16725,
16034,
3084,
62,
1129,
2998,
17,
33411,
366,
38097,
1,
796,
705,
36,
74,
729,
259,
7423,
6
] |
Who is the conductor for Rusalka? | SELECT conductor FROM table_24521345_1 WHERE work_title = "Rusalka" | [
8241,
318,
262,
39206,
329,
9223,
971,
64,
30,
46506,
39206,
16034,
3084,
62,
1731,
4309,
1485,
2231,
62,
16,
33411,
670,
62,
7839,
796,
366,
35313,
971,
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
] | [
8241,
318,
262,
39206,
329,
9223,
971,
64,
30,
46506,
39206,
16034,
3084,
62,
1731,
4309,
1485,
2231,
62,
16,
33411,
670,
62,
7839,
796,
366,
35313,
971,
64,
1
] |
What is the minimum amount for wool for 2001-02? | SELECT MIN("2001-02") FROM table_16172 WHERE "Commodity" = 'Wool' | [
2061,
318,
262,
5288,
2033,
329,
25749,
329,
5878,
12,
2999,
30,
46506,
20625,
7203,
14585,
12,
2999,
4943,
16034,
3084,
62,
1433,
23628,
33411,
366,
6935,
375,
414,
1,
796,
705,
54,
970,
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,
5288,
2033,
329,
25749,
329,
5878,
12,
2999,
30,
46506,
20625,
7203,
14585,
12,
2999,
4943,
16034,
3084,
62,
1433,
23628,
33411,
366,
6935,
375,
414,
1,
796,
705,
54,
970,
6
] |
how many teams won by at least three points ? | SELECT COUNT(*) FROM table_204_487 WHERE ABS("score" - "score") >= 3 | [
4919,
867,
3466,
1839,
416,
379,
1551,
1115,
2173,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35133,
33411,
29950,
7203,
26675,
1,
532,
366,
26675,
4943,
18189,
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
] | [
4919,
867,
3466,
1839,
416,
379,
1551,
1115,
2173,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
35133,
33411,
29950,
7203,
26675,
1,
532,
366,
26675,
4943,
18189,
513
] |
What position did the team finish in with a Difference of - 6, 3 losses, and over 4 draws? | SELECT COUNT(position) FROM table_name_83 WHERE difference = "- 6" AND lost = 3 AND drawn > 4 | [
2061,
2292,
750,
262,
1074,
5461,
287,
351,
257,
43795,
286,
532,
718,
11,
513,
9089,
11,
290,
625,
604,
14293,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
3580,
796,
27444,
718,
1,
5357,
2626,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
750,
262,
1074,
5461,
287,
351,
257,
43795,
286,
532,
718,
11,
513,
9089,
11,
290,
625,
604,
14293,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
3580,
796,
27444,
718,
1,
5357,
2626,
796,
... |
How many customers use each payment method, show the total number from low to high order. | SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY COUNT(*) | [
2437,
867,
4297,
779,
1123,
6074,
2446,
11,
905,
262,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050,
327,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4297,
779,
1123,
6074,
2446,
11,
905,
262,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
36707,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050,
327,
28... |
Which Week has a Result of w 23 22? | SELECT "Week" FROM table_61226 WHERE "Result" = 'w 23–22' | [
13828,
6119,
468,
257,
25414,
286,
266,
2242,
2534,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
43610,
2075,
33411,
366,
23004,
1,
796,
705,
86,
2242,
1906,
1828,
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,
6119,
468,
257,
25414,
286,
266,
2242,
2534,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
43610,
2075,
33411,
366,
23004,
1,
796,
705,
86,
2242,
1906,
1828,
6
] |
What is Money ( $ ), when Player is 'Morgan Pressel'? | SELECT money___$__ FROM table_name_4 WHERE player = "morgan pressel" | [
2061,
318,
12911,
357,
720,
10612,
618,
7853,
318,
705,
47184,
1763,
741,
30960,
46506,
1637,
17569,
3,
834,
16034,
3084,
62,
3672,
62,
19,
33411,
2137,
796,
366,
4491,
1030,
906,
741,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12911,
357,
720,
10612,
618,
7853,
318,
705,
47184,
1763,
741,
30960,
46506,
1637,
17569,
3,
834,
16034,
3084,
62,
3672,
62,
19,
33411,
2137,
796,
366,
4491,
1030,
906,
741,
1
] |
What is the number of poles with 4 races? | SELECT "Poles" FROM table_76660 WHERE "Races" = '4' | [
2061,
318,
262,
1271,
286,
24971,
351,
604,
9558,
30,
46506,
366,
47,
4316,
1,
16034,
3084,
62,
22,
2791,
1899,
33411,
366,
49,
2114,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
24971,
351,
604,
9558,
30,
46506,
366,
47,
4316,
1,
16034,
3084,
62,
22,
2791,
1899,
33411,
366,
49,
2114,
1,
796,
705,
19,
6
] |
what are the five most frequently prescribed drugs that were prescribed during the same hospital visit to the male patients 30s after they have been diagnosed with acute kidney failure nos, last year? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
389,
262,
1936,
749,
6777,
14798,
5010,
326,
547,
14798,
1141,
262,
976,
4436,
3187,
284,
262,
4257,
3871,
1542,
82,
706,
484,
423,
587,
14641,
351,
14352,
21919,
5287,
43630,
11,
938,
614,
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,
6777,
14798,
5010,
326,
547,
14798,
1141,
262,
976,
4436,
3187,
284,
262,
4257,
3871,
1542,
82,
706,
484,
423,
587,
14641,
351,
14352,
21919,
5287,
43630,
11,
938,
614,
30,
46506,
256,
18,
13,
30349,
16034,... |
If the varsity team is 6, what is the location? | SELECT "Location" FROM table_24919 WHERE "Varsity Teams" = '6' | [
1532,
262,
410,
45826,
1074,
318,
718,
11,
644,
318,
262,
4067,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21626,
1129,
33411,
366,
53,
45826,
24690,
1,
796,
705,
21,
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
] | [
1532,
262,
410,
45826,
1074,
318,
718,
11,
644,
318,
262,
4067,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21626,
1129,
33411,
366,
53,
45826,
24690,
1,
796,
705,
21,
6
] |
What is the Year of the Film Klondike Annie? | SELECT SUM(year) FROM table_name_25 WHERE film = "klondike annie" | [
2061,
318,
262,
6280,
286,
262,
13741,
14770,
623,
522,
25860,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
2646,
796,
366,
41582,
623,
522,
1529,
494,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6280,
286,
262,
13741,
14770,
623,
522,
25860,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
2646,
796,
366,
41582,
623,
522,
1529,
494,
1
] |
What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers? | SELECT SUM(rank) FROM table_name_84 WHERE bronze < 5 AND country = "japan" AND silver > 3 | [
2061,
373,
262,
2160,
286,
262,
9803,
329,
2869,
508,
550,
1342,
621,
642,
22101,
28057,
290,
517,
621,
513,
3313,
690,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
22101,
1279,
642,
5357,
1499,
796,
366,
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
] | [
2061,
373,
262,
2160,
286,
262,
9803,
329,
2869,
508,
550,
1342,
621,
642,
22101,
28057,
290,
517,
621,
513,
3313,
690,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5705,
33411,
22101,
1279,
642,
5357,
1499,
796,
366,
7... |
give me the number of patients whose days of hospital stay is greater than 26 and diagnoses short title is joint replaced knee? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "26" AND diagnoses.short_title = "Joint replaced knee" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
2608,
290,
40567,
1790,
3670,
318,
6466,
6928,
10329,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
318,
3744,
621,
2608,
290,
40567,
1790,
3670,
318,
6466,
6928,
10329,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220? | SELECT "Name" FROM table_40481 WHERE "Rank" < '71' AND "Year" > '2005' AND "Out of" = '220' | [
6090,
345,
1560,
502,
262,
6530,
326,
468,
262,
10916,
4833,
621,
9166,
11,
290,
262,
6280,
4025,
621,
5075,
11,
290,
262,
3806,
286,
15629,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1821,
40271,
33411,
366,
27520,
1,
1279,
705,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
6530,
326,
468,
262,
10916,
4833,
621,
9166,
11,
290,
262,
6280,
4025,
621,
5075,
11,
290,
262,
3806,
286,
15629,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
1821,
40271,
33411,
366,
27520,
1,
1279,
705,
486... |
What is the district of the incumbent Thomas Larkin Thompson? | SELECT "District" FROM table_35099 WHERE "Incumbent" = 'thomas larkin thompson' | [
2061,
318,
262,
4783,
286,
262,
23526,
5658,
406,
39027,
11654,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
14877,
2079,
33411,
366,
25517,
2178,
298,
1,
796,
705,
400,
16911,
300,
39027,
294,
296,
8430,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4783,
286,
262,
23526,
5658,
406,
39027,
11654,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
14877,
2079,
33411,
366,
25517,
2178,
298,
1,
796,
705,
400,
16911,
300,
39027,
294,
296,
8430,
6
] |
Tell me about ANATOMY 541 . | SELECT DISTINCT description, name FROM course WHERE department = 'ANATOMY' AND number = 541 | [
24446,
502,
546,
3537,
1404,
2662,
56,
642,
3901,
764,
46506,
360,
8808,
1268,
4177,
6764,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
1565,
1404,
2662,
56,
6,
5357,
1271,
796,
642,
3901
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
546,
3537,
1404,
2662,
56,
642,
3901,
764,
46506,
360,
8808,
1268,
4177,
6764,
11,
1438,
16034,
1781,
33411,
5011,
796,
705,
1565,
1404,
2662,
56,
6,
5357,
1271,
796,
642,
3901
] |
what player matched up with 9 | SELECT "Player" FROM table_37252 WHERE "Matches" = '9' | [
10919,
2137,
14451,
510,
351,
860,
46506,
366,
14140,
1,
16034,
3084,
62,
2718,
22800,
33411,
366,
19044,
2052,
1,
796,
705,
24,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
2137,
14451,
510,
351,
860,
46506,
366,
14140,
1,
16034,
3084,
62,
2718,
22800,
33411,
366,
19044,
2052,
1,
796,
705,
24,
6
] |
How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals? | SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4 | [
2437,
867,
6508,
4661,
287,
262,
1622,
351,
517,
621,
642,
4652,
6725,
11,
352,
6508,
6725,
290,
7380,
621,
604,
4652,
4661,
30,
46506,
35683,
7,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
4652,
62,
18211,
1875... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6508,
4661,
287,
262,
1622,
351,
517,
621,
642,
4652,
6725,
11,
352,
6508,
6725,
290,
7380,
621,
604,
4652,
4661,
30,
46506,
35683,
7,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
4652,
62,
18211,
1875... |
What was the most recent race at Kyalami with Keke Rosberg competing? | SELECT MAX("Year") FROM table_67127 WHERE "Venue" = 'kyalami' AND "Driver" = 'keke rosberg' | [
2061,
373,
262,
749,
2274,
3234,
379,
11118,
282,
6277,
351,
3873,
365,
10018,
3900,
11780,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
3134,
16799,
33411,
366,
37522,
518,
1,
796,
705,
2584,
282,
6277,
6,
5357,
366,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
2274,
3234,
379,
11118,
282,
6277,
351,
3873,
365,
10018,
3900,
11780,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
3134,
16799,
33411,
366,
37522,
518,
1,
796,
705,
2584,
282,
6277,
6,
5357,
366,
32103,
... |
At what Games did the competitor win a Silver medal in the light heavyweight event? | SELECT games FROM table_name_54 WHERE medal = "silver" AND event = "light heavyweight" | [
2953,
644,
5776,
750,
262,
20319,
1592,
257,
7698,
18279,
287,
262,
1657,
32489,
1785,
30,
46506,
1830,
16034,
3084,
62,
3672,
62,
4051,
33411,
18279,
796,
366,
40503,
1,
5357,
1785,
796,
366,
2971,
32489,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2953,
644,
5776,
750,
262,
20319,
1592,
257,
7698,
18279,
287,
262,
1657,
32489,
1785,
30,
46506,
1830,
16034,
3084,
62,
3672,
62,
4051,
33411,
18279,
796,
366,
40503,
1,
5357,
1785,
796,
366,
2971,
32489,
1
] |
What country has 302 as the total? | SELECT country FROM table_name_29 WHERE total = 302 | [
2061,
1499,
468,
32591,
355,
262,
2472,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1959,
33411,
2472,
796,
32591
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
468,
32591,
355,
262,
2472,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1959,
33411,
2472,
796,
32591
] |
in which year did ms. starfelt produce the most films ? | SELECT "year" FROM table_204_323 GROUP BY "year" ORDER BY COUNT("film") DESC LIMIT 1 | [
259,
543,
614,
750,
13845,
13,
3491,
31985,
4439,
262,
749,
7328,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
32637,
44441,
11050,
366,
1941,
1,
38678,
11050,
327,
28270,
7203,
26240,
4943,
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,
1,
1,
1
] | [
259,
543,
614,
750,
13845,
13,
3491,
31985,
4439,
262,
749,
7328,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
32637,
44441,
11050,
366,
1941,
1,
38678,
11050,
327,
28270,
7203,
26240,
4943,
22196,
34,
27564,
2043,
352
] |
what was the name of the drug that patient 021-79544 had been allergic to during their current hospital encounter? | SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-79544' AND patient.hospitaldischargetime IS NULL)) | [
10919,
373,
262,
1438,
286,
262,
2563,
326,
5827,
657,
2481,
12,
41544,
2598,
550,
587,
31856,
284,
1141,
511,
1459,
4436,
8791,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
2563,
326,
5827,
657,
2481,
12,
41544,
2598,
550,
587,
31856,
284,
1141,
511,
1459,
4436,
8791,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
465... |
What is the team 1 with a 2-1 2nd leg? | SELECT "Team 1" FROM table_45885 WHERE "2nd leg" = '2-1' | [
2061,
318,
262,
1074,
352,
351,
257,
362,
12,
16,
362,
358,
1232,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
2231,
44230,
33411,
366,
17,
358,
1232,
1,
796,
705,
17,
12,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1074,
352,
351,
257,
362,
12,
16,
362,
358,
1232,
30,
46506,
366,
15592,
352,
1,
16034,
3084,
62,
2231,
44230,
33411,
366,
17,
358,
1232,
1,
796,
705,
17,
12,
16,
6
] |
Name the fleet series with a quantity of 5 | SELECT fleet_series FROM table_name_96 WHERE quantity = 5 | [
5376,
262,
11026,
2168,
351,
257,
12040,
286,
642,
46506,
11026,
62,
25076,
16034,
3084,
62,
3672,
62,
4846,
33411,
12040,
796,
642
] | [
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,
11026,
2168,
351,
257,
12040,
286,
642,
46506,
11026,
62,
25076,
16034,
3084,
62,
3672,
62,
4846,
33411,
12040,
796,
642
] |
What is the name of the product with the highest price? | SELECT product_name FROM products ORDER BY product_price DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
1720,
351,
262,
4511,
2756,
30,
46506,
1720,
62,
3672,
16034,
3186,
38678,
11050,
1720,
62,
20888,
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
] | [
2061,
318,
262,
1438,
286,
262,
1720,
351,
262,
4511,
2756,
30,
46506,
1720,
62,
3672,
16034,
3186,
38678,
11050,
1720,
62,
20888,
22196,
34,
27564,
2043,
352
] |
For LHSP 130 , who is teaching ? | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'LHSP' AND course.number = 130 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.o... | [
1890,
49730,
4303,
11323,
837,
508,
318,
7743,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49730,
4303,
11323,
837,
508,
318,
7743,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
... |
When is the birth date of player with right arm fast style? | SELECT date_of_birth FROM table_name_74 WHERE bowling_style = "right arm fast" | [
2215,
318,
262,
4082,
3128,
286,
2137,
351,
826,
3211,
3049,
3918,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
4524,
33411,
33564,
62,
7635,
796,
366,
3506,
3211,
3049,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
4082,
3128,
286,
2137,
351,
826,
3211,
3049,
3918,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
4524,
33411,
33564,
62,
7635,
796,
366,
3506,
3211,
3049,
1
] |
What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8? | SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8 | [
2061,
318,
262,
2472,
1271,
286,
7472,
6251,
9302,
618,
262,
5079,
1487,
318,
2579,
13,
23,
4,
290,
262,
4279,
318,
1342,
621,
807,
30,
46506,
327,
28270,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
5079,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
7472,
6251,
9302,
618,
262,
5079,
1487,
318,
2579,
13,
23,
4,
290,
262,
4279,
318,
1342,
621,
807,
30,
46506,
327,
28270,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
5079,
... |
Which Radon has Atomic property of outer shell electron configuration? | SELECT "Radon" FROM table_59867 WHERE "Atomic property" = 'outer shell electron configuration' | [
13828,
5325,
261,
468,
28976,
3119,
286,
12076,
7582,
11538,
8398,
30,
46506,
366,
15546,
261,
1,
16034,
3084,
62,
41292,
3134,
33411,
366,
2953,
10179,
3119,
1,
796,
705,
39605,
7582,
11538,
8398,
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,
5325,
261,
468,
28976,
3119,
286,
12076,
7582,
11538,
8398,
30,
46506,
366,
15546,
261,
1,
16034,
3084,
62,
41292,
3134,
33411,
366,
2953,
10179,
3119,
1,
796,
705,
39605,
7582,
11538,
8398,
6
] |
give me the number of patients whose ethnicity is hispanic/latino - puerto rican and drug name is albuterol? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "Albuterol" | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
465,
35843,
14,
15460,
2879,
532,
47574,
13806,
374,
7490,
290,
2563,
1438,
318,
435,
4360,
263,
349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
26289,
318,
465,
35843,
14,
15460,
2879,
532,
47574,
13806,
374,
7490,
290,
2563,
1438,
318,
435,
4360,
263,
349,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
Fetch me the most cited publications for Artificial Intelligence | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citingpaperid) FROM cite, keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'Artificial Intelligence' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = cite.citedpaperid AND paper.paperid = paperkeyphrase.paperid GROUP BY cite.citedpa... | [
37,
7569,
502,
262,
749,
9181,
16125,
329,
35941,
9345,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
1780,
20189,
312,
8,
16034,
21729,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
37,
7569,
502,
262,
749,
9181,
16125,
329,
35941,
9345,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
1780,
20189,
312,
8,
16034,
21729,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
... |
What is the total of apps for Keith Treacy? | SELECT SUM("Apps") FROM table_14198 WHERE "Name" = 'keith treacy' | [
2061,
318,
262,
2472,
286,
6725,
329,
14926,
4700,
1590,
30,
46506,
35683,
7203,
48433,
4943,
16034,
3084,
62,
1415,
22337,
33411,
366,
5376,
1,
796,
705,
365,
342,
2054,
1590,
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,
318,
262,
2472,
286,
6725,
329,
14926,
4700,
1590,
30,
46506,
35683,
7203,
48433,
4943,
16034,
3084,
62,
1415,
22337,
33411,
366,
5376,
1,
796,
705,
365,
342,
2054,
1590,
6
] |
What is the year of the movie with an opening day on Friday with a rank 10? | SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10 | [
2061,
318,
262,
614,
286,
262,
3807,
351,
281,
4756,
1110,
319,
3217,
351,
257,
4279,
838,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1110,
62,
1659,
62,
10464,
796,
366,
8310,
2567,
1,
5357,
4279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
262,
3807,
351,
281,
4756,
1110,
319,
3217,
351,
257,
4279,
838,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
1110,
62,
1659,
62,
10464,
796,
366,
8310,
2567,
1,
5357,
4279,
... |
what is the one year survival rate for patients who had been prescribed vitamin b complex w/c after having been diagnosed with brain hem nec-coma nos? | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
10919,
318,
262,
530,
614,
9441,
2494,
329,
3871,
508,
550,
587,
14798,
14411,
275,
3716,
266,
14,
66,
706,
1719,
587,
14641,
351,
3632,
16869,
27576,
12,
785,
64,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
530,
614,
9441,
2494,
329,
3871,
508,
550,
587,
14798,
14411,
275,
3716,
266,
14,
66,
706,
1719,
587,
14641,
351,
3632,
16869,
27576,
12,
785,
64,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
318... |
For all employees who have the letters D or S in their first name, give me the comparison about the sum of department_id over the hire_date bin hire_date by time by a bar chart, and rank by the Y from low to high. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(DEPARTMENT_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
5011,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
427... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
5011,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
427... |
What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers | SELECT "Official ITV rating (millions)" FROM table_29445 WHERE "Total ITV viewers (millions)" = '8.53' | [
2061,
547,
262,
1743,
340,
85,
10109,
287,
5242,
329,
262,
4471,
351,
257,
2472,
286,
807,
13,
4310,
1510,
340,
85,
10209,
46506,
366,
28529,
49188,
7955,
357,
17805,
507,
16725,
16034,
3084,
62,
27696,
2231,
33411,
366,
14957,
49188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1743,
340,
85,
10109,
287,
5242,
329,
262,
4471,
351,
257,
2472,
286,
807,
13,
4310,
1510,
340,
85,
10209,
46506,
366,
28529,
49188,
7955,
357,
17805,
507,
16725,
16034,
3084,
62,
27696,
2231,
33411,
366,
14957,
49188,
... |
What is Paul Tracy's best time racing on the Forsythe Racing team? | SELECT best FROM table_name_62 WHERE team = "forsythe racing" AND name = "paul tracy" | [
2061,
318,
3362,
31140,
338,
1266,
640,
11717,
319,
262,
27325,
88,
1169,
14954,
1074,
30,
46506,
1266,
16034,
3084,
62,
3672,
62,
5237,
33411,
1074,
796,
366,
69,
669,
88,
1169,
11717,
1,
5357,
1438,
796,
366,
79,
2518,
491,
1590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3362,
31140,
338,
1266,
640,
11717,
319,
262,
27325,
88,
1169,
14954,
1074,
30,
46506,
1266,
16034,
3084,
62,
3672,
62,
5237,
33411,
1074,
796,
366,
69,
669,
88,
1169,
11717,
1,
5357,
1438,
796,
366,
79,
2518,
491,
1590,
... |
What is the Turkish word for the Bangla word shombar ? | SELECT "Turkish" FROM table_36500 WHERE "Bangla" = 'shombar সোমবার' | [
2061,
318,
262,
9663,
1573,
329,
262,
9801,
5031,
1573,
427,
2381,
283,
5633,
46506,
366,
42872,
1,
16034,
3084,
62,
2623,
4059,
33411,
366,
43984,
5031,
1,
796,
705,
1477,
2381,
283,
220,
48071,
116,
156,
100,
233,
48071,
106,
48071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9663,
1573,
329,
262,
9801,
5031,
1573,
427,
2381,
283,
5633,
46506,
366,
42872,
1,
16034,
3084,
62,
2623,
4059,
33411,
366,
43984,
5031,
1,
796,
705,
1477,
2381,
283,
220,
48071,
116,
156,
100,
233,
48071,
106,
48071,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.