instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Name the week for steve toll | SELECT "Week" FROM table_2818 WHERE "Transition" = 'Steve Toll' | [
5376,
262,
1285,
329,
2876,
303,
13592,
46506,
366,
20916,
1,
16034,
3084,
62,
2078,
1507,
33411,
366,
8291,
653,
1,
796,
705,
19206,
44786,
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
] | [
5376,
262,
1285,
329,
2876,
303,
13592,
46506,
366,
20916,
1,
16034,
3084,
62,
2078,
1507,
33411,
366,
8291,
653,
1,
796,
705,
19206,
44786,
6
] |
On what Date was the Score of 3 6, 6 4, 3 6, 6 1, 6 2 | SELECT SUM("Date") FROM table_56197 WHERE "Score" = '3–6, 6–4, 3–6, 6–1, 6–2' | [
2202,
644,
7536,
373,
262,
15178,
286,
513,
718,
11,
718,
604,
11,
513,
718,
11,
718,
352,
11,
718,
362,
46506,
35683,
7203,
10430,
4943,
16034,
3084,
62,
3980,
24991,
33411,
366,
26595,
1,
796,
705,
18,
1906,
21,
11,
718,
1906,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
7536,
373,
262,
15178,
286,
513,
718,
11,
718,
604,
11,
513,
718,
11,
718,
352,
11,
718,
362,
46506,
35683,
7203,
10430,
4943,
16034,
3084,
62,
3980,
24991,
33411,
366,
26595,
1,
796,
705,
18,
1906,
21,
11,
718,
1906,
1... |
When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there? | SELECT COUNT(carrier) FROM table_19246_1 WHERE frequency = "900MHz and 1800MHz" AND launch_date__ddmmyyyy_ = "14.09.2005" | [
2215,
262,
4219,
3128,
318,
1478,
13,
2931,
13,
14315,
11,
290,
262,
8373,
318,
15897,
76,
32179,
290,
21431,
76,
32179,
11,
703,
867,
16651,
389,
612,
30,
46506,
327,
28270,
7,
7718,
5277,
8,
16034,
3084,
62,
1129,
26912,
62,
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... | [
2215,
262,
4219,
3128,
318,
1478,
13,
2931,
13,
14315,
11,
290,
262,
8373,
318,
15897,
76,
32179,
290,
21431,
76,
32179,
11,
703,
867,
16651,
389,
612,
30,
46506,
327,
28270,
7,
7718,
5277,
8,
16034,
3084,
62,
1129,
26912,
62,
16,
... |
how long did it take elin backman to finish the race ? | SELECT "time" FROM table_204_401 WHERE "name" = 'elin backman' | [
4919,
890,
750,
340,
1011,
1288,
259,
736,
805,
284,
5461,
262,
3234,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
21844,
33411,
366,
3672,
1,
796,
705,
27176,
736,
805,
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
] | [
4919,
890,
750,
340,
1011,
1288,
259,
736,
805,
284,
5461,
262,
3234,
5633,
46506,
366,
2435,
1,
16034,
3084,
62,
18638,
62,
21844,
33411,
366,
3672,
1,
796,
705,
27176,
736,
805,
6
] |
let me know the type of admission and procedure icd9 code of patient with patient id 16438. | SELECT demographic.admission_type, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "16438" | [
1616,
502,
760,
262,
2099,
286,
13938,
290,
8771,
14158,
67,
24,
2438,
286,
5827,
351,
5827,
4686,
25307,
2548,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
9021,
13,
291,
67,
24,
62,
8189,
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... | [
1616,
502,
760,
262,
2099,
286,
13938,
290,
8771,
14158,
67,
24,
2438,
286,
5827,
351,
5827,
4686,
25307,
2548,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
9021,
13,
291,
67,
24,
62,
8189,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Who got the mountains classification when Michael Albasini won the stage? | SELECT mountains_classification FROM table_21804557_18 WHERE metas_volantes_classification = "Michael Albasini" | [
8241,
1392,
262,
12269,
17923,
618,
3899,
978,
12093,
5362,
1839,
262,
3800,
30,
46506,
12269,
62,
4871,
2649,
16034,
3084,
62,
17,
15259,
2231,
3553,
62,
1507,
33411,
1138,
292,
62,
10396,
39781,
62,
4871,
2649,
796,
366,
13256,
978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1392,
262,
12269,
17923,
618,
3899,
978,
12093,
5362,
1839,
262,
3800,
30,
46506,
12269,
62,
4871,
2649,
16034,
3084,
62,
17,
15259,
2231,
3553,
62,
1507,
33411,
1138,
292,
62,
10396,
39781,
62,
4871,
2649,
796,
366,
13256,
978,
... |
how many people voted for the top 4 parties ? | SELECT SUM("votes") FROM table_203_354 WHERE id <= 4 | [
4919,
867,
661,
7052,
329,
262,
1353,
604,
4671,
5633,
46506,
35683,
7203,
29307,
4943,
16034,
3084,
62,
22416,
62,
32182,
33411,
4686,
19841,
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
] | [
4919,
867,
661,
7052,
329,
262,
1353,
604,
4671,
5633,
46506,
35683,
7203,
29307,
4943,
16034,
3084,
62,
22416,
62,
32182,
33411,
4686,
19841,
604
] |
Where is the championship where 6 1, 3 6, 3 6 is the score in the final? | SELECT championship FROM table_26202847_6 WHERE score_in_the_final = "6–1, 3–6, 3–6" | [
8496,
318,
262,
12184,
810,
718,
352,
11,
513,
718,
11,
513,
718,
318,
262,
4776,
287,
262,
2457,
30,
46506,
12184,
16034,
3084,
62,
2075,
1238,
2078,
2857,
62,
21,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
21,
1906,
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
] | [
8496,
318,
262,
12184,
810,
718,
352,
11,
513,
718,
11,
513,
718,
318,
262,
4776,
287,
262,
2457,
30,
46506,
12184,
16034,
3084,
62,
2075,
1238,
2078,
2857,
62,
21,
33411,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366,
21,
1906,
16... |
what is the number of patients whose diagnoses short title is cl skul base fx-coma nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Cl skul base fx-coma NOS" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
537,
1341,
377,
2779,
277,
87,
12,
785,
64,
43630,
30,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
537,
1341,
377,
2779,
277,
87,
12,
785,
64,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
How much is the GDP for an area of 116? | SELECT gdp__ppp__$m_usd FROM table_name_26 WHERE area__km²_ = "116" | [
2437,
881,
318,
262,
12396,
329,
281,
1989,
286,
18693,
30,
46506,
308,
26059,
834,
381,
79,
834,
3,
76,
62,
385,
67,
16034,
3084,
62,
3672,
62,
2075,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
18298,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
881,
318,
262,
12396,
329,
281,
1989,
286,
18693,
30,
46506,
308,
26059,
834,
381,
79,
834,
3,
76,
62,
385,
67,
16034,
3084,
62,
3672,
62,
2075,
33411,
1989,
834,
13276,
31185,
62,
796,
366,
18298,
1
] |
What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10? | SELECT MAX(goals_scored) FROM table_name_33 WHERE team = "san salvador f.c." AND points < 10 | [
2061,
318,
262,
2472,
1271,
286,
28510,
1446,
1850,
11,
618,
262,
4816,
318,
2986,
26482,
376,
13,
34,
1539,
290,
618,
262,
11045,
389,
1342,
621,
838,
30,
46506,
25882,
7,
2188,
874,
62,
1416,
1850,
8,
16034,
3084,
62,
3672,
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
] | [
2061,
318,
262,
2472,
1271,
286,
28510,
1446,
1850,
11,
618,
262,
4816,
318,
2986,
26482,
376,
13,
34,
1539,
290,
618,
262,
11045,
389,
1342,
621,
838,
30,
46506,
25882,
7,
2188,
874,
62,
1416,
1850,
8,
16034,
3084,
62,
3672,
62,
... |
Name the film that Lu directed. | SELECT "Film title" FROM table_55280 WHERE "Director" = 'lu' | [
5376,
262,
2646,
326,
6026,
7924,
13,
46506,
366,
39750,
3670,
1,
16034,
3084,
62,
2816,
21033,
33411,
366,
28702,
1,
796,
705,
2290,
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
] | [
5376,
262,
2646,
326,
6026,
7924,
13,
46506,
366,
39750,
3670,
1,
16034,
3084,
62,
2816,
21033,
33411,
366,
28702,
1,
796,
705,
2290,
6
] |
What is the most recent year founded that has a nickname of bruins? | SELECT MAX("Founded") FROM table_46241 WHERE "Nickname" = 'bruins' | [
2061,
318,
262,
749,
2274,
614,
9393,
326,
468,
257,
21814,
286,
18145,
1040,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
3510,
28872,
33411,
366,
23609,
3672,
1,
796,
705,
65,
622,
1040,
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,
749,
2274,
614,
9393,
326,
468,
257,
21814,
286,
18145,
1040,
30,
46506,
25882,
7203,
37,
6302,
4943,
16034,
3084,
62,
3510,
28872,
33411,
366,
23609,
3672,
1,
796,
705,
65,
622,
1040,
6
] |
How many metropolitan boroughs have dorridge as a station? | SELECT COUNT(metropolitan_borough_) AS "c_" FROM table_15366849_1 WHERE station = "Dorridge" | [
2437,
867,
27953,
33534,
82,
423,
288,
273,
12818,
355,
257,
4429,
30,
46506,
327,
28270,
7,
4164,
14823,
62,
17913,
62,
8,
7054,
366,
66,
62,
1,
16034,
3084,
62,
1314,
2623,
3104,
2920,
62,
16,
33411,
4429,
796,
366,
35,
273,
128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27953,
33534,
82,
423,
288,
273,
12818,
355,
257,
4429,
30,
46506,
327,
28270,
7,
4164,
14823,
62,
17913,
62,
8,
7054,
366,
66,
62,
1,
16034,
3084,
62,
1314,
2623,
3104,
2920,
62,
16,
33411,
4429,
796,
366,
35,
273,
128... |
Name the results for institutional authority of paf | SELECT "Results" FROM table_10397 WHERE "Institutional authority" = 'paf' | [
5376,
262,
2482,
329,
15855,
4934,
286,
279,
1878,
46506,
366,
25468,
1,
16034,
3084,
62,
940,
33372,
33411,
366,
6310,
5677,
4934,
1,
796,
705,
79,
1878,
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,
2482,
329,
15855,
4934,
286,
279,
1878,
46506,
366,
25468,
1,
16034,
3084,
62,
940,
33372,
33411,
366,
6310,
5677,
4934,
1,
796,
705,
79,
1878,
6
] |
how many patients whose insurance is private and procedure long title is removal of t-tube, other bile duct tube, or liver tube? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Removal of T-tube, other bile duct tube, or liver tube" | [
4919,
867,
3871,
3025,
5096,
318,
2839,
290,
8771,
890,
3670,
318,
9934,
286,
256,
12,
29302,
11,
584,
275,
576,
28494,
12403,
11,
393,
14383,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
5096,
318,
2839,
290,
8771,
890,
3670,
318,
9934,
286,
256,
12,
29302,
11,
584,
275,
576,
28494,
12403,
11,
393,
14383,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
1603... |
What was the host for the semi final heat, when Terry Wogan was the National Final main host, and Gaby Roslin was the National Final co-host? | SELECT semi_final_heat_host FROM table_name_24 WHERE national_final_main_host = "terry wogan" AND national_final_co_host = "gaby roslin" | [
2061,
373,
262,
2583,
329,
262,
10663,
2457,
4894,
11,
618,
14286,
370,
9632,
373,
262,
2351,
8125,
1388,
2583,
11,
290,
402,
3930,
10018,
2815,
373,
262,
2351,
8125,
763,
12,
4774,
30,
46506,
10663,
62,
20311,
62,
25080,
62,
4774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2583,
329,
262,
10663,
2457,
4894,
11,
618,
14286,
370,
9632,
373,
262,
2351,
8125,
1388,
2583,
11,
290,
402,
3930,
10018,
2815,
373,
262,
2351,
8125,
763,
12,
4774,
30,
46506,
10663,
62,
20311,
62,
25080,
62,
4774,
... |
Which away team that had 48 as a Tie no? | SELECT away_team FROM table_name_46 WHERE tie_no = "48" | [
13828,
1497,
1074,
326,
550,
4764,
355,
257,
36286,
645,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
3510,
33411,
9839,
62,
3919,
796,
366,
2780,
1
] | [
1,
1,
1,
1,
1,
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,
1497,
1074,
326,
550,
4764,
355,
257,
36286,
645,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
3510,
33411,
9839,
62,
3919,
796,
366,
2780,
1
] |
when did patient 021-240586's systemicmean last measure on 10/14/2101? | 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 = '021-240586')) AND NOT vitalperiodic.systemicmean IS... | [
12518,
750,
5827,
657,
2481,
12,
1731,
2713,
4521,
338,
21971,
32604,
938,
3953,
319,
838,
14,
1415,
14,
2481,
486,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
657,
2481,
12,
1731,
2713,
4521,
338,
21971,
32604,
938,
3953,
319,
838,
14,
1415,
14,
2481,
486,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20... |
Who were the batting partners in Colombo? | SELECT batting_partners FROM table_name_99 WHERE venue = "colombo" | [
8241,
547,
262,
23761,
4887,
287,
1623,
47265,
30,
46506,
23761,
62,
3911,
2741,
16034,
3084,
62,
3672,
62,
2079,
33411,
14359,
796,
366,
4033,
47265,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
547,
262,
23761,
4887,
287,
1623,
47265,
30,
46506,
23761,
62,
3911,
2741,
16034,
3084,
62,
3672,
62,
2079,
33411,
14359,
796,
366,
4033,
47265,
1
] |
how many more goals did archie thompson score than billy celeski ? | SELECT (SELECT "goals scored" FROM table_203_221 WHERE "name" = 'archie thompson') - (SELECT "goals scored" FROM table_203_221 WHERE "name" = 'billy celeski') | [
4919,
867,
517,
4661,
750,
610,
3043,
294,
296,
8430,
4776,
621,
2855,
88,
18725,
274,
4106,
5633,
46506,
357,
46506,
366,
2188,
874,
7781,
1,
16034,
3084,
62,
22416,
62,
26115,
33411,
366,
3672,
1,
796,
705,
998,
494,
294,
296,
843... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
4661,
750,
610,
3043,
294,
296,
8430,
4776,
621,
2855,
88,
18725,
274,
4106,
5633,
46506,
357,
46506,
366,
2188,
874,
7781,
1,
16034,
3084,
62,
22416,
62,
26115,
33411,
366,
3672,
1,
796,
705,
998,
494,
294,
296,
843... |
What is the IHSAA class of Centerville, which plays IHSAA class AA football? | SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville" | [
2061,
318,
262,
314,
7998,
3838,
1398,
286,
1979,
33487,
11,
543,
5341,
314,
7998,
3838,
1398,
15923,
4346,
30,
46506,
1312,
11994,
7252,
62,
4871,
16034,
3084,
62,
3672,
62,
5892,
33411,
1312,
11994,
7252,
62,
15914,
62,
4871,
796,
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
] | [
2061,
318,
262,
314,
7998,
3838,
1398,
286,
1979,
33487,
11,
543,
5341,
314,
7998,
3838,
1398,
15923,
4346,
30,
46506,
1312,
11994,
7252,
62,
4871,
16034,
3084,
62,
3672,
62,
5892,
33411,
1312,
11994,
7252,
62,
15914,
62,
4871,
796,
3... |
Questions with highest average score of answers. | SELECT RANK() OVER (ORDER BY AVG(CAST(a.Score AS FLOAT)) DESC) AS Rank, q.Id AS "post_link", AVG(CAST(a.Score AS FLOAT)) AS "average_score", SUM(a.Score) AS "total_score", COUNT(a.Id) AS "#_of_answers" FROM Posts AS q INNER JOIN Posts AS a ON a.ParentId = q.Id GROUP BY q.Id HAVING (COUNT(a.Id) >= '##min?2##') ORDER BY ... | [
35741,
351,
4511,
2811,
4776,
286,
7429,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
35224,
7,
44647,
7,
64,
13,
26595,
7054,
9977,
46,
1404,
4008,
22196,
34,
8,
7054,
10916,
11,
10662,
13,
7390,
7054,
366,
7353,
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... | [
35741,
351,
4511,
2811,
4776,
286,
7429,
13,
46506,
371,
15154,
3419,
28729,
357,
12532,
1137,
11050,
35224,
7,
44647,
7,
64,
13,
26595,
7054,
9977,
46,
1404,
4008,
22196,
34,
8,
7054,
10916,
11,
10662,
13,
7390,
7054,
366,
7353,
62,
... |
What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire? | SELECT MIN(chorley) FROM table_name_99 WHERE preston = 6 AND west_lancashire < 4 | [
2061,
318,
262,
9016,
609,
273,
1636,
351,
257,
718,
34564,
290,
257,
604,
329,
2688,
21534,
1077,
557,
30,
46506,
20625,
7,
354,
273,
1636,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
662,
3743,
796,
718,
5357,
7421,
62,
75,
1192,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
609,
273,
1636,
351,
257,
718,
34564,
290,
257,
604,
329,
2688,
21534,
1077,
557,
30,
46506,
20625,
7,
354,
273,
1636,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
662,
3743,
796,
718,
5357,
7421,
62,
75,
1192,
... |
what was the 'output' patient 027-22704 got until 1344 days ago for the last time? | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-22704')) AND intakeoutput.cellpath LIKE '%output%' AND D... | [
10919,
373,
262,
705,
22915,
6,
5827,
657,
1983,
12,
1828,
32869,
1392,
1566,
1511,
2598,
1528,
2084,
329,
262,
938,
640,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
705,
22915,
6,
5827,
657,
1983,
12,
1828,
32869,
1392,
1566,
1511,
2598,
1528,
2084,
329,
262,
938,
640,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
... |
what country 's 200 m was the quickest ? | SELECT "nation" FROM table_203_102 WHERE "event" = '200 m' | [
10919,
1499,
705,
82,
939,
285,
373,
262,
46264,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
15377,
33411,
366,
15596,
1,
796,
705,
2167,
285,
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
] | [
10919,
1499,
705,
82,
939,
285,
373,
262,
46264,
5633,
46506,
366,
25729,
1,
16034,
3084,
62,
22416,
62,
15377,
33411,
366,
15596,
1,
796,
705,
2167,
285,
6
] |
What are the different card types, and how many transactions have been made with each Visualize by bar chart, I want to order in desc by the Y-axis. | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY COUNT(*) DESC | [
2061,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1502,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
2657,
62,
4906,
62,
8189,
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... | [
2061,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1502,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
... |
Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer? | SELECT "Title" FROM table_19256 WHERE "Director" = 'Patrick Lau' AND "Writer" = 'Lisa Holdsworth' | [
13828,
8640,
423,
9925,
40014,
355,
262,
3437,
290,
15378,
9340,
30567,
355,
262,
6260,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1129,
11645,
33411,
366,
28702,
1,
796,
705,
32718,
40014,
6,
5357,
366,
34379,
1,
796,
705,
44203,
934... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
423,
9925,
40014,
355,
262,
3437,
290,
15378,
9340,
30567,
355,
262,
6260,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
1129,
11645,
33411,
366,
28702,
1,
796,
705,
32718,
40014,
6,
5357,
366,
34379,
1,
796,
705,
44203,
934... |
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, find job_id and the sum of manager_id , and group by attribute job_id, and visualize them by a bar chart, I want to list Y-axis from high to low order. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY SUM(MANAGER_ID) DESC | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
1064,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
... |
What is the position of the player from the college of western michigan? | SELECT "Position" FROM table_50319 WHERE "College" = 'western michigan' | [
2061,
318,
262,
2292,
286,
262,
2137,
422,
262,
4152,
286,
8830,
285,
488,
5516,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
31938,
1129,
33411,
366,
38951,
1,
796,
705,
14197,
285,
488,
5516,
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,
2292,
286,
262,
2137,
422,
262,
4152,
286,
8830,
285,
488,
5516,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
31938,
1129,
33411,
366,
38951,
1,
796,
705,
14197,
285,
488,
5516,
6
] |
Name the others % for cleveland | SELECT "Others%" FROM table_21581 WHERE "County" = 'Cleveland' | [
5376,
262,
1854,
4064,
329,
1190,
9731,
46506,
366,
25599,
39658,
16034,
3084,
62,
23349,
6659,
33411,
366,
12332,
88,
1,
796,
705,
34,
5715,
392,
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
] | [
5376,
262,
1854,
4064,
329,
1190,
9731,
46506,
366,
25599,
39658,
16034,
3084,
62,
23349,
6659,
33411,
366,
12332,
88,
1,
796,
705,
34,
5715,
392,
6
] |
What is the record of the game on 13 May? | SELECT record FROM table_name_70 WHERE date = "13 may" | [
2061,
318,
262,
1700,
286,
262,
983,
319,
1511,
1737,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2154,
33411,
3128,
796,
366,
1485,
743,
1
] | [
1,
1,
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,
1700,
286,
262,
983,
319,
1511,
1737,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2154,
33411,
3128,
796,
366,
1485,
743,
1
] |
Which PF per game has a Rank of 5? | SELECT MIN(pf_per_game) FROM table_name_22 WHERE rank = 5 | [
13828,
28223,
583,
983,
468,
257,
10916,
286,
642,
30,
46506,
20625,
7,
79,
69,
62,
525,
62,
6057,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
4279,
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,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
28223,
583,
983,
468,
257,
10916,
286,
642,
30,
46506,
20625,
7,
79,
69,
62,
525,
62,
6057,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
4279,
796,
642
] |
Where was the game played when the team's record was 1-3? | SELECT "Game site" FROM table_16807 WHERE "Record" = '1-3' | [
8496,
373,
262,
983,
2826,
618,
262,
1074,
338,
1700,
373,
352,
12,
18,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
1433,
36928,
33411,
366,
23739,
1,
796,
705,
16,
12,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
983,
2826,
618,
262,
1074,
338,
1700,
373,
352,
12,
18,
30,
46506,
366,
8777,
2524,
1,
16034,
3084,
62,
1433,
36928,
33411,
366,
23739,
1,
796,
705,
16,
12,
18,
6
] |
What is the 3rd participle of the verb whose 2nd participle is band? | SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band" | [
2061,
318,
262,
513,
4372,
1344,
2480,
286,
262,
15942,
3025,
362,
358,
1344,
2480,
318,
4097,
30,
46506,
636,
62,
18,
16034,
3084,
62,
1558,
29334,
3559,
62,
20,
33411,
636,
62,
17,
796,
366,
3903,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
513,
4372,
1344,
2480,
286,
262,
15942,
3025,
362,
358,
1344,
2480,
318,
4097,
30,
46506,
636,
62,
18,
16034,
3084,
62,
1558,
29334,
3559,
62,
20,
33411,
636,
62,
17,
796,
366,
3903,
1
] |
how many patients have medicaid insurance and admitted in emergency room admit? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.admission_location = "EMERGENCY ROOM ADMIT" | [
4919,
867,
3871,
423,
6924,
1698,
5096,
290,
6848,
287,
6334,
2119,
9159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
1698,
1,
5357,
16728,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
423,
6924,
1698,
5096,
290,
6848,
287,
6334,
2119,
9159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
39112,
1698,
1,
5357,
16728,... |
how many patients having transfer from hosp/extram as the admission location were admitted before the year 2173? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND demographic.admityear < "2173" | [
4919,
867,
3871,
1719,
4351,
422,
10496,
14,
2302,
859,
355,
262,
13938,
4067,
547,
6848,
878,
262,
614,
24894,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
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... | [
4919,
867,
3871,
1719,
4351,
422,
10496,
14,
2302,
859,
355,
262,
13938,
4067,
547,
6848,
878,
262,
614,
24894,
18,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3... |
What is the Gaelic Football Stadium at McHale Park's ranking in total capacity? | SELECT COUNT("Rank") FROM table_10211 WHERE "Stadium" = 'mchale park' | [
2061,
318,
262,
39652,
291,
9957,
10499,
379,
49634,
1000,
3250,
338,
12759,
287,
2472,
5339,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
15377,
1157,
33411,
366,
1273,
6271,
1,
796,
705,
76,
354,
1000,
3952,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
39652,
291,
9957,
10499,
379,
49634,
1000,
3250,
338,
12759,
287,
2472,
5339,
30,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
15377,
1157,
33411,
366,
1273,
6271,
1,
796,
705,
76,
354,
1000,
3952,
6
] |
What was the method of resolution when Mikhail Ilyukhin's record was 4-0? | SELECT "Method" FROM table_49849 WHERE "Record" = '4-0' | [
2061,
373,
262,
2446,
286,
6323,
618,
42040,
49804,
2724,
20079,
338,
1700,
373,
604,
12,
15,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
36260,
2920,
33411,
366,
23739,
1,
796,
705,
19,
12,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2446,
286,
6323,
618,
42040,
49804,
2724,
20079,
338,
1700,
373,
604,
12,
15,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
36260,
2920,
33411,
366,
23739,
1,
796,
705,
19,
12,
15,
6
] |
What are the statuses and average populations of each city Plot them as bar chart, and rank in asc by the x axis please. | SELECT Status, AVG(Population) FROM city GROUP BY Status ORDER BY Status | [
2061,
389,
262,
1185,
2664,
290,
2811,
9684,
286,
1123,
1748,
28114,
606,
355,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
2124,
16488,
3387,
13,
46506,
12678,
11,
35224,
7,
45251,
8,
16034,
1748,
44441,
11050,
12678,
38678,
11050,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1185,
2664,
290,
2811,
9684,
286,
1123,
1748,
28114,
606,
355,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
2124,
16488,
3387,
13,
46506,
12678,
11,
35224,
7,
45251,
8,
16034,
1748,
44441,
11050,
12678,
38678,
11050,... |
Who was the girl on week 5 that came after week 3's Mikaela James? | SELECT week_5 FROM table_name_72 WHERE week_3 = "mikaela james" | [
8241,
373,
262,
2576,
319,
1285,
642,
326,
1625,
706,
1285,
513,
338,
17722,
3010,
64,
3700,
30,
46506,
1285,
62,
20,
16034,
3084,
62,
3672,
62,
4761,
33411,
1285,
62,
18,
796,
366,
76,
1134,
3010,
64,
474,
1047,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
2576,
319,
1285,
642,
326,
1625,
706,
1285,
513,
338,
17722,
3010,
64,
3700,
30,
46506,
1285,
62,
20,
16034,
3084,
62,
3672,
62,
4761,
33411,
1285,
62,
18,
796,
366,
76,
1134,
3010,
64,
474,
1047,
1
] |
25 Most Downvoted Users with per-post DV ratios. Users with the most downvotes cast on their questions and answers | SELECT b.OwnerUserId AS "user_link", SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) AS DownVotes, MIN(b.CreationDate) AS OldestPost, COUNT(DISTINCT b.Id) AS NumberOfPosts, SUM(CASE WHEN a.VoteTypeId = 3 THEN 1 ELSE 0 END) * 1000 / COUNT(DISTINCT b.Id) AS DV2PostsRatio FROM Votes AS a INNER JOIN Posts AS b ON a.PostI... | [
1495,
4042,
5588,
85,
5191,
18987,
351,
583,
12,
7353,
29854,
22423,
13,
18987,
351,
262,
749,
866,
29307,
3350,
319,
511,
2683,
290,
7429,
46506,
275,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
35683,
7,
34,
11159,
4209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1495,
4042,
5588,
85,
5191,
18987,
351,
583,
12,
7353,
29854,
22423,
13,
18987,
351,
262,
749,
866,
29307,
3350,
319,
511,
2683,
290,
7429,
46506,
275,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
35683,
7,
34,
11159,
4209... |
What is the 6th dail share of votes? | SELECT share_of_votes FROM table_name_67 WHERE dáil = "6th" | [
2061,
318,
262,
718,
400,
288,
603,
2648,
286,
5690,
30,
46506,
2648,
62,
1659,
62,
29307,
16034,
3084,
62,
3672,
62,
3134,
33411,
288,
6557,
346,
796,
366,
21,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
718,
400,
288,
603,
2648,
286,
5690,
30,
46506,
2648,
62,
1659,
62,
29307,
16034,
3084,
62,
3672,
62,
3134,
33411,
288,
6557,
346,
796,
366,
21,
400,
1
] |
Show each state and the number of addresses in each state Show bar chart, rank X in desc order. | SELECT state_province_county, COUNT(*) FROM Addresses GROUP BY state_province_county ORDER BY state_province_county DESC | [
15307,
1123,
1181,
290,
262,
1271,
286,
9405,
287,
1123,
1181,
5438,
2318,
8262,
11,
4279,
1395,
287,
1715,
1502,
13,
46506,
1181,
62,
15234,
924,
62,
9127,
88,
11,
327,
28270,
7,
28104,
16034,
3060,
16746,
44441,
11050,
1181,
62,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1123,
1181,
290,
262,
1271,
286,
9405,
287,
1123,
1181,
5438,
2318,
8262,
11,
4279,
1395,
287,
1715,
1502,
13,
46506,
1181,
62,
15234,
924,
62,
9127,
88,
11,
327,
28270,
7,
28104,
16034,
3060,
16746,
44441,
11050,
1181,
62,
152... |
What is the highest Pick, when College is 'Syracuse', and when Overall is less than 18? | SELECT MAX(pick) FROM table_name_40 WHERE college = "syracuse" AND overall < 18 | [
2061,
318,
262,
4511,
12346,
11,
618,
5535,
318,
705,
50,
2417,
330,
1904,
3256,
290,
618,
14674,
318,
1342,
621,
1248,
30,
46506,
25882,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
4152,
796,
366,
1837,
28268,
1,
5357,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
12346,
11,
618,
5535,
318,
705,
50,
2417,
330,
1904,
3256,
290,
618,
14674,
318,
1342,
621,
1248,
30,
46506,
25882,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
4152,
796,
366,
1837,
28268,
1,
5357,
404... |
how many superhero movies have been television films ? | SELECT COUNT("film") FROM table_203_79 WHERE "worldwide gross" = 'television film' | [
4919,
867,
17343,
6918,
423,
587,
5581,
7328,
5633,
46506,
327,
28270,
7203,
26240,
4943,
16034,
3084,
62,
22416,
62,
3720,
33411,
366,
6894,
4421,
10319,
1,
796,
705,
660,
5024,
2646,
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
] | [
4919,
867,
17343,
6918,
423,
587,
5581,
7328,
5633,
46506,
327,
28270,
7203,
26240,
4943,
16034,
3084,
62,
22416,
62,
3720,
33411,
366,
6894,
4421,
10319,
1,
796,
705,
660,
5024,
2646,
6
] |
Find the states which do not have any employee in their record. | SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees) | [
16742,
262,
2585,
543,
466,
407,
423,
597,
6538,
287,
511,
1700,
13,
46506,
1181,
62,
15234,
924,
62,
9127,
88,
16034,
9405,
33411,
5626,
2209,
62,
312,
3268,
357,
46506,
6538,
62,
21975,
62,
312,
16034,
30260,
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
] | [
16742,
262,
2585,
543,
466,
407,
423,
597,
6538,
287,
511,
1700,
13,
46506,
1181,
62,
15234,
924,
62,
9127,
88,
16034,
9405,
33411,
5626,
2209,
62,
312,
3268,
357,
46506,
6538,
62,
21975,
62,
312,
16034,
30260,
8
] |
What is the Unit for the Aircraft F.e.2b, located in Logeast? | SELECT SUM("Unit") FROM table_60760 WHERE "Aircraft" = 'f.e.2b' AND "Location" = 'logeast' | [
2061,
318,
262,
11801,
329,
262,
30767,
376,
13,
68,
13,
17,
65,
11,
5140,
287,
6706,
469,
459,
30,
46506,
35683,
7203,
26453,
4943,
16034,
3084,
62,
31980,
1899,
33411,
366,
32,
27002,
1,
796,
705,
69,
13,
68,
13,
17,
65,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
11801,
329,
262,
30767,
376,
13,
68,
13,
17,
65,
11,
5140,
287,
6706,
469,
459,
30,
46506,
35683,
7203,
26453,
4943,
16034,
3084,
62,
31980,
1899,
33411,
366,
32,
27002,
1,
796,
705,
69,
13,
68,
13,
17,
65,
6,
53... |
Show the average transaction amount for different transaction types. | SELECT transaction_type_code, AVG(amount_of_transaction) FROM transactions GROUP BY transaction_type_code | [
15307,
262,
2811,
8611,
2033,
329,
1180,
8611,
3858,
13,
46506,
8611,
62,
4906,
62,
8189,
11,
35224,
7,
17287,
62,
1659,
62,
7645,
2673,
8,
16034,
8945,
44441,
11050,
8611,
62,
4906,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2811,
8611,
2033,
329,
1180,
8611,
3858,
13,
46506,
8611,
62,
4906,
62,
8189,
11,
35224,
7,
17287,
62,
1659,
62,
7645,
2673,
8,
16034,
8945,
44441,
11050,
8611,
62,
4906,
62,
8189
] |
Percentage of good votes (up, accept, fav), accumulative. | SELECT (1.0 * (SELECT COUNT(*) FROM Votes WHERE CreationDate < @cutoff AND (VoteTypeId <= 2 OR VoteTypeId = 5))) / (1.0 * (SELECT COUNT(*) FROM Votes WHERE CreationDate < @cutoff AND (VoteTypeId != 8 AND VoteTypeId != 9))) * 100 | [
31905,
496,
286,
922,
5690,
357,
929,
11,
2453,
11,
2090,
828,
10507,
13628,
13,
46506,
357,
16,
13,
15,
1635,
357,
46506,
327,
28270,
7,
28104,
16034,
39584,
33411,
21582,
10430,
1279,
2488,
8968,
2364,
5357,
357,
37394,
6030,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31905,
496,
286,
922,
5690,
357,
929,
11,
2453,
11,
2090,
828,
10507,
13628,
13,
46506,
357,
16,
13,
15,
1635,
357,
46506,
327,
28270,
7,
28104,
16034,
39584,
33411,
21582,
10430,
1279,
2488,
8968,
2364,
5357,
357,
37394,
6030,
7390,
... |
What team was the home team when the record was 11 8 2? | SELECT "Home" FROM table_56846 WHERE "Record" = '11–8–2' | [
2061,
1074,
373,
262,
1363,
1074,
618,
262,
1700,
373,
1367,
807,
362,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
49211,
3510,
33411,
366,
23739,
1,
796,
705,
1157,
1906,
23,
1906,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
373,
262,
1363,
1074,
618,
262,
1700,
373,
1367,
807,
362,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
49211,
3510,
33411,
366,
23739,
1,
796,
705,
1157,
1906,
23,
1906,
17,
6
] |
When the transmission make/type/speed is eaton fs 5306-a manual synchromesh 6 speed, what is the value of the gcm (kg) technical capacity? | SELECT "GCM (kg) Technical Capacity" FROM table_245 WHERE "Transmission Make/Type/Speed" = 'Eaton FS 5306-A Manual Synchromesh 6 Speed' | [
2215,
262,
11478,
787,
14,
4906,
14,
12287,
318,
4483,
261,
43458,
642,
20548,
12,
64,
10107,
6171,
28663,
5069,
718,
2866,
11,
644,
318,
262,
1988,
286,
262,
308,
11215,
357,
10025,
8,
6276,
5339,
30,
46506,
366,
15916,
44,
357,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
262,
11478,
787,
14,
4906,
14,
12287,
318,
4483,
261,
43458,
642,
20548,
12,
64,
10107,
6171,
28663,
5069,
718,
2866,
11,
644,
318,
262,
1988,
286,
262,
308,
11215,
357,
10025,
8,
6276,
5339,
30,
46506,
366,
15916,
44,
357,
10... |
Name the high assists for l 103 104 (ot) | SELECT "High assists" FROM table_74179 WHERE "Score" = 'L 103–104 (OT)' | [
5376,
262,
1029,
13648,
329,
300,
15349,
14436,
357,
313,
8,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
4524,
21738,
33411,
366,
26595,
1,
796,
705,
43,
15349,
1906,
13464,
357,
2394,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1029,
13648,
329,
300,
15349,
14436,
357,
313,
8,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
4524,
21738,
33411,
366,
26595,
1,
796,
705,
43,
15349,
1906,
13464,
357,
2394,
33047
] |
What is the highest Runners-Up, when Champions is less than 0? | SELECT MAX("Runners-up") FROM table_46278 WHERE "Champions" < '0' | [
2061,
318,
262,
4511,
5660,
2741,
12,
4933,
11,
618,
6662,
318,
1342,
621,
657,
30,
46506,
25882,
7203,
10987,
2741,
12,
929,
4943,
16034,
3084,
62,
3510,
25870,
33411,
366,
1925,
4350,
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,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
5660,
2741,
12,
4933,
11,
618,
6662,
318,
1342,
621,
657,
30,
46506,
25882,
7203,
10987,
2741,
12,
929,
4943,
16034,
3084,
62,
3510,
25870,
33411,
366,
1925,
4350,
1,
1279,
705,
15,
6
] |
What was the birthplace of the player who weighs 98 KG and was born on May 1, 1984? | SELECT "Birthplace" FROM table_40954 WHERE "Weight (kg)" = '98' AND "Birthdate" = 'may 1, 1984' | [
2061,
373,
262,
48145,
286,
262,
2137,
508,
24034,
9661,
509,
38,
290,
373,
4642,
319,
1737,
352,
11,
12844,
30,
46506,
366,
38480,
5372,
1,
16034,
3084,
62,
1821,
48372,
33411,
366,
25844,
357,
10025,
16725,
796,
705,
4089,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
48145,
286,
262,
2137,
508,
24034,
9661,
509,
38,
290,
373,
4642,
319,
1737,
352,
11,
12844,
30,
46506,
366,
38480,
5372,
1,
16034,
3084,
62,
1821,
48372,
33411,
366,
25844,
357,
10025,
16725,
796,
705,
4089,
6,
5357,
... |
Which team did they play at Rich Stadium? | SELECT opponent FROM table_14423274_3 WHERE game_site = "Rich Stadium" | [
13828,
1074,
750,
484,
711,
379,
3998,
10499,
30,
46506,
6125,
16034,
3084,
62,
18444,
1954,
28857,
62,
18,
33411,
983,
62,
15654,
796,
366,
14868,
10499,
1
] | [
1,
1,
1,
1,
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,
750,
484,
711,
379,
3998,
10499,
30,
46506,
6125,
16034,
3084,
62,
18444,
1954,
28857,
62,
18,
33411,
983,
62,
15654,
796,
366,
14868,
10499,
1
] |
count the number of patients whose year of death is less than or equal to 2126 and diagnoses icd9 code is 34291? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2126.0" AND diagnoses.icd9_code = "34291" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
19420,
290,
40567,
14158,
67,
24,
2438,
318,
4974,
33551,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
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... | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
19420,
290,
40567,
14158,
67,
24,
2438,
318,
4974,
33551,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16... |
Name the mountains classification for bradley white | SELECT "Mountains Classification" FROM table_26426 WHERE "Aggressive Rider" = 'Bradley White' | [
5376,
262,
12269,
17923,
329,
865,
324,
1636,
2330,
46506,
366,
35452,
1299,
40984,
1,
16034,
3084,
62,
18897,
2075,
33411,
366,
46384,
3314,
16414,
1,
796,
705,
30805,
1636,
2635,
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,
12269,
17923,
329,
865,
324,
1636,
2330,
46506,
366,
35452,
1299,
40984,
1,
16034,
3084,
62,
18897,
2075,
33411,
366,
46384,
3314,
16414,
1,
796,
705,
30805,
1636,
2635,
6
] |
What is the name of the member country that has a Population of 1,341,664? | SELECT "Member countries" FROM table_71306 WHERE "Population" = '1,341,664' | [
2061,
318,
262,
1438,
286,
262,
2888,
1499,
326,
468,
257,
20133,
286,
352,
11,
33660,
11,
21,
2414,
30,
46506,
366,
27608,
2678,
1,
16034,
3084,
62,
4869,
20548,
33411,
366,
45251,
1,
796,
705,
16,
11,
33660,
11,
21,
2414,
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
] | [
2061,
318,
262,
1438,
286,
262,
2888,
1499,
326,
468,
257,
20133,
286,
352,
11,
33660,
11,
21,
2414,
30,
46506,
366,
27608,
2678,
1,
16034,
3084,
62,
4869,
20548,
33411,
366,
45251,
1,
796,
705,
16,
11,
33660,
11,
21,
2414,
6
] |
in which poll source did cuomo earn his top percentage rating ? | SELECT "poll source" FROM table_204_481 ORDER BY "andrew\ncuomo (d)" DESC LIMIT 1 | [
259,
543,
3278,
2723,
750,
18912,
17902,
5160,
465,
1353,
5873,
7955,
5633,
46506,
366,
30393,
2723,
1,
16034,
3084,
62,
18638,
62,
40271,
38678,
11050,
366,
392,
1809,
59,
10782,
84,
17902,
357,
67,
16725,
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,
1
] | [
259,
543,
3278,
2723,
750,
18912,
17902,
5160,
465,
1353,
5873,
7955,
5633,
46506,
366,
30393,
2723,
1,
16034,
3084,
62,
18638,
62,
40271,
38678,
11050,
366,
392,
1809,
59,
10782,
84,
17902,
357,
67,
16725,
22196,
34,
27564,
2043,
352
] |
Which is Natural Wood Keyboard with a Model of clps306? | SELECT natural_wood_keyboard FROM table_name_18 WHERE model = "clps306" | [
13828,
318,
12068,
5326,
31973,
351,
257,
9104,
286,
537,
862,
20548,
30,
46506,
3288,
62,
3822,
62,
2539,
3526,
16034,
3084,
62,
3672,
62,
1507,
33411,
2746,
796,
366,
565,
862,
20548,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
12068,
5326,
31973,
351,
257,
9104,
286,
537,
862,
20548,
30,
46506,
3288,
62,
3822,
62,
2539,
3526,
16034,
3084,
62,
3672,
62,
1507,
33411,
2746,
796,
366,
565,
862,
20548,
1
] |
Stack bar chart of school_id vs All_Home based on acc road, and show in asc by the bar. | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road | [
25896,
2318,
8262,
286,
1524,
62,
312,
3691,
1439,
62,
16060,
1912,
319,
697,
2975,
11,
290,
905,
287,
10570,
416,
262,
2318,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25896,
2318,
8262,
286,
1524,
62,
312,
3691,
1439,
62,
16060,
1912,
319,
697,
2975,
11,
290,
905,
287,
10570,
416,
262,
2318,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,
1439,
62,
16060,
11,
... |
Which position has 5 total apps? | SELECT "Position" FROM table_13794 WHERE "Total Apps" = '5' | [
13828,
2292,
468,
642,
2472,
6725,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1485,
50242,
33411,
366,
14957,
27710,
1,
796,
705,
20,
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
] | [
13828,
2292,
468,
642,
2472,
6725,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1485,
50242,
33411,
366,
14957,
27710,
1,
796,
705,
20,
6
] |
Tell me the number of medicare patients who have aortic insufficiency/re-do sternotomy aortic valve replacement as their primary disease. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " | [
24446,
502,
262,
1271,
286,
6924,
533,
3871,
508,
423,
257,
419,
291,
1035,
1648,
19777,
14,
260,
12,
4598,
26370,
38385,
257,
419,
291,
22580,
9014,
355,
511,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
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... | [
24446,
502,
262,
1271,
286,
6924,
533,
3871,
508,
423,
257,
419,
291,
1035,
1648,
19777,
14,
260,
12,
4598,
26370,
38385,
257,
419,
291,
22580,
9014,
355,
511,
4165,
4369,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
3... |
Which products has been complained by the customer who has filed least amount of complaints? | SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY COUNT(*) LIMIT 1 | [
13828,
3186,
468,
587,
13832,
416,
262,
6491,
508,
468,
5717,
1551,
2033,
286,
9687,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
11167,
62,
3672,
16034,
3186,
7054,
256,
16,
32357,
1268,
9687,
7054,
256,
17,
6177,
256,
16,
13,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
3186,
468,
587,
13832,
416,
262,
6491,
508,
468,
5717,
1551,
2033,
286,
9687,
30,
46506,
360,
8808,
1268,
4177,
256,
16,
13,
11167,
62,
3672,
16034,
3186,
7054,
256,
16,
32357,
1268,
9687,
7054,
256,
17,
6177,
256,
16,
13,
11... |
when did patient 14467 enter the hospital for the last time since 2105? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 14467 AND STRFTIME('%y', admissions.admittime) >= '2105' ORDER BY admissions.admittime DESC LIMIT 1 | [
12518,
750,
5827,
20224,
3134,
3802,
262,
4436,
329,
262,
938,
640,
1201,
362,
13348,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
20224,
3134,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20224,
3134,
3802,
262,
4436,
329,
262,
938,
640,
1201,
362,
13348,
30,
46506,
25349,
13,
324,
20124,
524,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
20224,
3134,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,... |
give me the number of patients whose diagnoses icd9 code is 4464 and drug type is base? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "4464" AND prescriptions.drug_type = "BASE" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
5846,
2414,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
14158,
67,
24,
2438,
318,
5846,
2414,
290,
2563,
2099,
318,
2779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
405... |
what are the flights from ST. LOUIS to CHARLOTTE NORTH CAROLINA leaving on friday | 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 = 25 AND DATE_DAYalias0.month_number = 6 AND DATE_DAYalias0.year = 1991)) AND to_... | [
10919,
389,
262,
13956,
422,
3563,
13,
406,
2606,
1797,
284,
28521,
43,
2394,
9328,
25273,
4221,
17368,
3535,
28893,
4305,
319,
1216,
2567,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
22560,
62,
12545,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
13956,
422,
3563,
13,
406,
2606,
1797,
284,
28521,
43,
2394,
9328,
25273,
4221,
17368,
3535,
28893,
4305,
319,
1216,
2567,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
22560,
62,
12545,
3268,
... |
what is the earliest arriving flight from HOUSTON to ORLANDO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND flight.arrival_time = (SELECT MIN(FLIGHTalias1.arrival_time) FROM airport_se... | [
10919,
318,
262,
14555,
14820,
5474,
422,
29068,
41924,
284,
6375,
28182,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
14555,
14820,
5474,
422,
29068,
41924,
284,
6375,
28182,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31... |
Who had the most touchdowns with more than 0 Field goals? | SELECT MAX(touchdowns) FROM table_name_71 WHERE field_goals > 0 | [
8241,
550,
262,
749,
17692,
351,
517,
621,
657,
7663,
4661,
30,
46506,
25882,
7,
29332,
30371,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
2214,
62,
2188,
874,
1875,
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,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
749,
17692,
351,
517,
621,
657,
7663,
4661,
30,
46506,
25882,
7,
29332,
30371,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
2214,
62,
2188,
874,
1875,
657
] |
Which country had the swimsuit score 9.67? | SELECT "Country" FROM table_72232 WHERE "Swimsuit" = '9.67' | [
13828,
1499,
550,
262,
9422,
6063,
4776,
860,
13,
3134,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
22,
1828,
2624,
33411,
366,
10462,
320,
6063,
1,
796,
705,
24,
13,
3134,
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
] | [
13828,
1499,
550,
262,
9422,
6063,
4776,
860,
13,
3134,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
22,
1828,
2624,
33411,
366,
10462,
320,
6063,
1,
796,
705,
24,
13,
3134,
6
] |
Which TV network had its series finale on May 7, 2012? | SELECT tv_network_s_ FROM table_29799700_2 WHERE series_finale = "May 7, 2012" | [
13828,
3195,
3127,
550,
663,
2168,
19523,
319,
1737,
767,
11,
2321,
30,
46506,
31557,
62,
27349,
62,
82,
62,
16034,
3084,
62,
26561,
2079,
9879,
62,
17,
33411,
2168,
62,
15643,
1000,
796,
366,
6747,
767,
11,
2321,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3195,
3127,
550,
663,
2168,
19523,
319,
1737,
767,
11,
2321,
30,
46506,
31557,
62,
27349,
62,
82,
62,
16034,
3084,
62,
26561,
2079,
9879,
62,
17,
33411,
2168,
62,
15643,
1000,
796,
366,
6747,
767,
11,
2321,
1
] |
Are there any courses I can take in the Fall or Winter semester to satisfy my ULCS requirement ? | SELECT DISTINCT COURSEalias0.department, COURSEalias0.name, COURSEalias0.number, SEMESTERalias0.semester FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, program_course AS PROGRAM_COURSEalias0... | [
8491,
612,
597,
10902,
314,
460,
1011,
287,
262,
7218,
393,
10633,
24878,
284,
15959,
616,
471,
29814,
9079,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
26011,
15,
13,
10378,
1823,
11,
37384,
5188,
26011,
15,
13,
3672,
11,
37384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
612,
597,
10902,
314,
460,
1011,
287,
262,
7218,
393,
10633,
24878,
284,
15959,
616,
471,
29814,
9079,
5633,
46506,
360,
8808,
1268,
4177,
37384,
5188,
26011,
15,
13,
10378,
1823,
11,
37384,
5188,
26011,
15,
13,
3672,
11,
37384,
... |
since 6 years ago, how many patients were given the stress ulcer prophylaxis - esomeprazole two times? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'stress ulcer prophylaxis - esomeprazole' AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(),... | [
20777,
718,
812,
2084,
11,
703,
867,
3871,
547,
1813,
262,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
1658,
462,
79,
3247,
2305,
734,
1661,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
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,
1... | [
20777,
718,
812,
2084,
11,
703,
867,
3871,
547,
1813,
262,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
1658,
462,
79,
3247,
2305,
734,
1661,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
1... |
give the number of white patients who stayed in the hospital for more than 7 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay > "7" | [
26535,
262,
1271,
286,
2330,
3871,
508,
9658,
287,
262,
4436,
329,
517,
621,
767,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
262,
1271,
286,
2330,
3871,
508,
9658,
287,
262,
4436,
329,
517,
621,
767,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
... |
Name the score for vijay singh | SELECT "Score" FROM table_80187 WHERE "Player" = 'vijay singh' | [
5376,
262,
4776,
329,
410,
2926,
323,
1702,
71,
46506,
366,
26595,
1,
16034,
3084,
62,
41531,
5774,
33411,
366,
14140,
1,
796,
705,
85,
2926,
323,
1702,
71,
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
] | [
5376,
262,
4776,
329,
410,
2926,
323,
1702,
71,
46506,
366,
26595,
1,
16034,
3084,
62,
41531,
5774,
33411,
366,
14140,
1,
796,
705,
85,
2926,
323,
1702,
71,
6
] |
Group and count the durations for each actor with a bar graph. | SELECT Duration, COUNT(Duration) FROM actor GROUP BY Duration | [
13247,
290,
954,
262,
288,
20074,
329,
1123,
8674,
351,
257,
2318,
4823,
13,
46506,
22920,
11,
327,
28270,
7,
26054,
8,
16034,
8674,
44441,
11050,
22920
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13247,
290,
954,
262,
288,
20074,
329,
1123,
8674,
351,
257,
2318,
4823,
13,
46506,
22920,
11,
327,
28270,
7,
26054,
8,
16034,
8674,
44441,
11050,
22920
] |
I want the driver for Laps more than 8 and ferrari with Grid of 8 | SELECT "Driver" FROM table_54794 WHERE "Laps" > '8' AND "Constructor" = 'ferrari' AND "Grid" = '8' | [
40,
765,
262,
4639,
329,
406,
1686,
517,
621,
807,
290,
277,
8056,
2743,
351,
24846,
286,
807,
46506,
366,
32103,
1,
16034,
3084,
62,
20,
2857,
5824,
33411,
366,
43,
1686,
1,
1875,
705,
23,
6,
5357,
366,
42316,
273,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
4639,
329,
406,
1686,
517,
621,
807,
290,
277,
8056,
2743,
351,
24846,
286,
807,
46506,
366,
32103,
1,
16034,
3084,
62,
20,
2857,
5824,
33411,
366,
43,
1686,
1,
1875,
705,
23,
6,
5357,
366,
42316,
273,
1,
796,
705,
... |
what is the largest city where the population is 6620100? | SELECT largest_city FROM table_17416221_1 WHERE population__2013_ = 6620100 | [
10919,
318,
262,
4387,
1748,
810,
262,
3265,
318,
7930,
1264,
405,
30,
46506,
4387,
62,
19205,
16034,
3084,
62,
22985,
1433,
26115,
62,
16,
33411,
3265,
834,
6390,
62,
796,
7930,
1264,
405
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4387,
1748,
810,
262,
3265,
318,
7930,
1264,
405,
30,
46506,
4387,
62,
19205,
16034,
3084,
62,
22985,
1433,
26115,
62,
16,
33411,
3265,
834,
6390,
62,
796,
7930,
1264,
405
] |
fasting plasma glucose 100 _ 125 mg / dl, and / or hemoglobin _ a1c between 5.5 and 6.4 % , and / or post _ load glucose between 140 and 199 mg / dl on a 2 _ hour oral glucose tolerance test ( ogtt ) | SELECT * FROM table_dev_29 WHERE (fasting_plasma_glucose >= 100 AND fasting_plasma_glucose <= 125) OR (hemoglobin_a1c_hba1c >= 5.5 AND hemoglobin_a1c_hba1c <= 6.4) OR (post_load_glucose >= 140 AND post_load_glucose <= 199) | [
7217,
278,
16074,
15701,
1802,
4808,
13151,
10527,
1220,
288,
75,
11,
290,
1220,
393,
16869,
49835,
4808,
257,
16,
66,
1022,
642,
13,
20,
290,
718,
13,
19,
4064,
837,
290,
1220,
393,
1281,
4808,
3440,
15701,
1022,
12713,
290,
1594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7217,
278,
16074,
15701,
1802,
4808,
13151,
10527,
1220,
288,
75,
11,
290,
1220,
393,
16869,
49835,
4808,
257,
16,
66,
1022,
642,
13,
20,
290,
718,
13,
19,
4064,
837,
290,
1220,
393,
1281,
4808,
3440,
15701,
1022,
12713,
290,
1594,
... |
What is the minimum enrollment at barton college | SELECT MIN(enrollment) FROM table_11658094_1 WHERE institution = "Barton College" | [
2061,
318,
262,
5288,
20753,
379,
30539,
261,
4152,
46506,
20625,
7,
268,
48108,
8,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
33,
41328,
5535,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
20753,
379,
30539,
261,
4152,
46506,
20625,
7,
268,
48108,
8,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
33,
41328,
5535,
1
] |
when was the first hospital discharge of patient 32154 during the previous year? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 32154 AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') ORDER BY admissions.dischtime LIMIT 1 | [
12518,
373,
262,
717,
4436,
17655,
286,
5827,
3933,
21526,
1141,
262,
2180,
614,
30,
46506,
25349,
13,
6381,
354,
2435,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
3933,
21526,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
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,
717,
4436,
17655,
286,
5827,
3933,
21526,
1141,
262,
2180,
614,
30,
46506,
25349,
13,
6381,
354,
2435,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
3933,
21526,
5357,
360,
1404,
2767,
12789,
7,
324,
8481,
13,
... |
Potentially abandoned questions with inactive owners. Returns questions that are old (+6 months), have low views and score,
have no upvoted or accept answer and where the user hasn't been active
in the last 6 months.
Modified from the query build out of this conversation
http://chat.stackexchange.com/rooms/118/convers... | SELECT p.Id AS "post_link", p.Score, p.Tags AS Tags, p.AnswerCount AS Answers, CASE WHEN p.ClosedDate IS NULL THEN NULL ELSE 'Y' END AS Closed, DATEDIFF(month, p.CreationDate, GETDATE()) AS MnthsQstAct, u.Id AS "user_link" FROM Posts AS p LEFT JOIN Users AS u ON p.OwnerUserId = u.Id JOIN PostTags ON PostTags.PostId = p... | [
25396,
3746,
9958,
2683,
351,
28621,
4393,
13,
16409,
2683,
326,
389,
1468,
11502,
21,
1933,
828,
423,
1877,
5009,
290,
4776,
11,
198,
14150,
645,
510,
85,
5191,
393,
2453,
3280,
290,
810,
262,
2836,
5818,
470,
587,
4075,
198,
259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
25396,
3746,
9958,
2683,
351,
28621,
4393,
13,
16409,
2683,
326,
389,
1468,
11502,
21,
1933,
828,
423,
1877,
5009,
290,
4776,
11,
198,
14150,
645,
510,
85,
5191,
393,
2453,
3280,
290,
810,
262,
2836,
5818,
470,
587,
4075,
198,
259,
... |
What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death? | SELECT "VFL Club(s)" FROM table_1475 WHERE "Rank held at time of death" = 'Sergeant, 8th Brigade Australian Field Artillery' | [
2061,
410,
2704,
3430,
7,
82,
8,
329,
1938,
10307,
33861,
11,
807,
400,
35889,
38132,
1373,
666,
2214,
20381,
379,
640,
286,
1918,
30,
46506,
366,
53,
3697,
6289,
7,
82,
16725,
16034,
3084,
62,
1415,
2425,
33411,
366,
27520,
2714,
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
] | [
2061,
410,
2704,
3430,
7,
82,
8,
329,
1938,
10307,
33861,
11,
807,
400,
35889,
38132,
1373,
666,
2214,
20381,
379,
640,
286,
1918,
30,
46506,
366,
53,
3697,
6289,
7,
82,
16725,
16034,
3084,
62,
1415,
2425,
33411,
366,
27520,
2714,
3... |
What's the location of Mom's Radio 95.9 Naga having a power of 10kw? | SELECT location FROM table_name_58 WHERE power__kw_ = "10kw" AND branding = "mom's radio 95.9 naga" | [
2061,
338,
262,
4067,
286,
11254,
338,
8829,
6957,
13,
24,
399,
8126,
1719,
257,
1176,
286,
838,
46265,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3365,
33411,
1176,
834,
46265,
62,
796,
366,
940,
46265,
1,
5357,
24150,
796,
366,
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
] | [
2061,
338,
262,
4067,
286,
11254,
338,
8829,
6957,
13,
24,
399,
8126,
1719,
257,
1176,
286,
838,
46265,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3365,
33411,
1176,
834,
46265,
62,
796,
366,
940,
46265,
1,
5357,
24150,
796,
366,
3... |
What years did New Zealand win? | SELECT "Year(s) won" FROM table_12272 WHERE "Country" = 'new zealand' | [
2061,
812,
750,
968,
8936,
1592,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
1065,
29807,
33411,
366,
33921,
1,
796,
705,
3605,
27689,
392,
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,
812,
750,
968,
8936,
1592,
30,
46506,
366,
17688,
7,
82,
8,
1839,
1,
16034,
3084,
62,
1065,
29807,
33411,
366,
33921,
1,
796,
705,
3605,
27689,
392,
6
] |
What is the Date of the Vigo Tournament? | SELECT "Date" FROM table_48259 WHERE "Tournament" = 'vigo' | [
2061,
318,
262,
7536,
286,
262,
569,
14031,
9595,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2780,
25191,
33411,
366,
51,
5138,
1,
796,
705,
85,
14031,
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,
318,
262,
7536,
286,
262,
569,
14031,
9595,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2780,
25191,
33411,
366,
51,
5138,
1,
796,
705,
85,
14031,
6
] |
When did a Competition of friendly, and a Score of 2 1, and a Venue of philadelphia , pennsylvania occur? | SELECT "Date" FROM table_4350 WHERE "Competition" = 'friendly' AND "Score" = '2–1' AND "Venue" = 'philadelphia , pennsylvania' | [
2215,
750,
257,
27348,
286,
8030,
11,
290,
257,
15178,
286,
362,
352,
11,
290,
257,
9932,
518,
286,
5206,
8273,
837,
22429,
9270,
3051,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3559,
1120,
33411,
366,
7293,
15620,
1,
796,
705,
131... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2215,
750,
257,
27348,
286,
8030,
11,
290,
257,
15178,
286,
362,
352,
11,
290,
257,
9932,
518,
286,
5206,
8273,
837,
22429,
9270,
3051,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3559,
1120,
33411,
366,
7293,
15620,
1,
796,
705,
131... |
count the number of patients whose year of birth is less than 2065 and procedure short title is skin closure nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2065" AND procedures.short_title = "Skin closure NEC" | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
290,
8771,
1790,
3670,
318,
4168,
16512,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
9127,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
2996,
290,
8771,
1790,
3670,
318,
4168,
16512,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
323... |
Users who have never interacted with the site. | SELECT COUNT(*) FROM Users AS u LEFT OUTER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE LastAccessDate < CURRENT_TIMESTAMP() - 365 AND UpVotes = 0 AND DownVotes = 0 AND p.Id IS NULL AND Reputation = 1 | [
14490,
508,
423,
1239,
49236,
351,
262,
2524,
13,
46506,
327,
28270,
7,
28104,
16034,
18987,
7054,
334,
12509,
9792,
16289,
1137,
32357,
1268,
12043,
7054,
279,
6177,
334,
13,
7390,
796,
279,
13,
42419,
12982,
7390,
33411,
4586,
15457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14490,
508,
423,
1239,
49236,
351,
262,
2524,
13,
46506,
327,
28270,
7,
28104,
16034,
18987,
7054,
334,
12509,
9792,
16289,
1137,
32357,
1268,
12043,
7054,
279,
6177,
334,
13,
7390,
796,
279,
13,
42419,
12982,
7390,
33411,
4586,
15457,
... |
Who had the lowest Best time that also had a Qual 2 of 49.887? | SELECT MIN("Best") FROM table_33526 WHERE "Qual 2" = '49.887' | [
8241,
550,
262,
9016,
6705,
640,
326,
635,
550,
257,
9537,
362,
286,
5125,
13,
46660,
30,
46506,
20625,
7203,
13014,
4943,
16034,
3084,
62,
27326,
2075,
33411,
366,
46181,
362,
1,
796,
705,
2920,
13,
46660,
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,
550,
262,
9016,
6705,
640,
326,
635,
550,
257,
9537,
362,
286,
5125,
13,
46660,
30,
46506,
20625,
7203,
13014,
4943,
16034,
3084,
62,
27326,
2075,
33411,
366,
46181,
362,
1,
796,
705,
2920,
13,
46660,
6
] |
how many employees does mundelein high school have ? | SELECT "# of employees" FROM table_203_737 WHERE "employer" = 'mundelein high school' | [
4919,
867,
4409,
857,
27943,
11129,
259,
1029,
1524,
423,
5633,
46506,
25113,
286,
4409,
1,
16034,
3084,
62,
22416,
62,
22,
2718,
33411,
366,
7033,
263,
1,
796,
705,
20125,
11129,
259,
1029,
1524,
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
] | [
4919,
867,
4409,
857,
27943,
11129,
259,
1029,
1524,
423,
5633,
46506,
25113,
286,
4409,
1,
16034,
3084,
62,
22416,
62,
22,
2718,
33411,
366,
7033,
263,
1,
796,
705,
20125,
11129,
259,
1029,
1524,
6
] |
what was the name of the medicine that patient 60180 was prescribed with after having had a inj/inf platelet inhibit procedure in 09/2104 within 2 days? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 60180 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | [
10919,
373,
262,
1438,
286,
262,
9007,
326,
5827,
49231,
1795,
373,
14798,
351,
706,
1719,
550,
257,
2529,
14,
10745,
7480,
1616,
26776,
8771,
287,
7769,
14,
17,
13464,
1626,
362,
1528,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
9007,
326,
5827,
49231,
1795,
373,
14798,
351,
706,
1719,
550,
257,
2529,
14,
10745,
7480,
1616,
26776,
8771,
287,
7769,
14,
17,
13464,
1626,
362,
1528,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506... |
Who was the opponent on May 20? | SELECT "Opponent" FROM table_71209 WHERE "Date" = 'may 20' | [
8241,
373,
262,
6125,
319,
1737,
1160,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
49517,
2931,
33411,
366,
10430,
1,
796,
705,
11261,
1160,
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
] | [
8241,
373,
262,
6125,
319,
1737,
1160,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
49517,
2931,
33411,
366,
10430,
1,
796,
705,
11261,
1160,
6
] |
Question rep vs Answer rep. My scores from questions and answers | SELECT CASE WHEN p.PostTypeId = 1 THEN 'Question' ELSE 'Answer' END AS "Post Type", CASE WHEN p.PostTypeId = 1 THEN SUM(p.Score) * 5 WHEN p.PostTypeId = 2 THEN SUM(p.Score) * 10 END AS "Score" FROM Posts AS p WHERE p.OwnerUserId = 31716 GROUP BY p.PostTypeId | [
24361,
1128,
3691,
23998,
1128,
13,
2011,
8198,
422,
2683,
290,
7429,
46506,
42001,
42099,
279,
13,
6307,
6030,
7390,
796,
352,
42243,
705,
24361,
6,
17852,
5188,
705,
33706,
6,
23578,
7054,
366,
6307,
5994,
1600,
42001,
42099,
279,
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... | [
24361,
1128,
3691,
23998,
1128,
13,
2011,
8198,
422,
2683,
290,
7429,
46506,
42001,
42099,
279,
13,
6307,
6030,
7390,
796,
352,
42243,
705,
24361,
6,
17852,
5188,
705,
33706,
6,
23578,
7054,
366,
6307,
5994,
1600,
42001,
42099,
279,
13,... |
What is the last year on this list someone was first elected? | SELECT MAX("First elected") FROM table_789 | [
2061,
318,
262,
938,
614,
319,
428,
1351,
2130,
373,
717,
7018,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
40401
] | [
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,
938,
614,
319,
428,
1351,
2130,
373,
717,
7018,
30,
46506,
25882,
7203,
5962,
7018,
4943,
16034,
3084,
62,
40401
] |
What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2? | SELECT MAX("Wk 9") FROM table_38961 WHERE "Wk 6" = '7' AND "Wk 10" > '2' AND "Wk 7" = '5' AND "Wk 11" < '2' | [
2061,
318,
262,
4511,
1285,
860,
326,
550,
257,
1285,
718,
286,
767,
11,
257,
1285,
838,
286,
3744,
621,
362,
11,
257,
1285,
767,
286,
642,
11,
290,
257,
1285,
1367,
1342,
621,
362,
30,
46506,
25882,
7203,
54,
74,
860,
4943,
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... | [
2061,
318,
262,
4511,
1285,
860,
326,
550,
257,
1285,
718,
286,
767,
11,
257,
1285,
838,
286,
3744,
621,
362,
11,
257,
1285,
767,
286,
642,
11,
290,
257,
1285,
1367,
1342,
621,
362,
30,
46506,
25882,
7203,
54,
74,
860,
4943,
16034... |
What are the names and distances for all airplanes Visualize by bar chart, list by the X-axis in asc. | SELECT name, distance FROM aircraft ORDER BY name | [
2061,
389,
262,
3891,
290,
18868,
329,
477,
32808,
15612,
1096,
416,
2318,
8262,
11,
1351,
416,
262,
1395,
12,
22704,
287,
10570,
13,
46506,
1438,
11,
5253,
16034,
6215,
38678,
11050,
1438
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
290,
18868,
329,
477,
32808,
15612,
1096,
416,
2318,
8262,
11,
1351,
416,
262,
1395,
12,
22704,
287,
10570,
13,
46506,
1438,
11,
5253,
16034,
6215,
38678,
11050,
1438
] |
Who is the team with the ft% of 77.6? | SELECT team FROM table_20107762_1 WHERE ft_percentage = "77.6" | [
8241,
318,
262,
1074,
351,
262,
10117,
4,
286,
8541,
13,
21,
30,
46506,
1074,
16034,
3084,
62,
1264,
2998,
48194,
62,
16,
33411,
10117,
62,
25067,
496,
796,
366,
3324,
13,
21,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
351,
262,
10117,
4,
286,
8541,
13,
21,
30,
46506,
1074,
16034,
3084,
62,
1264,
2998,
48194,
62,
16,
33411,
10117,
62,
25067,
496,
796,
366,
3324,
13,
21,
1
] |
How big is the Venue of Brunswick Street Oval? | SELECT SUM(crowd) FROM table_name_47 WHERE venue = "brunswick street oval" | [
2437,
1263,
318,
262,
9932,
518,
286,
32211,
3530,
25165,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
14359,
796,
366,
1671,
403,
30961,
4675,
41186,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1263,
318,
262,
9932,
518,
286,
32211,
3530,
25165,
30,
46506,
35683,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
14359,
796,
366,
1671,
403,
30961,
4675,
41186,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.