instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many addresses have zip code 197? | SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = "197" | [
2437,
867,
9405,
423,
19974,
2438,
29903,
30,
46506,
327,
28270,
7,
28104,
16034,
5984,
7707,
7597,
1546,
33411,
19974,
62,
7353,
8189,
796,
366,
24991,
1
] | [
1,
1,
1,
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,
9405,
423,
19974,
2438,
29903,
30,
46506,
327,
28270,
7,
28104,
16034,
5984,
7707,
7597,
1546,
33411,
19974,
62,
7353,
8189,
796,
366,
24991,
1
] |
What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races? | SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 8 UNION SELECT T1.forename, T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 5 | [
2061,
389,
262,
6643,
6,
717,
3891,
11,
12957,
3891,
11,
290,
220,
2340,
329,
477,
883,
326,
550,
517,
621,
807,
9911,
393,
14888,
287,
517,
621,
642,
9558,
30,
46506,
309,
16,
13,
754,
3672,
11,
309,
16,
13,
82,
700,
480,
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... | [
2061,
389,
262,
6643,
6,
717,
3891,
11,
12957,
3891,
11,
290,
220,
2340,
329,
477,
883,
326,
550,
517,
621,
807,
9911,
393,
14888,
287,
517,
621,
642,
9558,
30,
46506,
309,
16,
13,
754,
3672,
11,
309,
16,
13,
82,
700,
480,
11,
... |
Who is the Winning Driver that has a Winning team of Engstler Motorsport Engstler Motorsport and also the Date 22 July? | SELECT "Winning driver" FROM table_74900 WHERE "Winning team" = 'engstler motorsport engstler motorsport' AND "Date" = '22 july' | [
8241,
318,
262,
40983,
12434,
326,
468,
257,
40983,
1074,
286,
1985,
301,
1754,
49996,
1985,
301,
1754,
49996,
290,
635,
262,
7536,
2534,
2901,
30,
46506,
366,
16643,
768,
4639,
1,
16034,
3084,
62,
22,
2920,
405,
33411,
366,
16643,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40983,
12434,
326,
468,
257,
40983,
1074,
286,
1985,
301,
1754,
49996,
1985,
301,
1754,
49996,
290,
635,
262,
7536,
2534,
2901,
30,
46506,
366,
16643,
768,
4639,
1,
16034,
3084,
62,
22,
2920,
405,
33411,
366,
16643,
76... |
What are first and last names of players participating in all star game in 1998? | SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998 | [
2061,
389,
717,
290,
938,
3891,
286,
1938,
11983,
287,
477,
3491,
983,
287,
7795,
30,
46506,
1438,
62,
11085,
11,
1438,
62,
12957,
16034,
2137,
7054,
309,
16,
32357,
1268,
477,
62,
7364,
7054,
309,
17,
6177,
309,
16,
13,
7829,
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
] | [
2061,
389,
717,
290,
938,
3891,
286,
1938,
11983,
287,
477,
3491,
983,
287,
7795,
30,
46506,
1438,
62,
11085,
11,
1438,
62,
12957,
16034,
2137,
7054,
309,
16,
32357,
1268,
477,
62,
7364,
7054,
309,
17,
6177,
309,
16,
13,
7829,
62,
... |
What's the record when the attendance was 28,531? | SELECT record FROM table_name_62 WHERE attendance = "28,531" | [
2061,
338,
262,
1700,
618,
262,
14858,
373,
2579,
11,
20,
3132,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5237,
33411,
14858,
796,
366,
2078,
11,
20,
3132,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1700,
618,
262,
14858,
373,
2579,
11,
20,
3132,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
5237,
33411,
14858,
796,
366,
2078,
11,
20,
3132,
1
] |
How many players had overall 78? | SELECT COUNT("Player") FROM table_17212 WHERE "Overall" = '78' | [
2437,
867,
1938,
550,
4045,
8699,
30,
46506,
327,
28270,
7203,
14140,
4943,
16034,
3084,
62,
1558,
21777,
33411,
366,
16350,
1,
796,
705,
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
] | [
2437,
867,
1938,
550,
4045,
8699,
30,
46506,
327,
28270,
7203,
14140,
4943,
16034,
3084,
62,
1558,
21777,
33411,
366,
16350,
1,
796,
705,
3695,
6
] |
When is the japanese title what is the japanese translation? | SELECT "Japanese translation" FROM table_2458 WHERE "Japanese title" = '七色アーチ' | [
2215,
318,
262,
474,
2674,
2771,
3670,
644,
318,
262,
474,
2674,
2771,
11059,
30,
46506,
366,
25324,
11059,
1,
16034,
3084,
62,
1731,
3365,
33411,
366,
25324,
3670,
1,
796,
705,
10310,
225,
164,
231,
110,
11839,
12045,
223,
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
] | [
2215,
318,
262,
474,
2674,
2771,
3670,
644,
318,
262,
474,
2674,
2771,
11059,
30,
46506,
366,
25324,
11059,
1,
16034,
3084,
62,
1731,
3365,
33411,
366,
25324,
3670,
1,
796,
705,
10310,
225,
164,
231,
110,
11839,
12045,
223,
6
] |
Which house has a Boarding/Day value of Day? | SELECT "House" FROM table_63347 WHERE "Boarding/Day" = 'day' | [
13828,
2156,
468,
257,
5926,
278,
14,
12393,
1988,
286,
3596,
30,
46506,
366,
18102,
1,
16034,
3084,
62,
21,
2091,
2857,
33411,
366,
29828,
278,
14,
12393,
1,
796,
705,
820,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2156,
468,
257,
5926,
278,
14,
12393,
1988,
286,
3596,
30,
46506,
366,
18102,
1,
16034,
3084,
62,
21,
2091,
2857,
33411,
366,
29828,
278,
14,
12393,
1,
796,
705,
820,
6
] |
Name the number of number in season for 26 | SELECT COUNT(no_in_season) FROM table_22347090_5 WHERE no_in_series = 26 | [
5376,
262,
1271,
286,
1271,
287,
1622,
329,
2608,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1828,
2682,
2154,
3829,
62,
20,
33411,
645,
62,
259,
62,
25076,
796,
2608
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
287,
1622,
329,
2608,
46506,
327,
28270,
7,
3919,
62,
259,
62,
6230,
8,
16034,
3084,
62,
1828,
2682,
2154,
3829,
62,
20,
33411,
645,
62,
259,
62,
25076,
796,
2608
] |
what were the marital status of patient 28277 on the first hospital visit? | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 28277 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | [
10919,
547,
262,
29555,
3722,
286,
5827,
2579,
27019,
319,
262,
717,
4436,
3187,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2579,
27019,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
29555,
3722,
286,
5827,
2579,
27019,
319,
262,
717,
4436,
3187,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
2579,
27019,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180... |
What was the mintage when the theme was Santa Claus? | SELECT mintage FROM table_name_15 WHERE theme = "santa claus" | [
2061,
373,
262,
285,
14630,
618,
262,
7505,
373,
8909,
33989,
30,
46506,
285,
14630,
16034,
3084,
62,
3672,
62,
1314,
33411,
7505,
796,
366,
82,
4910,
537,
8717,
1
] | [
1,
1,
1,
1,
1,
1,
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,
285,
14630,
618,
262,
7505,
373,
8909,
33989,
30,
46506,
285,
14630,
16034,
3084,
62,
3672,
62,
1314,
33411,
7505,
796,
366,
82,
4910,
537,
8717,
1
] |
how many patients born before the year 2052 had guillain barre as the primary disease? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND demographic.dob_year < "2052" | [
4919,
867,
3871,
4642,
878,
262,
614,
1160,
4309,
550,
915,
359,
391,
2318,
260,
355,
262,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
4642,
878,
262,
614,
1160,
4309,
550,
915,
359,
391,
2318,
260,
355,
262,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
3... |
Show the name of the shop that have the largest quantity of devices in stock. | SELECT T2.shop_name FROM stock AS T1 JOIN shop AS T2 ON T1.shop_id = T2.shop_id GROUP BY T1.shop_id ORDER BY SUM(T1.quantity) DESC LIMIT 1 | [
15307,
262,
1438,
286,
262,
6128,
326,
423,
262,
4387,
12040,
286,
4410,
287,
4283,
13,
46506,
309,
17,
13,
24643,
62,
3672,
16034,
4283,
7054,
309,
16,
32357,
1268,
6128,
7054,
309,
17,
6177,
309,
16,
13,
24643,
62,
312,
796,
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... | [
15307,
262,
1438,
286,
262,
6128,
326,
423,
262,
4387,
12040,
286,
4410,
287,
4283,
13,
46506,
309,
17,
13,
24643,
62,
3672,
16034,
4283,
7054,
309,
16,
32357,
1268,
6128,
7054,
309,
17,
6177,
309,
16,
13,
24643,
62,
312,
796,
309,
... |
Which Opponent has a Time of 2:31? | SELECT "Opponent" FROM table_36964 WHERE "Time" = '2:31' | [
13828,
9385,
3471,
468,
257,
3862,
286,
362,
25,
3132,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
30803,
2414,
33411,
366,
7575,
1,
796,
705,
17,
25,
3132,
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
] | [
13828,
9385,
3471,
468,
257,
3862,
286,
362,
25,
3132,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
30803,
2414,
33411,
366,
7575,
1,
796,
705,
17,
25,
3132,
6
] |
What is Date, when Location is Polo Grounds, when Winner is Philadelphia Eagles, and when Year is 1948? | SELECT "Date" FROM table_8926 WHERE "Location" = 'polo grounds' AND "Winner" = 'philadelphia eagles' AND "Year" = '1948' | [
2061,
318,
7536,
11,
618,
13397,
318,
49341,
44201,
11,
618,
25358,
318,
8857,
13785,
11,
290,
618,
6280,
318,
21794,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
4531,
2075,
33411,
366,
14749,
1,
796,
705,
79,
14057,
9384,
6,
5357,
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
] | [
2061,
318,
7536,
11,
618,
13397,
318,
49341,
44201,
11,
618,
25358,
318,
8857,
13785,
11,
290,
618,
6280,
318,
21794,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
4531,
2075,
33411,
366,
14749,
1,
796,
705,
79,
14057,
9384,
6,
5357,
3... |
What was the result of the game seen by 31095 people? | SELECT result FROM table_18207285_2 WHERE attendance = 31095 | [
2061,
373,
262,
1255,
286,
262,
983,
1775,
416,
28947,
3865,
661,
30,
46506,
1255,
16034,
3084,
62,
1507,
22745,
26279,
62,
17,
33411,
14858,
796,
28947,
3865
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
1775,
416,
28947,
3865,
661,
30,
46506,
1255,
16034,
3084,
62,
1507,
22745,
26279,
62,
17,
33411,
14858,
796,
28947,
3865
] |
Which surface has a score in the final of 4 6, 3 6? | SELECT "Surface" FROM table_56674 WHERE "Score in the final" = '4–6, 3–6' | [
13828,
4417,
468,
257,
4776,
287,
262,
2457,
286,
604,
718,
11,
513,
718,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
20,
2791,
4524,
33411,
366,
26595,
287,
262,
2457,
1,
796,
705,
19,
1906,
21,
11,
513,
1906,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4417,
468,
257,
4776,
287,
262,
2457,
286,
604,
718,
11,
513,
718,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
20,
2791,
4524,
33411,
366,
26595,
287,
262,
2457,
1,
796,
705,
19,
1906,
21,
11,
513,
1906,
21,
6
] |
ongoing invasive candida infection | SELECT * FROM table_train_28 WHERE invasive_candida_infection = 1 | [
25162,
278,
27376,
2960,
64,
10280,
46506,
1635,
16034,
3084,
62,
27432,
62,
2078,
33411,
27376,
62,
46188,
3755,
62,
27816,
295,
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
] | [
25162,
278,
27376,
2960,
64,
10280,
46506,
1635,
16034,
3084,
62,
27432,
62,
2078,
33411,
27376,
62,
46188,
3755,
62,
27816,
295,
796,
352
] |
What is the birth date of A. J. Holmes who has a right-handed batting style? | SELECT "Birth date" FROM table_54029 WHERE "Batting style" = 'right-handed' AND "Name" = 'a. j. holmes' | [
2061,
318,
262,
4082,
3128,
286,
317,
13,
449,
13,
17628,
508,
468,
257,
826,
12,
13638,
23761,
3918,
30,
46506,
366,
38480,
3128,
1,
16034,
3084,
62,
35005,
1959,
33411,
366,
24541,
889,
3918,
1,
796,
705,
3506,
12,
13638,
6,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4082,
3128,
286,
317,
13,
449,
13,
17628,
508,
468,
257,
826,
12,
13638,
23761,
3918,
30,
46506,
366,
38480,
3128,
1,
16034,
3084,
62,
35005,
1959,
33411,
366,
24541,
889,
3918,
1,
796,
705,
3506,
12,
13638,
6,
5357,... |
What Monument was built after 1887 in Warren County? | SELECT "Monument name" FROM table_34780 WHERE "Year built" > '1887' AND "County" = 'warren' | [
2061,
33075,
373,
3170,
706,
1248,
5774,
287,
11328,
3418,
30,
46506,
366,
9069,
1713,
1438,
1,
16034,
3084,
62,
30995,
1795,
33411,
366,
17688,
3170,
1,
1875,
705,
1507,
5774,
6,
5357,
366,
12332,
88,
1,
796,
705,
5767,
918,
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,
33075,
373,
3170,
706,
1248,
5774,
287,
11328,
3418,
30,
46506,
366,
9069,
1713,
1438,
1,
16034,
3084,
62,
30995,
1795,
33411,
366,
17688,
3170,
1,
1875,
705,
1507,
5774,
6,
5357,
366,
12332,
88,
1,
796,
705,
5767,
918,
6
] |
what were the top three most frequent procedures that patients took in the same month after receiving open liver biopsy since 2102? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admi... | [
10919,
547,
262,
1353,
1115,
749,
10792,
9021,
326,
3871,
1718,
287,
262,
976,
1227,
706,
6464,
1280,
14383,
3182,
44522,
1201,
362,
15377,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
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,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1353,
1115,
749,
10792,
9021,
326,
3871,
1718,
287,
262,
976,
1227,
706,
6464,
1280,
14383,
3182,
44522,
1201,
362,
15377,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
6... |
For the Fall or Winter terms are there any 100 -level courses available ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'WN' AND semester.year = 2017)) AND course.course_id = course_offering.course_id AND course.department = 'department0... | [
1890,
262,
7218,
393,
10633,
2846,
389,
612,
597,
1802,
532,
5715,
10902,
1695,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
7218,
393,
10633,
2846,
389,
612,
597,
1802,
532,
5715,
10902,
1695,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
... |
How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? | SELECT SUM("Cuts made") FROM table_57172 WHERE "Wins" < '1' AND "Top-5" = '1' AND "Top-10" > '4' | [
2437,
867,
6630,
547,
925,
618,
612,
6304,
470,
597,
7864,
475,
550,
257,
1353,
12,
20,
286,
352,
290,
257,
1353,
838,
4025,
621,
604,
30,
46506,
35683,
7203,
34,
5500,
925,
4943,
16034,
3084,
62,
3553,
23628,
33411,
366,
54,
1040,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6630,
547,
925,
618,
612,
6304,
470,
597,
7864,
475,
550,
257,
1353,
12,
20,
286,
352,
290,
257,
1353,
838,
4025,
621,
604,
30,
46506,
35683,
7203,
34,
5500,
925,
4943,
16034,
3084,
62,
3553,
23628,
33411,
366,
54,
1040,
... |
What percent of respondents had no opinion on George H.W. Bush? | SELECT george_h_w_bush FROM table_name_84 WHERE result = "no opinion" | [
2061,
1411,
286,
14502,
550,
645,
4459,
319,
4502,
367,
13,
54,
13,
5511,
30,
46506,
4903,
3643,
62,
71,
62,
86,
62,
50231,
16034,
3084,
62,
3672,
62,
5705,
33411,
1255,
796,
366,
3919,
4459,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1411,
286,
14502,
550,
645,
4459,
319,
4502,
367,
13,
54,
13,
5511,
30,
46506,
4903,
3643,
62,
71,
62,
86,
62,
50231,
16034,
3084,
62,
3672,
62,
5705,
33411,
1255,
796,
366,
3919,
4459,
1
] |
count the number of patients whose diagnoses icd9 code is 7907 and drug route is iv? | 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 = "7907" AND prescriptions.route = "IV" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
9225,
2998,
290,
2563,
6339,
318,
21628,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
9225,
2998,
290,
2563,
6339,
318,
21628,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6... |
What are the attribute data types with more than 3 attribute definitions? | SELECT attribute_data_type FROM attribute_definitions GROUP BY attribute_data_type HAVING COUNT(*) > 3 | [
2061,
389,
262,
11688,
1366,
3858,
351,
517,
621,
513,
11688,
17336,
30,
46506,
11688,
62,
7890,
62,
4906,
16034,
11688,
62,
4299,
50101,
44441,
11050,
11688,
62,
7890,
62,
4906,
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,
1,
1,
1,
1
] | [
2061,
389,
262,
11688,
1366,
3858,
351,
517,
621,
513,
11688,
17336,
30,
46506,
11688,
62,
7890,
62,
4906,
16034,
11688,
62,
4299,
50101,
44441,
11050,
11688,
62,
7890,
62,
4906,
367,
10116,
2751,
327,
28270,
7,
28104,
1875,
513
] |
what is date of birth and insurance of subject name jerry deberry? | SELECT demographic.dob, demographic.insurance FROM demographic WHERE demographic.name = "Jerry Deberry" | [
10919,
318,
3128,
286,
4082,
290,
5096,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
4082,
290,
5096,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
what is patient 24517's minimum arterial bp [diastolic] value until 08/22/2104? | SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24517)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte... | [
10919,
318,
5827,
29637,
1558,
338,
5288,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
1988,
1566,
8487,
14,
1828,
14,
17,
13464,
30,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
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,
318,
5827,
29637,
1558,
338,
5288,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
1988,
1566,
8487,
14,
1828,
14,
17,
13464,
30,
46506,
20625,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13... |
How many values for INT's occur with more than 0 yards, over 6 sacks, and average above 17.5? | SELECT COUNT("INT'S") FROM table_37003 WHERE "Yards" > '0' AND "Sacks" > '6' AND "Average" > '17.5' | [
2437,
867,
3815,
329,
17828,
338,
3051,
351,
517,
621,
657,
5695,
11,
625,
718,
23249,
11,
290,
2811,
2029,
1596,
13,
20,
30,
46506,
327,
28270,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
2718,
11245,
33411,
366,
56,
1371,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3815,
329,
17828,
338,
3051,
351,
517,
621,
657,
5695,
11,
625,
718,
23249,
11,
290,
2811,
2029,
1596,
13,
20,
30,
46506,
327,
28270,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
2718,
11245,
33411,
366,
56,
1371,
1,
1875,
... |
List a user's rejected suggested edits. List all the rejected suggested edits proposed by a given user. | SELECT 'site://suggested-edits/' + CAST(s.Id AS TEXT(20)) + '|' + CASE LENGTH(LTRIM(s.Comment)) WHEN 0 THEN 'none' ELSE s.Comment END AS "suggested_edit", s.PostId AS "post_link", s.CreationDate AS "creation_date", s.RejectionDate AS "rejection_date" FROM SuggestedEdits AS s WHERE s.OwnerUserId = '##UserId##' AND NOT s... | [
8053,
257,
2836,
338,
8606,
5220,
31671,
13,
7343,
477,
262,
8606,
5220,
31671,
5150,
416,
257,
1813,
2836,
13,
46506,
705,
15654,
1378,
47811,
276,
12,
276,
896,
14,
6,
1343,
327,
11262,
7,
82,
13,
7390,
7054,
40383,
7,
1238,
4008,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8053,
257,
2836,
338,
8606,
5220,
31671,
13,
7343,
477,
262,
8606,
5220,
31671,
5150,
416,
257,
1813,
2836,
13,
46506,
705,
15654,
1378,
47811,
276,
12,
276,
896,
14,
6,
1343,
327,
11262,
7,
82,
13,
7390,
7054,
40383,
7,
1238,
4008,... |
What Scores by each individual judge has a Status of current, and a Co-contestant (Yaar vs. Pyaar) of krushna abhishek? | SELECT "Scores by each individual judge" FROM table_12298 WHERE "Status" = 'current' AND "Co-contestant (Yaar vs. Pyaar)" = 'krushna abhishek' | [
2061,
44654,
416,
1123,
1981,
5052,
468,
257,
12678,
286,
1459,
11,
290,
257,
1766,
12,
3642,
395,
415,
357,
56,
64,
283,
3691,
13,
350,
3972,
283,
8,
286,
479,
37357,
2616,
450,
14363,
258,
74,
30,
46506,
366,
3351,
2850,
416,
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... | [
2061,
44654,
416,
1123,
1981,
5052,
468,
257,
12678,
286,
1459,
11,
290,
257,
1766,
12,
3642,
395,
415,
357,
56,
64,
283,
3691,
13,
350,
3972,
283,
8,
286,
479,
37357,
2616,
450,
14363,
258,
74,
30,
46506,
366,
3351,
2850,
416,
11... |
What is Full Name, when Age is '20', and when Occupation is 'Student'? | SELECT "Full name" FROM table_76688 WHERE "Age\u00b9" = '20' AND "Occupation\u00b2" = 'student' | [
2061,
318,
6462,
6530,
11,
618,
7129,
318,
705,
1238,
3256,
290,
618,
15227,
341,
318,
705,
38778,
30960,
46506,
366,
13295,
1438,
1,
16034,
3084,
62,
22,
2791,
3459,
33411,
366,
23396,
59,
84,
405,
65,
24,
1,
796,
705,
1238,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
6462,
6530,
11,
618,
7129,
318,
705,
1238,
3256,
290,
618,
15227,
341,
318,
705,
38778,
30960,
46506,
366,
13295,
1438,
1,
16034,
3084,
62,
22,
2791,
3459,
33411,
366,
23396,
59,
84,
405,
65,
24,
1,
796,
705,
1238,
6,
5... |
How many vacant seats were filled by newcomer Joseph H. Bottum (r)? | SELECT COUNT(vacator) FROM table_1802522_3 WHERE successor = "Joseph H. Bottum (R)" | [
2437,
867,
23957,
8632,
547,
5901,
416,
41422,
7212,
367,
13,
14835,
388,
357,
81,
19427,
46506,
327,
28270,
7,
85,
330,
1352,
8,
16034,
3084,
62,
15259,
1495,
1828,
62,
18,
33411,
17270,
796,
366,
29458,
367,
13,
14835,
388,
357,
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
] | [
2437,
867,
23957,
8632,
547,
5901,
416,
41422,
7212,
367,
13,
14835,
388,
357,
81,
19427,
46506,
327,
28270,
7,
85,
330,
1352,
8,
16034,
3084,
62,
15259,
1495,
1828,
62,
18,
33411,
17270,
796,
366,
29458,
367,
13,
14835,
388,
357,
4... |
which player is the shortest at only 5 ft 7 in ? | SELECT "name" FROM table_203_219 ORDER BY "height" LIMIT 1 | [
4758,
2137,
318,
262,
35581,
379,
691,
642,
10117,
767,
287,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
28896,
38678,
11050,
366,
17015,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
2137,
318,
262,
35581,
379,
691,
642,
10117,
767,
287,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
28896,
38678,
11050,
366,
17015,
1,
27564,
2043,
352
] |
how many prescriptions were issued for potassium chloride in nacl 20-0.9 meq/l-% iv soln? | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'potassium chloride in nacl 20-0.9 meq/l-% iv soln' | [
4919,
867,
34092,
547,
4884,
329,
33156,
44921,
287,
299,
37779,
1160,
12,
15,
13,
24,
502,
80,
14,
75,
12,
4,
21628,
1540,
77,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
13059,
26663,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
34092,
547,
4884,
329,
33156,
44921,
287,
299,
37779,
1160,
12,
15,
13,
24,
502,
80,
14,
75,
12,
4,
21628,
1540,
77,
30,
46506,
327,
28270,
7,
28104,
16034,
14103,
33411,
14103,
13,
30349,
3672,
796,
705,
13059,
26663,
44... |
What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6? | SELECT date FROM table_name_36 WHERE location_attendance = "madison square garden" AND game < 6 AND team = "seattle" | [
2061,
318,
262,
3128,
286,
262,
983,
5140,
287,
14909,
9276,
11652,
11,
618,
262,
1074,
318,
7312,
290,
262,
983,
1271,
318,
1342,
621,
718,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
4067,
62,
1078,
437,
590,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
983,
5140,
287,
14909,
9276,
11652,
11,
618,
262,
1074,
318,
7312,
290,
262,
983,
1271,
318,
1342,
621,
718,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2623,
33411,
4067,
62,
1078,
437,
590,
796,
366... |
Which school in Balclutha has a roll smaller than 55? | SELECT "Name" FROM table_70437 WHERE "Area" = 'balclutha' AND "Roll" < '55' | [
13828,
1524,
287,
8528,
565,
1071,
64,
468,
257,
4836,
4833,
621,
5996,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
32869,
2718,
33411,
366,
30547,
1,
796,
705,
6893,
565,
1071,
64,
6,
5357,
366,
26869,
1,
1279,
705,
2816,
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
] | [
13828,
1524,
287,
8528,
565,
1071,
64,
468,
257,
4836,
4833,
621,
5996,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
32869,
2718,
33411,
366,
30547,
1,
796,
705,
6893,
565,
1071,
64,
6,
5357,
366,
26869,
1,
1279,
705,
2816,
6
] |
Find meter_400 and meter_100 , and visualize them by a bar chart, and I want to sort by the Y in desc. | SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
16742,
16430,
62,
7029,
290,
16430,
62,
3064,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
416,
262,
575,
287,
1715,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16430,
62,
7029,
290,
16430,
62,
3064,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
416,
262,
575,
287,
1715,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
... |
Find the name and credit score of the customers who have some loans, I want to order X in asc order please. | SELECT cust_name, credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_ID = T2.cust_ID ORDER BY cust_name | [
16742,
262,
1438,
290,
3884,
4776,
286,
262,
4297,
508,
423,
617,
10021,
11,
314,
765,
284,
1502,
1395,
287,
10570,
1502,
3387,
13,
46506,
9378,
62,
3672,
11,
3884,
62,
26675,
16034,
6491,
7054,
309,
16,
32357,
1268,
8063,
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... | [
16742,
262,
1438,
290,
3884,
4776,
286,
262,
4297,
508,
423,
617,
10021,
11,
314,
765,
284,
1502,
1395,
287,
10570,
1502,
3387,
13,
46506,
9378,
62,
3672,
11,
3884,
62,
26675,
16034,
6491,
7054,
309,
16,
32357,
1268,
8063,
7054,
309,
... |
What are the most popular first 3 words in question titles?. | SELECT SUBSTRING(p.Title, 1, STR_POSITION(p.Title, ' ', STR_POSITION(p.Title, ' ', STR_POSITION(p.Title, ' ') + 1) + 1)) AS First3Words, COUNT(DISTINCT p.Id) AS Questions, AVG(p.Score) AS AvgScore FROM dbo.Posts AS p WHERE p.PostTypeId = 1 AND STR_POSITION(p.Title, ' ', STR_POSITION(p.Title, ' ', STR_POSITION(p.Title, ... | [
2061,
389,
262,
749,
2968,
717,
513,
2456,
287,
1808,
8714,
30,
13,
46506,
28932,
18601,
2751,
7,
79,
13,
19160,
11,
352,
11,
19269,
62,
37997,
17941,
7,
79,
13,
19160,
11,
705,
46083,
19269,
62,
37997,
17941,
7,
79,
13,
19160,
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... | [
2061,
389,
262,
749,
2968,
717,
513,
2456,
287,
1808,
8714,
30,
13,
46506,
28932,
18601,
2751,
7,
79,
13,
19160,
11,
352,
11,
19269,
62,
37997,
17941,
7,
79,
13,
19160,
11,
705,
46083,
19269,
62,
37997,
17941,
7,
79,
13,
19160,
11... |
how many bmws finished before webber ? | SELECT COUNT(*) FROM table_204_740 WHERE "constructor" = 'williams-bmw' AND id < (SELECT id FROM table_204_740 WHERE "driver" = 'mark webber') | [
4919,
867,
275,
76,
18504,
5201,
878,
3992,
527,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
45598,
33411,
366,
41571,
273,
1,
796,
705,
10594,
1789,
82,
12,
20475,
86,
6,
5357,
4686,
1279,
357,
46506,
4686,
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
] | [
4919,
867,
275,
76,
18504,
5201,
878,
3992,
527,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
45598,
33411,
366,
41571,
273,
1,
796,
705,
10594,
1789,
82,
12,
20475,
86,
6,
5357,
4686,
1279,
357,
46506,
4686,
16034,
... |
What is Prime Mover of Model FM CFA-16-4? | SELECT prime_mover FROM table_name_87 WHERE model = "fm cfa-16-4" | [
2061,
318,
5537,
337,
2502,
286,
9104,
18695,
327,
7708,
12,
1433,
12,
19,
30,
46506,
6994,
62,
76,
2502,
16034,
3084,
62,
3672,
62,
5774,
33411,
2746,
796,
366,
38353,
269,
13331,
12,
1433,
12,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5537,
337,
2502,
286,
9104,
18695,
327,
7708,
12,
1433,
12,
19,
30,
46506,
6994,
62,
76,
2502,
16034,
3084,
62,
3672,
62,
5774,
33411,
2746,
796,
366,
38353,
269,
13331,
12,
1433,
12,
19,
1
] |
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 sum of salary bin hire_date by time, order by the total number of salary in ascending please. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) | [
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,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
1502,
416,
262,
2472,
1271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
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,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
11,
1502,
416,
262,
2472,
1271,
... |
What was the score when the opposition was sussex after 1890? | SELECT score FROM table_name_49 WHERE opposition = "sussex" AND year > 1890 | [
2061,
373,
262,
4776,
618,
262,
5471,
373,
2341,
8044,
706,
31982,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
5471,
796,
366,
82,
385,
8044,
1,
5357,
614,
1875,
31982
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
618,
262,
5471,
373,
2341,
8044,
706,
31982,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2920,
33411,
5471,
796,
366,
82,
385,
8044,
1,
5357,
614,
1875,
31982
] |
What is the 2012 value with A in 2010 at the Tournament of Wimbledon? | SELECT "2012" FROM table_15091 WHERE "2010" = 'a' AND "Tournament" = 'wimbledon' | [
2061,
318,
262,
2321,
1988,
351,
317,
287,
3050,
379,
262,
9595,
286,
39999,
49258,
30,
46506,
366,
6999,
1,
16034,
3084,
62,
8628,
6420,
33411,
366,
10333,
1,
796,
705,
64,
6,
5357,
366,
51,
5138,
1,
796,
705,
86,
320,
49258,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2321,
1988,
351,
317,
287,
3050,
379,
262,
9595,
286,
39999,
49258,
30,
46506,
366,
6999,
1,
16034,
3084,
62,
8628,
6420,
33411,
366,
10333,
1,
796,
705,
64,
6,
5357,
366,
51,
5138,
1,
796,
705,
86,
320,
49258,
6
] |
How many artworks are there? | SELECT COUNT(*) FROM artwork | [
2437,
867,
1242,
5225,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
16257
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1242,
5225,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
16257
] |
How many values for population(2011) correspond to a 1.40% in 2006? | SELECT COUNT(population__2011_) FROM table_189893_1 WHERE percentage__2006_ = "1.40%" | [
2437,
867,
3815,
329,
3265,
7,
9804,
8,
6053,
284,
257,
352,
13,
1821,
4,
287,
4793,
30,
46506,
327,
28270,
7,
39748,
834,
9804,
62,
8,
16034,
3084,
62,
1507,
4089,
6052,
62,
16,
33411,
5873,
834,
13330,
62,
796,
366,
16,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3815,
329,
3265,
7,
9804,
8,
6053,
284,
257,
352,
13,
1821,
4,
287,
4793,
30,
46506,
327,
28270,
7,
39748,
834,
9804,
62,
8,
16034,
3084,
62,
1507,
4089,
6052,
62,
16,
33411,
5873,
834,
13330,
62,
796,
366,
16,
13,
18... |
whats patient 004-13127 maximum respiration in the previous day? | SELECT MAX(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13127')) AND NOT vitalperiodic.respiration IS ... | [
1929,
1381,
5827,
3571,
19,
12,
1485,
16799,
5415,
1217,
15297,
287,
262,
2180,
1110,
30,
46506,
25882,
7,
85,
1287,
41007,
291,
13,
411,
10514,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
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... | [
1929,
1381,
5827,
3571,
19,
12,
1485,
16799,
5415,
1217,
15297,
287,
262,
2180,
1110,
30,
46506,
25882,
7,
85,
1287,
41007,
291,
13,
411,
10514,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
... |
what is the years for the displacement 4.0l (242cid)? | SELECT "Years" FROM table_51253 WHERE "Displacement" = '4.0l (242cid)' | [
10919,
318,
262,
812,
329,
262,
29358,
604,
13,
15,
75,
357,
27877,
66,
312,
19427,
46506,
366,
40630,
1,
16034,
3084,
62,
25836,
4310,
33411,
366,
7279,
489,
5592,
1,
796,
705,
19,
13,
15,
75,
357,
27877,
66,
312,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
812,
329,
262,
29358,
604,
13,
15,
75,
357,
27877,
66,
312,
19427,
46506,
366,
40630,
1,
16034,
3084,
62,
25836,
4310,
33411,
366,
7279,
489,
5592,
1,
796,
705,
19,
13,
15,
75,
357,
27877,
66,
312,
33047
] |
What state had an active chapter from 1906-1991? | SELECT "State" FROM table_33768 WHERE "Charter Range" = '1906-1991' | [
2061,
1181,
550,
281,
4075,
6843,
422,
40538,
12,
24529,
30,
46506,
366,
9012,
1,
16034,
3084,
62,
2091,
30610,
33411,
366,
1925,
2571,
13667,
1,
796,
705,
1129,
3312,
12,
24529,
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,
1181,
550,
281,
4075,
6843,
422,
40538,
12,
24529,
30,
46506,
366,
9012,
1,
16034,
3084,
62,
2091,
30610,
33411,
366,
1925,
2571,
13667,
1,
796,
705,
1129,
3312,
12,
24529,
6
] |
What is Date, when Tournament, is Greenbrier Classic? | SELECT date FROM table_name_83 WHERE tournament = "greenbrier classic" | [
2061,
318,
7536,
11,
618,
9595,
11,
318,
3469,
65,
5277,
13449,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5999,
33411,
7756,
796,
366,
14809,
65,
5277,
6833,
1
] | [
1,
1,
1,
1,
1,
1,
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,
7536,
11,
618,
9595,
11,
318,
3469,
65,
5277,
13449,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
5999,
33411,
7756,
796,
366,
14809,
65,
5277,
6833,
1
] |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
... |
Name the highest grid for Laps more than 137 and rank is less than 8 | SELECT MAX("Grid") FROM table_55295 WHERE "Laps" > '137' AND "Rank" < '8' | [
5376,
262,
4511,
10706,
329,
406,
1686,
517,
621,
21643,
290,
4279,
318,
1342,
621,
807,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
2816,
25710,
33411,
366,
43,
1686,
1,
1875,
705,
19708,
6,
5357,
366,
27520,
1,
1279,
705,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
10706,
329,
406,
1686,
517,
621,
21643,
290,
4279,
318,
1342,
621,
807,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
2816,
25710,
33411,
366,
43,
1686,
1,
1875,
705,
19708,
6,
5357,
366,
27520,
1,
1279,
705,
23,
... |
what is the name of the drug patient 14987 was prescribed within 2 days after having a inject/infuse nec procedure in 12/2101? | 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 = 14987 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | [
10919,
318,
262,
1438,
286,
262,
2563,
5827,
1478,
44183,
373,
14798,
1626,
362,
1528,
706,
1719,
257,
8677,
14,
10745,
1904,
27576,
8771,
287,
1105,
14,
2481,
486,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
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,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1438,
286,
262,
2563,
5827,
1478,
44183,
373,
14798,
1626,
362,
1528,
706,
1719,
257,
8677,
14,
10745,
1904,
27576,
8771,
287,
1105,
14,
2481,
486,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,
32796,
6... |
Which team has nc position for 2010 season? | SELECT "Team" FROM table_25982 WHERE "Position" = 'NC' AND "Season" = '2010' | [
13828,
1074,
468,
299,
66,
2292,
329,
3050,
1622,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1495,
4089,
17,
33411,
366,
26545,
1,
796,
705,
7792,
6,
5357,
366,
18960,
1,
796,
705,
10333,
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,
1074,
468,
299,
66,
2292,
329,
3050,
1622,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1495,
4089,
17,
33411,
366,
26545,
1,
796,
705,
7792,
6,
5357,
366,
18960,
1,
796,
705,
10333,
6
] |
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, visualize a bar chart about the distribution of job_id and the sum of department_id , and group by attribute job_id. | SELECT JOB_ID, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID | [
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
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,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286... |
what pitcher scored 4 | SELECT ret_number FROM table_name_63 WHERE records = "4" | [
10919,
18086,
7781,
604,
46506,
1005,
62,
17618,
16034,
3084,
62,
3672,
62,
5066,
33411,
4406,
796,
366,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
18086,
7781,
604,
46506,
1005,
62,
17618,
16034,
3084,
62,
3672,
62,
5066,
33411,
4406,
796,
366,
19,
1
] |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of founder and the amount of founder , and group by attribute founder, sort by the y-axis in desc. | SELECT Founder, COUNT(Founder) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY COUNT(Founder) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2033,
286,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
9119,
290,
262,
2033,
286,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
465... |
provide the number of patients whose insurance is private and diagnoses icd9 code is 76517? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Private" AND diagnoses.icd9_code = "76517" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
40567,
14158,
67,
24,
2438,
318,
767,
2996,
1558,
30,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
40567,
14158,
67,
24,
2438,
318,
767,
2996,
1558,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... |
what number of days have elapsed since the last time patient 016-38131 received a phosphate lab test in the current hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-38131' AND patient.hospi... | [
10919,
1271,
286,
1528,
423,
42118,
1201,
262,
938,
640,
5827,
5534,
21,
12,
2548,
22042,
2722,
257,
46926,
2248,
1332,
287,
262,
1459,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
346... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1528,
423,
42118,
1201,
262,
938,
640,
5827,
5534,
21,
12,
2548,
22042,
2722,
257,
46926,
2248,
1332,
287,
262,
1459,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
346... |
Who was the LMP2 winner when the LMP1 winning team was No. 20 Oryx Dyson Racing? | SELECT lmp2_winning_driver FROM table_27743641_2 WHERE lmp1_winning_team = "No. 20 Oryx Dyson Racing" | [
8241,
373,
262,
406,
7378,
17,
8464,
618,
262,
406,
7378,
16,
5442,
1074,
373,
1400,
13,
1160,
440,
563,
87,
360,
19699,
14954,
30,
46506,
300,
3149,
17,
62,
14463,
62,
26230,
16034,
3084,
62,
27019,
3559,
42759,
62,
17,
33411,
300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
406,
7378,
17,
8464,
618,
262,
406,
7378,
16,
5442,
1074,
373,
1400,
13,
1160,
440,
563,
87,
360,
19699,
14954,
30,
46506,
300,
3149,
17,
62,
14463,
62,
26230,
16034,
3084,
62,
27019,
3559,
42759,
62,
17,
33411,
300,... |
What 2003 rank does the airport IATA code SIN have? | SELECT "2003 Rank" FROM table_35254 WHERE "Code (IATA)" = 'sin' | [
2061,
5816,
4279,
857,
262,
9003,
314,
13563,
2438,
311,
1268,
423,
30,
46506,
366,
16088,
10916,
1,
16034,
3084,
62,
2327,
24970,
33411,
366,
10669,
357,
40,
13563,
16725,
796,
705,
31369,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5816,
4279,
857,
262,
9003,
314,
13563,
2438,
311,
1268,
423,
30,
46506,
366,
16088,
10916,
1,
16034,
3084,
62,
2327,
24970,
33411,
366,
10669,
357,
40,
13563,
16725,
796,
705,
31369,
6
] |
What is the lowest year for the game called The Elder Scrolls v: Skyrim? | SELECT MIN("Year") FROM table_63240 WHERE "Game" = 'the elder scrolls v: skyrim' | [
2061,
318,
262,
9016,
614,
329,
262,
983,
1444,
383,
15624,
28859,
410,
25,
21789,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
5066,
16102,
33411,
366,
8777,
1,
796,
705,
1169,
10550,
32138,
410,
25,
1341,
17302,
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,
9016,
614,
329,
262,
983,
1444,
383,
15624,
28859,
410,
25,
21789,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
5066,
16102,
33411,
366,
8777,
1,
796,
705,
1169,
10550,
32138,
410,
25,
1341,
17302,
6
] |
Which game was after October 24 and had a record of 6-2-1? | SELECT "Game" FROM table_47328 WHERE "October" > '24' AND "Record" = '6-2-1' | [
13828,
983,
373,
706,
3267,
1987,
290,
550,
257,
1700,
286,
718,
12,
17,
12,
16,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
2857,
34256,
33411,
366,
18517,
1,
1875,
705,
1731,
6,
5357,
366,
23739,
1,
796,
705,
21,
12,
17,
12,
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
] | [
13828,
983,
373,
706,
3267,
1987,
290,
550,
257,
1700,
286,
718,
12,
17,
12,
16,
30,
46506,
366,
8777,
1,
16034,
3084,
62,
2857,
34256,
33411,
366,
18517,
1,
1875,
705,
1731,
6,
5357,
366,
23739,
1,
796,
705,
21,
12,
17,
12,
16,... |
On which surface was the score w/o? | SELECT surface FROM table_name_82 WHERE score = "w/o" | [
2202,
543,
4417,
373,
262,
4776,
266,
14,
78,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
6469,
33411,
4776,
796,
366,
86,
14,
78,
1
] | [
1,
1,
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,
543,
4417,
373,
262,
4776,
266,
14,
78,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
6469,
33411,
4776,
796,
366,
86,
14,
78,
1
] |
List the names of aircrafts and the number of times it won matches by a bar chart, and sort x-axis from high to low order. | SELECT Aircraft, COUNT(*) FROM aircraft AS T1 JOIN match AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY Aircraft DESC | [
8053,
262,
3891,
286,
6215,
82,
290,
262,
1271,
286,
1661,
340,
1839,
7466,
416,
257,
2318,
8262,
11,
290,
3297,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
30767,
11,
327,
28270,
7,
28104,
16034,
6215,
7054,
309,
16,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8053,
262,
3891,
286,
6215,
82,
290,
262,
1271,
286,
1661,
340,
1839,
7466,
416,
257,
2318,
8262,
11,
290,
3297,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
30767,
11,
327,
28270,
7,
28104,
16034,
6215,
7054,
309,
16,
32... |
What genre is the song recorded in 1926? | SELECT "Genre" FROM table_59658 WHERE "Year recorded" = '1926' | [
2061,
12121,
318,
262,
3496,
6264,
287,
38525,
30,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
3270,
38431,
33411,
366,
17688,
6264,
1,
796,
705,
1129,
2075,
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,
12121,
318,
262,
3496,
6264,
287,
38525,
30,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
3270,
38431,
33411,
366,
17688,
6264,
1,
796,
705,
1129,
2075,
6
] |
Which venue did collingsworth play essendon in when they had the 3rd position on the ladder? | SELECT venue FROM table_29033869_3 WHERE opponent = "Essendon" AND position_on_ladder = "3rd" | [
13828,
14359,
750,
2927,
654,
9268,
711,
3209,
43153,
287,
618,
484,
550,
262,
513,
4372,
2292,
319,
262,
18002,
30,
46506,
14359,
16034,
3084,
62,
24369,
28460,
3388,
62,
18,
33411,
6125,
796,
366,
29508,
43153,
1,
5357,
2292,
62,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14359,
750,
2927,
654,
9268,
711,
3209,
43153,
287,
618,
484,
550,
262,
513,
4372,
2292,
319,
262,
18002,
30,
46506,
14359,
16034,
3084,
62,
24369,
28460,
3388,
62,
18,
33411,
6125,
796,
366,
29508,
43153,
1,
5357,
2292,
62,
26... |
Daily Empress Indy Silverstone took place on which round? | SELECT MAX(rnd) FROM table_22673956_1 WHERE race_name = "Daily Empress Indy Silverstone" | [
28545,
38470,
26023,
7698,
6440,
1718,
1295,
319,
543,
2835,
30,
46506,
25882,
7,
81,
358,
8,
16034,
3084,
62,
1828,
3134,
2670,
3980,
62,
16,
33411,
3234,
62,
3672,
796,
366,
28545,
38470,
26023,
7698,
6440,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
28545,
38470,
26023,
7698,
6440,
1718,
1295,
319,
543,
2835,
30,
46506,
25882,
7,
81,
358,
8,
16034,
3084,
62,
1828,
3134,
2670,
3980,
62,
16,
33411,
3234,
62,
3672,
796,
366,
28545,
38470,
26023,
7698,
6440,
1
] |
what is the number of patients admitted in hospital before 2180 who had albumin, pleural lab test? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2180" AND lab.label = "Albumin, Pleural" | [
10919,
318,
262,
1271,
286,
3871,
6848,
287,
4436,
878,
362,
15259,
508,
550,
5062,
259,
11,
3339,
1523,
2248,
1332,
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,
6848,
287,
4436,
878,
362,
15259,
508,
550,
5062,
259,
11,
3339,
1523,
2248,
1332,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
Name the record for l 106 116 (ot) | SELECT "Record" FROM table_25875 WHERE "Score" = 'L 106–116 (OT)' | [
5376,
262,
1700,
329,
300,
15696,
18693,
357,
313,
8,
46506,
366,
23739,
1,
16034,
3084,
62,
25600,
2425,
33411,
366,
26595,
1,
796,
705,
43,
15696,
1906,
18298,
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
] | [
5376,
262,
1700,
329,
300,
15696,
18693,
357,
313,
8,
46506,
366,
23739,
1,
16034,
3084,
62,
25600,
2425,
33411,
366,
26595,
1,
796,
705,
43,
15696,
1906,
18298,
357,
2394,
33047
] |
What is the pennant for 4 may 1943? | SELECT pennant FROM table_1220125_4 WHERE laid_down = "4 May 1943" | [
2061,
318,
262,
22429,
415,
329,
604,
743,
21577,
30,
46506,
22429,
415,
16034,
3084,
62,
1065,
1264,
1495,
62,
19,
33411,
8104,
62,
2902,
796,
366,
19,
1737,
21577,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
22429,
415,
329,
604,
743,
21577,
30,
46506,
22429,
415,
16034,
3084,
62,
1065,
1264,
1495,
62,
19,
33411,
8104,
62,
2902,
796,
366,
19,
1737,
21577,
1
] |
What is the entry name of the most expensive catalog (in USD)? | SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1 | [
2061,
318,
262,
5726,
1438,
286,
262,
749,
5789,
18388,
357,
259,
11403,
19427,
46506,
18388,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
38678,
11050,
2756,
62,
259,
62,
67,
692,
945,
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
] | [
2061,
318,
262,
5726,
1438,
286,
262,
749,
5789,
18388,
357,
259,
11403,
19427,
46506,
18388,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
38678,
11050,
2756,
62,
259,
62,
67,
692,
945,
22196,
34,
27564,
2043,
352
] |
Who had a transfer fee of dkk 6m? | SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m" | [
8241,
550,
257,
4351,
6838,
286,
288,
28747,
718,
76,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2670,
33411,
4351,
62,
39071,
796,
366,
67,
28747,
718,
76,
1
] | [
1,
1,
1,
1,
1,
1,
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,
257,
4351,
6838,
286,
288,
28747,
718,
76,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
2670,
33411,
4351,
62,
39071,
796,
366,
67,
28747,
718,
76,
1
] |
Which date has a Kickoff [a] of 4:00, and an Opponent of detroit lions? | SELECT "Date" FROM table_11108 WHERE "Kickoff [a ]" = '4:00' AND "Opponent" = 'detroit lions' | [
13828,
3128,
468,
257,
10279,
2364,
685,
64,
60,
286,
604,
25,
405,
11,
290,
281,
9385,
3471,
286,
1062,
7775,
31420,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1157,
15711,
33411,
366,
45390,
2364,
685,
64,
2361,
1,
796,
705,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3128,
468,
257,
10279,
2364,
685,
64,
60,
286,
604,
25,
405,
11,
290,
281,
9385,
3471,
286,
1062,
7775,
31420,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1157,
15711,
33411,
366,
45390,
2364,
685,
64,
2361,
1,
796,
705,
19,
... |
give me the number of patients whose drug name is ascorbic acid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Ascorbic Acid" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
355,
10215,
65,
291,
7408,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
355,
10215,
65,
291,
7408,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
7... |
What is the total wins with less than 21 goals taken? | SELECT SUM(wins) FROM table_name_19 WHERE goals_against < 21 | [
2061,
318,
262,
2472,
7864,
351,
1342,
621,
2310,
4661,
2077,
30,
46506,
35683,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
4661,
62,
32826,
1279,
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
] | [
2061,
318,
262,
2472,
7864,
351,
1342,
621,
2310,
4661,
2077,
30,
46506,
35683,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
4661,
62,
32826,
1279,
2310
] |
How many stages did Team Sky lead the teams classification? | SELECT MAX(stage) FROM table_26010857_13 WHERE teams_classification = "Team Sky" | [
2437,
867,
9539,
750,
4816,
5274,
1085,
262,
3466,
17923,
30,
46506,
25882,
7,
14247,
8,
16034,
3084,
62,
2075,
486,
2919,
3553,
62,
1485,
33411,
3466,
62,
4871,
2649,
796,
366,
15592,
5274,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9539,
750,
4816,
5274,
1085,
262,
3466,
17923,
30,
46506,
25882,
7,
14247,
8,
16034,
3084,
62,
2075,
486,
2919,
3553,
62,
1485,
33411,
3466,
62,
4871,
2649,
796,
366,
15592,
5274,
1
] |
what was the first time that patient 1249 had the maximum arterial bp [systolic] until 07/05/2105? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1249)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | [
10919,
373,
262,
717,
640,
326,
5827,
1105,
2920,
550,
262,
5415,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1566,
8753,
14,
2713,
14,
17,
13348,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
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,
717,
640,
326,
5827,
1105,
2920,
550,
262,
5415,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1566,
8753,
14,
2713,
14,
17,
13348,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,... |
What is Zoe and Matt's rank? | SELECT "Rank" FROM table_2130 WHERE "Couple" = 'Zoe and Matt' | [
2061,
318,
32280,
290,
4705,
338,
4279,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2481,
1270,
33411,
366,
34,
43846,
1,
796,
705,
57,
2577,
290,
4705,
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,
32280,
290,
4705,
338,
4279,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
2481,
1270,
33411,
366,
34,
43846,
1,
796,
705,
57,
2577,
290,
4705,
6
] |
i would like to get the top four diagnosis that has the highest three year mortality rate. | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | [
72,
561,
588,
284,
651,
262,
1353,
1440,
13669,
326,
468,
262,
4511,
1115,
614,
12430,
2494,
13,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
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... | [
72,
561,
588,
284,
651,
262,
1353,
1440,
13669,
326,
468,
262,
4511,
1115,
614,
12430,
2494,
13,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,... |
How much Run 2 has a Run 4 of 57.68, and a Run 3 smaller than 57.9? | SELECT COUNT(run_2) FROM table_name_53 WHERE run_4 = 57.68 AND run_3 < 57.9 | [
2437,
881,
5660,
362,
468,
257,
5660,
604,
286,
7632,
13,
3104,
11,
290,
257,
5660,
513,
4833,
621,
7632,
13,
24,
30,
46506,
327,
28270,
7,
5143,
62,
17,
8,
16034,
3084,
62,
3672,
62,
4310,
33411,
1057,
62,
19,
796,
7632,
13,
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
] | [
2437,
881,
5660,
362,
468,
257,
5660,
604,
286,
7632,
13,
3104,
11,
290,
257,
5660,
513,
4833,
621,
7632,
13,
24,
30,
46506,
327,
28270,
7,
5143,
62,
17,
8,
16034,
3084,
62,
3672,
62,
4310,
33411,
1057,
62,
19,
796,
7632,
13,
31... |
How did michelle do in archery? | SELECT AVG(michelle) FROM table_name_39 WHERE discipline = "archery" | [
2437,
750,
12314,
34454,
466,
287,
610,
31132,
30,
46506,
35224,
7,
9383,
34454,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
12883,
796,
366,
283,
31132,
1
] | [
1,
1,
1,
1,
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,
750,
12314,
34454,
466,
287,
610,
31132,
30,
46506,
35224,
7,
9383,
34454,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
12883,
796,
366,
283,
31132,
1
] |
Count of self-answers on a specific tag, record holders. | SELECT MIN(Tags.TagName) AS TagName, Q.OwnerUserId AS "user_link", COUNT(*) AS Count FROM Posts AS Q, Posts AS A, PostTags, Tags WHERE A.ParentId = Q.Id AND PostTags.PostId = Q.Id AND Q.OwnerUserId > 0 AND Q.OwnerUserId = A.OwnerUserId AND Tags.Id = PostTags.TagId GROUP BY PostTags.TagId, Q.OwnerUserId ORDER BY Count D... | [
12332,
286,
2116,
12,
504,
86,
364,
319,
257,
2176,
7621,
11,
1700,
16392,
13,
46506,
20625,
7,
36142,
13,
24835,
5376,
8,
7054,
17467,
5376,
11,
1195,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
28104,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12332,
286,
2116,
12,
504,
86,
364,
319,
257,
2176,
7621,
11,
1700,
16392,
13,
46506,
20625,
7,
36142,
13,
24835,
5376,
8,
7054,
17467,
5376,
11,
1195,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
28104,
7... |
What is the date of the episode written by Michael Poryes? | SELECT "Original air date" FROM table_72255 WHERE "Written by" = 'Michael Poryes' | [
2061,
318,
262,
3128,
286,
262,
4471,
3194,
416,
3899,
350,
652,
274,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
4761,
13381,
33411,
366,
25354,
416,
1,
796,
705,
13256,
350,
652,
274,
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,
3128,
286,
262,
4471,
3194,
416,
3899,
350,
652,
274,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
4761,
13381,
33411,
366,
25354,
416,
1,
796,
705,
13256,
350,
652,
274,
6
] |
give me the number of patients whose admission type is emergency and primary disease is bladder cancer/sda? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "BLADDER CANCER/SDA" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
4165,
4369,
318,
34918,
4890,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
4165,
4369,
318,
34918,
4890,
14,
82,
6814,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
... |
What is the price of 60 mbps downstream? | SELECT price FROM table_name_22 WHERE downstream = "60 mbps" | [
2061,
318,
262,
2756,
286,
3126,
285,
18799,
33218,
30,
46506,
2756,
16034,
3084,
62,
3672,
62,
1828,
33411,
33218,
796,
366,
1899,
285,
18799,
1
] | [
1,
1,
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,
2756,
286,
3126,
285,
18799,
33218,
30,
46506,
2756,
16034,
3084,
62,
3672,
62,
1828,
33411,
33218,
796,
366,
1899,
285,
18799,
1
] |
What is the average round of the match with kevin manderson as the opponent? | SELECT AVG(round) FROM table_name_18 WHERE opponent = "kevin manderson" | [
2061,
318,
262,
2811,
2835,
286,
262,
2872,
351,
885,
7114,
6855,
882,
355,
262,
6125,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
6125,
796,
366,
365,
7114,
6855,
882,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2835,
286,
262,
2872,
351,
885,
7114,
6855,
882,
355,
262,
6125,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
6125,
796,
366,
365,
7114,
6855,
882,
1
] |
mini mental status exam score of less than 24 | SELECT * FROM table_train_247 WHERE mini_mental_state_examination_mmse < 24 | [
45313,
5110,
3722,
2814,
4776,
286,
1342,
621,
1987,
46506,
1635,
16034,
3084,
62,
27432,
62,
23753,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
1279,
1987
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
45313,
5110,
3722,
2814,
4776,
286,
1342,
621,
1987,
46506,
1635,
16034,
3084,
62,
27432,
62,
23753,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
1279,
1987
] |
What number in the series was episode 2 in the season? | SELECT MAX("No. in series") FROM table_3111 WHERE "No. in season" = '2' | [
2061,
1271,
287,
262,
2168,
373,
4471,
362,
287,
262,
1622,
30,
46506,
25882,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
18,
16243,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
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,
1
] | [
2061,
1271,
287,
262,
2168,
373,
4471,
362,
287,
262,
1622,
30,
46506,
25882,
7203,
2949,
13,
287,
2168,
4943,
16034,
3084,
62,
18,
16243,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
17,
6
] |
what was jenson button 's time ? | SELECT "time/retired" FROM table_204_743 WHERE "driver" = 'jenson button' | [
10919,
373,
474,
19069,
4936,
705,
82,
640,
5633,
46506,
366,
2435,
14,
1186,
1202,
1,
16034,
3084,
62,
18638,
62,
22,
3559,
33411,
366,
26230,
1,
796,
705,
73,
19069,
4936,
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
] | [
10919,
373,
474,
19069,
4936,
705,
82,
640,
5633,
46506,
366,
2435,
14,
1186,
1202,
1,
16034,
3084,
62,
18638,
62,
22,
3559,
33411,
366,
26230,
1,
796,
705,
73,
19069,
4936,
6
] |
Which serials were issued with a design of black on yellow? | SELECT "Serials issued" FROM table_47896 WHERE "Design" = 'black on yellow' | [
13828,
1055,
8231,
547,
4884,
351,
257,
1486,
286,
2042,
319,
7872,
30,
46506,
366,
7089,
8231,
4884,
1,
16034,
3084,
62,
2857,
48712,
33411,
366,
23067,
1,
796,
705,
13424,
319,
7872,
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
] | [
13828,
1055,
8231,
547,
4884,
351,
257,
1486,
286,
2042,
319,
7872,
30,
46506,
366,
7089,
8231,
4884,
1,
16034,
3084,
62,
2857,
48712,
33411,
366,
23067,
1,
796,
705,
13424,
319,
7872,
6
] |
when was patient 007-849 prescribed the drug acetaminophen 325 mg tab and norepinephrine 8 mg in 250ml ns at the same time for the first time this month? | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'acetaminophen 325 mg tab' AND patient.uniquepid = '007-849' AND DATETIME(medication.drugstarttime, 'start of month') = DA... | [
12518,
373,
5827,
3571,
22,
12,
23,
2920,
14798,
262,
2563,
25174,
5669,
47806,
29524,
10527,
7400,
290,
299,
382,
23908,
47723,
807,
10527,
287,
8646,
4029,
36545,
379,
262,
976,
640,
329,
262,
717,
640,
428,
1227,
30,
46506,
256,
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... | [
12518,
373,
5827,
3571,
22,
12,
23,
2920,
14798,
262,
2563,
25174,
5669,
47806,
29524,
10527,
7400,
290,
299,
382,
23908,
47723,
807,
10527,
287,
8646,
4029,
36545,
379,
262,
976,
640,
329,
262,
717,
640,
428,
1227,
30,
46506,
256,
16... |
For the English translation Someone Like You, what is the lowest draw? | SELECT MIN(draw) FROM table_name_76 WHERE english_translation = "someone like you" | [
1890,
262,
3594,
11059,
17877,
4525,
921,
11,
644,
318,
262,
9016,
3197,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
4304,
33411,
46932,
62,
41519,
796,
366,
46248,
588,
345,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
3594,
11059,
17877,
4525,
921,
11,
644,
318,
262,
9016,
3197,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
4304,
33411,
46932,
62,
41519,
796,
366,
46248,
588,
345,
1
] |
When the VFL played Victoria Park what was the home team score? | SELECT home_team AS score FROM table_name_11 WHERE venue = "victoria park" | [
2215,
262,
569,
3697,
2826,
12313,
3250,
644,
373,
262,
1363,
1074,
4776,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1157,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
569,
3697,
2826,
12313,
3250,
644,
373,
262,
1363,
1074,
4776,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1157,
33411,
14359,
796,
366,
32433,
7661,
3952,
1
] |
What television service is in italy and is in english? | SELECT television_service FROM table_15887683_15 WHERE country = "Italy" AND language = "English" | [
2061,
5581,
2139,
318,
287,
340,
3400,
290,
318,
287,
46932,
30,
46506,
5581,
62,
15271,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
1314,
33411,
1499,
796,
366,
45001,
1,
5357,
3303,
796,
366,
15823,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5581,
2139,
318,
287,
340,
3400,
290,
318,
287,
46932,
30,
46506,
5581,
62,
15271,
16034,
3084,
62,
1314,
3459,
30610,
18,
62,
1314,
33411,
1499,
796,
366,
45001,
1,
5357,
3303,
796,
366,
15823,
1
] |
What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi? | SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi" | [
2061,
318,
262,
7025,
3128,
810,
8982,
338,
1074,
318,
22509,
24023,
290,
911,
1324,
72,
5311,
669,
26800,
30,
46506,
717,
62,
36654,
2701,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
23,
33411,
474,
2812,
62,
15097,
796,
366,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7025,
3128,
810,
8982,
338,
1074,
318,
22509,
24023,
290,
911,
1324,
72,
5311,
669,
26800,
30,
46506,
717,
62,
36654,
2701,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
23,
33411,
474,
2812,
62,
15097,
796,
366,
49,
... |
What country has the most height in the northwestern peak of rysy? | SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy" | [
2061,
1499,
468,
262,
749,
6001,
287,
262,
48164,
9103,
286,
374,
893,
88,
30,
46506,
1499,
62,
273,
62,
36996,
16034,
3084,
62,
1731,
26279,
26007,
62,
16,
33411,
4511,
62,
4122,
796,
366,
14157,
14197,
9103,
286,
371,
893,
88,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
468,
262,
749,
6001,
287,
262,
48164,
9103,
286,
374,
893,
88,
30,
46506,
1499,
62,
273,
62,
36996,
16034,
3084,
62,
1731,
26279,
26007,
62,
16,
33411,
4511,
62,
4122,
796,
366,
14157,
14197,
9103,
286,
371,
893,
88,
1
] |
When johannesburg is the hometown who is the contestant? | SELECT "Contestant" FROM table_1934 WHERE "Hometown" = 'Johannesburg' | [
2215,
474,
1219,
1236,
274,
7423,
318,
262,
20994,
508,
318,
262,
44047,
30,
46506,
366,
4264,
395,
415,
1,
16034,
3084,
62,
1129,
2682,
33411,
366,
39,
19191,
1,
796,
705,
41,
1219,
1236,
274,
7423,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
474,
1219,
1236,
274,
7423,
318,
262,
20994,
508,
318,
262,
44047,
30,
46506,
366,
4264,
395,
415,
1,
16034,
3084,
62,
1129,
2682,
33411,
366,
39,
19191,
1,
796,
705,
41,
1219,
1236,
274,
7423,
6
] |
give the number of patients whose admission type is urgent and procedure icd9 code is 8968? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.icd9_code = "8968" | [
26535,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
18039,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
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,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
18039,
290,
8771,
14158,
67,
24,
2438,
318,
9919,
3104,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.