instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what is the earliest flight that i can get from BWI to BOS logan | SELECT DISTINCT flight.flight_id FROM airport AS AIRPORT_0, airport AS AIRPORT_1, flight WHERE (AIRPORT_0.airport_code = 'BWI' AND AIRPORT_1.airport_code = 'BOS' AND flight.from_airport = AIRPORT_0.airport_code AND flight.to_airport = AIRPORT_1.airport_code) AND flight.departure_time = (SELECT MIN(FLIGHTalias1.departur... | [
10919,
318,
262,
14555,
5474,
326,
1312,
460,
651,
422,
347,
36326,
284,
347,
2640,
2604,
272,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
7054,
31600,
15490,
62,
15,
11,
9003,
7054,
31600,
15490,
62,
16,
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... | [
10919,
318,
262,
14555,
5474,
326,
1312,
460,
651,
422,
347,
36326,
284,
347,
2640,
2604,
272,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
7054,
31600,
15490,
62,
15,
11,
9003,
7054,
31600,
15490,
62,
16,
11,
... |
What District has a Member with a First Election date of 1985? | SELECT "District" FROM table_13373 WHERE "Position" = 'member' AND "First Election" = '1985' | [
2061,
5665,
468,
257,
10239,
351,
257,
3274,
14219,
3128,
286,
12863,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
1485,
34770,
33411,
366,
26545,
1,
796,
705,
19522,
6,
5357,
366,
5962,
14219,
1,
796,
705,
29110,
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
] | [
2061,
5665,
468,
257,
10239,
351,
257,
3274,
14219,
3128,
286,
12863,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
1485,
34770,
33411,
366,
26545,
1,
796,
705,
19522,
6,
5357,
366,
5962,
14219,
1,
796,
705,
29110,
6
] |
When 5a06 is the production code what is the highest episode? | SELECT MAX("Ep.") FROM table_24034 WHERE "Prod. Code" = '5A06' | [
2215,
642,
64,
3312,
318,
262,
3227,
2438,
644,
318,
262,
4511,
4471,
30,
46506,
25882,
7203,
13807,
19570,
16034,
3084,
62,
16102,
2682,
33411,
366,
2964,
67,
13,
6127,
1,
796,
705,
20,
32,
3312,
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
] | [
2215,
642,
64,
3312,
318,
262,
3227,
2438,
644,
318,
262,
4511,
4471,
30,
46506,
25882,
7203,
13807,
19570,
16034,
3084,
62,
16102,
2682,
33411,
366,
2964,
67,
13,
6127,
1,
796,
705,
20,
32,
3312,
6
] |
What is the number in attendance at Los Angeles Memorial Coliseum? | SELECT COUNT(attendance) FROM table_name_68 WHERE venue = "los angeles memorial coliseum" | [
2061,
318,
262,
1271,
287,
14858,
379,
5401,
5652,
14861,
40846,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
14359,
796,
366,
33280,
18304,
274,
17357,
951,
38277,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
287,
14858,
379,
5401,
5652,
14861,
40846,
30,
46506,
327,
28270,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
14359,
796,
366,
33280,
18304,
274,
17357,
951,
38277,
1
] |
Which # 100 has a Season of 1991, and an Against of surrey? | SELECT MAX(_number_100) FROM table_name_87 WHERE season = "1991" AND against = "surrey" | [
13828,
1303,
1802,
468,
257,
7369,
286,
10249,
11,
290,
281,
12914,
286,
969,
4364,
30,
46506,
25882,
28264,
17618,
62,
3064,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
1622,
796,
366,
24529,
1,
5357,
1028,
796,
366,
11793,
4364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1303,
1802,
468,
257,
7369,
286,
10249,
11,
290,
281,
12914,
286,
969,
4364,
30,
46506,
25882,
28264,
17618,
62,
3064,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
1622,
796,
366,
24529,
1,
5357,
1028,
796,
366,
11793,
4364,
1
] |
What was the data on January 15-16 if March 27-29 is March 29, 2006? | SELECT january_15_16 FROM table_25216791_3 WHERE march_27_29 = "March 29, 2006" | [
2061,
373,
262,
1366,
319,
3269,
1315,
12,
1433,
611,
2805,
2681,
12,
1959,
318,
2805,
2808,
11,
4793,
30,
46506,
42897,
2838,
62,
1314,
62,
1433,
16034,
3084,
62,
1495,
20666,
3720,
16,
62,
18,
33411,
9960,
62,
1983,
62,
1959,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1366,
319,
3269,
1315,
12,
1433,
611,
2805,
2681,
12,
1959,
318,
2805,
2808,
11,
4793,
30,
46506,
42897,
2838,
62,
1314,
62,
1433,
16034,
3084,
62,
1495,
20666,
3720,
16,
62,
18,
33411,
9960,
62,
1983,
62,
1959,
796,... |
What is the 2007 population for Corazon de Jesus? | SELECT "Population (2007)" FROM table_24374 WHERE "Barangay" = 'Corazon De Jesus' | [
2061,
318,
262,
4343,
3265,
329,
2744,
5168,
390,
5803,
30,
46506,
366,
45251,
357,
12726,
16725,
16034,
3084,
62,
1731,
31020,
33411,
366,
10374,
648,
323,
1,
796,
705,
10606,
5168,
1024,
5803,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4343,
3265,
329,
2744,
5168,
390,
5803,
30,
46506,
366,
45251,
357,
12726,
16725,
16034,
3084,
62,
1731,
31020,
33411,
366,
10374,
648,
323,
1,
796,
705,
10606,
5168,
1024,
5803,
6
] |
Name the high rebounds for new york | SELECT "High rebounds" FROM table_2686 WHERE "Team" = 'New York' | [
5376,
262,
1029,
18841,
329,
649,
331,
967,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
2075,
4521,
33411,
366,
15592,
1,
796,
705,
3791,
1971,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1029,
18841,
329,
649,
331,
967,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
2075,
4521,
33411,
366,
15592,
1,
796,
705,
3791,
1971,
6
] |
List the main industry with highest total market value and its number of companies. | SELECT main_industry, COUNT(*) FROM company GROUP BY main_industry ORDER BY SUM(market_value) DESC LIMIT 1 | [
8053,
262,
1388,
2831,
351,
4511,
2472,
1910,
1988,
290,
663,
1271,
286,
2706,
13,
46506,
1388,
62,
23213,
563,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
1388,
62,
23213,
563,
38678,
11050,
35683,
7,
10728,
62,
8367,
8,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1388,
2831,
351,
4511,
2472,
1910,
1988,
290,
663,
1271,
286,
2706,
13,
46506,
1388,
62,
23213,
563,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
1388,
62,
23213,
563,
38678,
11050,
35683,
7,
10728,
62,
8367,
8,
221... |
What is the capital of the province with in Hanja? | SELECT "Capital" FROM table_42223 WHERE "Hanja" = '漢州' | [
2061,
318,
262,
3139,
286,
262,
8473,
351,
287,
9530,
6592,
30,
46506,
366,
39315,
1,
16034,
3084,
62,
44361,
1954,
33411,
366,
29919,
6592,
1,
796,
705,
162,
120,
95,
32432,
252,
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,
318,
262,
3139,
286,
262,
8473,
351,
287,
9530,
6592,
30,
46506,
366,
39315,
1,
16034,
3084,
62,
44361,
1954,
33411,
366,
29919,
6592,
1,
796,
705,
162,
120,
95,
32432,
252,
6
] |
For each constructor id, how many races are there? | SELECT COUNT(*), constructorid FROM constructorstandings GROUP BY constructorid | [
1890,
1123,
23772,
4686,
11,
703,
867,
9558,
389,
612,
30,
46506,
327,
28270,
46491,
828,
23772,
312,
16034,
23772,
1481,
654,
44441,
11050,
23772,
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
] | [
1890,
1123,
23772,
4686,
11,
703,
867,
9558,
389,
612,
30,
46506,
327,
28270,
46491,
828,
23772,
312,
16034,
23772,
1481,
654,
44441,
11050,
23772,
312
] |
What player scored 70-73-69-72=284? | SELECT "Player" FROM table_48648 WHERE "Score" = '70-73-69-72=284' | [
2061,
2137,
7781,
4317,
12,
4790,
12,
3388,
12,
4761,
28,
30336,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
34287,
33411,
366,
26595,
1,
796,
705,
2154,
12,
4790,
12,
3388,
12,
4761,
28,
30336,
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,
2137,
7781,
4317,
12,
4790,
12,
3388,
12,
4761,
28,
30336,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
34287,
33411,
366,
26595,
1,
796,
705,
2154,
12,
4790,
12,
3388,
12,
4761,
28,
30336,
6
] |
how many matches were played at ballymore , brisbane ? | SELECT COUNT(*) FROM table_203_634 WHERE "venue" = 'ballymore, brisbane' | [
4919,
867,
7466,
547,
2826,
379,
275,
453,
3549,
837,
865,
271,
20235,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
21,
2682,
33411,
366,
4080,
1,
796,
705,
65,
453,
3549,
11,
865,
271,
20235,
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
] | [
4919,
867,
7466,
547,
2826,
379,
275,
453,
3549,
837,
865,
271,
20235,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
21,
2682,
33411,
366,
4080,
1,
796,
705,
65,
453,
3549,
11,
865,
271,
20235,
6
] |
What was the date of airing for episodes with ratings under 10.1 and production number of 96 5-09? | SELECT original_airing FROM table_name_74 WHERE rating < 10.1 AND episode_number_production_number = "96 5-09" | [
2061,
373,
262,
3128,
286,
31701,
329,
8640,
351,
10109,
739,
838,
13,
16,
290,
3227,
1271,
286,
9907,
642,
12,
2931,
30,
46506,
2656,
62,
958,
278,
16034,
3084,
62,
3672,
62,
4524,
33411,
7955,
1279,
838,
13,
16,
5357,
4471,
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,
373,
262,
3128,
286,
31701,
329,
8640,
351,
10109,
739,
838,
13,
16,
290,
3227,
1271,
286,
9907,
642,
12,
2931,
30,
46506,
2656,
62,
958,
278,
16034,
3084,
62,
3672,
62,
4524,
33411,
7955,
1279,
838,
13,
16,
5357,
4471,
62,
... |
What is the instrumental for the dative shen? | SELECT "Instrumental" FROM table_46630 WHERE "Dative" = 'shen' | [
2061,
318,
262,
21543,
329,
262,
288,
876,
673,
77,
30,
46506,
366,
818,
43872,
282,
1,
16034,
3084,
62,
42199,
1270,
33411,
366,
35,
876,
1,
796,
705,
82,
831,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
21543,
329,
262,
288,
876,
673,
77,
30,
46506,
366,
818,
43872,
282,
1,
16034,
3084,
62,
42199,
1270,
33411,
366,
35,
876,
1,
796,
705,
82,
831,
6
] |
what core diameter -lrb- in -rrb- comes after 0.0930 ? | SELECT "core diameter (in)" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE "core diameter (in)" = 0.093) + 1 | [
10919,
4755,
14753,
532,
14050,
65,
12,
287,
532,
21062,
65,
12,
2058,
706,
657,
13,
2931,
1270,
5633,
46506,
366,
7295,
14753,
357,
259,
16725,
16034,
3084,
62,
18638,
62,
23,
2078,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
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
] | [
10919,
4755,
14753,
532,
14050,
65,
12,
287,
532,
21062,
65,
12,
2058,
706,
657,
13,
2931,
1270,
5633,
46506,
366,
7295,
14753,
357,
259,
16725,
16034,
3084,
62,
18638,
62,
23,
2078,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62... |
get me the number of patients admitted before 2144 who were diagnosed with dementia in conditions classified elsewhere without behavioral disturbance. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2144" AND diagnoses.long_title = "Dementia in conditions classified elsewhere without behavioral disturbance" | [
1136,
502,
262,
1271,
286,
3871,
6848,
878,
362,
18444,
508,
547,
14641,
351,
27886,
287,
3403,
10090,
8057,
1231,
17211,
30497,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1136,
502,
262,
1271,
286,
3871,
6848,
878,
362,
18444,
508,
547,
14641,
351,
27886,
287,
3403,
10090,
8057,
1231,
17211,
30497,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
Find the parties associated with the delegates from district 1 Who served as governors of the parties, and count them by a bar chart, I want to show total number in ascending order please. | SELECT Governor, COUNT(Governor) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.District = 1 GROUP BY Governor ORDER BY COUNT(Governor) | [
16742,
262,
4671,
3917,
351,
262,
15265,
422,
4783,
352,
5338,
4983,
355,
26824,
286,
262,
4671,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
905,
2472,
1271,
287,
41988,
1502,
3387,
13,
46506,
10807,
11,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
4671,
3917,
351,
262,
15265,
422,
4783,
352,
5338,
4983,
355,
26824,
286,
262,
4671,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
905,
2472,
1271,
287,
41988,
1502,
3387,
13,
46506,
10807,
11,
327,
28270,
... |
when was the last time that patient 012-66291 had the heartrate maximum on 12/31/this year? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '012-66291')) AND NOT vitalperiodic.heartrate IS NUL... | [
12518,
373,
262,
938,
640,
326,
5827,
5534,
17,
12,
2791,
33551,
550,
262,
2612,
4873,
5415,
319,
1105,
14,
3132,
14,
5661,
614,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
938,
640,
326,
5827,
5534,
17,
12,
2791,
33551,
550,
262,
2612,
4873,
5415,
319,
1105,
14,
3132,
14,
5661,
614,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
... |
Find the white grape used to produce wines with scores above 90. | SELECT DISTINCT T1.grape FROM grapes AS T1 JOIN wine AS T2 ON T1.grape = T2.grape WHERE T1.color = "White" AND T2.score > 90 | [
16742,
262,
2330,
30777,
973,
284,
4439,
30680,
351,
8198,
2029,
4101,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
70,
13484,
16034,
36656,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
70,
13484,
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
] | [
16742,
262,
2330,
30777,
973,
284,
4439,
30680,
351,
8198,
2029,
4101,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
70,
13484,
16034,
36656,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
70,
13484,
796,
309,
... |
What was the 1987 result for the tournament with 1986 result of 3R and 1989 of A? | SELECT "1987" FROM table_46600 WHERE "1989" = 'a' AND "1986" = '3r' | [
2061,
373,
262,
12923,
1255,
329,
262,
7756,
351,
12113,
1255,
286,
513,
49,
290,
11104,
286,
317,
30,
46506,
366,
27301,
1,
16034,
3084,
62,
42199,
405,
33411,
366,
25475,
1,
796,
705,
64,
6,
5357,
366,
28054,
1,
796,
705,
18,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
12923,
1255,
329,
262,
7756,
351,
12113,
1255,
286,
513,
49,
290,
11104,
286,
317,
30,
46506,
366,
27301,
1,
16034,
3084,
62,
42199,
405,
33411,
366,
25475,
1,
796,
705,
64,
6,
5357,
366,
28054,
1,
796,
705,
18,
81... |
At what date is the score 66-72-64-65=267? | SELECT "Dates" FROM table_72666 WHERE "Score" = '66-72-64-65=267' | [
2953,
644,
3128,
318,
262,
4776,
7930,
12,
4761,
12,
2414,
12,
2996,
28,
25674,
30,
46506,
366,
35,
689,
1,
16034,
3084,
62,
22,
2075,
2791,
33411,
366,
26595,
1,
796,
705,
2791,
12,
4761,
12,
2414,
12,
2996,
28,
25674,
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
] | [
2953,
644,
3128,
318,
262,
4776,
7930,
12,
4761,
12,
2414,
12,
2996,
28,
25674,
30,
46506,
366,
35,
689,
1,
16034,
3084,
62,
22,
2075,
2791,
33411,
366,
26595,
1,
796,
705,
2791,
12,
4761,
12,
2414,
12,
2996,
28,
25674,
6
] |
Who was the man of the match when the Rockets won by 9 wickets? | SELECT man_of_the_match FROM table_19576091_1 WHERE result = "Rockets won by 9 wickets" | [
8241,
373,
262,
582,
286,
262,
2872,
618,
262,
23328,
1839,
416,
860,
266,
15970,
30,
46506,
582,
62,
1659,
62,
1169,
62,
15699,
16034,
3084,
62,
1129,
3553,
1899,
6420,
62,
16,
33411,
1255,
796,
366,
49,
11603,
1839,
416,
860,
266,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
582,
286,
262,
2872,
618,
262,
23328,
1839,
416,
860,
266,
15970,
30,
46506,
582,
62,
1659,
62,
1169,
62,
15699,
16034,
3084,
62,
1129,
3553,
1899,
6420,
62,
16,
33411,
1255,
796,
366,
49,
11603,
1839,
416,
860,
266,... |
What is the sum of To Par, when Player is 'Bob Rosburg'? | SELECT SUM(to_par) FROM table_name_4 WHERE player = "bob rosburg" | [
2061,
318,
262,
2160,
286,
1675,
2547,
11,
618,
7853,
318,
705,
18861,
10018,
7423,
30960,
46506,
35683,
7,
1462,
62,
1845,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2137,
796,
366,
65,
672,
686,
30359,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
1675,
2547,
11,
618,
7853,
318,
705,
18861,
10018,
7423,
30960,
46506,
35683,
7,
1462,
62,
1845,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
2137,
796,
366,
65,
672,
686,
30359,
1
] |
What are the full names of all students | SELECT fname, lname FROM student | [
2061,
389,
262,
1336,
3891,
286,
477,
2444,
46506,
277,
3672,
11,
300,
3672,
16034,
3710
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1336,
3891,
286,
477,
2444,
46506,
277,
3672,
11,
300,
3672,
16034,
3710
] |
What is the Area KM 2 of Rothesay? | SELECT COUNT("Area km 2") FROM table_1619 WHERE "Official Name" = 'Rothesay' | [
2061,
318,
262,
9498,
46646,
362,
286,
18481,
956,
323,
30,
46506,
327,
28270,
7203,
30547,
10571,
362,
4943,
16034,
3084,
62,
1433,
1129,
33411,
366,
28529,
6530,
1,
796,
705,
24864,
956,
323,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9498,
46646,
362,
286,
18481,
956,
323,
30,
46506,
327,
28270,
7203,
30547,
10571,
362,
4943,
16034,
3084,
62,
1433,
1129,
33411,
366,
28529,
6530,
1,
796,
705,
24864,
956,
323,
6
] |
how many sales did the single tic tic tac have ? | SELECT "sales" FROM table_203_7 WHERE "single" = '"tic, tic tac"' | [
4919,
867,
4200,
750,
262,
2060,
256,
291,
256,
291,
26142,
423,
5633,
46506,
366,
82,
2040,
1,
16034,
3084,
62,
22416,
62,
22,
33411,
366,
29762,
1,
796,
705,
1,
13370,
11,
256,
291,
26142,
30543
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4200,
750,
262,
2060,
256,
291,
256,
291,
26142,
423,
5633,
46506,
366,
82,
2040,
1,
16034,
3084,
62,
22416,
62,
22,
33411,
366,
29762,
1,
796,
705,
1,
13370,
11,
256,
291,
26142,
30543
] |
How many matches has Mohammad Al-Shamlan played when there is 1 win? | SELECT matches FROM table_name_43 WHERE wins = "1" AND name = "mohammad al-shamlan" | [
2437,
867,
7466,
468,
29674,
978,
12,
43478,
9620,
2826,
618,
612,
318,
352,
1592,
30,
46506,
7466,
16034,
3084,
62,
3672,
62,
3559,
33411,
7864,
796,
366,
16,
1,
5357,
1438,
796,
366,
76,
1219,
26035,
435,
12,
1477,
321,
9620,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7466,
468,
29674,
978,
12,
43478,
9620,
2826,
618,
612,
318,
352,
1592,
30,
46506,
7466,
16034,
3084,
62,
3672,
62,
3559,
33411,
7864,
796,
366,
16,
1,
5357,
1438,
796,
366,
76,
1219,
26035,
435,
12,
1477,
321,
9620,
1
] |
how many status with first elected being 1968 | SELECT COUNT("Status") FROM table_692 WHERE "First elected" = '1968' | [
4919,
867,
3722,
351,
717,
7018,
852,
15963,
46506,
327,
28270,
7203,
19580,
4943,
16034,
3084,
62,
46589,
33411,
366,
5962,
7018,
1,
796,
705,
42246,
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
] | [
4919,
867,
3722,
351,
717,
7018,
852,
15963,
46506,
327,
28270,
7203,
19580,
4943,
16034,
3084,
62,
46589,
33411,
366,
5962,
7018,
1,
796,
705,
42246,
6
] |
Return the names of parties that have two or more events. | SELECT T2.party_name FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id HAVING COUNT(*) >= 2 | [
13615,
262,
3891,
286,
4671,
326,
423,
734,
393,
517,
2995,
13,
46506,
309,
17,
13,
10608,
62,
3672,
16034,
2151,
62,
31534,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
10608,
62,
312,
796,
309,
17,
13,
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
] | [
13615,
262,
3891,
286,
4671,
326,
423,
734,
393,
517,
2995,
13,
46506,
309,
17,
13,
10608,
62,
3672,
16034,
2151,
62,
31534,
7054,
309,
16,
32357,
1268,
2151,
7054,
309,
17,
6177,
309,
16,
13,
10608,
62,
312,
796,
309,
17,
13,
106... |
Name the record for black knights points 54 | SELECT record FROM table_21092444_1 WHERE black_knights_points = 54 | [
5376,
262,
1700,
329,
2042,
27536,
2173,
7175,
46506,
1700,
16034,
3084,
62,
17,
14454,
1731,
2598,
62,
16,
33411,
2042,
62,
15418,
2337,
62,
13033,
796,
7175
] | [
1,
1,
1,
1,
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,
2042,
27536,
2173,
7175,
46506,
1700,
16034,
3084,
62,
17,
14454,
1731,
2598,
62,
16,
33411,
2042,
62,
15418,
2337,
62,
13033,
796,
7175
] |
Name the circuit for france and portugal | SELECT circuit FROM table_2446333_2 WHERE main_winner = "France" AND country = "Portugal" | [
5376,
262,
10349,
329,
1216,
590,
290,
2493,
43778,
46506,
10349,
16034,
3084,
62,
1731,
3510,
20370,
62,
17,
33411,
1388,
62,
39791,
796,
366,
28572,
1,
5357,
1499,
796,
366,
13924,
43778,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10349,
329,
1216,
590,
290,
2493,
43778,
46506,
10349,
16034,
3084,
62,
1731,
3510,
20370,
62,
17,
33411,
1388,
62,
39791,
796,
366,
28572,
1,
5357,
1499,
796,
366,
13924,
43778,
1
] |
list the local authorities and services provided by all stations. | SELECT local_authority, services FROM station | [
4868,
262,
1957,
4773,
290,
2594,
2810,
416,
477,
8985,
13,
46506,
1957,
62,
9800,
414,
11,
2594,
16034,
4429
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4868,
262,
1957,
4773,
290,
2594,
2810,
416,
477,
8985,
13,
46506,
1957,
62,
9800,
414,
11,
2594,
16034,
4429
] |
What's k. j. choi's to par? | SELECT "To par" FROM table_9373 WHERE "Player" = 'k. j. choi' | [
2061,
338,
479,
13,
474,
13,
1727,
72,
338,
284,
1582,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
34770,
33411,
366,
14140,
1,
796,
705,
74,
13,
474,
13,
1727,
72,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
479,
13,
474,
13,
1727,
72,
338,
284,
1582,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
34770,
33411,
366,
14140,
1,
796,
705,
74,
13,
474,
13,
1727,
72,
6
] |
How many home games by each year (bin the year attr into weekdays interval)? Give me a line chart, and display X-axis in descending order. | SELECT year, COUNT(year) FROM home_game ORDER BY year DESC | [
2437,
867,
1363,
1830,
416,
1123,
614,
357,
8800,
262,
614,
708,
81,
656,
1285,
12545,
16654,
19427,
13786,
502,
257,
1627,
8262,
11,
290,
3359,
1395,
12,
22704,
287,
31491,
1502,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
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
] | [
2437,
867,
1363,
1830,
416,
1123,
614,
357,
8800,
262,
614,
708,
81,
656,
1285,
12545,
16654,
19427,
13786,
502,
257,
1627,
8262,
11,
290,
3359,
1395,
12,
22704,
287,
31491,
1502,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
1... |
Stacked bar chart of the number of date account opened for with each other_account_details in each date account opened, and display by the the number of date account opened from low to high please. | SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts GROUP BY other_account_details ORDER BY COUNT(date_account_opened) | [
1273,
6021,
2318,
8262,
286,
262,
1271,
286,
3128,
1848,
4721,
329,
351,
1123,
584,
62,
23317,
62,
36604,
287,
1123,
3128,
1848,
4721,
11,
290,
3359,
416,
262,
262,
1271,
286,
3128,
1848,
4721,
422,
1877,
284,
1029,
3387,
13,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1273,
6021,
2318,
8262,
286,
262,
1271,
286,
3128,
1848,
4721,
329,
351,
1123,
584,
62,
23317,
62,
36604,
287,
1123,
3128,
1848,
4721,
11,
290,
3359,
416,
262,
262,
1271,
286,
3128,
1848,
4721,
422,
1877,
284,
1029,
3387,
13,
46506,
... |
What is Score, when Player is 'David Toms'? | SELECT "Score" FROM table_61914 WHERE "Player" = 'david toms' | [
2061,
318,
15178,
11,
618,
7853,
318,
705,
11006,
309,
3150,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
21,
1129,
1415,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
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,
318,
15178,
11,
618,
7853,
318,
705,
11006,
309,
3150,
30960,
46506,
366,
26595,
1,
16034,
3084,
62,
21,
1129,
1415,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
6
] |
Name the candidates for selah r. hobbie | SELECT candidates FROM table_2668243_17 WHERE incumbent = "Selah R. Hobbie" | [
5376,
262,
5871,
329,
384,
9271,
374,
13,
32724,
12590,
46506,
5871,
16034,
3084,
62,
2075,
3104,
26660,
62,
1558,
33411,
23526,
796,
366,
48767,
993,
371,
13,
17073,
12590,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
5871,
329,
384,
9271,
374,
13,
32724,
12590,
46506,
5871,
16034,
3084,
62,
2075,
3104,
26660,
62,
1558,
33411,
23526,
796,
366,
48767,
993,
371,
13,
17073,
12590,
1
] |
Who drove the car with over 66 laps with a grid of 5? | SELECT "Driver" FROM table_78388 WHERE "Laps" > '66' AND "Grid" = '5' | [
8241,
10357,
262,
1097,
351,
625,
7930,
24590,
351,
257,
10706,
286,
642,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
3695,
30460,
33411,
366,
43,
1686,
1,
1875,
705,
2791,
6,
5357,
366,
41339,
1,
796,
705,
20,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
10357,
262,
1097,
351,
625,
7930,
24590,
351,
257,
10706,
286,
642,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
3695,
30460,
33411,
366,
43,
1686,
1,
1875,
705,
2791,
6,
5357,
366,
41339,
1,
796,
705,
20,
6
] |
What Date is Week 1? | SELECT date FROM table_name_54 WHERE week = 1 | [
2061,
7536,
318,
6119,
352,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4051,
33411,
1285,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
7536,
318,
6119,
352,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
4051,
33411,
1285,
796,
352
] |
What Label released a CD single in 1993? | SELECT "Label" FROM table_37584 WHERE "Format" = 'cd single' AND "Date" = '1993' | [
2061,
36052,
2716,
257,
6458,
2060,
287,
9656,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
22318,
5705,
33411,
366,
26227,
1,
796,
705,
10210,
2060,
6,
5357,
366,
10430,
1,
796,
705,
24465,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
36052,
2716,
257,
6458,
2060,
287,
9656,
30,
46506,
366,
33986,
1,
16034,
3084,
62,
22318,
5705,
33411,
366,
26227,
1,
796,
705,
10210,
2060,
6,
5357,
366,
10430,
1,
796,
705,
24465,
6
] |
specify both the short and long titles of diagnoses icd9 code 4275 | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "4275" | [
16684,
1958,
1111,
262,
1790,
290,
890,
8714,
286,
40567,
14158,
67,
24,
2438,
604,
23195,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
19,
23195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16684,
1958,
1111,
262,
1790,
290,
890,
8714,
286,
40567,
14158,
67,
24,
2438,
604,
23195,
46506,
40567,
13,
19509,
62,
7839,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
19,
23195,
... |
Which Year has an Edition of 41st? | SELECT "Year" FROM table_65793 WHERE "Edition" = '41st' | [
13828,
6280,
468,
281,
5061,
286,
6073,
301,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2996,
44750,
33411,
366,
7407,
653,
1,
796,
705,
3901,
301,
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
] | [
13828,
6280,
468,
281,
5061,
286,
6073,
301,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2996,
44750,
33411,
366,
7407,
653,
1,
796,
705,
3901,
301,
6
] |
What position did Tara Palmer-Tomkinson finish? | SELECT "Finished" FROM table_19290 WHERE "Celebrity" = 'Tara Palmer-Tomkinson' | [
2061,
2292,
750,
37723,
18918,
12,
13787,
26030,
5461,
30,
46506,
366,
18467,
1348,
1,
16034,
3084,
62,
1129,
24369,
33411,
366,
42741,
1671,
414,
1,
796,
705,
51,
3301,
18918,
12,
13787,
26030,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
750,
37723,
18918,
12,
13787,
26030,
5461,
30,
46506,
366,
18467,
1348,
1,
16034,
3084,
62,
1129,
24369,
33411,
366,
42741,
1671,
414,
1,
796,
705,
51,
3301,
18918,
12,
13787,
26030,
6
] |
Name the most against for minas gerais | SELECT MAX(against) FROM table_15400878_1 WHERE team = "Minas Gerais" | [
5376,
262,
749,
1028,
329,
949,
292,
308,
8607,
271,
46506,
25882,
7,
32826,
8,
16034,
3084,
62,
1314,
7029,
23,
3695,
62,
16,
33411,
1074,
796,
366,
9452,
292,
402,
8607,
271,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
1028,
329,
949,
292,
308,
8607,
271,
46506,
25882,
7,
32826,
8,
16034,
3084,
62,
1314,
7029,
23,
3695,
62,
16,
33411,
1074,
796,
366,
9452,
292,
402,
8607,
271,
1
] |
on tuesday i'd like to fly from DETROIT to ST. PETERSBURG | 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 = 'ST. PETERSBURG' AND date_day.day_number = 22 AND date_day.month_number = ... | [
261,
256,
3322,
1312,
1549,
588,
284,
6129,
422,
38267,
13252,
2043,
284,
3563,
13,
32043,
4877,
38926,
38,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
261,
256,
3322,
1312,
1549,
588,
284,
6129,
422,
38267,
13252,
2043,
284,
3563,
13,
32043,
4877,
38926,
38,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... |
what was the first value of the bicarbonate lab test of patient 81223 on their last hospital encounter? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 81223 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = '... | [
10919,
373,
262,
717,
1988,
286,
262,
275,
291,
42084,
378,
2248,
1332,
286,
5827,
807,
1065,
1954,
319,
511,
938,
4436,
8791,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
1988,
286,
262,
275,
291,
42084,
378,
2248,
1332,
286,
5827,
807,
1065,
1954,
319,
511,
938,
4436,
8791,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312... |
What are the names of all singers that are from the UK and released a song in English? | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" | [
2061,
389,
262,
3891,
286,
477,
39113,
326,
389,
422,
262,
3482,
290,
2716,
257,
3496,
287,
3594,
30,
46506,
6802,
62,
3672,
16034,
6802,
33411,
1499,
796,
366,
15039,
1,
17828,
4877,
9782,
33493,
309,
16,
13,
49016,
62,
3672,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
3891,
286,
477,
39113,
326,
389,
422,
262,
3482,
290,
2716,
257,
3496,
287,
3594,
30,
46506,
6802,
62,
3672,
16034,
6802,
33411,
1499,
796,
366,
15039,
1,
17828,
4877,
9782,
33493,
309,
16,
13,
49016,
62,
3672,
16034,
... |
Who was Al Michaels' color commentator in 2003? | SELECT "Color commentator(s)" FROM table_33472 WHERE "Play-by-play" = 'al michaels' AND "Year" > '2003' | [
8241,
373,
978,
44768,
6,
3124,
28823,
287,
5816,
30,
46506,
366,
10258,
28823,
7,
82,
16725,
16034,
3084,
62,
2091,
37856,
33411,
366,
11002,
12,
1525,
12,
1759,
1,
796,
705,
282,
285,
488,
64,
1424,
6,
5357,
366,
17688,
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
] | [
8241,
373,
978,
44768,
6,
3124,
28823,
287,
5816,
30,
46506,
366,
10258,
28823,
7,
82,
16725,
16034,
3084,
62,
2091,
37856,
33411,
366,
11002,
12,
1525,
12,
1759,
1,
796,
705,
282,
285,
488,
64,
1424,
6,
5357,
366,
17688,
1,
1875,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the phone_number by a bar chart, and sort by the X-axis in desc. | SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY PHONE_NUMBER DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
3072,
62,
17618,
416,
257,
2318,
8262,
11,
290,
3297,
416,
262,
1395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
3072,
62,
17618,
416,
257,
2318,
8262,
11,
290,
3297,
416,
262,
1395,
... |
What is the highest score when the 1st half is smaller than 289 and rank smaller than 61? | SELECT MAX("Score") FROM table_66024 WHERE "1st Half" < '289' AND "Rank" < '61' | [
2061,
318,
262,
4511,
4776,
618,
262,
352,
301,
2063,
318,
4833,
621,
38902,
290,
4279,
4833,
621,
8454,
30,
46506,
25882,
7203,
26595,
4943,
16034,
3084,
62,
39885,
1731,
33411,
366,
16,
301,
13139,
1,
1279,
705,
27693,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
4776,
618,
262,
352,
301,
2063,
318,
4833,
621,
38902,
290,
4279,
4833,
621,
8454,
30,
46506,
25882,
7203,
26595,
4943,
16034,
3084,
62,
39885,
1731,
33411,
366,
16,
301,
13139,
1,
1279,
705,
27693,
6,
5357,
366,... |
give me the number of patients whose admission year is less than 2197 and item id is 50925? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2197" AND lab.itemid = "50925" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
24991,
290,
2378,
4686,
318,
2026,
46351,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
24991,
290,
2378,
4686,
318,
2026,
46351,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2... |
what is the number of home health care discharged patients who had insertion of non-drug-eluting coronary artery stent(s) procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND procedures.long_title = "Insertion of non-drug-eluting coronary artery stent(s)" | [
10919,
318,
262,
1271,
286,
1363,
1535,
1337,
26476,
3871,
508,
550,
36075,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
8,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
1363,
1535,
1337,
26476,
3871,
508,
550,
36075,
286,
1729,
12,
30349,
12,
417,
15129,
37151,
37646,
336,
298,
7,
82,
8,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
... |
What is the booking status code of the apartment with apartment number 'Suite 634'? | SELECT T1.booking_status_code FROM apartment_bookings AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = "Suite 634" | [
2061,
318,
262,
25452,
3722,
2438,
286,
262,
7962,
351,
7962,
1271,
705,
5606,
578,
718,
2682,
30960,
46506,
309,
16,
13,
2070,
278,
62,
13376,
62,
8189,
16034,
7962,
62,
2070,
654,
7054,
309,
16,
32357,
1268,
19592,
7054,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25452,
3722,
2438,
286,
262,
7962,
351,
7962,
1271,
705,
5606,
578,
718,
2682,
30960,
46506,
309,
16,
13,
2070,
278,
62,
13376,
62,
8189,
16034,
7962,
62,
2070,
654,
7054,
309,
16,
32357,
1268,
19592,
7054,
309,
17,
... |
How many hosts does each nationality have? List the nationality and the count with a bar chart. | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality | [
2437,
867,
11453,
857,
1123,
29835,
423,
30,
7343,
262,
29835,
290,
262,
954,
351,
257,
2318,
8262,
13,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11453,
857,
1123,
29835,
423,
30,
7343,
262,
29835,
290,
262,
954,
351,
257,
2318,
8262,
13,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
2583,
44441,
11050,
2351,
414
] |
since 2104, has any urine, voided specimen microbiology test been carried out on patient 025-19271? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-19271')) AND microlab.culturesite = 'urine, voided specimen' AND STRFTIME('%y'... | [
20777,
362,
13464,
11,
468,
597,
18922,
11,
7608,
1384,
31674,
24559,
1435,
1332,
587,
5281,
503,
319,
5827,
657,
1495,
12,
1129,
28977,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
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... | [
20777,
362,
13464,
11,
468,
597,
18922,
11,
7608,
1384,
31674,
24559,
1435,
1332,
587,
5281,
503,
319,
5827,
657,
1495,
12,
1129,
28977,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
3... |
What is the name of the settlement that had a population of 9443 in 2011? | SELECT settlement FROM table_2562572_53 WHERE population__2011_ = 9443 | [
2061,
318,
262,
1438,
286,
262,
9443,
326,
550,
257,
3265,
286,
860,
34938,
287,
2813,
30,
46506,
9443,
16034,
3084,
62,
11645,
1495,
4761,
62,
4310,
33411,
3265,
834,
9804,
62,
796,
860,
34938
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
9443,
326,
550,
257,
3265,
286,
860,
34938,
287,
2813,
30,
46506,
9443,
16034,
3084,
62,
11645,
1495,
4761,
62,
4310,
33411,
3265,
834,
9804,
62,
796,
860,
34938
] |
That is the value for Try bonus when the value for Points is 418? | SELECT try_bonus FROM table_name_82 WHERE points_for = "418" | [
2504,
318,
262,
1988,
329,
9993,
7202,
618,
262,
1988,
329,
11045,
318,
45959,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
6469,
33411,
2173,
62,
1640,
796,
366,
39667,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2504,
318,
262,
1988,
329,
9993,
7202,
618,
262,
1988,
329,
11045,
318,
45959,
30,
46506,
1949,
62,
4189,
385,
16034,
3084,
62,
3672,
62,
6469,
33411,
2173,
62,
1640,
796,
366,
39667,
1
] |
Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana? | SELECT SUM("Poles") FROM table_44593 WHERE "Season" = '2005' AND "Series" = 'formula three sudamericana' | [
6090,
345,
1560,
502,
262,
2160,
286,
45631,
326,
468,
262,
7369,
286,
5075,
11,
290,
262,
7171,
286,
10451,
1115,
424,
67,
2382,
291,
2271,
30,
46506,
35683,
7203,
47,
4316,
4943,
16034,
3084,
62,
43489,
6052,
33411,
366,
18960,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
2160,
286,
45631,
326,
468,
262,
7369,
286,
5075,
11,
290,
262,
7171,
286,
10451,
1115,
424,
67,
2382,
291,
2271,
30,
46506,
35683,
7203,
47,
4316,
4943,
16034,
3084,
62,
43489,
6052,
33411,
366,
18960,
1,
... |
when did patient 93571 get the int insert dual-cham dev procedure for the last time in 2103? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'int insert dual-cham dev') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 93571) AND... | [
12518,
750,
5827,
860,
2327,
4869,
651,
262,
493,
7550,
10668,
12,
49869,
1614,
8771,
329,
262,
938,
640,
287,
362,
15197,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
860,
2327,
4869,
651,
262,
493,
7550,
10668,
12,
49869,
1614,
8771,
329,
262,
938,
640,
287,
362,
15197,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
... |
How many teams have 62 tries against? | SELECT COUNT("Points difference") FROM table_20101 WHERE "Tries Against" = '62' | [
2437,
867,
3466,
423,
8190,
8404,
1028,
30,
46506,
327,
28270,
7203,
40710,
3580,
4943,
16034,
3084,
62,
1264,
486,
33411,
366,
51,
1678,
12914,
1,
796,
705,
5237,
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
] | [
2437,
867,
3466,
423,
8190,
8404,
1028,
30,
46506,
327,
28270,
7203,
40710,
3580,
4943,
16034,
3084,
62,
1264,
486,
33411,
366,
51,
1678,
12914,
1,
796,
705,
5237,
6
] |
tell me the number of medicaid insurance patients who had procedure icd9 code 4432. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicaid" AND procedures.icd9_code = "4432" | [
33331,
502,
262,
1271,
286,
6924,
1698,
5096,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
5846,
2624,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
6924,
1698,
5096,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
5846,
2624,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
167... |
What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? | SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010 | [
2061,
318,
262,
1438,
286,
262,
35206,
8837,
3170,
706,
3050,
326,
318,
257,
10188,
1398,
5961,
321,
897,
8837,
30,
46506,
8837,
62,
3672,
16034,
3084,
62,
3672,
62,
3980,
33411,
6056,
796,
366,
76,
2501,
64,
1,
5357,
2099,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
35206,
8837,
3170,
706,
3050,
326,
318,
257,
10188,
1398,
5961,
321,
897,
8837,
30,
46506,
8837,
62,
3672,
16034,
3084,
62,
3672,
62,
3980,
33411,
6056,
796,
366,
76,
2501,
64,
1,
5357,
2099,
796,
366... |
A bar chart showing the number of tourist attractions for each attraction name. | SELECT Name, COUNT(*) FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID | [
32,
2318,
8262,
4478,
262,
1271,
286,
18473,
29156,
329,
1123,
17416,
1438,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
9852,
396,
62,
8086,
37810,
7054,
309,
16,
32357,
1268,
6911,
896,
7054,
309,
17,
6177,
309,
16,
13,
39152,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
4478,
262,
1271,
286,
18473,
29156,
329,
1123,
17416,
1438,
13,
46506,
6530,
11,
327,
28270,
7,
28104,
16034,
9852,
396,
62,
8086,
37810,
7054,
309,
16,
32357,
1268,
6911,
896,
7054,
309,
17,
6177,
309,
16,
13,
39152,
... |
What is McMaster College's pick number? | SELECT MIN("Pick #") FROM table_16384 WHERE "College" = 'McMaster' | [
2061,
318,
42284,
5535,
338,
2298,
1271,
30,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1433,
22842,
33411,
366,
38951,
1,
796,
705,
9742,
18254,
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
] | [
2061,
318,
42284,
5535,
338,
2298,
1271,
30,
46506,
20625,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1433,
22842,
33411,
366,
38951,
1,
796,
705,
9742,
18254,
6
] |
What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals? | SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36 | [
2061,
318,
262,
9016,
4279,
329,
7027,
351,
517,
621,
513,
22101,
28057,
290,
517,
621,
4570,
2472,
28057,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
22101,
1875,
513,
5357,
2472,
1875,
4570
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
329,
7027,
351,
517,
621,
513,
22101,
28057,
290,
517,
621,
4570,
2472,
28057,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2481,
33411,
22101,
1875,
513,
5357,
2472,
1875,
4570
] |
What is the Date of Birth with a Block that is larger than 342? | SELECT date_of_birth FROM table_name_18 WHERE block > 342 | [
2061,
318,
262,
7536,
286,
17647,
351,
257,
9726,
326,
318,
4025,
621,
44341,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
1507,
33411,
2512,
1875,
44341
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7536,
286,
17647,
351,
257,
9726,
326,
318,
4025,
621,
44341,
30,
46506,
3128,
62,
1659,
62,
24280,
16034,
3084,
62,
3672,
62,
1507,
33411,
2512,
1875,
44341
] |
what was the first single released for the epic label ? | SELECT "title" FROM table_203_123 WHERE "label (catalog)" = 'epic' ORDER BY id LIMIT 1 | [
10919,
373,
262,
717,
2060,
2716,
329,
262,
12191,
6167,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
10163,
33411,
366,
18242,
357,
9246,
11794,
16725,
796,
705,
538,
291,
6,
38678,
11050,
4686,
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
] | [
10919,
373,
262,
717,
2060,
2716,
329,
262,
12191,
6167,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
10163,
33411,
366,
18242,
357,
9246,
11794,
16725,
796,
705,
538,
291,
6,
38678,
11050,
4686,
27564,
2043,
352
] |
What is the air date of the episode written by Itamar Moses? | SELECT "Original air date" FROM table_27583 WHERE "Written by" = 'Itamar Moses' | [
2061,
318,
262,
1633,
3128,
286,
262,
4471,
3194,
416,
632,
39236,
19010,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1983,
46239,
33411,
366,
25354,
416,
1,
796,
705,
1026,
39236,
19010,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1633,
3128,
286,
262,
4471,
3194,
416,
632,
39236,
19010,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1983,
46239,
33411,
366,
25354,
416,
1,
796,
705,
1026,
39236,
19010,
6
] |
Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees? | SELECT "Time to ft (m) at 25\u00b0 (seconds)" FROM table_20822 WHERE "Shell (lb)" = '12.5' AND "Max. height (ft)" > '20000.0' | [
8496,
262,
6001,
2837,
318,
2440,
621,
939,
405,
13,
15,
290,
262,
7582,
3463,
318,
1105,
13,
20,
11,
644,
318,
262,
640,
284,
3625,
8064,
379,
1679,
7370,
30,
46506,
366,
7575,
284,
10117,
357,
76,
8,
379,
1679,
59,
84,
405,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8496,
262,
6001,
2837,
318,
2440,
621,
939,
405,
13,
15,
290,
262,
7582,
3463,
318,
1105,
13,
20,
11,
644,
318,
262,
640,
284,
3625,
8064,
379,
1679,
7370,
30,
46506,
366,
7575,
284,
10117,
357,
76,
8,
379,
1679,
59,
84,
405,
65... |
how long did sala burton serve ? | SELECT "served" - "served" FROM table_204_145 WHERE "representative" = 'sala burton' | [
4919,
890,
750,
3664,
64,
4356,
1122,
4691,
5633,
46506,
366,
45852,
1,
532,
366,
45852,
1,
16034,
3084,
62,
18638,
62,
18781,
33411,
366,
15603,
876,
1,
796,
705,
82,
6081,
4356,
1122,
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
] | [
4919,
890,
750,
3664,
64,
4356,
1122,
4691,
5633,
46506,
366,
45852,
1,
532,
366,
45852,
1,
16034,
3084,
62,
18638,
62,
18781,
33411,
366,
15603,
876,
1,
796,
705,
82,
6081,
4356,
1122,
6
] |
what is the away team score when the home team is essendon? | SELECT "Away team score" FROM table_58498 WHERE "Home team" = 'essendon' | [
10919,
318,
262,
1497,
1074,
4776,
618,
262,
1363,
1074,
318,
3209,
43153,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3365,
36260,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
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
] | [
10919,
318,
262,
1497,
1074,
4776,
618,
262,
1363,
1074,
318,
3209,
43153,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
3365,
36260,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
6
] |
Name the author for peri and april 2010 | SELECT author FROM table_1620397_2 WHERE featuring = "Peri" AND released = "April 2010" | [
5376,
262,
1772,
329,
583,
72,
290,
46593,
346,
3050,
46506,
1772,
16034,
3084,
62,
1433,
1238,
33372,
62,
17,
33411,
9593,
796,
366,
5990,
72,
1,
5357,
2716,
796,
366,
16784,
3050,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
329,
583,
72,
290,
46593,
346,
3050,
46506,
1772,
16034,
3084,
62,
1433,
1238,
33372,
62,
17,
33411,
9593,
796,
366,
5990,
72,
1,
5357,
2716,
796,
366,
16784,
3050,
1
] |
How many 4 credits is the hand two pair? | SELECT COUNT(4 AS _credits) FROM table_11200856_1 WHERE hand = "Two pair" | [
2437,
867,
604,
10824,
318,
262,
1021,
734,
5166,
30,
46506,
327,
28270,
7,
19,
7054,
4808,
66,
20696,
8,
16034,
3084,
62,
14686,
25257,
3980,
62,
16,
33411,
1021,
796,
366,
7571,
5166,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
604,
10824,
318,
262,
1021,
734,
5166,
30,
46506,
327,
28270,
7,
19,
7054,
4808,
66,
20696,
8,
16034,
3084,
62,
14686,
25257,
3980,
62,
16,
33411,
1021,
796,
366,
7571,
5166,
1
] |
For those wines whose price is bigger than 100, count their total number of each year and sort by year in a bar chart. | SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 GROUP BY Grape, Year ORDER BY Year | [
1890,
883,
30680,
3025,
2756,
318,
5749,
621,
1802,
11,
954,
511,
2472,
1271,
286,
1123,
614,
290,
3297,
416,
614,
287,
257,
2318,
8262,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
16034,
8237,
33411,
7886,
1875,
1802,
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
] | [
1890,
883,
30680,
3025,
2756,
318,
5749,
621,
1802,
11,
954,
511,
2472,
1271,
286,
1123,
614,
290,
3297,
416,
614,
287,
257,
2318,
8262,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
16034,
8237,
33411,
7886,
1875,
1802,
44441,
11050,... |
Show the different nationalities and the number of journalists of each nationality Visualize by bar chart, order in asc by the the total number . | SELECT Nationality, COUNT(*) FROM journalist GROUP BY Nationality ORDER BY COUNT(*) | [
15307,
262,
1180,
2260,
871,
290,
262,
1271,
286,
9046,
286,
1123,
29835,
15612,
1096,
416,
2318,
8262,
11,
1502,
287,
10570,
416,
262,
262,
2472,
1271,
764,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
10099,
44441,
11050,
2351,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
2260,
871,
290,
262,
1271,
286,
9046,
286,
1123,
29835,
15612,
1096,
416,
2318,
8262,
11,
1502,
287,
10570,
416,
262,
262,
2472,
1271,
764,
46506,
2351,
414,
11,
327,
28270,
7,
28104,
16034,
10099,
44441,
11050,
2351,
... |
for how many days was the patient kelly gallardo hospitalized? | SELECT demographic.days_stay FROM demographic WHERE demographic.name = "Kelly Gallardo" | [
1640,
703,
867,
1528,
373,
262,
5827,
885,
12810,
7976,
13109,
31736,
30,
46506,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1640,
703,
867,
1528,
373,
262,
5827,
885,
12810,
7976,
13109,
31736,
30,
46506,
16728,
13,
12545,
62,
31712,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] |
has the arterial bp [systolic] of patient 10855 been on the current intensive care unit visit ever greater than 111.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 = 10855) AND icustays.outtime IS NULL) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_ite... | [
10134,
262,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
286,
5827,
15495,
2816,
587,
319,
262,
1459,
18590,
1337,
4326,
3187,
1683,
3744,
621,
13374,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
82... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
262,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
286,
5827,
15495,
2816,
587,
319,
262,
1459,
18590,
1337,
4326,
3187,
1683,
3744,
621,
13374,
13,
15,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
82... |
What is the pick number for tulane university? | SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university" | [
2061,
318,
262,
2298,
1271,
329,
48373,
1531,
6403,
30,
46506,
35683,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1524,
796,
366,
83,
377,
1531,
6403,
1
] | [
1,
1,
1,
1,
1,
1,
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,
48373,
1531,
6403,
30,
46506,
35683,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1524,
796,
366,
83,
377,
1531,
6403,
1
] |
Questions whose title starts with a question word. | SELECT Id AS "post_link", Score, OwnerDisplayName, TIME_TO_STR(CreationDate, '%d') AS "day", TIME_TO_STR(CreationDate, '%M') AS "month", TIME_TO_STR(CreationDate, '%Y') AS "year", Tags FROM Posts WHERE PostTypeId IN (1) AND Title LIKE 'S%' AND Tags LIKE '%java%' AND OwnerDisplayName LIKE 'user%' ORDER BY CreationDate D... | [
35741,
3025,
3670,
4940,
351,
257,
1808,
1573,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23853,
23114,
5376,
11,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
67,
11537,
7054,
366,
820,
1600,
20460,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
3025,
3670,
4940,
351,
257,
1808,
1573,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23853,
23114,
5376,
11,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
67,
11537,
7054,
366,
820,
1600,
20460,... |
Draw a bar chart for how many captains with younger than 50 are in each rank?, order from high to low by the X. | SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank ORDER BY Rank DESC | [
25302,
257,
2318,
8262,
329,
703,
867,
37551,
351,
7099,
621,
2026,
389,
287,
1123,
4279,
21747,
1502,
422,
1029,
284,
1877,
416,
262,
1395,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
33411,
2479,
1279,
2026,
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
] | [
25302,
257,
2318,
8262,
329,
703,
867,
37551,
351,
7099,
621,
2026,
389,
287,
1123,
4279,
21747,
1502,
422,
1029,
284,
1877,
416,
262,
1395,
13,
46506,
10916,
11,
327,
28270,
7,
28104,
16034,
10654,
33411,
2479,
1279,
2026,
44441,
11050... |
What is the uniform number of the player whose last name is Wiltshire? | SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire" | [
2061,
318,
262,
8187,
1271,
286,
262,
2137,
3025,
938,
1438,
318,
5187,
912,
10695,
30,
46506,
20625,
7,
35657,
62,
17618,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
40358,
796,
366,
86,
50076,
10695,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8187,
1271,
286,
262,
2137,
3025,
938,
1438,
318,
5187,
912,
10695,
30,
46506,
20625,
7,
35657,
62,
17618,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
40358,
796,
366,
86,
50076,
10695,
1
] |
What is the railway number of the aw class? | SELECT railway_number_s_ FROM table_name_3 WHERE class = "aw" | [
2061,
318,
262,
20515,
1271,
286,
262,
3253,
1398,
30,
46506,
20515,
62,
17618,
62,
82,
62,
16034,
3084,
62,
3672,
62,
18,
33411,
1398,
796,
366,
707,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
20515,
1271,
286,
262,
3253,
1398,
30,
46506,
20515,
62,
17618,
62,
82,
62,
16034,
3084,
62,
3672,
62,
18,
33411,
1398,
796,
366,
707,
1
] |
tell the final for lindsey graham | SELECT result FROM table_1133844_4 WHERE senator = "Lindsey Graham" | [
33331,
262,
2457,
329,
300,
521,
4397,
7933,
2763,
46506,
1255,
16034,
3084,
62,
1157,
28460,
2598,
62,
19,
33411,
12329,
796,
366,
43410,
4397,
11520,
1
] | [
1,
1,
1,
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,
262,
2457,
329,
300,
521,
4397,
7933,
2763,
46506,
1255,
16034,
3084,
62,
1157,
28460,
2598,
62,
19,
33411,
12329,
796,
366,
43410,
4397,
11520,
1
] |
how many patients were diagnosed with sepsis and they didn't return to the hospital in a year before within 2 months? | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of ... | [
4919,
867,
3871,
547,
14641,
351,
384,
862,
271,
290,
484,
1422,
470,
1441,
284,
262,
4436,
287,
257,
614,
878,
1626,
362,
1933,
30,
46506,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
547,
14641,
351,
384,
862,
271,
290,
484,
1422,
470,
1441,
284,
262,
4436,
287,
257,
614,
878,
1626,
362,
1933,
30,
46506,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
1603... |
What was the date of the game against North Carolina? | SELECT "Date" FROM table_75819 WHERE "Opponent" = 'north carolina' | [
2061,
373,
262,
3128,
286,
262,
983,
1028,
2258,
5913,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38569,
1129,
33411,
366,
27524,
3471,
1,
796,
705,
43588,
1097,
47196,
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
] | [
2061,
373,
262,
3128,
286,
262,
983,
1028,
2258,
5913,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38569,
1129,
33411,
366,
27524,
3471,
1,
796,
705,
43588,
1097,
47196,
6
] |
what is the minimum number of monthly diagnosed cases of hypercoagulable state - heparin induced thrombocytopenia? | SELECT MIN(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'hypercoagulable state - heparin induced thrombocytopenia' GROUP BY STRFTIME('%y-%m', diagnosis.diagnosistime)) AS t1 | [
10919,
318,
262,
5288,
1271,
286,
9651,
14641,
2663,
286,
8718,
1073,
363,
377,
540,
1181,
532,
339,
1845,
259,
18268,
294,
398,
65,
13733,
4852,
268,
544,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
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... | [
10919,
318,
262,
5288,
1271,
286,
9651,
14641,
2663,
286,
8718,
1073,
363,
377,
540,
1181,
532,
339,
1845,
259,
18268,
294,
398,
65,
13733,
4852,
268,
544,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
... |
count the number of times that since 103 months ago patient 1114 had been prescribed meropenem. | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1114) AND prescriptions.drug = 'meropenem' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-103 month') | [
9127,
262,
1271,
286,
1661,
326,
1201,
15349,
1933,
2084,
5827,
13374,
19,
550,
587,
14798,
4017,
9654,
368,
13,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
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... | [
9127,
262,
1271,
286,
1661,
326,
1201,
15349,
1933,
2084,
5827,
13374,
19,
550,
587,
14798,
4017,
9654,
368,
13,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
... |
How many stamps were designed for the theme of XII Summit de la Francophonie? | SELECT COUNT(design) FROM table_11900773_6 WHERE theme = "XII Summit de la Francophonie" | [
2437,
867,
25560,
547,
3562,
329,
262,
7505,
286,
39284,
20014,
390,
8591,
4682,
48982,
494,
30,
46506,
327,
28270,
7,
26124,
8,
16034,
3084,
62,
16315,
405,
46871,
62,
21,
33411,
7505,
796,
366,
55,
3978,
20014,
390,
8591,
4682,
4898... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
25560,
547,
3562,
329,
262,
7505,
286,
39284,
20014,
390,
8591,
4682,
48982,
494,
30,
46506,
327,
28270,
7,
26124,
8,
16034,
3084,
62,
16315,
405,
46871,
62,
21,
33411,
7505,
796,
366,
55,
3978,
20014,
390,
8591,
4682,
4898... |
what is fare code Y mean | SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Y' | [
10919,
318,
14505,
2438,
575,
1612,
46506,
360,
8808,
1268,
4177,
25452,
62,
4871,
16034,
1398,
62,
1659,
62,
15271,
33411,
25452,
62,
4871,
796,
705,
56,
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
] | [
10919,
318,
14505,
2438,
575,
1612,
46506,
360,
8808,
1268,
4177,
25452,
62,
4871,
16034,
1398,
62,
1659,
62,
15271,
33411,
25452,
62,
4871,
796,
705,
56,
6
] |
How many years had a 100 m hurdles event at the world championships in Osaka, Japan? | SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan" | [
2437,
867,
812,
550,
257,
1802,
285,
34283,
1785,
379,
262,
995,
27459,
287,
42429,
11,
2869,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4846,
33411,
1785,
796,
366,
3064,
285,
34283,
1,
5357,
5449,
796,
366,
6894,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
550,
257,
1802,
285,
34283,
1785,
379,
262,
995,
27459,
287,
42429,
11,
2869,
30,
46506,
35683,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4846,
33411,
1785,
796,
366,
3064,
285,
34283,
1,
5357,
5449,
796,
366,
6894,
274... |
What is Fred Stolle's final year of competing in a championship? | SELECT MAX("Year") FROM table_2532 | [
2061,
318,
8559,
520,
349,
293,
338,
2457,
614,
286,
11780,
287,
257,
12184,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
1495,
2624
] | [
1,
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,
8559,
520,
349,
293,
338,
2457,
614,
286,
11780,
287,
257,
12184,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
1495,
2624
] |
Who was the Away team at Hawthorn? | SELECT "Home team" FROM table_11203 WHERE "Away team" = 'hawthorn' | [
8241,
373,
262,
21986,
1074,
379,
41457,
1211,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
14686,
3070,
33411,
366,
32,
1014,
1074,
1,
796,
705,
26615,
400,
1211,
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,
373,
262,
21986,
1074,
379,
41457,
1211,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
14686,
3070,
33411,
366,
32,
1014,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
What are the names of all the playlists, and count them by a bar chart, and could you rank in descending by the the number of name? | SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY COUNT(name) DESC | [
2061,
389,
262,
3891,
286,
477,
262,
711,
20713,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
4279,
287,
31491,
416,
262,
262,
1271,
286,
1438,
30,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3891,
286,
477,
262,
711,
20713,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
4279,
287,
31491,
416,
262,
262,
1271,
286,
1438,
30,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
... |
count the number of patients who were diagnosed with s/p cabg < 7 days within 2 months after dysphagia this year. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p cabg < 7 days' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start ... | [
9127,
262,
1271,
286,
3871,
508,
547,
14641,
351,
264,
14,
79,
16212,
70,
1279,
767,
1528,
1626,
362,
1933,
706,
50111,
363,
544,
428,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
547,
14641,
351,
264,
14,
79,
16212,
70,
1279,
767,
1528,
1626,
362,
1933,
706,
50111,
363,
544,
428,
614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034... |
Which Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0? | SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" AND drawn < 0 | [
13828,
9164,
468,
11045,
4833,
621,
1315,
11,
290,
257,
6530,
286,
629,
329,
301,
11,
290,
50061,
4833,
621,
657,
30,
46506,
35224,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
2173,
1279,
1315,
5357,
1438,
796,
366,
1416,
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
] | [
13828,
9164,
468,
11045,
4833,
621,
1315,
11,
290,
257,
6530,
286,
629,
329,
301,
11,
290,
50061,
4833,
621,
657,
30,
46506,
35224,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
4531,
33411,
2173,
1279,
1315,
5357,
1438,
796,
366,
1416,
3... |
in which year did seattle slew win the triple crown ? | SELECT "year" FROM table_200_3 WHERE "winner" = 'seattle slew' | [
259,
543,
614,
750,
384,
1999,
26891,
1592,
262,
15055,
12389,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
2167,
62,
18,
33411,
366,
39791,
1,
796,
705,
325,
1999,
26891,
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
] | [
259,
543,
614,
750,
384,
1999,
26891,
1592,
262,
15055,
12389,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
2167,
62,
18,
33411,
366,
39791,
1,
796,
705,
325,
1999,
26891,
6
] |
How many throws did james get? | SELECT throws FROM table_name_39 WHERE first = "james" | [
2437,
867,
12542,
750,
474,
1047,
651,
30,
46506,
12542,
16034,
3084,
62,
3672,
62,
2670,
33411,
717,
796,
366,
73,
1047,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
12542,
750,
474,
1047,
651,
30,
46506,
12542,
16034,
3084,
62,
3672,
62,
2670,
33411,
717,
796,
366,
73,
1047,
1
] |
When cristina pe a garzon is the contestant what is the geographical region? | SELECT "Geographical Regions" FROM table_22505 WHERE "Contestant" = 'Cristina Peña Garzon' | [
2215,
1067,
396,
1437,
613,
257,
5482,
26361,
318,
262,
44047,
644,
318,
262,
27465,
3814,
30,
46506,
366,
10082,
17046,
47089,
1,
16034,
3084,
62,
1828,
31654,
33411,
366,
4264,
395,
415,
1,
796,
705,
34,
1585,
1437,
2631,
30644,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1067,
396,
1437,
613,
257,
5482,
26361,
318,
262,
44047,
644,
318,
262,
27465,
3814,
30,
46506,
366,
10082,
17046,
47089,
1,
16034,
3084,
62,
1828,
31654,
33411,
366,
4264,
395,
415,
1,
796,
705,
34,
1585,
1437,
2631,
30644,
716... |
Which method was used when Alessio Sakara was the opponent? | SELECT "Method" FROM table_59538 WHERE "Opponent" = 'alessio sakara' | [
13828,
2446,
373,
973,
618,
47319,
952,
13231,
3301,
373,
262,
6125,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
35124,
2548,
33411,
366,
27524,
3471,
1,
796,
705,
282,
408,
952,
264,
461,
3301,
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,
2446,
373,
973,
618,
47319,
952,
13231,
3301,
373,
262,
6125,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
35124,
2548,
33411,
366,
27524,
3471,
1,
796,
705,
282,
408,
952,
264,
461,
3301,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.