instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Tell me the winning driver for avusrennen | SELECT "Winning driver" FROM table_31562 WHERE "Name" = 'avusrennen' | [
24446,
502,
262,
5442,
4639,
329,
1196,
385,
918,
38572,
46506,
366,
16643,
768,
4639,
1,
16034,
3084,
62,
27936,
5237,
33411,
366,
5376,
1,
796,
705,
615,
385,
918,
38572,
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
] | [
24446,
502,
262,
5442,
4639,
329,
1196,
385,
918,
38572,
46506,
366,
16643,
768,
4639,
1,
16034,
3084,
62,
27936,
5237,
33411,
366,
5376,
1,
796,
705,
615,
385,
918,
38572,
6
] |
How many games have Air Force as the opponent? | SELECT MAX(game) FROM table_21091162_1 WHERE opponent = "Air Force" | [
2437,
867,
1830,
423,
3701,
5221,
355,
262,
6125,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
17,
14454,
1157,
5237,
62,
16,
33411,
6125,
796,
366,
16170,
5221,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1830,
423,
3701,
5221,
355,
262,
6125,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
17,
14454,
1157,
5237,
62,
16,
33411,
6125,
796,
366,
16170,
5221,
1
] |
how many candidates were part of the republican party ? | SELECT COUNT(*) FROM table_203_615 WHERE "party" = 'republican' | [
4919,
867,
5871,
547,
636,
286,
262,
41477,
2151,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
47007,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
5871,
547,
636,
286,
262,
41477,
2151,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
47007,
33411,
366,
10608,
1,
796,
705,
7856,
841,
272,
6
] |
What is the competition that had a 2-2 result? | SELECT competition FROM table_name_58 WHERE result = "2-2" | [
2061,
318,
262,
5449,
326,
550,
257,
362,
12,
17,
1255,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
3365,
33411,
1255,
796,
366,
17,
12,
17,
1
] | [
1,
1,
1,
1,
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,
5449,
326,
550,
257,
362,
12,
17,
1255,
30,
46506,
5449,
16034,
3084,
62,
3672,
62,
3365,
33411,
1255,
796,
366,
17,
12,
17,
1
] |
What are the details of the markets that can be accessed by walk or bus? | SELECT T1.market_details FROM street_markets AS T1 JOIN tourist_attractions AS T2 ON T1.market_id = T2.tourist_attraction_id WHERE T2.how_to_get_there = "walk" OR T2.how_to_get_there = "bus" | [
2061,
389,
262,
3307,
286,
262,
5939,
326,
460,
307,
17535,
416,
2513,
393,
1323,
30,
46506,
309,
16,
13,
10728,
62,
36604,
16034,
4675,
62,
34162,
7054,
309,
16,
32357,
1268,
18473,
62,
1078,
37810,
7054,
309,
17,
6177,
309,
16,
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... | [
2061,
389,
262,
3307,
286,
262,
5939,
326,
460,
307,
17535,
416,
2513,
393,
1323,
30,
46506,
309,
16,
13,
10728,
62,
36604,
16034,
4675,
62,
34162,
7054,
309,
16,
32357,
1268,
18473,
62,
1078,
37810,
7054,
309,
17,
6177,
309,
16,
13... |
Accepted answer count by score. Doesn't count self-accepted answers. | SELECT a.Score, COUNT(*) AS count FROM Posts AS a JOIN Posts AS q ON a.Id = q.AcceptedAnswerId AND q.OwnerUserId != '##UserId##' WHERE a.OwnerUserId = '##UserId##' AND a.PostTypeId = 2 GROUP BY a.Score ORDER BY 1 | [
38855,
276,
3280,
954,
416,
4776,
13,
28048,
470,
954,
2116,
12,
13635,
276,
7429,
13,
46506,
257,
13,
26595,
11,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
7054,
257,
32357,
1268,
12043,
7054,
10662,
6177,
257,
13,
7390,
796,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
38855,
276,
3280,
954,
416,
4776,
13,
28048,
470,
954,
2116,
12,
13635,
276,
7429,
13,
46506,
257,
13,
26595,
11,
327,
28270,
7,
28104,
7054,
954,
16034,
12043,
7054,
257,
32357,
1268,
12043,
7054,
10662,
6177,
257,
13,
7390,
796,
106... |
Total number of unresolved questions with answer. | SELECT COUNT(*) FROM Posts AS q WHERE ClosedDate IS NULL AND q.ParentId IS NULL AND PostTypeId = 1 AND AcceptedAnswerId IS NULL AND AnswerCount > 1 | [
14957,
1271,
286,
43264,
2683,
351,
3280,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
7054,
10662,
33411,
30550,
10430,
3180,
15697,
5357,
10662,
13,
24546,
7390,
3180,
15697,
5357,
2947,
6030,
7390,
796,
352,
5357,
21699,
276,
33706,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14957,
1271,
286,
43264,
2683,
351,
3280,
13,
46506,
327,
28270,
7,
28104,
16034,
12043,
7054,
10662,
33411,
30550,
10430,
3180,
15697,
5357,
10662,
13,
24546,
7390,
3180,
15697,
5357,
2947,
6030,
7390,
796,
352,
5357,
21699,
276,
33706,
... |
Which treasurer has a President of sebastian ihler? | SELECT "Treasurer" FROM table_55251 WHERE "President" = 'sebastian ihler' | [
13828,
43428,
468,
257,
1992,
286,
384,
65,
459,
666,
1312,
49737,
30,
46506,
366,
31055,
5015,
81,
1,
16034,
3084,
62,
2816,
28072,
33411,
366,
10364,
1,
796,
705,
325,
65,
459,
666,
1312,
49737,
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
] | [
13828,
43428,
468,
257,
1992,
286,
384,
65,
459,
666,
1312,
49737,
30,
46506,
366,
31055,
5015,
81,
1,
16034,
3084,
62,
2816,
28072,
33411,
366,
10364,
1,
796,
705,
325,
65,
459,
666,
1312,
49737,
6
] |
what are the four most common prescribed medications until 3 years ago? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 4 | [
10919,
389,
262,
1440,
749,
2219,
14798,
17638,
1566,
513,
812,
2084,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
2219,
14798,
17638,
1566,
513,
812,
2084,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
... |
provide the number of patients taking drug via iv bolus route who have been diagnosed with stevens-johnson syndrome-toxic epidermal necrolysis overlap syndrome. | 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.short_title = "Stevens-Johnson-TEN syn" AND prescriptions.route = "IV BOLUS" | [
15234,
485,
262,
1271,
286,
3871,
2263,
2563,
2884,
21628,
11572,
385,
6339,
508,
423,
587,
14641,
351,
2876,
574,
82,
12,
30686,
1559,
14027,
12,
83,
18047,
2462,
1304,
7617,
497,
19915,
306,
13429,
21721,
14027,
13,
46506,
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... | [
15234,
485,
262,
1271,
286,
3871,
2263,
2563,
2884,
21628,
11572,
385,
6339,
508,
423,
587,
14641,
351,
2876,
574,
82,
12,
30686,
1559,
14027,
12,
83,
18047,
2462,
1304,
7617,
497,
19915,
306,
13429,
21721,
14027,
13,
46506,
327,
28270,... |
On what Date is Delta 0:40? | SELECT date FROM table_name_7 WHERE delta = "0:40" | [
2202,
644,
7536,
318,
16978,
657,
25,
1821,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
22,
33411,
25979,
796,
366,
15,
25,
1821,
1
] | [
1,
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,
318,
16978,
657,
25,
1821,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
22,
33411,
25979,
796,
366,
15,
25,
1821,
1
] |
Which episode number drew in 3.35 million viewers in the United States? | SELECT COUNT(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.35" | [
13828,
4471,
1271,
9859,
287,
513,
13,
2327,
1510,
10209,
287,
262,
1578,
1829,
30,
46506,
327,
28270,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
19442,
1959,
46900,
62,
18,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
18,
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
] | [
13828,
4471,
1271,
9859,
287,
513,
13,
2327,
1510,
10209,
287,
262,
1578,
1829,
30,
46506,
327,
28270,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
19442,
1959,
46900,
62,
18,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
18,
13... |
What is the Tie no of the game with an Attendance of 4,658? | SELECT "Tie no" FROM table_63657 WHERE "Attendance" = '4,658' | [
2061,
318,
262,
36286,
645,
286,
262,
983,
351,
281,
46502,
590,
286,
604,
11,
38431,
30,
46506,
366,
51,
494,
645,
1,
16034,
3084,
62,
21,
2623,
3553,
33411,
366,
8086,
437,
590,
1,
796,
705,
19,
11,
38431,
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
] | [
2061,
318,
262,
36286,
645,
286,
262,
983,
351,
281,
46502,
590,
286,
604,
11,
38431,
30,
46506,
366,
51,
494,
645,
1,
16034,
3084,
62,
21,
2623,
3553,
33411,
366,
8086,
437,
590,
1,
796,
705,
19,
11,
38431,
6
] |
What is the Finish of the Player with a Total of 273? | SELECT "Finish" FROM table_12442 WHERE "Total" = '273' | [
2061,
318,
262,
32585,
286,
262,
7853,
351,
257,
7472,
286,
38549,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
1065,
39506,
33411,
366,
14957,
1,
796,
705,
27367,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
32585,
286,
262,
7853,
351,
257,
7472,
286,
38549,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
1065,
39506,
33411,
366,
14957,
1,
796,
705,
27367,
6
] |
At what latitude did the shock at time 13:10:02 occur? | SELECT "Latitude" FROM table_3369 WHERE "Time (UTC)" = '13:10:02' | [
2953,
644,
32477,
750,
262,
6380,
379,
640,
1511,
25,
940,
25,
2999,
3051,
30,
46506,
366,
24220,
3984,
1,
16034,
3084,
62,
2091,
3388,
33411,
366,
7575,
357,
17429,
16725,
796,
705,
1485,
25,
940,
25,
2999,
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
] | [
2953,
644,
32477,
750,
262,
6380,
379,
640,
1511,
25,
940,
25,
2999,
3051,
30,
46506,
366,
24220,
3984,
1,
16034,
3084,
62,
2091,
3388,
33411,
366,
7575,
357,
17429,
16725,
796,
705,
1485,
25,
940,
25,
2999,
6
] |
What are the number of the names of all products?, and show in asc by the Y. | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY COUNT(Name) | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
3186,
21747,
290,
905,
287,
10570,
416,
262,
575,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
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
] | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
3186,
21747,
290,
905,
287,
10570,
416,
262,
575,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
18675,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
8
] |
what flights from LAS VEGAS to PHOENIX on saturday | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHOENIX' AND date_day.day_number = 26 AND date_day.month_number = 7 AND d... | [
10919,
13956,
422,
406,
1921,
569,
7156,
1921,
284,
9370,
46,
1677,
10426,
319,
264,
3658,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
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,
1,
1,
1,
1,
1,
1,
1... | [
10919,
13956,
422,
406,
1921,
569,
7156,
1921,
284,
9370,
46,
1677,
10426,
319,
264,
3658,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
152... |
october 26 , 1946 notre dame scores 41 points faints iowa . what other team did nd score 41 points against ? | SELECT "opponent#" FROM table_204_157 WHERE "opponent#" <> 'iowa' AND "result" = 41 | [
38441,
2023,
2608,
837,
22717,
407,
260,
288,
480,
8198,
6073,
2173,
277,
6003,
1312,
8455,
764,
644,
584,
1074,
750,
299,
67,
4776,
6073,
2173,
1028,
5633,
46506,
366,
10365,
3471,
2,
1,
16034,
3084,
62,
18638,
62,
18458,
33411,
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
] | [
38441,
2023,
2608,
837,
22717,
407,
260,
288,
480,
8198,
6073,
2173,
277,
6003,
1312,
8455,
764,
644,
584,
1074,
750,
299,
67,
4776,
6073,
2173,
1028,
5633,
46506,
366,
10365,
3471,
2,
1,
16034,
3084,
62,
18638,
62,
18458,
33411,
366,... |
What is the Devices per channel where the Name is sata revision 3.0? | SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0" | [
2061,
318,
262,
29362,
583,
6518,
810,
262,
6530,
318,
264,
1045,
18440,
513,
13,
15,
30,
46506,
4410,
62,
525,
62,
17620,
16034,
3084,
62,
3672,
62,
1129,
33411,
1438,
796,
366,
82,
1045,
18440,
513,
13,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
29362,
583,
6518,
810,
262,
6530,
318,
264,
1045,
18440,
513,
13,
15,
30,
46506,
4410,
62,
525,
62,
17620,
16034,
3084,
62,
3672,
62,
1129,
33411,
1438,
796,
366,
82,
1045,
18440,
513,
13,
15,
1
] |
What is the largest total for a team with fewer than 12 bronze, 1 silver and 0 gold medals? | SELECT MAX(total) FROM table_name_99 WHERE bronze < 12 AND gold = 0 AND silver = 1 | [
2061,
318,
262,
4387,
2472,
329,
257,
1074,
351,
7380,
621,
1105,
22101,
11,
352,
8465,
290,
657,
3869,
28057,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
22101,
1279,
1105,
5357,
3869,
796,
657,
5357,
8465,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4387,
2472,
329,
257,
1074,
351,
7380,
621,
1105,
22101,
11,
352,
8465,
290,
657,
3869,
28057,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
22101,
1279,
1105,
5357,
3869,
796,
657,
5357,
8465,... |
give me the number of patients whose death status is 1 and diagnoses long title is acute venous embolism and thrombosis of deep vessels of proximal lower extremity? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.long_title = "Acute venous embolism and thrombosis of deep vessels of proximal lower extremity" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
890,
3670,
318,
14352,
8710,
516,
4072,
349,
1042,
290,
294,
398,
65,
5958,
286,
2769,
14891,
286,
14793,
4402,
2793,
8963,
414,
30,
46506,
327,
28270,
7,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
890,
3670,
318,
14352,
8710,
516,
4072,
349,
1042,
290,
294,
398,
65,
5958,
286,
2769,
14891,
286,
14793,
4402,
2793,
8963,
414,
30,
46506,
327,
28270,
7,
35,
... |
What's the release date of model number CORE I7-940? | SELECT "Release date" FROM table_63642 WHERE "Model number" = 'core i7-940' | [
2061,
338,
262,
2650,
3128,
286,
2746,
1271,
327,
6965,
314,
22,
12,
46899,
30,
46506,
366,
26362,
3128,
1,
16034,
3084,
62,
5066,
41290,
33411,
366,
17633,
1271,
1,
796,
705,
7295,
1312,
22,
12,
46899,
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,
338,
262,
2650,
3128,
286,
2746,
1271,
327,
6965,
314,
22,
12,
46899,
30,
46506,
366,
26362,
3128,
1,
16034,
3084,
62,
5066,
41290,
33411,
366,
17633,
1271,
1,
796,
705,
7295,
1312,
22,
12,
46899,
6
] |
Who was the director of the movie Joy from 2015 ? | SELECT director.name FROM directed_by, director, movie WHERE director.did = directed_by.did AND movie.mid = directed_by.msid AND movie.release_year = 2015 AND movie.title = 'Joy' | [
8241,
373,
262,
3437,
286,
262,
3807,
14087,
422,
1853,
5633,
46506,
3437,
13,
3672,
16034,
7924,
62,
1525,
11,
3437,
11,
3807,
33411,
3437,
13,
20839,
796,
7924,
62,
1525,
13,
20839,
5357,
3807,
13,
13602,
796,
7924,
62,
1525,
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
] | [
8241,
373,
262,
3437,
286,
262,
3807,
14087,
422,
1853,
5633,
46506,
3437,
13,
3672,
16034,
7924,
62,
1525,
11,
3437,
11,
3807,
33411,
3437,
13,
20839,
796,
7924,
62,
1525,
13,
20839,
5357,
3807,
13,
13602,
796,
7924,
62,
1525,
13,
... |
What is the attendance of the November 19, 1990 game? | SELECT attendance FROM table_name_49 WHERE date = "november 19, 1990" | [
2061,
318,
262,
14858,
286,
262,
3389,
678,
11,
6303,
983,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
2920,
33411,
3128,
796,
366,
77,
3239,
678,
11,
6303,
1
] | [
1,
1,
1,
1,
1,
1,
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,
14858,
286,
262,
3389,
678,
11,
6303,
983,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
2920,
33411,
3128,
796,
366,
77,
3239,
678,
11,
6303,
1
] |
is patient 19096's arterial bp [systolic] ever less since 15 months ago than 164.0? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19096)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [syst... | [
271,
5827,
41507,
21,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1683,
1342,
1201,
1315,
1933,
2084,
621,
25307,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
5827,
41507,
21,
338,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
1683,
1342,
1201,
1315,
1933,
2084,
621,
25307,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
... |
Bar graph to show total number of cloud cover from different date, list in desc by the total number. | SELECT date, SUM(cloud_cover) FROM weather ORDER BY SUM(cloud_cover) DESC | [
10374,
4823,
284,
905,
2472,
1271,
286,
6279,
3002,
422,
1180,
3128,
11,
1351,
287,
1715,
416,
262,
2472,
1271,
13,
46506,
3128,
11,
35683,
7,
17721,
62,
9631,
8,
16034,
6193,
38678,
11050,
35683,
7,
17721,
62,
9631,
8,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
4823,
284,
905,
2472,
1271,
286,
6279,
3002,
422,
1180,
3128,
11,
1351,
287,
1715,
416,
262,
2472,
1271,
13,
46506,
3128,
11,
35683,
7,
17721,
62,
9631,
8,
16034,
6193,
38678,
11050,
35683,
7,
17721,
62,
9631,
8,
22196,
34
] |
What year did Bangkok University and Chunnam Dragons have a score of 0-0? | SELECT SUM("Season") FROM table_43980 WHERE "Team 1" = 'bangkok university' AND "Score" = '0-0' AND "Team 2" = 'chunnam dragons' | [
2061,
614,
750,
35007,
2059,
290,
40958,
7402,
19075,
423,
257,
4776,
286,
657,
12,
15,
30,
46506,
35683,
7203,
18960,
4943,
16034,
3084,
62,
47106,
1795,
33411,
366,
15592,
352,
1,
796,
705,
36668,
32004,
6403,
6,
5357,
366,
26595,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
750,
35007,
2059,
290,
40958,
7402,
19075,
423,
257,
4776,
286,
657,
12,
15,
30,
46506,
35683,
7203,
18960,
4943,
16034,
3084,
62,
47106,
1795,
33411,
366,
15592,
352,
1,
796,
705,
36668,
32004,
6403,
6,
5357,
366,
26595,
1... |
calculate the average age of patients with femoral artery thrombosis as primary disease, who had a hospital stay of 5 days. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "FEMORAL ARTERY THROMBOSIS" AND demographic.days_stay = "5" | [
9948,
3129,
378,
262,
2811,
2479,
286,
3871,
351,
2796,
6864,
37646,
294,
398,
65,
5958,
355,
4165,
4369,
11,
508,
550,
257,
4436,
2652,
286,
642,
1528,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
2811,
2479,
286,
3871,
351,
2796,
6864,
37646,
294,
398,
65,
5958,
355,
4165,
4369,
11,
508,
550,
257,
4436,
2652,
286,
642,
1528,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47... |
let me know the drug code and route of administration of metronidazole. | SELECT prescriptions.formulary_drug_cd, prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Metronidazole" | [
1616,
502,
760,
262,
2563,
2438,
290,
6339,
286,
3662,
286,
1138,
1313,
312,
1031,
2305,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
9171,
1313,
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
] | [
1616,
502,
760,
262,
2563,
2438,
290,
6339,
286,
3662,
286,
1138,
1313,
312,
1031,
2305,
13,
46506,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
11,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
9171,
1313,
312... |
Find questions containing the given two tags. | SELECT q.Id AS "post_link", q.Tags, q.CreationDate, q.ViewCount, q.Score, q.AnswerCount, q.OwnerUserId AS "user_link", q.OwnerDisplayName FROM Posts AS q WHERE (q.Tags LIKE '%<##tag1?abstract-algebra##>%') AND q.CreationDate >= '2020-02-01' AND q.CreationDate < '2020-04-30' ORDER BY q.CreationDate DESC | [
16742,
2683,
7268,
262,
1813,
734,
15940,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
36142,
11,
10662,
13,
12443,
341,
10430,
11,
10662,
13,
7680,
12332,
11,
10662,
13,
26595,
11,
10662,
13,
33706,
12332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2683,
7268,
262,
1813,
734,
15940,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
36142,
11,
10662,
13,
12443,
341,
10430,
11,
10662,
13,
7680,
12332,
11,
10662,
13,
26595,
11,
10662,
13,
33706,
12332,
... |
What are the original names of the districts where the population in the 2010 census was 210450? | SELECT "Original name" FROM table_16432 WHERE "Population at 2010 Census" = '210450' | [
2061,
389,
262,
2656,
3891,
286,
262,
12815,
810,
262,
3265,
287,
262,
3050,
21649,
373,
362,
13464,
1120,
30,
46506,
366,
20556,
1438,
1,
16034,
3084,
62,
23237,
2624,
33411,
366,
45251,
379,
3050,
20962,
1,
796,
705,
17,
13464,
1120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
3891,
286,
262,
12815,
810,
262,
3265,
287,
262,
3050,
21649,
373,
362,
13464,
1120,
30,
46506,
366,
20556,
1438,
1,
16034,
3084,
62,
23237,
2624,
33411,
366,
45251,
379,
3050,
20962,
1,
796,
705,
17,
13464,
1120... |
what was the prescription drug that patient 007-4322 had received two or more times in 08/this year? | SELECT t1.drugname FROM (SELECT medication.drugname, COUNT(medication.drugstarttime) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007... | [
10919,
373,
262,
15077,
2563,
326,
5827,
3571,
22,
12,
3559,
1828,
550,
2722,
734,
393,
517,
1661,
287,
8487,
14,
5661,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
7,
1150,
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... | [
10919,
373,
262,
15077,
2563,
326,
5827,
3571,
22,
12,
3559,
1828,
550,
2722,
734,
393,
517,
1661,
287,
8487,
14,
5661,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
327,
28270,
7,
1150,
32... |
what were the four most frequently prescribed drugs for patients who had also been prescribed dexamethasone sod phosphate at the same time? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'dexamethasone sod phosphate') AS t1 JOIN (SELECT admissions.subje... | [
10919,
547,
262,
1440,
749,
6777,
14798,
5010,
329,
3871,
508,
550,
635,
587,
14798,
36017,
321,
2788,
292,
505,
32581,
46926,
379,
262,
976,
640,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
6777,
14798,
5010,
329,
3871,
508,
550,
635,
587,
14798,
36017,
321,
2788,
292,
505,
32581,
46926,
379,
262,
976,
640,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
... |
What dates were the matches at windy hill? | SELECT date FROM table_name_1 WHERE venue = "windy hill" | [
2061,
9667,
547,
262,
7466,
379,
2344,
88,
12788,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
16,
33411,
14359,
796,
366,
7972,
88,
12788,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
9667,
547,
262,
7466,
379,
2344,
88,
12788,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
16,
33411,
14359,
796,
366,
7972,
88,
12788,
1
] |
What is the rank of Etihad Tower 5, with less than 62 floors? | SELECT MIN(rank) FROM table_name_90 WHERE floors < 62 AND name = "etihad tower 5" | [
2061,
318,
262,
4279,
286,
17906,
11166,
8765,
642,
11,
351,
1342,
621,
8190,
18570,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
18570,
1279,
8190,
5357,
1438,
796,
366,
316,
11166,
10580,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4279,
286,
17906,
11166,
8765,
642,
11,
351,
1342,
621,
8190,
18570,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
18570,
1279,
8190,
5357,
1438,
796,
366,
316,
11166,
10580,
642,
1
] |
Which Team has Losses larger than 5, and a Position of 12? | SELECT "Team" FROM table_63138 WHERE "Losses" > '5' AND "Position" = '12' | [
13828,
4816,
468,
22014,
274,
4025,
621,
642,
11,
290,
257,
23158,
286,
1105,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
5066,
20107,
33411,
366,
43,
793,
274,
1,
1875,
705,
20,
6,
5357,
366,
26545,
1,
796,
705,
1065,
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,
4816,
468,
22014,
274,
4025,
621,
642,
11,
290,
257,
23158,
286,
1105,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
5066,
20107,
33411,
366,
43,
793,
274,
1,
1875,
705,
20,
6,
5357,
366,
26545,
1,
796,
705,
1065,
6
] |
did patient 006-254182 receive a laboratory test in 09/last year? | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-254182')) AND DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME()... | [
20839,
5827,
3571,
21,
12,
24970,
24294,
3328,
257,
14010,
1332,
287,
7769,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
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... | [
20839,
5827,
3571,
21,
12,
24970,
24294,
3328,
257,
14010,
1332,
287,
7769,
14,
12957,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31... |
What is the hometown of the players for de la salle high school | SELECT "Hometown" FROM table_17092 WHERE "School" = 'De La Salle High School' | [
2061,
318,
262,
20994,
286,
262,
1938,
329,
390,
8591,
3664,
293,
1029,
1524,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
1558,
2931,
17,
33411,
366,
26130,
1,
796,
705,
5005,
4689,
4849,
293,
3334,
3961,
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,
20994,
286,
262,
1938,
329,
390,
8591,
3664,
293,
1029,
1524,
46506,
366,
39,
19191,
1,
16034,
3084,
62,
1558,
2931,
17,
33411,
366,
26130,
1,
796,
705,
5005,
4689,
4849,
293,
3334,
3961,
6
] |
What is the length of fleet number 501-506? | SELECT length FROM table_name_62 WHERE fleet_number = "501-506" | [
2061,
318,
262,
4129,
286,
11026,
1271,
24555,
12,
35638,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
5237,
33411,
11026,
62,
17618,
796,
366,
33548,
12,
35638,
1
] | [
1,
1,
1,
1,
1,
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,
4129,
286,
11026,
1271,
24555,
12,
35638,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
5237,
33411,
11026,
62,
17618,
796,
366,
33548,
12,
35638,
1
] |
Name the episode with maritza reveron | SELECT episode FROM table_2140071_10 WHERE coach = "Maritza Reveron" | [
5376,
262,
4471,
351,
1667,
4224,
64,
33033,
261,
46506,
4471,
16034,
3084,
62,
22291,
405,
4869,
62,
940,
33411,
3985,
796,
366,
7676,
4224,
64,
797,
332,
261,
1
] | [
1,
1,
1,
1,
1,
1,
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,
4471,
351,
1667,
4224,
64,
33033,
261,
46506,
4471,
16034,
3084,
62,
22291,
405,
4869,
62,
940,
33411,
3985,
796,
366,
7676,
4224,
64,
797,
332,
261,
1
] |
What Country has a number smaller than 3 in 2004 and larger than 1 in 2005? | SELECT COUNT("2006") FROM table_69007 WHERE "2004" < '3' AND "2005" > '1' | [
2061,
12946,
468,
257,
1271,
4833,
621,
513,
287,
5472,
290,
4025,
621,
352,
287,
5075,
30,
46506,
327,
28270,
7203,
13330,
4943,
16034,
3084,
62,
3388,
25816,
33411,
366,
15724,
1,
1279,
705,
18,
6,
5357,
366,
14315,
1,
1875,
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
] | [
2061,
12946,
468,
257,
1271,
4833,
621,
513,
287,
5472,
290,
4025,
621,
352,
287,
5075,
30,
46506,
327,
28270,
7203,
13330,
4943,
16034,
3084,
62,
3388,
25816,
33411,
366,
15724,
1,
1279,
705,
18,
6,
5357,
366,
14315,
1,
1875,
705,
... |
How many times did episode 79 originally air? | SELECT COUNT("Original air date") FROM table_16468 WHERE "No. in series" = '79' | [
2437,
867,
1661,
750,
4471,
9225,
6198,
1633,
30,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
23237,
3104,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
3720,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1661,
750,
4471,
9225,
6198,
1633,
30,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
23237,
3104,
33411,
366,
2949,
13,
287,
2168,
1,
796,
705,
3720,
6
] |
what is the date the successor seated because the person died august 17, 1954? | SELECT "Date successor seated" FROM table_20875 WHERE "Reason for change" = 'Died August 17, 1954' | [
10919,
318,
262,
3128,
262,
17270,
21639,
780,
262,
1048,
3724,
16339,
436,
1596,
11,
24718,
30,
46506,
366,
10430,
17270,
21639,
1,
16034,
3084,
62,
21315,
2425,
33411,
366,
45008,
329,
1487,
1,
796,
705,
35,
798,
2932,
1596,
11,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
262,
17270,
21639,
780,
262,
1048,
3724,
16339,
436,
1596,
11,
24718,
30,
46506,
366,
10430,
17270,
21639,
1,
16034,
3084,
62,
21315,
2425,
33411,
366,
45008,
329,
1487,
1,
796,
705,
35,
798,
2932,
1596,
11,
247... |
tell me the drugs that patient 007-16517 is allergic to in the current hospital encounter? | SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-16517' AND patient.hospitaldischargetime IS NULL)) | [
33331,
502,
262,
5010,
326,
5827,
3571,
22,
12,
20986,
1558,
318,
31856,
284,
287,
262,
1459,
4436,
8791,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
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... | [
33331,
502,
262,
5010,
326,
5827,
3571,
22,
12,
20986,
1558,
318,
31856,
284,
287,
262,
1459,
4436,
8791,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20... |
If Democratic is 42.5%, what is the city? | SELECT "City" FROM table_27437 WHERE "Democratic" = '42.5%' | [
1532,
4390,
318,
5433,
13,
20,
7441,
644,
318,
262,
1748,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
28857,
2718,
33411,
366,
33939,
1,
796,
705,
3682,
13,
20,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
4390,
318,
5433,
13,
20,
7441,
644,
318,
262,
1748,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
28857,
2718,
33411,
366,
33939,
1,
796,
705,
3682,
13,
20,
4,
6
] |
Show ids of students who don't play video game. | SELECT stuid FROM student EXCEPT SELECT stuid FROM plays_games | [
15307,
220,
2340,
286,
2444,
508,
836,
470,
711,
2008,
983,
13,
46506,
336,
27112,
16034,
3710,
7788,
42006,
33493,
336,
27112,
16034,
5341,
62,
19966
] | [
1,
1,
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,
220,
2340,
286,
2444,
508,
836,
470,
711,
2008,
983,
13,
46506,
336,
27112,
16034,
3710,
7788,
42006,
33493,
336,
27112,
16034,
5341,
62,
19966
] |
What is the pick number for the tight end who was picked after round 6? | SELECT COUNT(pick) FROM table_name_67 WHERE round > 6 AND position = "tight end" | [
2061,
318,
262,
2298,
1271,
329,
262,
5381,
886,
508,
373,
6497,
706,
2835,
718,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
2835,
1875,
718,
5357,
2292,
796,
366,
33464,
886,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2298,
1271,
329,
262,
5381,
886,
508,
373,
6497,
706,
2835,
718,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
2835,
1875,
718,
5357,
2292,
796,
366,
33464,
886,
1
] |
What player has 289 as the total? | SELECT player FROM table_name_93 WHERE total = 289 | [
2061,
2137,
468,
38902,
355,
262,
2472,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
6052,
33411,
2472,
796,
38902
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
468,
38902,
355,
262,
2472,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
6052,
33411,
2472,
796,
38902
] |
What is the goal low with caps less than 38 and an average less than 1.083? | SELECT MIN(goals) FROM table_name_93 WHERE caps < 38 AND average < 1.083 | [
2061,
318,
262,
3061,
1877,
351,
11022,
1342,
621,
4353,
290,
281,
2811,
1342,
621,
352,
13,
48290,
30,
46506,
20625,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
11022,
1279,
4353,
5357,
2811,
1279,
352,
13,
48290
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3061,
1877,
351,
11022,
1342,
621,
4353,
290,
281,
2811,
1342,
621,
352,
13,
48290,
30,
46506,
20625,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
11022,
1279,
4353,
5357,
2811,
1279,
352,
13,
48290
] |
List all directors along with the number of films directed by each director in a bar chart. | SELECT Directed_by, COUNT(*) FROM film GROUP BY Directed_by | [
8053,
477,
13445,
1863,
351,
262,
1271,
286,
7328,
7924,
416,
1123,
3437,
287,
257,
2318,
8262,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
13445,
1863,
351,
262,
1271,
286,
7328,
7924,
416,
1123,
3437,
287,
257,
2318,
8262,
13,
46506,
4128,
276,
62,
1525,
11,
327,
28270,
7,
28104,
16034,
2646,
44441,
11050,
4128,
276,
62,
1525
] |
Who is the owner before 1940, who had a number and name of no. 1222? | SELECT owner_s_ FROM table_name_60 WHERE date < 1940 AND number_ & _name = "no. 1222" | [
8241,
318,
262,
4870,
878,
16236,
11,
508,
550,
257,
1271,
290,
1438,
286,
645,
13,
1105,
1828,
30,
46506,
4870,
62,
82,
62,
16034,
3084,
62,
3672,
62,
1899,
33411,
3128,
1279,
16236,
5357,
1271,
62,
1222,
4808,
3672,
796,
366,
3919... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4870,
878,
16236,
11,
508,
550,
257,
1271,
290,
1438,
286,
645,
13,
1105,
1828,
30,
46506,
4870,
62,
82,
62,
16034,
3084,
62,
3672,
62,
1899,
33411,
3128,
1279,
16236,
5357,
1271,
62,
1222,
4808,
3672,
796,
366,
3919... |
what was the last dose of sulfameth/trimethoprim ds that until 03/2105 was prescribed to patient 64292? | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 64292) AND prescriptions.drug = 'sulfameth/trimethoprim ds' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2105-03' ORDER BY prescriptions.startdate DESC LIMIT ... | [
10919,
373,
262,
938,
10742,
286,
22443,
321,
2788,
14,
2213,
320,
2788,
404,
3036,
288,
82,
326,
1566,
7643,
14,
17,
13348,
373,
14798,
284,
5827,
5598,
32759,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
10742,
286,
22443,
321,
2788,
14,
2213,
320,
2788,
404,
3036,
288,
82,
326,
1566,
7643,
14,
17,
13348,
373,
14798,
284,
5827,
5598,
32759,
30,
46506,
34092,
13,
34436,
62,
2100,
62,
40914,
16034,
34092,
33411,
34... |
make a count of the patients who received stress ulcer prophylaxis - pantoprazole in the same month after having been diagnosed with hypoxemia since 2102. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hypoxemia' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2102') AS t1 JOIN (SELECT patient.uniquepid, trea... | [
15883,
257,
954,
286,
262,
3871,
508,
2722,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
15857,
404,
3247,
2305,
287,
262,
976,
1227,
706,
1719,
587,
14641,
351,
5328,
1140,
22859,
1201,
362,
15377,
13,
46506,
327,
28270,
7,
35,
880... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15883,
257,
954,
286,
262,
3871,
508,
2722,
5503,
14856,
2189,
386,
746,
2645,
22704,
532,
15857,
404,
3247,
2305,
287,
262,
976,
1227,
706,
1719,
587,
14641,
351,
5328,
1140,
22859,
1201,
362,
15377,
13,
46506,
327,
28270,
7,
35,
880... |
How many total matches with less than 1 win and a position higher than 8? | SELECT SUM("Matches") FROM table_35581 WHERE "Wins" < '1' AND "Pos." > '8' | [
2437,
867,
2472,
7466,
351,
1342,
621,
352,
1592,
290,
257,
2292,
2440,
621,
807,
30,
46506,
35683,
7203,
19044,
2052,
4943,
16034,
3084,
62,
2327,
48630,
33411,
366,
54,
1040,
1,
1279,
705,
16,
6,
5357,
366,
21604,
526,
1875,
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
] | [
2437,
867,
2472,
7466,
351,
1342,
621,
352,
1592,
290,
257,
2292,
2440,
621,
807,
30,
46506,
35683,
7203,
19044,
2052,
4943,
16034,
3084,
62,
2327,
48630,
33411,
366,
54,
1040,
1,
1279,
705,
16,
6,
5357,
366,
21604,
526,
1875,
705,
... |
What is the Rank of the Guam Player? | SELECT AVG(rank) FROM table_name_83 WHERE country = "guam" | [
2061,
318,
262,
10916,
286,
262,
39282,
7853,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1499,
796,
366,
5162,
321,
1
] | [
1,
1,
1,
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,
10916,
286,
262,
39282,
7853,
30,
46506,
35224,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1499,
796,
366,
5162,
321,
1
] |
Who is every play-by-play announcer when Chris Rose is the trophy presenter? | SELECT "Play-by-play announcer" FROM table_31138 WHERE "Trophy presentation" = 'Chris Rose' | [
8241,
318,
790,
711,
12,
1525,
12,
1759,
49032,
618,
5180,
8049,
318,
262,
16383,
39597,
30,
46506,
366,
11002,
12,
1525,
12,
1759,
49032,
1,
16034,
3084,
62,
36244,
2548,
33411,
366,
44095,
6883,
10470,
1,
796,
705,
15645,
8049,
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
] | [
8241,
318,
790,
711,
12,
1525,
12,
1759,
49032,
618,
5180,
8049,
318,
262,
16383,
39597,
30,
46506,
366,
11002,
12,
1525,
12,
1759,
49032,
1,
16034,
3084,
62,
36244,
2548,
33411,
366,
44095,
6883,
10470,
1,
796,
705,
15645,
8049,
6
] |
during their current hospital visit how many days has gone since patient 030-42006 was last diagnosed with seizures - generalized tonic -clonic? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-42006'... | [
42122,
511,
1459,
4436,
3187,
703,
867,
1528,
468,
3750,
1201,
5827,
657,
1270,
12,
19,
13330,
373,
938,
14641,
351,
24715,
532,
38284,
5680,
291,
532,
565,
9229,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
42122,
511,
1459,
4436,
3187,
703,
867,
1528,
468,
3750,
1201,
5827,
657,
1270,
12,
19,
13330,
373,
938,
14641,
351,
24715,
532,
38284,
5680,
291,
532,
565,
9229,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,... |
Who is the Arkansas player associated with Ken Stabler? | SELECT "Arkansas" FROM table_80223 WHERE "Alabama" = 'ken stabler' | [
8241,
318,
262,
14538,
2137,
3917,
351,
7148,
49726,
1754,
30,
46506,
366,
42007,
6618,
1,
16034,
3084,
62,
1795,
22047,
33411,
366,
49177,
1,
796,
705,
3464,
8303,
1754,
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
] | [
8241,
318,
262,
14538,
2137,
3917,
351,
7148,
49726,
1754,
30,
46506,
366,
42007,
6618,
1,
16034,
3084,
62,
1795,
22047,
33411,
366,
49177,
1,
796,
705,
3464,
8303,
1754,
6
] |
What college did the Rookie of the Year from the Columbus Crew attend? | SELECT college FROM table_1004033_1 WHERE team = "Columbus Crew" | [
2061,
4152,
750,
262,
36595,
286,
262,
6280,
422,
262,
14939,
17652,
5262,
30,
46506,
4152,
16034,
3084,
62,
3064,
1821,
2091,
62,
16,
33411,
1074,
796,
366,
36063,
385,
17652,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
4152,
750,
262,
36595,
286,
262,
6280,
422,
262,
14939,
17652,
5262,
30,
46506,
4152,
16034,
3084,
62,
3064,
1821,
2091,
62,
16,
33411,
1074,
796,
366,
36063,
385,
17652,
1
] |
What is the location of fightfest 2, which has 3 rounds? | SELECT location FROM table_name_46 WHERE round = 3 AND event = "fightfest 2" | [
2061,
318,
262,
4067,
286,
1907,
23411,
362,
11,
543,
468,
513,
9196,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3510,
33411,
2835,
796,
513,
5357,
1785,
796,
366,
15481,
23411,
362,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4067,
286,
1907,
23411,
362,
11,
543,
468,
513,
9196,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
3510,
33411,
2835,
796,
513,
5357,
1785,
796,
366,
15481,
23411,
362,
1
] |
Name the Model Number which has a FSB Speed of 400 mhz? | SELECT model_number FROM table_name_59 WHERE fsb_speed = "400 mhz" | [
5376,
262,
9104,
7913,
543,
468,
257,
376,
16811,
8729,
286,
7337,
285,
32179,
30,
46506,
2746,
62,
17618,
16034,
3084,
62,
3672,
62,
3270,
33411,
277,
36299,
62,
12287,
796,
366,
7029,
285,
32179,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9104,
7913,
543,
468,
257,
376,
16811,
8729,
286,
7337,
285,
32179,
30,
46506,
2746,
62,
17618,
16034,
3084,
62,
3672,
62,
3270,
33411,
277,
36299,
62,
12287,
796,
366,
7029,
285,
32179,
1
] |
What is the lead with a second of Vicki Adams and a third of Anna Sloan? | SELECT lead FROM table_name_74 WHERE second = "vicki adams" AND third = "anna sloan" | [
2061,
318,
262,
1085,
351,
257,
1218,
286,
33347,
72,
12620,
290,
257,
2368,
286,
11735,
43066,
30,
46506,
1085,
16034,
3084,
62,
3672,
62,
4524,
33411,
1218,
796,
366,
85,
624,
72,
512,
4105,
1,
5357,
2368,
796,
366,
7697,
1017,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1085,
351,
257,
1218,
286,
33347,
72,
12620,
290,
257,
2368,
286,
11735,
43066,
30,
46506,
1085,
16034,
3084,
62,
3672,
62,
4524,
33411,
1218,
796,
366,
85,
624,
72,
512,
4105,
1,
5357,
2368,
796,
366,
7697,
1017,
24... |
Draw a bar chart for what are the hometowns of gymnasts and the corresponding number of gymnasts?, and rank by the Y from low to high. | SELECT Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) | [
25302,
257,
2318,
8262,
329,
644,
389,
262,
20994,
82,
286,
38581,
5773,
290,
262,
11188,
1271,
286,
38581,
5773,
21747,
290,
4279,
416,
262,
575,
422,
1877,
284,
1029,
13,
46506,
367,
19191,
11,
327,
28270,
7,
28104,
16034,
38581,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
25302,
257,
2318,
8262,
329,
644,
389,
262,
20994,
82,
286,
38581,
5773,
290,
262,
11188,
1271,
286,
38581,
5773,
21747,
290,
4279,
416,
262,
575,
422,
1877,
284,
1029,
13,
46506,
367,
19191,
11,
327,
28270,
7,
28104,
16034,
38581,
45... |
What was the Final Score on February 24, 2002? | SELECT score_in_final FROM table_name_21 WHERE date = "february 24, 2002" | [
2061,
373,
262,
8125,
15178,
319,
3945,
1987,
11,
6244,
30,
46506,
4776,
62,
259,
62,
20311,
16034,
3084,
62,
3672,
62,
2481,
33411,
3128,
796,
366,
69,
1765,
3728,
1987,
11,
6244,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8125,
15178,
319,
3945,
1987,
11,
6244,
30,
46506,
4776,
62,
259,
62,
20311,
16034,
3084,
62,
3672,
62,
2481,
33411,
3128,
796,
366,
69,
1765,
3728,
1987,
11,
6244,
1
] |
What year is the season with the 10.73 million views? | SELECT "TV season" FROM table_15940 WHERE "Viewers (millions)" = '10.73' | [
2061,
614,
318,
262,
1622,
351,
262,
838,
13,
4790,
1510,
5009,
30,
46506,
366,
6849,
1622,
1,
16034,
3084,
62,
19707,
1821,
33411,
366,
7680,
364,
357,
17805,
507,
16725,
796,
705,
940,
13,
4790,
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,
614,
318,
262,
1622,
351,
262,
838,
13,
4790,
1510,
5009,
30,
46506,
366,
6849,
1622,
1,
16034,
3084,
62,
19707,
1821,
33411,
366,
7680,
364,
357,
17805,
507,
16725,
796,
705,
940,
13,
4790,
6
] |
count the number of patients whose procedure icd9 code is 8604 and discharge location is short term hospital. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND procedures.icd9_code = "8604" | [
9127,
262,
1271,
286,
3871,
3025,
8771,
14158,
67,
24,
2438,
318,
807,
31916,
290,
17655,
4067,
318,
1790,
3381,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8771,
14158,
67,
24,
2438,
318,
807,
31916,
290,
17655,
4067,
318,
1790,
3381,
4436,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... |
Name the number of black knights points for 3 game | SELECT COUNT("Black Knights points") FROM table_24106 WHERE "Game" = '3' | [
5376,
262,
1271,
286,
2042,
27536,
2173,
329,
513,
983,
46506,
327,
28270,
7203,
9915,
15188,
2173,
4943,
16034,
3084,
62,
1731,
15801,
33411,
366,
8777,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
2042,
27536,
2173,
329,
513,
983,
46506,
327,
28270,
7203,
9915,
15188,
2173,
4943,
16034,
3084,
62,
1731,
15801,
33411,
366,
8777,
1,
796,
705,
18,
6
] |
what is the GDP of the city with the largest population. | SELECT gdp FROM city ORDER BY regional_population DESC LIMIT 1 | [
10919,
318,
262,
12396,
286,
262,
1748,
351,
262,
4387,
3265,
13,
46506,
308,
26059,
16034,
1748,
38678,
11050,
7915,
62,
39748,
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
] | [
10919,
318,
262,
12396,
286,
262,
1748,
351,
262,
4387,
3265,
13,
46506,
308,
26059,
16034,
1748,
38678,
11050,
7915,
62,
39748,
22196,
34,
27564,
2043,
352
] |
Which Score has a Losing Team of sydney roosters, and a Total of 88? | SELECT score FROM table_name_77 WHERE losing_team = "sydney roosters" AND total = 88 | [
13828,
15178,
468,
257,
406,
2752,
4816,
286,
827,
67,
1681,
686,
455,
364,
11,
290,
257,
7472,
286,
9193,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
6078,
62,
15097,
796,
366,
1837,
67,
1681,
686,
455,
364,
1,
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
] | [
13828,
15178,
468,
257,
406,
2752,
4816,
286,
827,
67,
1681,
686,
455,
364,
11,
290,
257,
7472,
286,
9193,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
6078,
62,
15097,
796,
366,
1837,
67,
1681,
686,
455,
364,
1,
5357,
... |
How much have players earned with 14 wins ranked below 3? | SELECT COUNT("Earnings( $ )") FROM table_77590 WHERE "Wins" = '14' AND "Rank" > '3' | [
2437,
881,
423,
1938,
7366,
351,
1478,
7864,
10307,
2174,
513,
30,
46506,
327,
28270,
7203,
49725,
654,
7,
720,
1267,
4943,
16034,
3084,
62,
34483,
3829,
33411,
366,
54,
1040,
1,
796,
705,
1415,
6,
5357,
366,
27520,
1,
1875,
705,
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
] | [
2437,
881,
423,
1938,
7366,
351,
1478,
7864,
10307,
2174,
513,
30,
46506,
327,
28270,
7203,
49725,
654,
7,
720,
1267,
4943,
16034,
3084,
62,
34483,
3829,
33411,
366,
54,
1040,
1,
796,
705,
1415,
6,
5357,
366,
27520,
1,
1875,
705,
18... |
What was the manner of departure for the outgoing manager, davide ballardini? | SELECT "Manner of departure" FROM table_48245 WHERE "Outgoing manager" = 'davide ballardini' | [
2061,
373,
262,
5642,
286,
12928,
329,
262,
28181,
4706,
11,
288,
615,
485,
2613,
446,
5362,
30,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
2780,
22995,
33411,
366,
7975,
5146,
4706,
1,
796,
705,
67,
615,
485,
2613,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5642,
286,
12928,
329,
262,
28181,
4706,
11,
288,
615,
485,
2613,
446,
5362,
30,
46506,
366,
5124,
1008,
286,
12928,
1,
16034,
3084,
62,
2780,
22995,
33411,
366,
7975,
5146,
4706,
1,
796,
705,
67,
615,
485,
2613,
446... |
Regarding players before 2000, what is the USC player's position? | SELECT position FROM table_name_31 WHERE year < 2000 AND college_country = "usc" | [
39424,
1938,
878,
4751,
11,
644,
318,
262,
18928,
2137,
338,
2292,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
1279,
4751,
5357,
4152,
62,
19315,
796,
366,
16241,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
39424,
1938,
878,
4751,
11,
644,
318,
262,
18928,
2137,
338,
2292,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
1279,
4751,
5357,
4152,
62,
19315,
796,
366,
16241,
1
] |
Name the district for 1994 | SELECT "District" FROM table_27307 WHERE "First elected" = '1994' | [
5376,
262,
4783,
329,
9162,
46506,
366,
44857,
1,
16034,
3084,
62,
1983,
22996,
33411,
366,
5962,
7018,
1,
796,
705,
22666,
6
] | [
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,
4783,
329,
9162,
46506,
366,
44857,
1,
16034,
3084,
62,
1983,
22996,
33411,
366,
5962,
7018,
1,
796,
705,
22666,
6
] |
tell me, what were the five most common procedures until 1 year ago? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE DATETIME(procedures_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year') GROUP BY procedur... | [
33331,
502,
11,
644,
547,
262,
1936,
749,
2219,
9021,
1566,
352,
614,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
11,
644,
547,
262,
1936,
749,
2219,
9021,
1566,
352,
614,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
62,
291,
67,
62,
1676,
77... |
What is Round when Year is 1987? | SELECT "Round" FROM table_45464 WHERE "Year" = '1987' | [
2061,
318,
10485,
618,
6280,
318,
12923,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
34229,
2414,
33411,
366,
17688,
1,
796,
705,
27301,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
10485,
618,
6280,
318,
12923,
30,
46506,
366,
22685,
1,
16034,
3084,
62,
34229,
2414,
33411,
366,
17688,
1,
796,
705,
27301,
6
] |
What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August? | SELECT "Sat 29 Aug" FROM table_26084 WHERE "Tues 25 Aug" = '23'' 18.82 97.102mph' | [
2061,
640,
373,
8793,
319,
3909,
2808,
400,
2932,
416,
262,
17876,
508,
6264,
2242,
6,
1248,
13,
6469,
10111,
13,
15377,
23335,
319,
3431,
1679,
400,
2932,
30,
46506,
366,
20245,
2808,
2447,
1,
16034,
3084,
62,
21719,
5705,
33411,
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,
640,
373,
8793,
319,
3909,
2808,
400,
2932,
416,
262,
17876,
508,
6264,
2242,
6,
1248,
13,
6469,
10111,
13,
15377,
23335,
319,
3431,
1679,
400,
2932,
30,
46506,
366,
20245,
2808,
2447,
1,
16034,
3084,
62,
21719,
5705,
33411,
366... |
Group and count the name attribute for visualizing a bar chart, display in ascending by the Name. | SELECT Name, COUNT(Name) FROM editor GROUP BY Name ORDER BY Name | [
13247,
290,
954,
262,
1438,
11688,
329,
5874,
2890,
257,
2318,
8262,
11,
3359,
287,
41988,
416,
262,
6530,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530,
38678,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
11688,
329,
5874,
2890,
257,
2318,
8262,
11,
3359,
287,
41988,
416,
262,
6530,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530,
38678,
11050,
6530
] |
Tell what has the App(GS/Sub) of 14 (8/6) | SELECT "Name" FROM table_70006 WHERE "App(GS/Sub)" = '14 (8/6)' | [
24446,
644,
468,
262,
2034,
7,
14313,
14,
7004,
8,
286,
1478,
357,
23,
14,
21,
8,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
830,
21,
33411,
366,
4677,
7,
14313,
14,
7004,
16725,
796,
705,
1415,
357,
23,
14,
21,
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,
1
] | [
24446,
644,
468,
262,
2034,
7,
14313,
14,
7004,
8,
286,
1478,
357,
23,
14,
21,
8,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
830,
21,
33411,
366,
4677,
7,
14313,
14,
7004,
16725,
796,
705,
1415,
357,
23,
14,
21,
33047
] |
Return a histogram on how many invoices were billed from each state? | SELECT billing_state, COUNT(*) FROM invoices WHERE billing_country = "USA" GROUP BY billing_state | [
13615,
257,
1554,
21857,
319,
703,
867,
800,
78,
1063,
547,
33094,
422,
1123,
1181,
30,
46506,
26297,
62,
5219,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
33411,
26297,
62,
19315,
796,
366,
14053,
1,
44441,
11050,
26297,
62,
5219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
1554,
21857,
319,
703,
867,
800,
78,
1063,
547,
33094,
422,
1123,
1181,
30,
46506,
26297,
62,
5219,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
33411,
26297,
62,
19315,
796,
366,
14053,
1,
44441,
11050,
26297,
62,
5219... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of job_id and commission_pct , and rank in ascending by the x axis. | SELECT JOB_ID, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
5810,
62,
79,
310,
837,
290,
4279,
287,
41988,
416,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
5810,
62,
79,
310,
837,
290,
4279,
287,
41988,
416,
262,
... |
What is the most common mill type, and how many are there? | SELECT TYPE, COUNT(*) FROM mill GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
749,
2219,
3939,
2099,
11,
290,
703,
867,
389,
612,
30,
46506,
41876,
11,
327,
28270,
7,
28104,
16034,
3939,
44441,
11050,
41876,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
2219,
3939,
2099,
11,
290,
703,
867,
389,
612,
30,
46506,
41876,
11,
327,
28270,
7,
28104,
16034,
3939,
44441,
11050,
41876,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
What is the transfer window of the player moving from barueri? | SELECT transfer_window FROM table_name_40 WHERE moving_from = "barueri" | [
2061,
318,
262,
4351,
4324,
286,
262,
2137,
3867,
422,
2318,
15573,
72,
30,
46506,
4351,
62,
17497,
16034,
3084,
62,
3672,
62,
1821,
33411,
3867,
62,
6738,
796,
366,
5657,
15573,
72,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4351,
4324,
286,
262,
2137,
3867,
422,
2318,
15573,
72,
30,
46506,
4351,
62,
17497,
16034,
3084,
62,
3672,
62,
1821,
33411,
3867,
62,
6738,
796,
366,
5657,
15573,
72,
1
] |
how many different teams are represented in the table ? | SELECT COUNT(DISTINCT "team") FROM table_203_348 | [
4919,
867,
1180,
3466,
389,
7997,
287,
262,
3084,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
15097,
4943,
16034,
3084,
62,
22416,
62,
28978
] | [
1,
1,
1,
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,
1180,
3466,
389,
7997,
287,
262,
3084,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
366,
15097,
4943,
16034,
3084,
62,
22416,
62,
28978
] |
What is the finish with 200 laps and a start of 3? | SELECT "Finish" FROM table_71762 WHERE "Laps" = '200' AND "Start" = '3' | [
2061,
318,
262,
5461,
351,
939,
24590,
290,
257,
923,
286,
513,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
22,
1558,
5237,
33411,
366,
43,
1686,
1,
796,
705,
2167,
6,
5357,
366,
10434,
1,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5461,
351,
939,
24590,
290,
257,
923,
286,
513,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
22,
1558,
5237,
33411,
366,
43,
1686,
1,
796,
705,
2167,
6,
5357,
366,
10434,
1,
796,
705,
18,
6
] |
Who was listed under the general classification when the stage winner was suhardi hassan? | SELECT "General classification" FROM table_29315 WHERE "Stage winner" = 'Suhardi Hassan' | [
8241,
373,
5610,
739,
262,
2276,
17923,
618,
262,
3800,
8464,
373,
424,
10424,
72,
468,
12807,
30,
46506,
366,
12218,
17923,
1,
16034,
3084,
62,
1959,
27936,
33411,
366,
29391,
8464,
1,
796,
705,
5606,
10424,
72,
24485,
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
] | [
8241,
373,
5610,
739,
262,
2276,
17923,
618,
262,
3800,
8464,
373,
424,
10424,
72,
468,
12807,
30,
46506,
366,
12218,
17923,
1,
16034,
3084,
62,
1959,
27936,
33411,
366,
29391,
8464,
1,
796,
705,
5606,
10424,
72,
24485,
6
] |
Which player won in 1987 and ended with a score of +9? | SELECT total FROM table_name_75 WHERE to_par = "+9" AND year_s__won = "1987" | [
13828,
2137,
1839,
287,
12923,
290,
4444,
351,
257,
4776,
286,
1343,
24,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
2425,
33411,
284,
62,
1845,
796,
43825,
24,
1,
5357,
614,
62,
82,
834,
26502,
796,
366,
27301,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
1839,
287,
12923,
290,
4444,
351,
257,
4776,
286,
1343,
24,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
2425,
33411,
284,
62,
1845,
796,
43825,
24,
1,
5357,
614,
62,
82,
834,
26502,
796,
366,
27301,
1
] |
Bar chart of the number of course name from each course name, and I want to show y axis from low to high order. | SELECT course_name, COUNT(course_name) FROM Courses GROUP BY course_name ORDER BY COUNT(course_name) | [
10374,
8262,
286,
262,
1271,
286,
1781,
1438,
422,
1123,
1781,
1438,
11,
290,
314,
765,
284,
905,
331,
16488,
422,
1877,
284,
1029,
1502,
13,
46506,
1781,
62,
3672,
11,
327,
28270,
7,
17319,
62,
3672,
8,
16034,
2734,
8448,
44441,
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
] | [
10374,
8262,
286,
262,
1271,
286,
1781,
1438,
422,
1123,
1781,
1438,
11,
290,
314,
765,
284,
905,
331,
16488,
422,
1877,
284,
1029,
1502,
13,
46506,
1781,
62,
3672,
11,
327,
28270,
7,
17319,
62,
3672,
8,
16034,
2734,
8448,
44441,
11... |
When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast? | SELECT "First broadcast" FROM table_26160 WHERE "Davids team" = 'David O''Doherty and Katherine Parkinson' | [
2215,
21970,
267,
1549,
78,
29029,
290,
479,
15289,
3952,
7899,
389,
1111,
319,
262,
288,
615,
2340,
1074,
618,
318,
262,
717,
7025,
30,
46506,
366,
5962,
7025,
1,
16034,
3084,
62,
2075,
14198,
33411,
366,
35,
615,
2340,
1074,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
21970,
267,
1549,
78,
29029,
290,
479,
15289,
3952,
7899,
389,
1111,
319,
262,
288,
615,
2340,
1074,
618,
318,
262,
717,
7025,
30,
46506,
366,
5962,
7025,
1,
16034,
3084,
62,
2075,
14198,
33411,
366,
35,
615,
2340,
1074,
1,
79... |
The gayfield park stadium had a highest attendance of what? | SELECT MAX(highest) FROM table_11206916_1 WHERE stadium = "Gayfield Park" | [
464,
5650,
3245,
3952,
10308,
550,
257,
4511,
14858,
286,
644,
30,
46506,
25882,
7,
35323,
8,
16034,
3084,
62,
14686,
3312,
48894,
62,
16,
33411,
10308,
796,
366,
41787,
3245,
3250,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
464,
5650,
3245,
3952,
10308,
550,
257,
4511,
14858,
286,
644,
30,
46506,
25882,
7,
35323,
8,
16034,
3084,
62,
14686,
3312,
48894,
62,
16,
33411,
10308,
796,
366,
41787,
3245,
3250,
1
] |
Find the average rating star for each movie that received at least 2 ratings. | SELECT mid, AVG(stars) FROM rating GROUP BY mid HAVING COUNT(*) >= 2 | [
16742,
262,
2811,
7955,
3491,
329,
1123,
3807,
326,
2722,
379,
1551,
362,
10109,
13,
46506,
3095,
11,
35224,
7,
30783,
8,
16034,
7955,
44441,
11050,
3095,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
2811,
7955,
3491,
329,
1123,
3807,
326,
2722,
379,
1551,
362,
10109,
13,
46506,
3095,
11,
35224,
7,
30783,
8,
16034,
7955,
44441,
11050,
3095,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362
] |
What are the different parties of representative? Show the party name and the number of representatives in each party, and could you show total number in descending order? | SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC | [
2061,
389,
262,
1180,
4671,
286,
8852,
30,
5438,
262,
2151,
1438,
290,
262,
1271,
286,
10826,
287,
1123,
2151,
11,
290,
714,
345,
905,
2472,
1271,
287,
31491,
1502,
30,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
8852,
44441,
11050,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1180,
4671,
286,
8852,
30,
5438,
262,
2151,
1438,
290,
262,
1271,
286,
10826,
287,
1123,
2151,
11,
290,
714,
345,
905,
2472,
1271,
287,
31491,
1502,
30,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
8852,
44441,
11050,... |
since 68 months ago, when was patient 010-33968 prescribed for the last time for a drug? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-33968')) AND DATETIME(medication.drugstarttime) >= DATETIM... | [
20777,
8257,
1933,
2084,
11,
618,
373,
5827,
5534,
15,
12,
29626,
3104,
14798,
329,
262,
938,
640,
329,
257,
2563,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
8257,
1933,
2084,
11,
618,
373,
5827,
5534,
15,
12,
29626,
3104,
14798,
329,
262,
938,
640,
329,
257,
2563,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827... |
give me the number of patients whose insurance is private and procedure icd9 code is 4105? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.icd9_code = "4105" | [
26535,
502,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
8771,
14158,
67,
24,
2438,
318,
604,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
5096,
318,
2839,
290,
8771,
14158,
67,
24,
2438,
318,
604,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177... |
Rep loss if identification-request questions were to be deleted. Excludes rep changes resulting from suggested edits to identification-request questions. | SELECT u.Id AS "user_link", (CASE WHEN p.PostTypeId = 1 AND v.VoteTypeId = 2 THEN 5 WHEN p.PostTypeId = 2 AND v.VoteTypeId = 2 THEN 10 WHEN p.PostTypeId = 1 AND v.VoteTypeId = 3 THEN -1 WHEN p.PostTypeId = 2 AND v.VoteTypeId = 3 THEN -2 WHEN p.PostTypeId = 2 AND v.VoteTypeId = 1 THEN 15 END) AS "totalscore", p.PostType... | [
6207,
2994,
611,
11795,
12,
25927,
2683,
547,
284,
307,
13140,
13,
1475,
13955,
1128,
2458,
7186,
422,
5220,
31671,
284,
11795,
12,
25927,
2683,
13,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
357,
34,
11159,
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... | [
6207,
2994,
611,
11795,
12,
25927,
2683,
547,
284,
307,
13140,
13,
1475,
13955,
1128,
2458,
7186,
422,
5220,
31671,
284,
11795,
12,
25927,
2683,
13,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
357,
34,
11159,
42099,
279,
13... |
What name completed construction on 09/19/2008? | SELECT "Name" FROM table_9428 WHERE "Construction completed" = '09/19/2008' | [
2061,
1438,
5668,
5103,
319,
7769,
14,
1129,
14,
11528,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5824,
2078,
33411,
366,
36687,
5668,
1,
796,
705,
2931,
14,
1129,
14,
11528,
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,
1438,
5668,
5103,
319,
7769,
14,
1129,
14,
11528,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
5824,
2078,
33411,
366,
36687,
5668,
1,
796,
705,
2931,
14,
1129,
14,
11528,
6
] |
What is the fewest draws for percentages of 5.02%? | SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%" | [
2061,
318,
262,
1178,
395,
14293,
329,
28071,
286,
642,
13,
2999,
4,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
5873,
796,
366,
20,
13,
2999,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
14293,
329,
28071,
286,
642,
13,
2999,
4,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
5873,
796,
366,
20,
13,
2999,
39658
] |
how many days have passed since last time that patient 95892 stayed in ward 14 in this hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 95892 AND admissions.dischtime IS NULL)) AND transfers.... | [
4919,
867,
1528,
423,
3804,
1201,
938,
640,
326,
5827,
860,
3365,
5892,
9658,
287,
15305,
1478,
287,
428,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
423,
3804,
1201,
938,
640,
326,
5827,
860,
3365,
5892,
9658,
287,
15305,
1478,
287,
428,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
1... |
Which station has programming of Me-TV? | SELECT station FROM table_name_78 WHERE programming = "me-tv" | [
13828,
4429,
468,
8300,
286,
2185,
12,
6849,
30,
46506,
4429,
16034,
3084,
62,
3672,
62,
3695,
33411,
8300,
796,
366,
1326,
12,
14981,
1
] | [
1,
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,
4429,
468,
8300,
286,
2185,
12,
6849,
30,
46506,
4429,
16034,
3084,
62,
3672,
62,
3695,
33411,
8300,
796,
366,
1326,
12,
14981,
1
] |
count the number of patients whose primary disease is chest pain and lab test fluid is joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CHEST PAIN" AND lab.fluid = "Joint Fluid" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
... |
What is the low attendance was based in phoenix with a Record of 1 0 0? | SELECT MIN(attendance) FROM table_name_38 WHERE home = "phoenix" AND record = "1–0–0" | [
2061,
318,
262,
1877,
14858,
373,
1912,
287,
872,
8538,
351,
257,
13266,
286,
352,
657,
657,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1363,
796,
366,
746,
8538,
1,
5357,
1700,
796,
366,
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
] | [
2061,
318,
262,
1877,
14858,
373,
1912,
287,
872,
8538,
351,
257,
13266,
286,
352,
657,
657,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
1363,
796,
366,
746,
8538,
1,
5357,
1700,
796,
366,
16,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.