instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
provide the number of patients whose death status is 1 and diagnoses icd9 code is 317. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "317" | [
15234,
485,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
14158,
67,
24,
2438,
318,
37563,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
14158,
67,
24,
2438,
318,
37563,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... |
Opponent of @ edmonton oilers, and a Game larger than 1, and a Series of oilers lead 3 2 had what score? | SELECT "Score" FROM table_75434 WHERE "Opponent" = '@ edmonton oilers' AND "Game" > '1' AND "Series" = 'oilers lead 3–2' | [
27524,
3471,
286,
2488,
1225,
19729,
3056,
364,
11,
290,
257,
3776,
4025,
621,
352,
11,
290,
257,
7171,
286,
3056,
364,
1085,
513,
362,
550,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
41874,
2682,
33411,
366,
27524,
3471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
27524,
3471,
286,
2488,
1225,
19729,
3056,
364,
11,
290,
257,
3776,
4025,
621,
352,
11,
290,
257,
7171,
286,
3056,
364,
1085,
513,
362,
550,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
41874,
2682,
33411,
366,
27524,
3471,
... |
Top 10 users in Kolhapur. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%kolhapur%' OR UPPER(Location) LIKE '%KOLHAPUR' ORDER BY Reputation DESC LIMIT 10 | [
9126,
838,
2985,
287,
25910,
45897,
333,
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,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
838,
2985,
287,
25910,
45897,
333,
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,
33411,
... |
look for female patients who are diagnosed with coronary atherosclerosis of autologous vein bypass graft. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.long_title = "Coronary atherosclerosis of autologous vein bypass graft" | [
5460,
329,
4048,
3871,
508,
389,
14641,
351,
37151,
13366,
4951,
31399,
286,
1960,
928,
516,
27208,
17286,
38455,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5460,
329,
4048,
3871,
508,
389,
14641,
351,
37151,
13366,
4951,
31399,
286,
1960,
928,
516,
27208,
17286,
38455,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... |
Name the years in orlando for penn state | SELECT "Years in Orlando" FROM table_20189 WHERE "School/Club Team" = 'Penn State' | [
5376,
262,
812,
287,
393,
11993,
329,
22429,
1181,
46506,
366,
40630,
287,
13117,
1,
16034,
3084,
62,
1264,
4531,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
39899,
1812,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
812,
287,
393,
11993,
329,
22429,
1181,
46506,
366,
40630,
287,
13117,
1,
16034,
3084,
62,
1264,
4531,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
39899,
1812,
6
] |
Name the open cup for usl pdl for did not qualify | SELECT open_cup FROM table_2365150_1 WHERE league = "USL PDL" AND playoffs = "Did not qualify" | [
5376,
262,
1280,
6508,
329,
514,
75,
279,
25404,
329,
750,
407,
12780,
46506,
1280,
62,
25244,
16034,
3084,
62,
1954,
2996,
8628,
62,
16,
33411,
4652,
796,
366,
2937,
43,
14340,
43,
1,
5357,
12980,
796,
366,
11633,
407,
12780,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1280,
6508,
329,
514,
75,
279,
25404,
329,
750,
407,
12780,
46506,
1280,
62,
25244,
16034,
3084,
62,
1954,
2996,
8628,
62,
16,
33411,
4652,
796,
366,
2937,
43,
14340,
43,
1,
5357,
12980,
796,
366,
11633,
407,
12780,
1
] |
Python 2.x vs. Python 3.x - Number of Questions. | SELECT COUNT(p.Id) AS NumPosts, LEFT(t.TagName, 8) AS Tag, TIME_TO_STR(p.CreationDate, '%-m') AS m, YEAR(p.CreationDate) AS y FROM Tags AS t JOIN PostTags AS pt ON pt.TagId = t.Id JOIN Posts AS p ON p.Id = pt.PostId WHERE (t.TagName LIKE 'python-2%' OR t.TagName LIKE 'python-3%') AND YEAR(p.CreationDate) >= 2012 GROUP ... | [
37906,
362,
13,
87,
3691,
13,
11361,
513,
13,
87,
532,
7913,
286,
20396,
13,
46506,
327,
28270,
7,
79,
13,
7390,
8,
7054,
31835,
21496,
11,
12509,
9792,
7,
83,
13,
24835,
5376,
11,
807,
8,
7054,
17467,
11,
20460,
62,
10468,
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... | [
37906,
362,
13,
87,
3691,
13,
11361,
513,
13,
87,
532,
7913,
286,
20396,
13,
46506,
327,
28270,
7,
79,
13,
7390,
8,
7054,
31835,
21496,
11,
12509,
9792,
7,
83,
13,
24835,
5376,
11,
807,
8,
7054,
17467,
11,
20460,
62,
10468,
62,
... |
when did patient 23550 since 2102 for the first time be admitted to the hospital? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 23550 AND STRFTIME('%y', admissions.admittime) >= '2102' ORDER BY admissions.admittime LIMIT 1 | [
12518,
750,
5827,
2242,
22730,
1201,
362,
15377,
329,
262,
717,
640,
307,
6848,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2242,
22730,
5357,
19269,
9792,
12789,
10786,
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,
1,
1,
1,
1... | [
12518,
750,
5827,
2242,
22730,
1201,
362,
15377,
329,
262,
717,
640,
307,
6848,
284,
262,
4436,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2242,
22730,
5357,
19269,
9792,
12789,
10786,
4,... |
What Line has Ohakune Junction as its NIMT? | SELECT "Line Name" FROM table_60939 WHERE "NIMT Junction" = 'ohakune junction' | [
2061,
6910,
468,
3966,
461,
1726,
44410,
355,
663,
399,
3955,
51,
30,
46506,
366,
13949,
6530,
1,
16034,
3084,
62,
31751,
2670,
33411,
366,
45,
3955,
51,
44410,
1,
796,
705,
1219,
461,
1726,
35037,
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,
6910,
468,
3966,
461,
1726,
44410,
355,
663,
399,
3955,
51,
30,
46506,
366,
13949,
6530,
1,
16034,
3084,
62,
31751,
2670,
33411,
366,
45,
3955,
51,
44410,
1,
796,
705,
1219,
461,
1726,
35037,
6
] |
What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are smaller than 1, and the total is smaller than 1? | SELECT SUM("Bronze") FROM table_53767 WHERE "Gold" > '0' AND "Silver" < '1' AND "Total" < '1' | [
2061,
318,
262,
2160,
286,
262,
19461,
28057,
618,
262,
3561,
28057,
389,
4025,
621,
657,
11,
7698,
28057,
389,
4833,
621,
352,
11,
290,
262,
2472,
318,
4833,
621,
352,
30,
46506,
35683,
7203,
18760,
2736,
4943,
16034,
3084,
62,
46096... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
262,
19461,
28057,
618,
262,
3561,
28057,
389,
4025,
621,
657,
11,
7698,
28057,
389,
4833,
621,
352,
11,
290,
262,
2472,
318,
4833,
621,
352,
30,
46506,
35683,
7203,
18760,
2736,
4943,
16034,
3084,
62,
46096... |
Shawn Michaels entered the elimination chamber in what position? | SELECT SUM("Entered") FROM table_35002 WHERE "Wrestler" = 'shawn michaels' | [
2484,
3832,
44768,
5982,
262,
21472,
11847,
287,
644,
2292,
30,
46506,
35683,
7203,
14539,
1068,
4943,
16034,
3084,
62,
2327,
21601,
33411,
366,
54,
2118,
1754,
1,
796,
705,
1477,
3832,
285,
488,
64,
1424,
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
] | [
2484,
3832,
44768,
5982,
262,
21472,
11847,
287,
644,
2292,
30,
46506,
35683,
7203,
14539,
1068,
4943,
16034,
3084,
62,
2327,
21601,
33411,
366,
54,
2118,
1754,
1,
796,
705,
1477,
3832,
285,
488,
64,
1424,
6
] |
I want a bar chart to show the average cloud cover of the dates that have the 5 highest cloud cover rates each day. | SELECT date, AVG(cloud_cover) FROM weather | [
40,
765,
257,
2318,
8262,
284,
905,
262,
2811,
6279,
3002,
286,
262,
9667,
326,
423,
262,
642,
4511,
6279,
3002,
3965,
1123,
1110,
13,
46506,
3128,
11,
35224,
7,
17721,
62,
9631,
8,
16034,
6193
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
257,
2318,
8262,
284,
905,
262,
2811,
6279,
3002,
286,
262,
9667,
326,
423,
262,
642,
4511,
6279,
3002,
3965,
1123,
1110,
13,
46506,
3128,
11,
35224,
7,
17721,
62,
9631,
8,
16034,
6193
] |
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the average of salary , and group by attribute job_id, and rank by the total number in ascending. | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY AVG(SALARY) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
4279,
416,
262,
2472,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
290,
4279,
416,
262,
2472,
12... |
Name the score for philadelphia flyers | SELECT score FROM table_16864968_9 WHERE opponent = "Philadelphia Flyers" | [
5376,
262,
4776,
329,
5206,
8273,
45112,
46506,
4776,
16034,
3084,
62,
14656,
33300,
3104,
62,
24,
33411,
6125,
796,
366,
42349,
30652,
1
] | [
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,
4776,
329,
5206,
8273,
45112,
46506,
4776,
16034,
3084,
62,
14656,
33300,
3104,
62,
24,
33411,
6125,
796,
366,
42349,
30652,
1
] |
What is the name of the country in Arabic that has Moroni as the name of its capital in English? | SELECT "Arabic country name" FROM table_7050 WHERE "English capital name" = 'moroni' | [
2061,
318,
262,
1438,
286,
262,
1499,
287,
17526,
326,
468,
3461,
14651,
355,
262,
1438,
286,
663,
3139,
287,
3594,
30,
46506,
366,
31602,
291,
1499,
1438,
1,
16034,
3084,
62,
2154,
1120,
33411,
366,
15823,
3139,
1438,
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
] | [
2061,
318,
262,
1438,
286,
262,
1499,
287,
17526,
326,
468,
3461,
14651,
355,
262,
1438,
286,
663,
3139,
287,
3594,
30,
46506,
366,
31602,
291,
1499,
1438,
1,
16034,
3084,
62,
2154,
1120,
33411,
366,
15823,
3139,
1438,
1,
796,
705,
... |
WHAT IS THE 8TH THAT HAS A 7TH OF AUDIO BULLYS? | SELECT "Eighth" FROM table_50981 WHERE "Seventh" = 'audio bullys' | [
32971,
3180,
3336,
807,
4221,
14603,
33930,
317,
767,
4221,
3963,
41260,
9399,
347,
9994,
16309,
30,
46506,
366,
36,
10887,
1,
16034,
3084,
62,
1120,
4089,
16,
33411,
366,
4653,
20987,
1,
796,
705,
24051,
6473,
893,
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
] | [
32971,
3180,
3336,
807,
4221,
14603,
33930,
317,
767,
4221,
3963,
41260,
9399,
347,
9994,
16309,
30,
46506,
366,
36,
10887,
1,
16034,
3084,
62,
1120,
4089,
16,
33411,
366,
4653,
20987,
1,
796,
705,
24051,
6473,
893,
6
] |
When the away team was Bolton Wanderers, what was the score? | SELECT score FROM table_name_83 WHERE away_team = "bolton wanderers" | [
2215,
262,
1497,
1074,
373,
35293,
22420,
19288,
11,
644,
373,
262,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
62,
15097,
796,
366,
28984,
1122,
11569,
19288,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
1497,
1074,
373,
35293,
22420,
19288,
11,
644,
373,
262,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
62,
15097,
796,
366,
28984,
1122,
11569,
19288,
1
] |
who performed better , goddard or francis ? | SELECT "name" FROM table_204_29 WHERE "name" IN ('james goddard', 'charles francis') ORDER BY id LIMIT 1 | [
8727,
6157,
1365,
837,
17495,
446,
393,
46754,
271,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1959,
33411,
366,
3672,
1,
3268,
19203,
73,
1047,
17495,
446,
3256,
705,
10641,
829,
46754,
271,
11537,
38678,
11050,
4686,
27564... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
6157,
1365,
837,
17495,
446,
393,
46754,
271,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
1959,
33411,
366,
3672,
1,
3268,
19203,
73,
1047,
17495,
446,
3256,
705,
10641,
829,
46754,
271,
11537,
38678,
11050,
4686,
27564... |
What is the D 46 with a D 43 with r 3? | SELECT d_46_√ FROM table_name_2 WHERE d_43_√ = "r 3" | [
2061,
318,
262,
360,
6337,
351,
257,
360,
5946,
351,
374,
513,
30,
46506,
288,
62,
3510,
62,
24861,
248,
16034,
3084,
62,
3672,
62,
17,
33411,
288,
62,
3559,
62,
24861,
248,
796,
366,
81,
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
] | [
2061,
318,
262,
360,
6337,
351,
257,
360,
5946,
351,
374,
513,
30,
46506,
288,
62,
3510,
62,
24861,
248,
16034,
3084,
62,
3672,
62,
17,
33411,
288,
62,
3559,
62,
24861,
248,
796,
366,
81,
513,
1
] |
Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast? | SELECT "Original 3rd US Tour Cast" FROM table_3041 WHERE "Original 1st US Tour Cast" = 'Scott J. Campbell' | [
8241,
373,
287,
262,
2656,
513,
4372,
514,
4205,
3350,
981,
629,
1252,
474,
13,
1413,
7923,
373,
287,
262,
2656,
352,
301,
514,
4205,
3350,
30,
46506,
366,
20556,
513,
4372,
1294,
9852,
5833,
1,
16034,
3084,
62,
1270,
3901,
33411,
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
] | [
8241,
373,
287,
262,
2656,
513,
4372,
514,
4205,
3350,
981,
629,
1252,
474,
13,
1413,
7923,
373,
287,
262,
2656,
352,
301,
514,
4205,
3350,
30,
46506,
366,
20556,
513,
4372,
1294,
9852,
5833,
1,
16034,
3084,
62,
1270,
3901,
33411,
3... |
Where does St Kilda play? | SELECT "Venue" FROM table_58564 WHERE "Home team" = 'st kilda' | [
8496,
857,
520,
509,
27281,
711,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38905,
2414,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
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
] | [
8496,
857,
520,
509,
27281,
711,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38905,
2414,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
What is the number of positions that have 2012 ratings of 0.92? | SELECT COUNT("Position") FROM table_42116 WHERE "2012" = '0.92' | [
2061,
318,
262,
1271,
286,
6116,
326,
423,
2321,
10109,
286,
657,
13,
5892,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
3682,
18298,
33411,
366,
6999,
1,
796,
705,
15,
13,
5892,
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,
1271,
286,
6116,
326,
423,
2321,
10109,
286,
657,
13,
5892,
30,
46506,
327,
28270,
7203,
26545,
4943,
16034,
3084,
62,
3682,
18298,
33411,
366,
6999,
1,
796,
705,
15,
13,
5892,
6
] |
What is the home team's score in the game played at glenferrie oval? | SELECT "Home team score" FROM table_32268 WHERE "Venue" = 'glenferrie oval' | [
2061,
318,
262,
1363,
1074,
338,
4776,
287,
262,
983,
2826,
379,
1278,
268,
2232,
5034,
41186,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
37283,
3104,
33411,
366,
37522,
518,
1,
796,
705,
4743,
268,
2232,
5034,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1363,
1074,
338,
4776,
287,
262,
983,
2826,
379,
1278,
268,
2232,
5034,
41186,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
37283,
3104,
33411,
366,
37522,
518,
1,
796,
705,
4743,
268,
2232,
5034,
41186,
6
] |
How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983? | SELECT COUNT("August 21-22") FROM table_27529 WHERE "June 10-11" = 'June 11, 1983' | [
2437,
867,
6591,
25872,
1141,
2932,
2310,
12,
1828,
810,
2795,
838,
12,
1157,
319,
2795,
1367,
11,
13540,
30,
46506,
327,
28270,
7203,
17908,
2310,
12,
1828,
4943,
16034,
3084,
62,
23195,
1959,
33411,
366,
15749,
838,
12,
1157,
1,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
6591,
25872,
1141,
2932,
2310,
12,
1828,
810,
2795,
838,
12,
1157,
319,
2795,
1367,
11,
13540,
30,
46506,
327,
28270,
7203,
17908,
2310,
12,
1828,
4943,
16034,
3084,
62,
23195,
1959,
33411,
366,
15749,
838,
12,
1157,
1,
796... |
Find the number of students whose age is younger than the average age and group by students' last name in a bar chart, and I want to rank by the total number in ascending. | SELECT LName, COUNT(LName) FROM Student WHERE Age < (SELECT AVG(Age) FROM Student) GROUP BY LName ORDER BY COUNT(LName) | [
16742,
262,
1271,
286,
2444,
3025,
2479,
318,
7099,
621,
262,
2811,
2479,
290,
1448,
416,
2444,
6,
938,
1438,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
2472,
1271,
287,
41988,
13,
46506,
406,
5376,
11,
327,
28270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
2444,
3025,
2479,
318,
7099,
621,
262,
2811,
2479,
290,
1448,
416,
2444,
6,
938,
1438,
287,
257,
2318,
8262,
11,
290,
314,
765,
284,
4279,
416,
262,
2472,
1271,
287,
41988,
13,
46506,
406,
5376,
11,
327,
28270... |
Name the score for september 11 | SELECT "Score" FROM table_80086 WHERE "Date" = 'september 11' | [
5376,
262,
4776,
329,
384,
457,
1491,
1367,
46506,
366,
26595,
1,
16034,
3084,
62,
7410,
4521,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1367,
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
] | [
5376,
262,
4776,
329,
384,
457,
1491,
1367,
46506,
366,
26595,
1,
16034,
3084,
62,
7410,
4521,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
1367,
6
] |
What period was there a career average of 48.15? | SELECT "Period" FROM table_24135 WHERE "Average" = '48.15' | [
2061,
2278,
373,
612,
257,
3451,
2811,
286,
4764,
13,
1314,
30,
46506,
366,
5990,
2101,
1,
16034,
3084,
62,
1731,
17059,
33411,
366,
26287,
1,
796,
705,
2780,
13,
1314,
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,
2278,
373,
612,
257,
3451,
2811,
286,
4764,
13,
1314,
30,
46506,
366,
5990,
2101,
1,
16034,
3084,
62,
1731,
17059,
33411,
366,
26287,
1,
796,
705,
2780,
13,
1314,
6
] |
For all employees who have the letters D or S in their first name, return a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, and I want to sort Y-axis from low to high order please. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
314,
765,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
314,
765,
2... |
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81? | SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81 | [
2437,
743,
11042,
17496,
389,
612,
287,
262,
1339,
618,
612,
389,
517,
621,
807,
8796,
20339,
11,
7380,
621,
3439,
11602,
20339,
11,
517,
621,
1478,
20339,
290,
2472,
286,
517,
621,
9773,
30,
46506,
327,
28270,
7,
801,
17496,
8,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
743,
11042,
17496,
389,
612,
287,
262,
1339,
618,
612,
389,
517,
621,
807,
8796,
20339,
11,
7380,
621,
3439,
11602,
20339,
11,
517,
621,
1478,
20339,
290,
2472,
286,
517,
621,
9773,
30,
46506,
327,
28270,
7,
801,
17496,
8,
160... |
What's the gold medal count ranked 2 with a total of more than 21? | SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2 AND total > 21 | [
2061,
338,
262,
3869,
18279,
954,
10307,
362,
351,
257,
2472,
286,
517,
621,
2310,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4279,
796,
362,
5357,
2472,
1875,
2310
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3869,
18279,
954,
10307,
362,
351,
257,
2472,
286,
517,
621,
2310,
30,
46506,
327,
28270,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
3682,
33411,
4279,
796,
362,
5357,
2472,
1875,
2310
] |
Name the number of reason for change on may 11, 1939 | SELECT COUNT(reason_for_change) FROM table_2160008_4 WHERE date_successor_seated = "May 11, 1939" | [
5376,
262,
1271,
286,
1738,
329,
1487,
319,
743,
1367,
11,
24414,
46506,
327,
28270,
7,
41181,
62,
1640,
62,
3803,
8,
16034,
3084,
62,
20666,
830,
23,
62,
19,
33411,
3128,
62,
13138,
273,
62,
325,
515,
796,
366,
6747,
1367,
11,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1738,
329,
1487,
319,
743,
1367,
11,
24414,
46506,
327,
28270,
7,
41181,
62,
1640,
62,
3803,
8,
16034,
3084,
62,
20666,
830,
23,
62,
19,
33411,
3128,
62,
13138,
273,
62,
325,
515,
796,
366,
6747,
1367,
11,
24... |
Give me the comparison about Team_ID over the All_Games , could you show by the total number from high to low? | SELECT All_Games, Team_ID FROM basketball_match ORDER BY Team_ID DESC | [
23318,
502,
262,
7208,
546,
4816,
62,
2389,
625,
262,
1439,
62,
24474,
837,
714,
345,
905,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
30,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
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
] | [
23318,
502,
262,
7208,
546,
4816,
62,
2389,
625,
262,
1439,
62,
24474,
837,
714,
345,
905,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
30,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
11050,
4816,
62,
2... |
Which nationality does Florida Tech have? | SELECT nationality FROM table_name_1 WHERE school = "florida tech" | [
13828,
29835,
857,
4744,
9634,
423,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
16,
33411,
1524,
796,
366,
2704,
273,
3755,
7261,
1
] | [
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,
29835,
857,
4744,
9634,
423,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
16,
33411,
1524,
796,
366,
2704,
273,
3755,
7261,
1
] |
From what series is Peck Up Your Troubles? | SELECT "Series" FROM table_64290 WHERE "Title" = 'peck up your troubles' | [
4863,
644,
2168,
318,
48434,
3205,
3406,
22141,
7689,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
2414,
24369,
33411,
366,
19160,
1,
796,
705,
431,
694,
510,
534,
14979,
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
] | [
4863,
644,
2168,
318,
48434,
3205,
3406,
22141,
7689,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
2414,
24369,
33411,
366,
19160,
1,
796,
705,
431,
694,
510,
534,
14979,
6
] |
What's the date when Stu Harris was the Runner-up? | SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris" | [
2061,
338,
262,
3128,
618,
520,
84,
10026,
373,
262,
21529,
12,
929,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3365,
33411,
17490,
62,
929,
62,
48267,
796,
366,
301,
84,
3971,
2442,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
618,
520,
84,
10026,
373,
262,
21529,
12,
929,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3365,
33411,
17490,
62,
929,
62,
48267,
796,
366,
301,
84,
3971,
2442,
1
] |
let me know the age of patient with patient id 43220. | SELECT demographic.age FROM demographic WHERE demographic.subject_id = "43220" | [
1616,
502,
760,
262,
2479,
286,
5827,
351,
5827,
4686,
46393,
1238,
13,
46506,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
45331,
1238,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1616,
502,
760,
262,
2479,
286,
5827,
351,
5827,
4686,
46393,
1238,
13,
46506,
16728,
13,
496,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
45331,
1238,
1
] |
What is the Bike with 18 laps and +41.280 as the time? | SELECT bike FROM table_name_51 WHERE laps = 18 AND time = "+41.280" | [
2061,
318,
262,
26397,
351,
1248,
24590,
290,
1343,
3901,
13,
21033,
355,
262,
640,
30,
46506,
7161,
16034,
3084,
62,
3672,
62,
4349,
33411,
24590,
796,
1248,
5357,
640,
796,
43825,
3901,
13,
21033,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26397,
351,
1248,
24590,
290,
1343,
3901,
13,
21033,
355,
262,
640,
30,
46506,
7161,
16034,
3084,
62,
3672,
62,
4349,
33411,
24590,
796,
1248,
5357,
640,
796,
43825,
3901,
13,
21033,
1
] |
what was the promethazine hcl dosage that patient 52456 was last prescribed during their first hospital encounter? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 52456 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND prescriptions.drug = 'promethazine hcl' ORDER BY prescriptions.startdate DESC ... | [
10919,
373,
262,
1552,
2788,
4994,
289,
565,
35997,
326,
5827,
642,
1731,
3980,
373,
938,
14798,
1141,
511,
717,
4436,
8791,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
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,
1552,
2788,
4994,
289,
565,
35997,
326,
5827,
642,
1731,
3980,
373,
938,
14798,
1141,
511,
717,
4436,
8791,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
3... |
What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005? | SELECT "Play-by-play" FROM table_44806 WHERE "Color commentator(s)" = 'eric wynalda' AND "Year" < '2005' | [
2061,
373,
262,
3811,
12,
1525,
12,
1759,
618,
262,
3124,
28823,
373,
7651,
29758,
1940,
64,
11,
2961,
621,
5075,
30,
46506,
366,
11002,
12,
1525,
12,
1759,
1,
16034,
3084,
62,
2598,
37988,
33411,
366,
10258,
28823,
7,
82,
16725,
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
] | [
2061,
373,
262,
3811,
12,
1525,
12,
1759,
618,
262,
3124,
28823,
373,
7651,
29758,
1940,
64,
11,
2961,
621,
5075,
30,
46506,
366,
11002,
12,
1525,
12,
1759,
1,
16034,
3084,
62,
2598,
37988,
33411,
366,
10258,
28823,
7,
82,
16725,
79... |
Which Position has a Played larger than 9, and a Points smaller than 11, and a Drawn smaller than 0? | SELECT MIN("Position") FROM table_41155 WHERE "Played" > '9' AND "Points" < '11' AND "Drawn" < '0' | [
13828,
23158,
468,
257,
33101,
4025,
621,
860,
11,
290,
257,
11045,
4833,
621,
1367,
11,
290,
257,
50061,
4833,
621,
657,
30,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
42224,
2816,
33411,
366,
11002,
276,
1,
1875,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
23158,
468,
257,
33101,
4025,
621,
860,
11,
290,
257,
11045,
4833,
621,
1367,
11,
290,
257,
50061,
4833,
621,
657,
30,
46506,
20625,
7203,
26545,
4943,
16034,
3084,
62,
42224,
2816,
33411,
366,
11002,
276,
1,
1875,
705,
24,
6,
... |
Plot the number of home city by grouped by home city as a bar graph, and show from high to low by the Y-axis. | SELECT Home_city, COUNT(Home_city) FROM driver GROUP BY Home_city ORDER BY COUNT(Home_city) DESC | [
43328,
262,
1271,
286,
1363,
1748,
416,
32824,
416,
1363,
1748,
355,
257,
2318,
4823,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
13,
46506,
5995,
62,
19205,
11,
327,
28270,
7,
16060,
62,
19205,
8,
16034,
4639,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
262,
1271,
286,
1363,
1748,
416,
32824,
416,
1363,
1748,
355,
257,
2318,
4823,
11,
290,
905,
422,
1029,
284,
1877,
416,
262,
575,
12,
22704,
13,
46506,
5995,
62,
19205,
11,
327,
28270,
7,
16060,
62,
19205,
8,
16034,
4639,
444... |
Which Opponent has a Result of l 24 3? | SELECT "Opponent" FROM table_47965 WHERE "Result" = 'l 24–3' | [
13828,
9385,
3471,
468,
257,
25414,
286,
300,
1987,
513,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
31714,
2996,
33411,
366,
23004,
1,
796,
705,
75,
1987,
1906,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9385,
3471,
468,
257,
25414,
286,
300,
1987,
513,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
31714,
2996,
33411,
366,
23004,
1,
796,
705,
75,
1987,
1906,
18,
6
] |
Which 2006 has a 2007 of A? | SELECT 2006 FROM table_name_98 WHERE 2007 = "a" | [
13828,
4793,
468,
257,
4343,
286,
317,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
4089,
33411,
4343,
796,
366,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4793,
468,
257,
4343,
286,
317,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
4089,
33411,
4343,
796,
366,
64,
1
] |
how many athletes finished before pinki pramanik ? | SELECT COUNT("athlete") FROM table_204_937 WHERE "time" < (SELECT "time" FROM table_204_937 WHERE "athlete" = 'pinki pramanik') | [
4919,
867,
10856,
5201,
878,
11398,
72,
778,
10546,
1134,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
24,
2718,
33411,
366,
2435,
1,
1279,
357,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
24,
2718,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10856,
5201,
878,
11398,
72,
778,
10546,
1134,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
24,
2718,
33411,
366,
2435,
1,
1279,
357,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
24,
2718,... |
Draw a bar chart of first name versus manager_id, could you rank in desc by the y-axis? | SELECT FIRST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID DESC | [
25302,
257,
2318,
8262,
286,
717,
1438,
9051,
4706,
62,
312,
11,
714,
345,
4279,
287,
1715,
416,
262,
331,
12,
22704,
30,
46506,
31328,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
62,
2389... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
717,
1438,
9051,
4706,
62,
312,
11,
714,
345,
4279,
287,
1715,
416,
262,
331,
12,
22704,
30,
46506,
31328,
62,
20608,
11,
17254,
4760,
1137,
62,
2389,
16034,
4409,
38678,
11050,
17254,
4760,
1137,
62,
2389... |
What is the number of players that played 1987-89? | SELECT no FROM table_11545282_17 WHERE years_for_jazz = "1987-89" | [
2061,
318,
262,
1271,
286,
1938,
326,
2826,
12923,
12,
4531,
30,
46506,
645,
16034,
3084,
62,
15363,
2231,
32568,
62,
1558,
33411,
812,
62,
1640,
62,
73,
8101,
796,
366,
27301,
12,
4531,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
326,
2826,
12923,
12,
4531,
30,
46506,
645,
16034,
3084,
62,
15363,
2231,
32568,
62,
1558,
33411,
812,
62,
1640,
62,
73,
8101,
796,
366,
27301,
12,
4531,
1
] |
What was the average when the strike rate is 75.78? | SELECT "Average" FROM table_28277 WHERE "Strike rate" = '75.78' | [
2061,
373,
262,
2811,
618,
262,
5587,
2494,
318,
5441,
13,
3695,
30,
46506,
366,
26287,
1,
16034,
3084,
62,
2078,
27019,
33411,
366,
31584,
2494,
1,
796,
705,
2425,
13,
3695,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2811,
618,
262,
5587,
2494,
318,
5441,
13,
3695,
30,
46506,
366,
26287,
1,
16034,
3084,
62,
2078,
27019,
33411,
366,
31584,
2494,
1,
796,
705,
2425,
13,
3695,
6
] |
What's the total Year with a Length of 4:45 an has an Album of Les Mots? | SELECT SUM(year) FROM table_name_36 WHERE length = "4:45" AND album = "les mots" | [
2061,
338,
262,
2472,
6280,
351,
257,
22313,
286,
604,
25,
2231,
281,
468,
281,
23999,
286,
11732,
337,
1747,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
4129,
796,
366,
19,
25,
2231,
1,
5357,
5062,
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,
338,
262,
2472,
6280,
351,
257,
22313,
286,
604,
25,
2231,
281,
468,
281,
23999,
286,
11732,
337,
1747,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2623,
33411,
4129,
796,
366,
19,
25,
2231,
1,
5357,
5062,
796,
... |
WHAT IS THE COUNTRY WITH DAVE BARR? | SELECT "Country" FROM table_51121 WHERE "Player" = 'dave barr' | [
32971,
3180,
3336,
31404,
40405,
13315,
17051,
6089,
347,
26465,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
4349,
19244,
33411,
366,
14140,
1,
796,
705,
67,
1015,
29069,
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
] | [
32971,
3180,
3336,
31404,
40405,
13315,
17051,
6089,
347,
26465,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
4349,
19244,
33411,
366,
14140,
1,
796,
705,
67,
1015,
29069,
6
] |
Show all allergy types and the number of allergies in each type by a pie chart. | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType | [
15307,
477,
36197,
3858,
290,
262,
1271,
286,
36665,
287,
1123,
2099,
416,
257,
2508,
8262,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
36197,
3858,
290,
262,
1271,
286,
36665,
287,
1123,
2099,
416,
257,
2508,
8262,
13,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
1439,
26079,
62,
6030,
44441,
11050,
1439,
26079,
6030
] |
What is the name of the tallest building? | SELECT name FROM building ORDER BY height_feet DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
38760,
2615,
30,
46506,
1438,
16034,
2615,
38678,
11050,
6001,
62,
39690,
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
] | [
2061,
318,
262,
1438,
286,
262,
38760,
2615,
30,
46506,
1438,
16034,
2615,
38678,
11050,
6001,
62,
39690,
22196,
34,
27564,
2043,
352
] |
what was the difference between total input and total output of patient 9964 on this month/28? | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9964)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT... | [
10919,
373,
262,
3580,
1022,
2472,
5128,
290,
2472,
5072,
286,
5827,
7388,
2414,
319,
428,
1227,
14,
2078,
30,
46506,
357,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3580,
1022,
2472,
5128,
290,
2472,
5072,
286,
5827,
7388,
2414,
319,
428,
1227,
14,
2078,
30,
46506,
357,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
... |
In how many different games did Oliver Miller (7) did the high rebounds? | SELECT COUNT(game) FROM table_30087032_5 WHERE high_rebounds = "Oliver Miller (7)" | [
818,
703,
867,
1180,
1830,
750,
15416,
7920,
357,
22,
8,
750,
262,
1029,
18841,
30,
46506,
327,
28270,
7,
6057,
8,
16034,
3084,
62,
6200,
46951,
2624,
62,
20,
33411,
1029,
62,
34806,
3733,
796,
366,
30098,
1428,
7920,
357,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
703,
867,
1180,
1830,
750,
15416,
7920,
357,
22,
8,
750,
262,
1029,
18841,
30,
46506,
327,
28270,
7,
6057,
8,
16034,
3084,
62,
6200,
46951,
2624,
62,
20,
33411,
1029,
62,
34806,
3733,
796,
366,
30098,
1428,
7920,
357,
22,
16725... |
What 1997, has qf as a 1994, and 1r as a 1999? | SELECT 1997 FROM table_name_6 WHERE 1994 = "qf" AND 1999 = "1r" | [
2061,
8309,
11,
468,
10662,
69,
355,
257,
9162,
11,
290,
352,
81,
355,
257,
7358,
30,
46506,
8309,
16034,
3084,
62,
3672,
62,
21,
33411,
9162,
796,
366,
80,
69,
1,
5357,
7358,
796,
366,
16,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
8309,
11,
468,
10662,
69,
355,
257,
9162,
11,
290,
352,
81,
355,
257,
7358,
30,
46506,
8309,
16034,
3084,
62,
3672,
62,
21,
33411,
9162,
796,
366,
80,
69,
1,
5357,
7358,
796,
366,
16,
81,
1
] |
when was the last time that patient 002-1171 has the maximum temperature value on the first icu visit. | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-1171') AND NOT patient.unitdischargetime IS NUL... | [
12518,
373,
262,
938,
640,
326,
5827,
3571,
17,
12,
1157,
4869,
468,
262,
5415,
5951,
1988,
319,
262,
717,
14158,
84,
3187,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
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... | [
12518,
373,
262,
938,
640,
326,
5827,
3571,
17,
12,
1157,
4869,
468,
262,
5415,
5951,
1988,
319,
262,
717,
14158,
84,
3187,
13,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
... |
what was the next film chu did after hero of swallow ? | SELECT "title" FROM table_203_239 WHERE id = (SELECT id FROM table_203_239 WHERE "title" = 'hero of swallow') + 1 | [
10919,
373,
262,
1306,
2646,
442,
84,
750,
706,
4293,
286,
26633,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
23516,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
23516,
33411,
366,
7839,
1,
796,
705,
1171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1306,
2646,
442,
84,
750,
706,
4293,
286,
26633,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
23516,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
23516,
33411,
366,
7839,
1,
796,
705,
1171... |
For those records from the products and each product's manufacturer, find name and the amount of name , and group by attribute name, and visualize them by a bar chart, and rank by the total number in desc. | SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY COUNT(T2.Name) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
4279,
416,
262,
2472,
1271,
287,
1715,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1438,
290,
262,
2033,
286,
1438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
4279,
416,
262,
2472,
1271,
287,
1715,
13... |
What is the nationality of David Bairstow? | SELECT nationality FROM table_11303072_9 WHERE player = "David Bairstow" | [
2061,
318,
262,
29835,
286,
3271,
8999,
667,
322,
30,
46506,
29835,
16034,
3084,
62,
1157,
1270,
1270,
4761,
62,
24,
33411,
2137,
796,
366,
11006,
8999,
667,
322,
1
] | [
1,
1,
1,
1,
1,
1,
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,
29835,
286,
3271,
8999,
667,
322,
30,
46506,
29835,
16034,
3084,
62,
1157,
1270,
1270,
4761,
62,
24,
33411,
2137,
796,
366,
11006,
8999,
667,
322,
1
] |
How many byes when the draws are less than 0? | SELECT COUNT("Byes") FROM table_78900 WHERE "Draws" < '0' | [
2437,
867,
416,
274,
618,
262,
14293,
389,
1342,
621,
657,
30,
46506,
327,
28270,
7203,
3886,
274,
4943,
16034,
3084,
62,
3695,
12865,
33411,
366,
25302,
82,
1,
1279,
705,
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
] | [
2437,
867,
416,
274,
618,
262,
14293,
389,
1342,
621,
657,
30,
46506,
327,
28270,
7203,
3886,
274,
4943,
16034,
3084,
62,
3695,
12865,
33411,
366,
25302,
82,
1,
1279,
705,
15,
6
] |
what is the lab test item id for patient id 6983? | SELECT lab.itemid FROM lab WHERE lab.subject_id = "6983" | [
10919,
318,
262,
2248,
1332,
2378,
4686,
329,
5827,
4686,
39861,
18,
30,
46506,
2248,
13,
9186,
312,
16034,
2248,
33411,
2248,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
2378,
4686,
329,
5827,
4686,
39861,
18,
30,
46506,
2248,
13,
9186,
312,
16034,
2248,
33411,
2248,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] |
what was the total r chest tube output of patient 010-32430 until 1694 days ago? | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-32430')) AND intakeoutput.celllabel = 'r che... | [
10919,
373,
262,
2472,
374,
7721,
12403,
5072,
286,
5827,
5534,
15,
12,
33916,
1270,
1566,
1467,
5824,
1528,
2084,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
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... | [
10919,
373,
262,
2472,
374,
7721,
12403,
5072,
286,
5827,
5534,
15,
12,
33916,
1270,
1566,
1467,
5824,
1528,
2084,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
10337,
22915,
13,
... |
What's the total score of Danny Edwards? | SELECT SUM("Score") FROM table_68898 WHERE "Player" = 'danny edwards' | [
2061,
338,
262,
2472,
4776,
286,
15105,
17381,
30,
46506,
35683,
7203,
26595,
4943,
16034,
3084,
62,
34427,
4089,
33411,
366,
14140,
1,
796,
705,
67,
7737,
1225,
2017,
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,
338,
262,
2472,
4776,
286,
15105,
17381,
30,
46506,
35683,
7203,
26595,
4943,
16034,
3084,
62,
34427,
4089,
33411,
366,
14140,
1,
796,
705,
67,
7737,
1225,
2017,
6
] |
What is the Former local authority for Ecclesfield? | SELECT former_local_authority FROM table_name_96 WHERE name = "ecclesfield" | [
2061,
318,
262,
14466,
1957,
4934,
329,
38308,
829,
3245,
30,
46506,
1966,
62,
12001,
62,
9800,
414,
16034,
3084,
62,
3672,
62,
4846,
33411,
1438,
796,
366,
68,
535,
829,
3245,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14466,
1957,
4934,
329,
38308,
829,
3245,
30,
46506,
1966,
62,
12001,
62,
9800,
414,
16034,
3084,
62,
3672,
62,
4846,
33411,
1438,
796,
366,
68,
535,
829,
3245,
1
] |
What position was played with a Difference of - 5, and a Played larger than 14? | SELECT AVG(position) FROM table_name_48 WHERE difference = "- 5" AND played > 14 | [
2061,
2292,
373,
2826,
351,
257,
43795,
286,
532,
642,
11,
290,
257,
33101,
4025,
621,
1478,
30,
46506,
35224,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
2780,
33411,
3580,
796,
27444,
642,
1,
5357,
2826,
1875,
1478
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
2826,
351,
257,
43795,
286,
532,
642,
11,
290,
257,
33101,
4025,
621,
1478,
30,
46506,
35224,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
2780,
33411,
3580,
796,
27444,
642,
1,
5357,
2826,
1875,
1478
] |
In the Open Championship with more than 3 cuts made, what is the average wins? | SELECT AVG(wins) FROM table_name_15 WHERE tournament = "the open championship" AND cuts_made > 3 | [
818,
262,
4946,
10749,
351,
517,
621,
513,
6630,
925,
11,
644,
318,
262,
2811,
7864,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
7756,
796,
366,
1169,
1280,
12184,
1,
5357,
6630,
62,
9727,
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,
1
] | [
818,
262,
4946,
10749,
351,
517,
621,
513,
6630,
925,
11,
644,
318,
262,
2811,
7864,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
7756,
796,
366,
1169,
1280,
12184,
1,
5357,
6630,
62,
9727,
1875,
513
] |
How many elapsed times were recorded for the game that had a prize pool of $1,678,200? | SELECT COUNT("Elapsed Time") FROM table_24733 WHERE "Prize Pool" = '$1,678,200' | [
2437,
867,
42118,
1661,
547,
6264,
329,
262,
983,
326,
550,
257,
11596,
5933,
286,
720,
16,
11,
30924,
11,
2167,
30,
46506,
327,
28270,
7203,
9527,
28361,
3862,
4943,
16034,
3084,
62,
23753,
2091,
33411,
366,
34487,
2736,
19850,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
42118,
1661,
547,
6264,
329,
262,
983,
326,
550,
257,
11596,
5933,
286,
720,
16,
11,
30924,
11,
2167,
30,
46506,
327,
28270,
7203,
9527,
28361,
3862,
4943,
16034,
3084,
62,
23753,
2091,
33411,
366,
34487,
2736,
19850,
1,
79... |
Name the % yes for yes votes for 78961 | SELECT "% YES" FROM table_3352 WHERE "YES votes" = '78961' | [
5376,
262,
4064,
3763,
329,
3763,
5690,
329,
767,
4531,
5333,
46506,
36521,
21560,
1,
16034,
3084,
62,
2091,
4309,
33411,
366,
43335,
5690,
1,
796,
705,
3695,
4846,
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
] | [
5376,
262,
4064,
3763,
329,
3763,
5690,
329,
767,
4531,
5333,
46506,
36521,
21560,
1,
16034,
3084,
62,
2091,
4309,
33411,
366,
43335,
5690,
1,
796,
705,
3695,
4846,
16,
6
] |
Search post where post text like PostText. | SELECT Id AS "post_link", Body FROM Posts WHERE UPPER(Body) LIKE UPPER('%##PostText##%') ORDER BY Score DESC | [
18243,
1281,
810,
1281,
2420,
588,
2947,
8206,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
16034,
12043,
33411,
471,
10246,
1137,
7,
25842,
8,
34178,
471,
10246,
1137,
10786,
4,
2235,
6307,
8206,
2235,
4,
11537,
38678,
1105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
18243,
1281,
810,
1281,
2420,
588,
2947,
8206,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
16034,
12043,
33411,
471,
10246,
1137,
7,
25842,
8,
34178,
471,
10246,
1137,
10786,
4,
2235,
6307,
8206,
2235,
4,
11537,
38678,
1105... |
What is the home team score with Away team Richmond? | SELECT home_team AS score FROM table_name_20 WHERE away_team = "richmond" | [
2061,
318,
262,
1363,
1074,
4776,
351,
21986,
1074,
16940,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1238,
33411,
1497,
62,
15097,
796,
366,
7527,
6327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1363,
1074,
4776,
351,
21986,
1074,
16940,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1238,
33411,
1497,
62,
15097,
796,
366,
7527,
6327,
1
] |
Which athlete has the fastest time of 15.82? | SELECT "Athlete" FROM table_67616 WHERE "Fastest time (s)" = '15.82' | [
13828,
16076,
468,
262,
14162,
640,
286,
1315,
13,
6469,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
42548,
1433,
33411,
366,
22968,
395,
640,
357,
82,
16725,
796,
705,
1314,
13,
6469,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
16076,
468,
262,
14162,
640,
286,
1315,
13,
6469,
30,
46506,
366,
32,
400,
5807,
1,
16034,
3084,
62,
42548,
1433,
33411,
366,
22968,
395,
640,
357,
82,
16725,
796,
705,
1314,
13,
6469,
6
] |
Which place has United States as the country and Craig Wood as the player? | SELECT place FROM table_name_88 WHERE country = "united states" AND player = "craig wood" | [
13828,
1295,
468,
1578,
1829,
355,
262,
1499,
290,
13854,
5326,
355,
262,
2137,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3459,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
2137,
796,
366,
66,
430,
328,
4898,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1295,
468,
1578,
1829,
355,
262,
1499,
290,
13854,
5326,
355,
262,
2137,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3459,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
2137,
796,
366,
66,
430,
328,
4898,
1
] |
Which Year started is the lowest one that has a Number of cars larger than 7, and a Car # of 100? | SELECT MIN("Year started") FROM table_44517 WHERE "Number of cars" > '7' AND "Car #" = '100' | [
13828,
6280,
2067,
318,
262,
9016,
530,
326,
468,
257,
7913,
286,
5006,
4025,
621,
767,
11,
290,
257,
1879,
1303,
286,
1802,
30,
46506,
20625,
7203,
17688,
2067,
4943,
16034,
3084,
62,
43489,
1558,
33411,
366,
15057,
286,
5006,
1,
187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6280,
2067,
318,
262,
9016,
530,
326,
468,
257,
7913,
286,
5006,
4025,
621,
767,
11,
290,
257,
1879,
1303,
286,
1802,
30,
46506,
20625,
7203,
17688,
2067,
4943,
16034,
3084,
62,
43489,
1558,
33411,
366,
15057,
286,
5006,
1,
187... |
Can you draw the trend of salary over the hire date?, and I want to rank HIRE_DATE from low to high order. | SELECT HIRE_DATE, SALARY FROM employees ORDER BY HIRE_DATE | [
6090,
345,
3197,
262,
5182,
286,
9588,
625,
262,
11078,
3128,
21747,
290,
314,
765,
284,
4279,
36210,
2200,
62,
35,
6158,
422,
1877,
284,
1029,
1502,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
38678,
11050,
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
] | [
6090,
345,
3197,
262,
5182,
286,
9588,
625,
262,
11078,
3128,
21747,
290,
314,
765,
284,
4279,
36210,
2200,
62,
35,
6158,
422,
1877,
284,
1029,
1502,
13,
46506,
36210,
2200,
62,
35,
6158,
11,
42475,
13153,
16034,
4409,
38678,
11050,
3... |
What is the one mora for the three-mora word /kaze/ [k z ]? | SELECT one_mora FROM table_name_73 WHERE three_mora_word = "/kaze/ [kázé]" | [
2061,
318,
262,
530,
2146,
64,
329,
262,
1115,
12,
4491,
64,
1573,
1220,
74,
6201,
14,
685,
74,
1976,
2361,
30,
46506,
530,
62,
4491,
64,
16034,
3084,
62,
3672,
62,
4790,
33411,
1115,
62,
4491,
64,
62,
4775,
796,
12813,
74,
6201,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
530,
2146,
64,
329,
262,
1115,
12,
4491,
64,
1573,
1220,
74,
6201,
14,
685,
74,
1976,
2361,
30,
46506,
530,
62,
4491,
64,
16034,
3084,
62,
3672,
62,
4790,
33411,
1115,
62,
4491,
64,
62,
4775,
796,
12813,
74,
6201,
... |
What kind of Week 2 that has a Week 1 of mandy ashford? | SELECT "Week 2" FROM table_59129 WHERE "Week 1" = 'mandy ashford' | [
2061,
1611,
286,
6119,
362,
326,
468,
257,
6119,
352,
286,
6855,
88,
12530,
3841,
30,
46506,
366,
20916,
362,
1,
16034,
3084,
62,
3270,
18741,
33411,
366,
20916,
352,
1,
796,
705,
76,
10757,
12530,
3841,
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
] | [
2061,
1611,
286,
6119,
362,
326,
468,
257,
6119,
352,
286,
6855,
88,
12530,
3841,
30,
46506,
366,
20916,
362,
1,
16034,
3084,
62,
3270,
18741,
33411,
366,
20916,
352,
1,
796,
705,
76,
10757,
12530,
3841,
6
] |
Find the payment method code used by more than 3 parties. | SELECT payment_method_code FROM parties GROUP BY payment_method_code HAVING COUNT(*) > 3 | [
16742,
262,
6074,
2446,
2438,
973,
416,
517,
621,
513,
4671,
13,
46506,
6074,
62,
24396,
62,
8189,
16034,
4671,
44441,
11050,
6074,
62,
24396,
62,
8189,
367,
10116,
2751,
327,
28270,
7,
28104,
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
] | [
16742,
262,
6074,
2446,
2438,
973,
416,
517,
621,
513,
4671,
13,
46506,
6074,
62,
24396,
62,
8189,
16034,
4671,
44441,
11050,
6074,
62,
24396,
62,
8189,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
513
] |
calculate the amount of albumin 5% patient 20898 has taken since 599 days ago. | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.lab... | [
9948,
3129,
378,
262,
2033,
286,
5062,
259,
642,
4,
5827,
27121,
4089,
468,
2077,
1201,
642,
2079,
1528,
2084,
13,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
2033,
286,
5062,
259,
642,
4,
5827,
27121,
4089,
468,
2077,
1201,
642,
2079,
1528,
2084,
13,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
... |
When Team Hyde United had more than 59 Goals For and fewer than 15 Drawn, what was the Lost? | SELECT "Lost" FROM table_44272 WHERE "Goals For" > '59' AND "Drawn" < '15' AND "Team" = 'hyde united' | [
2215,
4816,
30785,
1578,
550,
517,
621,
7863,
28510,
1114,
290,
7380,
621,
1315,
50061,
11,
644,
373,
262,
9164,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
2598,
29807,
33411,
366,
5247,
874,
1114,
1,
1875,
705,
3270,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
4816,
30785,
1578,
550,
517,
621,
7863,
28510,
1114,
290,
7380,
621,
1315,
50061,
11,
644,
373,
262,
9164,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
2598,
29807,
33411,
366,
5247,
874,
1114,
1,
1875,
705,
3270,
6,
5357,
366,
... |
Which Incumbent has a District of massachusetts 2? | SELECT incumbent FROM table_name_62 WHERE district = "massachusetts 2" | [
13828,
3457,
2178,
298,
468,
257,
5665,
286,
2347,
9770,
362,
30,
46506,
23526,
16034,
3084,
62,
3672,
62,
5237,
33411,
4783,
796,
366,
22208,
9770,
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
] | [
13828,
3457,
2178,
298,
468,
257,
5665,
286,
2347,
9770,
362,
30,
46506,
23526,
16034,
3084,
62,
3672,
62,
5237,
33411,
4783,
796,
366,
22208,
9770,
362,
1
] |
what is the fare going from BALTIMORE to BOSTON one way on 11 7 | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | [
10919,
318,
262,
14505,
1016,
422,
347,
31429,
3955,
6965,
284,
347,
10892,
1340,
530,
835,
319,
1367,
767,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
14505,
1016,
422,
347,
31429,
3955,
6965,
284,
347,
10892,
1340,
530,
835,
319,
1367,
767,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... |
What is the name of the player with less than 2 wins? | SELECT player FROM table_name_24 WHERE wins < 2 | [
2061,
318,
262,
1438,
286,
262,
2137,
351,
1342,
621,
362,
7864,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1731,
33411,
7864,
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
] | [
2061,
318,
262,
1438,
286,
262,
2137,
351,
1342,
621,
362,
7864,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1731,
33411,
7864,
1279,
362
] |
meningitis or encephalitis as source of sepsis. | SELECT * FROM table_train_72 WHERE meningitis_or_encephalitis = 1 AND sepsis = 1 | [
76,
3101,
11815,
393,
551,
43996,
11815,
355,
2723,
286,
384,
862,
271,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
4761,
33411,
1450,
278,
11815,
62,
273,
62,
594,
27451,
11815,
796,
352,
5357,
384,
862,
271,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
76,
3101,
11815,
393,
551,
43996,
11815,
355,
2723,
286,
384,
862,
271,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
4761,
33411,
1450,
278,
11815,
62,
273,
62,
594,
27451,
11815,
796,
352,
5357,
384,
862,
271,
796,
352
] |
Can you tell me the sum of Laps that has the Manufacturer of kawasaki, and the Grid smaller than 7? | SELECT SUM(laps) FROM table_name_88 WHERE manufacturer = "kawasaki" AND grid < 7 | [
6090,
345,
1560,
502,
262,
2160,
286,
406,
1686,
326,
468,
262,
40218,
286,
479,
707,
33846,
11,
290,
262,
24846,
4833,
621,
767,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
11554,
796,
366,
74,
707,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2160,
286,
406,
1686,
326,
468,
262,
40218,
286,
479,
707,
33846,
11,
290,
262,
24846,
4833,
621,
767,
30,
46506,
35683,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
3459,
33411,
11554,
796,
366,
74,
707,
... |
Draw a bar chart of type versus the total number, I want to sort x axis in desc order. | SELECT Type, COUNT(*) FROM Institution GROUP BY Type ORDER BY Type DESC | [
25302,
257,
2318,
8262,
286,
2099,
9051,
262,
2472,
1271,
11,
314,
765,
284,
3297,
2124,
16488,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
29426,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
2099,
9051,
262,
2472,
1271,
11,
314,
765,
284,
3297,
2124,
16488,
287,
1715,
1502,
13,
46506,
5994,
11,
327,
28270,
7,
28104,
16034,
29426,
44441,
11050,
5994,
38678,
11050,
5994,
22196,
34
] |
get me the number of female patients with open and other replacement of aortic valve with tissue graft procedure. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "Opn/oth rep aort vlv-tis" | [
1136,
502,
262,
1271,
286,
4048,
3871,
351,
1280,
290,
584,
9014,
286,
257,
419,
291,
22580,
351,
10712,
38455,
8771,
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... | [
1136,
502,
262,
1271,
286,
4048,
3871,
351,
1280,
290,
584,
9014,
286,
257,
419,
291,
22580,
351,
10712,
38455,
8771,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
Who was responsible for the design of the Jasper National Park theme? | SELECT "Design" FROM table_17243 WHERE "Theme" = 'Jasper National Park' | [
8241,
373,
4497,
329,
262,
1486,
286,
262,
42992,
2351,
3250,
7505,
30,
46506,
366,
23067,
1,
16034,
3084,
62,
1558,
26660,
33411,
366,
47863,
1,
796,
705,
41,
32981,
2351,
3250,
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
] | [
8241,
373,
4497,
329,
262,
1486,
286,
262,
42992,
2351,
3250,
7505,
30,
46506,
366,
23067,
1,
16034,
3084,
62,
1558,
26660,
33411,
366,
47863,
1,
796,
705,
41,
32981,
2351,
3250,
6
] |
What is the average Lost that has a Name of ec amberg (n), and a Position smaller than 4? | SELECT AVG(lost) FROM table_name_63 WHERE name = "ec amberg (n)" AND position < 4 | [
2061,
318,
262,
2811,
9164,
326,
468,
257,
6530,
286,
9940,
716,
3900,
357,
77,
828,
290,
257,
23158,
4833,
621,
604,
30,
46506,
35224,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
1438,
796,
366,
721,
716,
3900,
357,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
9164,
326,
468,
257,
6530,
286,
9940,
716,
3900,
357,
77,
828,
290,
257,
23158,
4833,
621,
604,
30,
46506,
35224,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
1438,
796,
366,
721,
716,
3900,
357,
77,
... |
What is the UCI rating of the race in Italy with the progetto ciclismo alplast team? | SELECT "UCI Rating" FROM table_37564 WHERE "Location" = 'italy' AND "Team" = 'progetto ciclismo alplast' | [
2061,
318,
262,
14417,
40,
7955,
286,
262,
3234,
287,
8031,
351,
262,
386,
1136,
1462,
269,
291,
75,
44126,
435,
489,
459,
1074,
30,
46506,
366,
9598,
40,
12028,
1,
16034,
3084,
62,
22318,
2414,
33411,
366,
14749,
1,
796,
705,
1287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14417,
40,
7955,
286,
262,
3234,
287,
8031,
351,
262,
386,
1136,
1462,
269,
291,
75,
44126,
435,
489,
459,
1074,
30,
46506,
366,
9598,
40,
12028,
1,
16034,
3084,
62,
22318,
2414,
33411,
366,
14749,
1,
796,
705,
1287,... |
Find identical titles (no closed questions, different owner). We also show the creation date of the posts. | SELECT a.Id AS "post_link", a.CreationDate AS "First Date", b.Id AS "post_link", b.CreationDate AS "Second Date" FROM Posts AS a JOIN Posts AS b ON a.Title = b.Title WHERE a.Id < b.Id AND a.OwnerUserId != b.OwnerUserId AND a.ClosedDate IS NULL AND b.ClosedDate IS NULL | [
16742,
10411,
8714,
357,
3919,
4838,
2683,
11,
1180,
4870,
737,
775,
635,
905,
262,
6282,
3128,
286,
262,
6851,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
12443,
341,
10430,
7054,
366,
5962,
7536,
1600,
275,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10411,
8714,
357,
3919,
4838,
2683,
11,
1180,
4870,
737,
775,
635,
905,
262,
6282,
3128,
286,
262,
6851,
13,
46506,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
12443,
341,
10430,
7054,
366,
5962,
7536,
1600,
275,
... |
Give the title of the prerequisite to the course International Finance. | SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.title = 'International Finance') | [
23318,
262,
3670,
286,
262,
43119,
284,
262,
1781,
4037,
15007,
13,
46506,
3670,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
309,
16,
13,
3866,
42180,
62,
312,
16034,
662,
42180,
7054,
309,
16,
32357,
1268,
1781,
7054,
309,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3670,
286,
262,
43119,
284,
262,
1781,
4037,
15007,
13,
46506,
3670,
16034,
1781,
33411,
1781,
62,
312,
3268,
357,
46506,
309,
16,
13,
3866,
42180,
62,
312,
16034,
662,
42180,
7054,
309,
16,
32357,
1268,
1781,
7054,
309,
1... |
What week was October 29, 2000? | SELECT COUNT(week) FROM table_name_2 WHERE date = "october 29, 2000" | [
2061,
1285,
373,
3267,
2808,
11,
4751,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
3128,
796,
366,
38441,
2023,
2808,
11,
4751,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1285,
373,
3267,
2808,
11,
4751,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
3128,
796,
366,
38441,
2023,
2808,
11,
4751,
1
] |
What are the unique block codes that have available rooms? | SELECT DISTINCT blockcode FROM room WHERE unavailable = 0 | [
2061,
389,
262,
3748,
2512,
12416,
326,
423,
1695,
9519,
30,
46506,
360,
8808,
1268,
4177,
2512,
8189,
16034,
2119,
33411,
23485,
796,
657
] | [
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,
3748,
2512,
12416,
326,
423,
1695,
9519,
30,
46506,
360,
8808,
1268,
4177,
2512,
8189,
16034,
2119,
33411,
23485,
796,
657
] |
give me the flights from PHOENIX to MILWAUKEE on wednesday evening | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 23 AND DATE_DAYalias0.month_number = 4 AND DATE_DAYalias0.year = 1991)) AND to... | [
26535,
502,
262,
13956,
422,
9370,
46,
1677,
10426,
284,
31515,
15543,
15039,
6500,
319,
29445,
3462,
6180,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13956,
422,
9370,
46,
1677,
10426,
284,
31515,
15543,
15039,
6500,
319,
29445,
3462,
6180,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,... |
how many patients were prescribed with sodium chloride 0.9 % iv : 1000 ml during the same month after the laxatives - lactulose procedure until 1 year ago? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'laxatives - lactulose' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-1 year')) AS t1 J... | [
4919,
867,
3871,
547,
14798,
351,
21072,
44921,
657,
13,
24,
4064,
21628,
1058,
8576,
25962,
1141,
262,
976,
1227,
706,
262,
36919,
2929,
532,
26222,
377,
577,
8771,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
14798,
351,
21072,
44921,
657,
13,
24,
4064,
21628,
1058,
8576,
25962,
1141,
262,
976,
1227,
706,
262,
36919,
2929,
532,
26222,
377,
577,
8771,
1566,
352,
614,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177... |
Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa? | SELECT "Enrollment" FROM table_66122 WHERE "Primary Conference" = 'mid-hoosier' AND "County" = '16 decatur' AND "IHSAA Class" = 'aa' | [
13828,
2039,
48108,
468,
257,
21087,
8785,
286,
3095,
12,
8873,
418,
959,
11,
290,
257,
3418,
286,
1467,
875,
2541,
11,
290,
281,
314,
7998,
3838,
5016,
286,
257,
64,
30,
46506,
366,
4834,
48108,
1,
16034,
3084,
62,
2791,
18376,
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,
1,
1,
1... | [
13828,
2039,
48108,
468,
257,
21087,
8785,
286,
3095,
12,
8873,
418,
959,
11,
290,
257,
3418,
286,
1467,
875,
2541,
11,
290,
281,
314,
7998,
3838,
5016,
286,
257,
64,
30,
46506,
366,
4834,
48108,
1,
16034,
3084,
62,
2791,
18376,
334... |
Name the year with the best female pop vocal album and result of won | SELECT "Year" FROM table_70896 WHERE "Category" = 'best female pop vocal album' AND "Result" = 'won' | [
5376,
262,
614,
351,
262,
1266,
4048,
1461,
12435,
5062,
290,
1255,
286,
1839,
46506,
366,
17688,
1,
16034,
3084,
62,
2154,
48712,
33411,
366,
27313,
1,
796,
705,
13466,
4048,
1461,
12435,
5062,
6,
5357,
366,
23004,
1,
796,
705,
26502... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
351,
262,
1266,
4048,
1461,
12435,
5062,
290,
1255,
286,
1839,
46506,
366,
17688,
1,
16034,
3084,
62,
2154,
48712,
33411,
366,
27313,
1,
796,
705,
13466,
4048,
1461,
12435,
5062,
6,
5357,
366,
23004,
1,
796,
705,
26502... |
What was the revising convention of the field 'trimmers and stokers'? | SELECT revising_convention_s_ FROM table_2001348_1 WHERE field = "trimmers and stokers" | [
2061,
373,
262,
2710,
1710,
9831,
286,
262,
2214,
705,
2213,
36904,
290,
336,
18698,
30960,
46506,
2710,
1710,
62,
1102,
4018,
62,
82,
62,
16034,
3084,
62,
2167,
1485,
2780,
62,
16,
33411,
2214,
796,
366,
2213,
36904,
290,
336,
18698,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2710,
1710,
9831,
286,
262,
2214,
705,
2213,
36904,
290,
336,
18698,
30960,
46506,
2710,
1710,
62,
1102,
4018,
62,
82,
62,
16034,
3084,
62,
2167,
1485,
2780,
62,
16,
33411,
2214,
796,
366,
2213,
36904,
290,
336,
18698,... |
Is there one class that 's harder than the rest ? | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MAX(PROGRAM_COURSEalias1.workload) FROM course AS COURSEalias1, program_course AS PROGRAM_COURSEalias1 WH... | [
3792,
612,
530,
1398,
326,
705,
82,
7069,
621,
262,
1334,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3792,
612,
530,
1398,
326,
705,
82,
7069,
621,
262,
1334,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
... |
What was the original air date when ed horowitz wrote it? | SELECT "Original airdate" FROM table_10539 WHERE "Written by" = 'ed horowitz' | [
2061,
373,
262,
2656,
1633,
3128,
618,
1225,
3076,
20951,
2630,
340,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
13348,
2670,
33411,
366,
25354,
416,
1,
796,
705,
276,
3076,
20951,
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,
373,
262,
2656,
1633,
3128,
618,
1225,
3076,
20951,
2630,
340,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
13348,
2670,
33411,
366,
25354,
416,
1,
796,
705,
276,
3076,
20951,
6
] |
Name the number of left for cardinals | SELECT COUNT("Left") FROM table_25578 WHERE "Nickname" = 'Cardinals' | [
5376,
262,
1271,
286,
1364,
329,
2657,
6897,
46506,
327,
28270,
7203,
18819,
4943,
16034,
3084,
62,
1495,
38907,
33411,
366,
23609,
3672,
1,
796,
705,
16962,
6897,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
1364,
329,
2657,
6897,
46506,
327,
28270,
7203,
18819,
4943,
16034,
3084,
62,
1495,
38907,
33411,
366,
23609,
3672,
1,
796,
705,
16962,
6897,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.