instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what gender has an asian black bear? | SELECT "Gender" FROM table_28808 WHERE "Species" = 'Asian black bear' | [
10919,
5279,
468,
281,
355,
666,
2042,
6842,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
2078,
28362,
33411,
366,
5248,
3171,
1,
796,
705,
43224,
2042,
6842,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
5279,
468,
281,
355,
666,
2042,
6842,
30,
46506,
366,
41394,
1,
16034,
3084,
62,
2078,
28362,
33411,
366,
5248,
3171,
1,
796,
705,
43224,
2042,
6842,
6
] |
What is the Engine with 3 as the start in the year of 2007? | SELECT engine FROM table_name_8 WHERE start = "3" AND year = 2007 | [
2061,
318,
262,
7117,
351,
513,
355,
262,
923,
287,
262,
614,
286,
4343,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
23,
33411,
923,
796,
366,
18,
1,
5357,
614,
796,
4343
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7117,
351,
513,
355,
262,
923,
287,
262,
614,
286,
4343,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
23,
33411,
923,
796,
366,
18,
1,
5357,
614,
796,
4343
] |
What was the home team when the game was at Windy Hill? | SELECT home_team FROM table_name_36 WHERE venue = "windy hill" | [
2061,
373,
262,
1363,
1074,
618,
262,
983,
373,
379,
3086,
88,
3327,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2623,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1363,
1074,
618,
262,
983,
373,
379,
3086,
88,
3327,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
2623,
33411,
14359,
796,
366,
7972,
88,
12788,
1
] |
List the first and last name for players who participated in all star game in 1998. | SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE year = 1998 | [
8053,
262,
717,
290,
938,
1438,
329,
1938,
508,
14888,
287,
477,
3491,
983,
287,
7795,
13,
46506,
1438,
62,
11085,
11,
1438,
62,
12957,
16034,
2137,
7054,
309,
16,
32357,
1268,
477,
62,
7364,
7054,
309,
17,
6177,
309,
16,
13,
7829,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
290,
938,
1438,
329,
1938,
508,
14888,
287,
477,
3491,
983,
287,
7795,
13,
46506,
1438,
62,
11085,
11,
1438,
62,
12957,
16034,
2137,
7054,
309,
16,
32357,
1268,
477,
62,
7364,
7054,
309,
17,
6177,
309,
16,
13,
7829,
... |
with team #1 as lukoil academic what is team #2? | SELECT "Team #2" FROM table_36356 WHERE "Team #1" = 'lukoil academic' | [
4480,
1074,
1303,
16,
355,
300,
2724,
9437,
8233,
644,
318,
1074,
1303,
17,
30,
46506,
366,
15592,
1303,
17,
1,
16034,
3084,
62,
2623,
32066,
33411,
366,
15592,
1303,
16,
1,
796,
705,
2290,
7204,
346,
8233,
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
] | [
4480,
1074,
1303,
16,
355,
300,
2724,
9437,
8233,
644,
318,
1074,
1303,
17,
30,
46506,
366,
15592,
1303,
17,
1,
16034,
3084,
62,
2623,
32066,
33411,
366,
15592,
1303,
16,
1,
796,
705,
2290,
7204,
346,
8233,
6
] |
What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from? | SELECT city FROM table_name_84 WHERE entered_the_house = "day 1" AND profession = "tv presenter" | [
2061,
1748,
318,
262,
2156,
9830,
508,
5982,
262,
2156,
319,
1110,
352,
290,
3025,
7573,
373,
257,
31557,
39597,
422,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
5705,
33411,
5982,
62,
1169,
62,
4803,
796,
366,
820,
352,
1,
5357,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
318,
262,
2156,
9830,
508,
5982,
262,
2156,
319,
1110,
352,
290,
3025,
7573,
373,
257,
31557,
39597,
422,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
5705,
33411,
5982,
62,
1169,
62,
4803,
796,
366,
820,
352,
1,
5357,
75... |
Find the name and capacity of the dorm with least number of amenities. | SELECT T1.dorm_name, T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY COUNT(*) LIMIT 1 | [
16742,
262,
1438,
290,
5339,
286,
262,
18586,
351,
1551,
1271,
286,
35468,
13,
46506,
309,
16,
13,
67,
579,
62,
3672,
11,
309,
16,
13,
50139,
62,
42404,
16034,
18586,
7054,
309,
16,
32357,
1268,
468,
62,
41763,
414,
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... | [
16742,
262,
1438,
290,
5339,
286,
262,
18586,
351,
1551,
1271,
286,
35468,
13,
46506,
309,
16,
13,
67,
579,
62,
3672,
11,
309,
16,
13,
50139,
62,
42404,
16034,
18586,
7054,
309,
16,
32357,
1268,
468,
62,
41763,
414,
7054,
309,
17,
... |
What is the tie number when the home team was gillingham? | SELECT tie_no FROM table_name_12 WHERE home_team = "gillingham" | [
2061,
318,
262,
9839,
1271,
618,
262,
1363,
1074,
373,
308,
4509,
2763,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
1065,
33411,
1363,
62,
15097,
796,
366,
70,
4509,
2763,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9839,
1271,
618,
262,
1363,
1074,
373,
308,
4509,
2763,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
1065,
33411,
1363,
62,
15097,
796,
366,
70,
4509,
2763,
1
] |
What dates did Ferrari win races? | SELECT "Date" FROM table_53440 WHERE "Constructor" = 'ferrari' | [
2061,
9667,
750,
23502,
1592,
9558,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
2682,
1821,
33411,
366,
42316,
273,
1,
796,
705,
2232,
81,
2743,
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,
9667,
750,
23502,
1592,
9558,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
2682,
1821,
33411,
366,
42316,
273,
1,
796,
705,
2232,
81,
2743,
6
] |
mmse less than 12 or greater than 24 | SELECT * FROM table_train_93 WHERE mini_mental_state_examination_mmse <= 12 OR mini_mental_state_examination_mmse >= 24 | [
3020,
325,
1342,
621,
1105,
393,
3744,
621,
1987,
46506,
1635,
16034,
3084,
62,
27432,
62,
6052,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
19841,
1105,
6375,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
18189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3020,
325,
1342,
621,
1105,
393,
3744,
621,
1987,
46506,
1635,
16034,
3084,
62,
27432,
62,
6052,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
19841,
1105,
6375,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
18189... |
Which Score has a Country of england, and a Year larger than 1971? | SELECT score FROM table_name_77 WHERE country = "england" AND year > 1971 | [
13828,
15178,
468,
257,
12946,
286,
1786,
1044,
11,
290,
257,
6280,
4025,
621,
16382,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
1499,
796,
366,
1516,
1044,
1,
5357,
614,
1875,
16382
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
286,
1786,
1044,
11,
290,
257,
6280,
4025,
621,
16382,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
1499,
796,
366,
1516,
1044,
1,
5357,
614,
1875,
16382
] |
What was the lowest attendance at a week 15 game? | SELECT MIN("Attendance") FROM table_41737 WHERE "Week" = '15' | [
2061,
373,
262,
9016,
14858,
379,
257,
1285,
1315,
983,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
38547,
2718,
33411,
366,
20916,
1,
796,
705,
1314,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9016,
14858,
379,
257,
1285,
1315,
983,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
38547,
2718,
33411,
366,
20916,
1,
796,
705,
1314,
6
] |
What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252? | SELECT COUNT("Week") FROM table_39694 WHERE "Venue" = 'memorial stadium' AND "Attendance" < '41,252' | [
2061,
318,
262,
1271,
286,
2745,
810,
262,
14359,
373,
17357,
10308,
290,
262,
14858,
373,
1342,
621,
6073,
11,
22800,
30,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
2670,
45214,
33411,
366,
37522,
518,
1,
796,
705,
11883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
2745,
810,
262,
14359,
373,
17357,
10308,
290,
262,
14858,
373,
1342,
621,
6073,
11,
22800,
30,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
2670,
45214,
33411,
366,
37522,
518,
1,
796,
705,
11883,
... |
tell the mean of the times competition for the 7 jigs | SELECT rank_by_average FROM table_1354805_6 WHERE number_of_dances = 7 | [
33331,
262,
1612,
286,
262,
1661,
5449,
329,
262,
767,
474,
9235,
46506,
4279,
62,
1525,
62,
23913,
16034,
3084,
62,
1485,
4051,
28256,
62,
21,
33411,
1271,
62,
1659,
62,
67,
1817,
796,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
286,
262,
1661,
5449,
329,
262,
767,
474,
9235,
46506,
4279,
62,
1525,
62,
23913,
16034,
3084,
62,
1485,
4051,
28256,
62,
21,
33411,
1271,
62,
1659,
62,
67,
1817,
796,
767
] |
flight between ST. PETERSBURG and CHARLOTTE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PETERSBURG' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ... | [
22560,
1022,
3563,
13,
32043,
4877,
38926,
38,
290,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22560,
1022,
3563,
13,
32043,
4877,
38926,
38,
290,
28521,
43,
29089,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,... |
How many mountains classifications when Rui Costa is the winner? | SELECT COUNT("Mountains classification") FROM table_28230 WHERE "Winner" = 'Rui Costa' | [
2437,
867,
12269,
1398,
6637,
618,
371,
9019,
18133,
318,
262,
8464,
30,
46506,
327,
28270,
7203,
35452,
1299,
17923,
4943,
16034,
3084,
62,
2078,
19214,
33411,
366,
48056,
1,
796,
705,
49,
9019,
18133,
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
] | [
2437,
867,
12269,
1398,
6637,
618,
371,
9019,
18133,
318,
262,
8464,
30,
46506,
327,
28270,
7203,
35452,
1299,
17923,
4943,
16034,
3084,
62,
2078,
19214,
33411,
366,
48056,
1,
796,
705,
49,
9019,
18133,
6
] |
Which Result F-A has Opponents of rosenborg? | SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg" | [
13828,
25414,
376,
12,
32,
468,
9385,
3906,
286,
686,
6248,
23297,
30,
46506,
1255,
62,
69,
17569,
64,
16034,
3084,
62,
3672,
62,
23,
33411,
7691,
796,
366,
4951,
268,
23297,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25414,
376,
12,
32,
468,
9385,
3906,
286,
686,
6248,
23297,
30,
46506,
1255,
62,
69,
17569,
64,
16034,
3084,
62,
3672,
62,
23,
33411,
7691,
796,
366,
4951,
268,
23297,
1
] |
Name the game coast for chicago and north western | SELECT game_cost FROM table_243664_1 WHERE railroad = "Chicago and North Western" | [
5376,
262,
983,
7051,
329,
442,
4549,
290,
5093,
8830,
46506,
983,
62,
15805,
16034,
3084,
62,
1731,
2623,
2414,
62,
16,
33411,
24337,
796,
366,
25705,
290,
2258,
4885,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
983,
7051,
329,
442,
4549,
290,
5093,
8830,
46506,
983,
62,
15805,
16034,
3084,
62,
1731,
2623,
2414,
62,
16,
33411,
24337,
796,
366,
25705,
290,
2258,
4885,
1
] |
what's party with district being tennessee 3 | SELECT "Party" FROM table_18408 WHERE "District" = 'Tennessee 3' | [
10919,
338,
2151,
351,
4783,
852,
256,
1697,
10702,
513,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
26200,
33411,
366,
44857,
1,
796,
705,
43139,
10702,
513,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
2151,
351,
4783,
852,
256,
1697,
10702,
513,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
26200,
33411,
366,
44857,
1,
796,
705,
43139,
10702,
513,
6
] |
what were the four most frequently ordered specimen tests in 2100? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE STRFTIME('%y', microbiologyevents.charttime) = '2100' GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 4 | [
10919,
547,
262,
1440,
749,
6777,
6149,
31674,
5254,
287,
38123,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
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... | [
10919,
547,
262,
1440,
749,
6777,
6149,
31674,
5254,
287,
38123,
30,
46506,
256,
16,
13,
16684,
62,
4906,
62,
20147,
16034,
357,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
35... |
Tags that might benefit from increased tag length. | SELECT TagName FROM Tags WHERE LENGTH(TagName) >= 16 AND LENGTH(TagName) <= 25 ORDER BY LENGTH(TagName) DESC | [
36142,
326,
1244,
4414,
422,
3220,
7621,
4129,
13,
46506,
17467,
5376,
16034,
44789,
33411,
406,
49494,
7,
24835,
5376,
8,
18189,
1467,
5357,
406,
49494,
7,
24835,
5376,
8,
19841,
1679,
38678,
11050,
406,
49494,
7,
24835,
5376,
8,
22196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36142,
326,
1244,
4414,
422,
3220,
7621,
4129,
13,
46506,
17467,
5376,
16034,
44789,
33411,
406,
49494,
7,
24835,
5376,
8,
18189,
1467,
5357,
406,
49494,
7,
24835,
5376,
8,
19841,
1679,
38678,
11050,
406,
49494,
7,
24835,
5376,
8,
22196... |
Among patients who had other closed (endoscopic) biopsy of biliary duct or sphincter of oddi, how many of them had a lab test for cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi" AND lab.fluid = "Cerebrospinal Fluid ... | [
14311,
3871,
508,
550,
584,
4838,
357,
437,
48228,
8,
3182,
44522,
286,
275,
28129,
28494,
393,
599,
71,
4612,
263,
286,
5629,
72,
11,
703,
867,
286,
606,
550,
257,
2248,
1332,
329,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
1942... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14311,
3871,
508,
550,
584,
4838,
357,
437,
48228,
8,
3182,
44522,
286,
275,
28129,
28494,
393,
599,
71,
4612,
263,
286,
5629,
72,
11,
703,
867,
286,
606,
550,
257,
2248,
1332,
329,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
1942... |
What circuit had an ensign n180 as the winning car in round 5? | SELECT "Circuit" FROM table_4799 WHERE "Winning car" = 'ensign n180' AND "Round" = '5' | [
2061,
10349,
550,
281,
3140,
570,
299,
15259,
355,
262,
5442,
1097,
287,
2835,
642,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
2857,
2079,
33411,
366,
16643,
768,
1097,
1,
796,
705,
641,
570,
299,
15259,
6,
5357,
366,
22685,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10349,
550,
281,
3140,
570,
299,
15259,
355,
262,
5442,
1097,
287,
2835,
642,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
2857,
2079,
33411,
366,
16643,
768,
1097,
1,
796,
705,
641,
570,
299,
15259,
6,
5357,
366,
22685,
1... |
who is the first person that is being represented ? | SELECT "contestant" FROM table_204_144 WHERE id = 1 | [
8727,
318,
262,
717,
1048,
326,
318,
852,
7997,
5633,
46506,
366,
3642,
395,
415,
1,
16034,
3084,
62,
18638,
62,
18444,
33411,
4686,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
262,
717,
1048,
326,
318,
852,
7997,
5633,
46506,
366,
3642,
395,
415,
1,
16034,
3084,
62,
18638,
62,
18444,
33411,
4686,
796,
352
] |
what are the names of the medicines patient 031-23724 is allergic to until 12 months ago? | 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 = '031-23724')) AND DATETIME(allergy.allergytime) <= DATETIME(CURRENT_TIME(), '... | [
10919,
389,
262,
3891,
286,
262,
23533,
5827,
657,
3132,
12,
24693,
1731,
318,
31856,
284,
1566,
1105,
1933,
2084,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
3891,
286,
262,
23533,
5827,
657,
3132,
12,
24693,
1731,
318,
31856,
284,
1566,
1105,
1933,
2084,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... |
When the played number is less than 8 and against is 23, what is the least amount of points? | SELECT MIN("Points") FROM table_39783 WHERE "Against" = '23' AND "Played" < '8' | [
2215,
262,
2826,
1271,
318,
1342,
621,
807,
290,
1028,
318,
2242,
11,
644,
318,
262,
1551,
2033,
286,
2173,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
2670,
50165,
33411,
366,
39276,
1,
796,
705,
1954,
6,
5357,
366,
11002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
2826,
1271,
318,
1342,
621,
807,
290,
1028,
318,
2242,
11,
644,
318,
262,
1551,
2033,
286,
2173,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
2670,
50165,
33411,
366,
39276,
1,
796,
705,
1954,
6,
5357,
366,
11002,
... |
What club had Guus Hiddink as outgoing manager? | SELECT club FROM table_name_51 WHERE name = "guus hiddink" | [
2061,
3430,
550,
1962,
385,
367,
1638,
676,
355,
28181,
4706,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
4349,
33411,
1438,
796,
366,
5162,
385,
289,
1638,
676,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3430,
550,
1962,
385,
367,
1638,
676,
355,
28181,
4706,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
4349,
33411,
1438,
796,
366,
5162,
385,
289,
1638,
676,
1
] |
Show the transaction type and the number of transactions by a bar chart. | SELECT transaction_type, COUNT(*) FROM Financial_Transactions GROUP BY transaction_type | [
15307,
262,
8611,
2099,
290,
262,
1271,
286,
8945,
416,
257,
2318,
8262,
13,
46506,
8611,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
62,
4906
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8611,
2099,
290,
262,
1271,
286,
8945,
416,
257,
2318,
8262,
13,
46506,
8611,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
62,
4906
] |
Draw a bar chart about the distribution of Sex and the average of Weight , and group by attribute Sex, and order by the X-axis from high to low please. | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY Sex DESC | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2811,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
290,
1502,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
3387,
13,
46506,
14419,
11,
35224,
7,
25844,
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
] | [
25302,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2811,
286,
14331,
837,
290,
1448,
416,
11688,
14419,
11,
290,
1502,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
3387,
13,
46506,
14419,
11,
35224,
7,
25844,
8,
16034,
... |
how many times has patient 9964 visited the hospital in 2105? | SELECT COUNT(DISTINCT admissions.hadm_id) FROM admissions WHERE admissions.subject_id = 9964 AND STRFTIME('%y', admissions.admittime) = '2105' | [
4919,
867,
1661,
468,
5827,
7388,
2414,
8672,
262,
4436,
287,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
7388,
2414,
5357,
19269,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
468,
5827,
7388,
2414,
8672,
262,
4436,
287,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
18108,
76,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
7388,
2414,
5357,
19269,
... |
give me the number of patients whose death status is 1 and diagnoses short title is sec neuroend tumor-liver? | 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.short_title = "Sec neuroend tumor-liver" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
1790,
3670,
318,
792,
7669,
437,
22359,
12,
75,
1428,
30,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
1918,
3722,
318,
352,
290,
40567,
1790,
3670,
318,
792,
7669,
437,
22359,
12,
75,
1428,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11 | SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6 | [
5376,
262,
1551,
6630,
329,
1353,
12,
20,
517,
621,
362,
351,
1353,
1679,
1342,
621,
718,
290,
1353,
838,
1342,
621,
1367,
46506,
20625,
7,
23779,
62,
9727,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
1353,
62,
940,
1279,
1367,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
6630,
329,
1353,
12,
20,
517,
621,
362,
351,
1353,
1679,
1342,
621,
718,
290,
1353,
838,
1342,
621,
1367,
46506,
20625,
7,
23779,
62,
9727,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
1353,
62,
940,
1279,
1367,
5357,... |
What kind of Wind has a Result of 21.69? | SELECT "Wind" FROM table_12668 WHERE "Result" = '21.69' | [
2061,
1611,
286,
3086,
468,
257,
25414,
286,
2310,
13,
3388,
30,
46506,
366,
8731,
1,
16034,
3084,
62,
1065,
35809,
33411,
366,
23004,
1,
796,
705,
2481,
13,
3388,
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,
1611,
286,
3086,
468,
257,
25414,
286,
2310,
13,
3388,
30,
46506,
366,
8731,
1,
16034,
3084,
62,
1065,
35809,
33411,
366,
23004,
1,
796,
705,
2481,
13,
3388,
6
] |
what were the five most common drugs prescribed until 2103? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE STRFTIME('%y', medication.drugstarttime) <= '2103' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
10919,
547,
262,
1936,
749,
2219,
5010,
14798,
1566,
362,
15197,
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,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
2219,
5010,
14798,
1566,
362,
15197,
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,
28104,
... |
How many companies without a gas station in each main industry? Draw a bar chart, and display by the total number in asc. | SELECT Main_Industry, COUNT(Main_Industry) FROM company WHERE NOT Company_ID IN (SELECT Company_ID FROM station_company) GROUP BY Main_Industry ORDER BY COUNT(Main_Industry) | [
2437,
867,
2706,
1231,
257,
3623,
4429,
287,
1123,
1388,
2831,
30,
15315,
257,
2318,
8262,
11,
290,
3359,
416,
262,
2472,
1271,
287,
10570,
13,
46506,
8774,
62,
35848,
563,
11,
327,
28270,
7,
13383,
62,
35848,
563,
8,
16034,
1664,
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... | [
2437,
867,
2706,
1231,
257,
3623,
4429,
287,
1123,
1388,
2831,
30,
15315,
257,
2318,
8262,
11,
290,
3359,
416,
262,
2472,
1271,
287,
10570,
13,
46506,
8774,
62,
35848,
563,
11,
327,
28270,
7,
13383,
62,
35848,
563,
8,
16034,
1664,
3... |
How many bronzes have a Total of 9? | SELECT SUM("Bronze") FROM table_65287 WHERE "Total" = '9' | [
2437,
867,
18443,
12271,
423,
257,
7472,
286,
860,
30,
46506,
35683,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2996,
27800,
33411,
366,
14957,
1,
796,
705,
24,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
18443,
12271,
423,
257,
7472,
286,
860,
30,
46506,
35683,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2996,
27800,
33411,
366,
14957,
1,
796,
705,
24,
6
] |
What is the highest number of wins? | SELECT MAX(wins) FROM table_26609690_1 | [
2061,
318,
262,
4511,
1271,
286,
7864,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
2075,
31751,
35844,
62,
16
] | [
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,
1271,
286,
7864,
30,
46506,
25882,
7,
86,
1040,
8,
16034,
3084,
62,
2075,
31751,
35844,
62,
16
] |
How many first elections have Claude Fuller as incumbent? | SELECT COUNT("First elected") FROM table_18653 WHERE "Incumbent" = 'Claude Fuller' | [
2437,
867,
717,
7024,
423,
40559,
31863,
355,
23526,
30,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
46435,
33411,
366,
25517,
2178,
298,
1,
796,
705,
47404,
2507,
31863,
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
] | [
2437,
867,
717,
7024,
423,
40559,
31863,
355,
23526,
30,
46506,
327,
28270,
7203,
5962,
7018,
4943,
16034,
3084,
62,
1507,
46435,
33411,
366,
25517,
2178,
298,
1,
796,
705,
47404,
2507,
31863,
6
] |
What NHL team has a player in the position of Left Wing that came from the Toronto Marlboros (omjhl)? | SELECT nhl_team FROM table_name_81 WHERE position = "left wing" AND college_junior_club_team = "toronto marlboros (omjhl)" | [
2061,
9481,
1074,
468,
257,
2137,
287,
262,
2292,
286,
9578,
13405,
326,
1625,
422,
262,
6586,
1526,
75,
2865,
418,
357,
296,
73,
18519,
19427,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
3672,
62,
6659,
33411,
2292,
796,
366,
9464... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9481,
1074,
468,
257,
2137,
287,
262,
2292,
286,
9578,
13405,
326,
1625,
422,
262,
6586,
1526,
75,
2865,
418,
357,
296,
73,
18519,
19427,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
3672,
62,
6659,
33411,
2292,
796,
366,
9464... |
What is on at 8:30 when million dollar password is on at 8:00? | SELECT "8:30" FROM table_7230 WHERE "8:00" = 'million dollar password' | [
2061,
318,
319,
379,
807,
25,
1270,
618,
1510,
8872,
9206,
318,
319,
379,
807,
25,
405,
30,
46506,
366,
23,
25,
1270,
1,
16034,
3084,
62,
4761,
1270,
33411,
366,
23,
25,
405,
1,
796,
705,
14100,
8872,
9206,
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,
319,
379,
807,
25,
1270,
618,
1510,
8872,
9206,
318,
319,
379,
807,
25,
405,
30,
46506,
366,
23,
25,
1270,
1,
16034,
3084,
62,
4761,
1270,
33411,
366,
23,
25,
405,
1,
796,
705,
14100,
8872,
9206,
6
] |
what is 2012 when the tournament is win %? | SELECT 2012 FROM table_name_9 WHERE tournament = "win %" | [
10919,
318,
2321,
618,
262,
7756,
318,
1592,
4064,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
24,
33411,
7756,
796,
366,
5404,
4064,
1
] | [
1,
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,
2321,
618,
262,
7756,
318,
1592,
4064,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
24,
33411,
7756,
796,
366,
5404,
4064,
1
] |
provide the number of patients who were born before year 2200 and whose drug name is aluminium hydroxide suspension. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2200" AND prescriptions.drug = "Aluminum Hydroxide Suspension" | [
15234,
485,
262,
1271,
286,
3871,
508,
547,
4642,
878,
614,
362,
2167,
290,
3025,
2563,
1438,
318,
40412,
7409,
13907,
485,
11461,
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... | [
15234,
485,
262,
1271,
286,
3871,
508,
547,
4642,
878,
614,
362,
2167,
290,
3025,
2563,
1438,
318,
40412,
7409,
13907,
485,
11461,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479... |
Who had the pole position when matt davies had the fastest lap? | SELECT "Pole Position" FROM table_30987 WHERE "Fastest Lap" = 'Matt Davies' | [
8241,
550,
262,
16825,
2292,
618,
23963,
288,
615,
444,
550,
262,
14162,
14779,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
1270,
44183,
33411,
366,
22968,
395,
26944,
1,
796,
705,
13448,
26618,
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
] | [
8241,
550,
262,
16825,
2292,
618,
23963,
288,
615,
444,
550,
262,
14162,
14779,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
1270,
44183,
33411,
366,
22968,
395,
26944,
1,
796,
705,
13448,
26618,
6
] |
How many total ties had less than 1183 total games, 121 years, and more than 541 losses? | SELECT COUNT("Tied") FROM table_58500 WHERE "Total Games" < '1183' AND "Years" = '121' AND "Lost" > '541' | [
2437,
867,
2472,
8470,
550,
1342,
621,
1367,
5999,
2472,
1830,
11,
20416,
812,
11,
290,
517,
621,
642,
3901,
9089,
30,
46506,
327,
28270,
7203,
51,
798,
4943,
16034,
3084,
62,
3365,
4059,
33411,
366,
14957,
5776,
1,
1279,
705,
1157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8470,
550,
1342,
621,
1367,
5999,
2472,
1830,
11,
20416,
812,
11,
290,
517,
621,
642,
3901,
9089,
30,
46506,
327,
28270,
7203,
51,
798,
4943,
16034,
3084,
62,
3365,
4059,
33411,
366,
14957,
5776,
1,
1279,
705,
1157,
... |
What is the type where the country is esp? | SELECT type FROM table_11891841_2 WHERE country = "ESp" | [
2061,
318,
262,
2099,
810,
262,
1499,
318,
15024,
30,
46506,
2099,
16034,
3084,
62,
1157,
4531,
1507,
3901,
62,
17,
33411,
1499,
796,
366,
1546,
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
] | [
2061,
318,
262,
2099,
810,
262,
1499,
318,
15024,
30,
46506,
2099,
16034,
3084,
62,
1157,
4531,
1507,
3901,
62,
17,
33411,
1499,
796,
366,
1546,
79,
1
] |
On the SOC 400 -level , which ones offer 13 -credit courses ? | SELECT DISTINCT department, name, number FROM course WHERE credits = 13 AND department = 'SOC' AND number < 400 + 100 AND number >= 400 | [
2202,
262,
31430,
7337,
532,
5715,
837,
543,
3392,
2897,
1511,
532,
43082,
10902,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
1511,
5357,
5011,
796,
705,
50,
4503,
6,
5357,
1271,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
31430,
7337,
532,
5715,
837,
543,
3392,
2897,
1511,
532,
43082,
10902,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
1511,
5357,
5011,
796,
705,
50,
4503,
6,
5357,
1271,
1279,
... |
Who is the incumbent in district Texas 15? | SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15" | [
8241,
318,
262,
23526,
287,
4783,
3936,
1315,
30,
46506,
23526,
16034,
3084,
62,
19880,
1558,
2998,
62,
2231,
33411,
4783,
796,
366,
21607,
1315,
1
] | [
1,
1,
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,
23526,
287,
4783,
3936,
1315,
30,
46506,
23526,
16034,
3084,
62,
19880,
1558,
2998,
62,
2231,
33411,
4783,
796,
366,
21607,
1315,
1
] |
What is the name of the country that has a transfer window of winter with an end after 2009 and moving from Bolton Wanderers? | SELECT country FROM table_name_45 WHERE transfer_window = "winter" AND ends > 2009 AND moving_from = "bolton wanderers" | [
2061,
318,
262,
1438,
286,
262,
1499,
326,
468,
257,
4351,
4324,
286,
7374,
351,
281,
886,
706,
3717,
290,
3867,
422,
35293,
22420,
19288,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2231,
33411,
4351,
62,
17497,
796,
366,
40078,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
1499,
326,
468,
257,
4351,
4324,
286,
7374,
351,
281,
886,
706,
3717,
290,
3867,
422,
35293,
22420,
19288,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
2231,
33411,
4351,
62,
17497,
796,
366,
40078,
1,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a line chart about the change of salary over hire_date , and show in desc by the x axis. | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
837,
290,
905,
287,
1715,
416,
262,
2124,
16488,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
837,
290,
905,
287,
1715,
416,
262,
2124,
16488,
13... |
what is the fa cup goals when total apps is 10 (4)? | SELECT SUM(fa_cup_goals) FROM table_name_12 WHERE total_apps = "10 (4)" | [
10919,
318,
262,
24685,
6508,
4661,
618,
2472,
6725,
318,
838,
357,
19,
19427,
46506,
35683,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
2472,
62,
18211,
796,
366,
940,
357,
19,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
24685,
6508,
4661,
618,
2472,
6725,
318,
838,
357,
19,
19427,
46506,
35683,
7,
13331,
62,
25244,
62,
2188,
874,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
2472,
62,
18211,
796,
366,
940,
357,
19,
16725
] |
What website has an Ofsted less than 106478 in Atherton? | SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton" | [
2061,
3052,
468,
281,
3226,
30679,
1342,
621,
838,
2414,
3695,
287,
317,
490,
1122,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
2091,
33411,
286,
30679,
1279,
838,
2414,
3695,
5357,
48036,
796,
366,
1032,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3052,
468,
281,
3226,
30679,
1342,
621,
838,
2414,
3695,
287,
317,
490,
1122,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
2091,
33411,
286,
30679,
1279,
838,
2414,
3695,
5357,
48036,
796,
366,
1032,
1122,
1
] |
For those records from the products and each product's manufacturer, find headquarter and the average of manufacturer , and group by attribute headquarter, and visualize them by a bar chart, and order by the y-axis in descending. | SELECT Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Manufacturer) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1182,
24385,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1502,
416,
262,
331,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1064,
1182,
24385,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1502,
416,
262,
331,
12,
2... |
What is the time for Cuba, with a notes entry of QS? | SELECT "Time" FROM table_64370 WHERE "Notes" = 'qs' AND "Country" = 'cuba' | [
2061,
318,
262,
640,
329,
14159,
11,
351,
257,
4710,
5726,
286,
1195,
50,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2414,
20167,
33411,
366,
16130,
1,
796,
705,
48382,
6,
5357,
366,
33921,
1,
796,
705,
66,
22013,
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,
640,
329,
14159,
11,
351,
257,
4710,
5726,
286,
1195,
50,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
2414,
20167,
33411,
366,
16130,
1,
796,
705,
48382,
6,
5357,
366,
33921,
1,
796,
705,
66,
22013,
6
] |
WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7? | SELECT "Carbon dioxide emissions per year (10 6 Tons) (2006)" FROM table_16582 WHERE "Carbon dioxide emissions per year (Tons per person) (2007)" = '1.4' | [
32971,
21725,
3336,
3001,
28270,
3963,
17368,
33,
1340,
360,
9399,
55,
14114,
17228,
16744,
11053,
3268,
4793,
3268,
3336,
31404,
40405,
7655,
14058,
7375,
17,
17228,
16744,
11053,
357,
11357,
50,
19878,
46740,
8,
4526,
16219,
1961,
352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32971,
21725,
3336,
3001,
28270,
3963,
17368,
33,
1340,
360,
9399,
55,
14114,
17228,
16744,
11053,
3268,
4793,
3268,
3336,
31404,
40405,
7655,
14058,
7375,
17,
17228,
16744,
11053,
357,
11357,
50,
19878,
46740,
8,
4526,
16219,
1961,
352,
... |
How many documents for different location code? Plot a bar chart to show the proportion. | SELECT Location_Code, COUNT(Location_Code) FROM Document_Locations GROUP BY Location_Code | [
2437,
867,
4963,
329,
1180,
4067,
2438,
30,
28114,
257,
2318,
8262,
284,
905,
262,
9823,
13,
46506,
13397,
62,
10669,
11,
327,
28270,
7,
14749,
62,
10669,
8,
16034,
16854,
62,
43,
20968,
44441,
11050,
13397,
62,
10669
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4963,
329,
1180,
4067,
2438,
30,
28114,
257,
2318,
8262,
284,
905,
262,
9823,
13,
46506,
13397,
62,
10669,
11,
327,
28270,
7,
14749,
62,
10669,
8,
16034,
16854,
62,
43,
20968,
44441,
11050,
13397,
62,
10669
] |
What is the total number of Grid, when Rider is Aleix Espargaro? | SELECT COUNT("Grid") FROM table_49364 WHERE "Rider" = 'aleix espargaro' | [
2061,
318,
262,
2472,
1271,
286,
24846,
11,
618,
16414,
318,
9300,
844,
20386,
853,
12022,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
2920,
26780,
33411,
366,
49,
1304,
1,
796,
705,
1000,
844,
15024,
853,
12022,
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,
2472,
1271,
286,
24846,
11,
618,
16414,
318,
9300,
844,
20386,
853,
12022,
30,
46506,
327,
28270,
7203,
41339,
4943,
16034,
3084,
62,
2920,
26780,
33411,
366,
49,
1304,
1,
796,
705,
1000,
844,
15024,
853,
12022,
6
] |
Show last names for all student who are on scholarship. | SELECT T2.lname FROM sportsinfo AS T1 JOIN student AS T2 ON T1.stuid = T2.stuid WHERE T1.onscholarship = 'Y' | [
15307,
938,
3891,
329,
477,
3710,
508,
389,
319,
18652,
13,
46506,
309,
17,
13,
75,
3672,
16034,
5701,
10951,
7054,
309,
16,
32357,
1268,
3710,
7054,
309,
17,
6177,
309,
16,
13,
301,
27112,
796,
309,
17,
13,
301,
27112,
33411,
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
] | [
15307,
938,
3891,
329,
477,
3710,
508,
389,
319,
18652,
13,
46506,
309,
17,
13,
75,
3672,
16034,
5701,
10951,
7054,
309,
16,
32357,
1268,
3710,
7054,
309,
17,
6177,
309,
16,
13,
301,
27112,
796,
309,
17,
13,
301,
27112,
33411,
309,
... |
What is the name of the available rock single/pack by REO Speedwagon? | SELECT single___pack_name FROM table_name_30 WHERE genre = "rock" AND artist = "reo speedwagon" | [
2061,
318,
262,
1438,
286,
262,
1695,
3881,
2060,
14,
8002,
416,
4526,
46,
8729,
41127,
30,
46506,
2060,
17569,
8002,
62,
3672,
16034,
3084,
62,
3672,
62,
1270,
33411,
12121,
796,
366,
10823,
1,
5357,
6802,
796,
366,
260,
78,
2866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1695,
3881,
2060,
14,
8002,
416,
4526,
46,
8729,
41127,
30,
46506,
2060,
17569,
8002,
62,
3672,
16034,
3084,
62,
3672,
62,
1270,
33411,
12121,
796,
366,
10823,
1,
5357,
6802,
796,
366,
260,
78,
2866,
... |
what is the name ofhte company where the plant is in burnaston? | SELECT "Company" FROM table_27298 WHERE "Plant" = 'Burnaston' | [
10919,
318,
262,
1438,
286,
71,
660,
1664,
810,
262,
4618,
318,
287,
4245,
45966,
30,
46506,
366,
39154,
1,
16034,
3084,
62,
1983,
27728,
33411,
366,
3646,
415,
1,
796,
705,
29053,
45966,
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
] | [
10919,
318,
262,
1438,
286,
71,
660,
1664,
810,
262,
4618,
318,
287,
4245,
45966,
30,
46506,
366,
39154,
1,
16034,
3084,
62,
1983,
27728,
33411,
366,
3646,
415,
1,
796,
705,
29053,
45966,
6
] |
What is the surface of the track at the indianapolis speedrome? | SELECT "Surface" FROM table_35700 WHERE "Track" = 'indianapolis speedrome' | [
2061,
318,
262,
4417,
286,
262,
2610,
379,
262,
773,
666,
11174,
2866,
5998,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
2327,
9879,
33411,
366,
24802,
1,
796,
705,
521,
666,
11174,
2866,
5998,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4417,
286,
262,
2610,
379,
262,
773,
666,
11174,
2866,
5998,
30,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
2327,
9879,
33411,
366,
24802,
1,
796,
705,
521,
666,
11174,
2866,
5998,
6
] |
Which position does number 23 play? | SELECT position FROM table_name_13 WHERE number = "23" | [
13828,
2292,
857,
1271,
2242,
711,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1485,
33411,
1271,
796,
366,
1954,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2292,
857,
1271,
2242,
711,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1485,
33411,
1271,
796,
366,
1954,
1
] |
Bar chart of total number of credits from each dept name, rank bars in asc order. | SELECT dept_name, SUM(credits) FROM course GROUP BY dept_name ORDER BY dept_name | [
10374,
8262,
286,
2472,
1271,
286,
10824,
422,
1123,
390,
457,
1438,
11,
4279,
9210,
287,
10570,
1502,
13,
46506,
390,
457,
62,
3672,
11,
35683,
7,
66,
20696,
8,
16034,
1781,
44441,
11050,
390,
457,
62,
3672,
38678,
11050,
390,
457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
10824,
422,
1123,
390,
457,
1438,
11,
4279,
9210,
287,
10570,
1502,
13,
46506,
390,
457,
62,
3672,
11,
35683,
7,
66,
20696,
8,
16034,
1781,
44441,
11050,
390,
457,
62,
3672,
38678,
11050,
390,
457,
... |
List of all distinct tags. | SELECT * FROM Posts WHERE Tags LIKE '%redis%' | [
8053,
286,
477,
7310,
15940,
13,
46506,
1635,
16034,
12043,
33411,
44789,
34178,
705,
4,
445,
271,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
286,
477,
7310,
15940,
13,
46506,
1635,
16034,
12043,
33411,
44789,
34178,
705,
4,
445,
271,
4,
6
] |
Name the original title for the counterfeiters | SELECT original_title FROM table_16255245_1 WHERE film_title_used_in_nomination = "The Counterfeiters" | [
5376,
262,
2656,
3670,
329,
262,
36497,
364,
46506,
2656,
62,
7839,
16034,
3084,
62,
1433,
13381,
22995,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
464,
15034,
5036,
270,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
3670,
329,
262,
36497,
364,
46506,
2656,
62,
7839,
16034,
3084,
62,
1433,
13381,
22995,
62,
16,
33411,
2646,
62,
7839,
62,
1484,
62,
259,
62,
26601,
1883,
796,
366,
464,
15034,
5036,
270,
364,
1
] |
What district shows reserved for (SC / ST /None) of total:? | SELECT "District" FROM table_12608 WHERE "Reserved for ( SC / ST /None)" = 'total:' | [
2061,
4783,
2523,
10395,
329,
357,
6173,
1220,
3563,
1220,
14202,
8,
286,
2472,
25,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
1065,
28688,
33411,
366,
4965,
8520,
329,
357,
6374,
1220,
3563,
1220,
14202,
16725,
796,
705,
23350,
32105
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4783,
2523,
10395,
329,
357,
6173,
1220,
3563,
1220,
14202,
8,
286,
2472,
25,
30,
46506,
366,
44857,
1,
16034,
3084,
62,
1065,
28688,
33411,
366,
4965,
8520,
329,
357,
6374,
1220,
3563,
1220,
14202,
16725,
796,
705,
23350,
32105
] |
What was pinky's bmi at the reunion? | SELECT "Reunion BMI" FROM table_4059 WHERE "Contestant" = 'Pinky' | [
2061,
373,
11398,
88,
338,
275,
11632,
379,
262,
30321,
30,
46506,
366,
3041,
24592,
22456,
1,
16034,
3084,
62,
1821,
3270,
33411,
366,
4264,
395,
415,
1,
796,
705,
47,
29246,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
11398,
88,
338,
275,
11632,
379,
262,
30321,
30,
46506,
366,
3041,
24592,
22456,
1,
16034,
3084,
62,
1821,
3270,
33411,
366,
4264,
395,
415,
1,
796,
705,
47,
29246,
6
] |
What Year has a Rank of 12.0 12? | SELECT AVG(year) FROM table_name_52 WHERE rank = "12.0 12" | [
2061,
6280,
468,
257,
10916,
286,
1105,
13,
15,
1105,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
4279,
796,
366,
1065,
13,
15,
1105,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
6280,
468,
257,
10916,
286,
1105,
13,
15,
1105,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
4279,
796,
366,
1065,
13,
15,
1105,
1
] |
compared to last measured on the first hospital visit is chloride of patient 97121 less than second to last measured on the first hospital visit? | SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97121 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label ... | [
5589,
1144,
284,
938,
8630,
319,
262,
717,
4436,
3187,
318,
44921,
286,
5827,
10111,
19244,
1342,
621,
1218,
284,
938,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5589,
1144,
284,
938,
8630,
319,
262,
717,
4436,
3187,
318,
44921,
286,
5827,
10111,
19244,
1342,
621,
1218,
284,
938,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
... |
How many debates are held for each venue? Show a pie chart. | SELECT Venue, COUNT(Venue) FROM debate GROUP BY Venue | [
2437,
867,
15389,
389,
2714,
329,
1123,
14359,
30,
5438,
257,
2508,
8262,
13,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
44441,
11050,
9932,
518
] | [
1,
1,
1,
1,
1,
1,
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,
15389,
389,
2714,
329,
1123,
14359,
30,
5438,
257,
2508,
8262,
13,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
44441,
11050,
9932,
518
] |
provide the number of patients whose gender is m and primary disease is pituitary bleed? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "PITUITARY BLEED" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
285,
290,
4165,
4369,
318,
6028,
5013,
560,
30182,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
285,
290,
4165,
4369,
318,
6028,
5013,
560,
30182,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
... |
how many patients with black/african american ethnicity are diagnosed with pericardiocentesis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND procedures.short_title = "Pericardiocentesis" | [
4919,
867,
3871,
351,
2042,
14,
1878,
37189,
45630,
272,
26289,
389,
14641,
351,
583,
291,
22490,
29421,
9339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
351,
2042,
14,
1878,
37189,
45630,
272,
26289,
389,
14641,
351,
583,
291,
22490,
29421,
9339,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
... |
What's the mutated having a patent number of US plant patent 9645? | SELECT "Mutated From" FROM table_61044 WHERE "Plant Patent Number" = 'us plant patent 9645' | [
2061,
338,
262,
48865,
1719,
257,
12701,
1271,
286,
1294,
4618,
12701,
9907,
2231,
30,
46506,
366,
41603,
515,
3574,
1,
16034,
3084,
62,
39132,
2598,
33411,
366,
3646,
415,
34830,
7913,
1,
796,
705,
385,
4618,
12701,
9907,
2231,
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,
338,
262,
48865,
1719,
257,
12701,
1271,
286,
1294,
4618,
12701,
9907,
2231,
30,
46506,
366,
41603,
515,
3574,
1,
16034,
3084,
62,
39132,
2598,
33411,
366,
3646,
415,
34830,
7913,
1,
796,
705,
385,
4618,
12701,
9907,
2231,
6
] |
what is the engine for year less than 1959 and points more than 4? | SELECT engine FROM table_name_7 WHERE year < 1959 AND points > 4 | [
10919,
318,
262,
3113,
329,
614,
1342,
621,
23859,
290,
2173,
517,
621,
604,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
22,
33411,
614,
1279,
23859,
5357,
2173,
1875,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
3113,
329,
614,
1342,
621,
23859,
290,
2173,
517,
621,
604,
30,
46506,
3113,
16034,
3084,
62,
3672,
62,
22,
33411,
614,
1279,
23859,
5357,
2173,
1875,
604
] |
geriatric depression scales ( gds ) >= 10 . | SELECT * FROM table_train_85 WHERE geriatric_depression_scale_gds >= 10 | [
1362,
11439,
8862,
16252,
357,
308,
9310,
1267,
18189,
838,
764,
46506,
1635,
16034,
3084,
62,
27432,
62,
5332,
33411,
27602,
11439,
62,
10378,
2234,
62,
9888,
62,
70,
9310,
18189,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1362,
11439,
8862,
16252,
357,
308,
9310,
1267,
18189,
838,
764,
46506,
1635,
16034,
3084,
62,
27432,
62,
5332,
33411,
27602,
11439,
62,
10378,
2234,
62,
9888,
62,
70,
9310,
18189,
838
] |
What is the population for the area that has a Hanzi of ? | SELECT population__2010_11_01_ FROM table_name_30 WHERE hanzi = "延寿县" | [
2061,
318,
262,
3265,
329,
262,
1989,
326,
468,
257,
9530,
17027,
286,
5633,
46506,
3265,
834,
10333,
62,
1157,
62,
486,
62,
16034,
3084,
62,
3672,
62,
1270,
33411,
289,
272,
17027,
796,
366,
161,
119,
114,
43380,
123,
43889,
123,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
329,
262,
1989,
326,
468,
257,
9530,
17027,
286,
5633,
46506,
3265,
834,
10333,
62,
1157,
62,
486,
62,
16034,
3084,
62,
3672,
62,
1270,
33411,
289,
272,
17027,
796,
366,
161,
119,
114,
43380,
123,
43889,
123,
1... |
Which heat and lane was in rank of 22? | SELECT heat__lane_ FROM table_name_75 WHERE rank = 22 | [
13828,
4894,
290,
11193,
373,
287,
4279,
286,
2534,
30,
46506,
4894,
834,
33533,
62,
16034,
3084,
62,
3672,
62,
2425,
33411,
4279,
796,
2534
] | [
1,
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,
4894,
290,
11193,
373,
287,
4279,
286,
2534,
30,
46506,
4894,
834,
33533,
62,
16034,
3084,
62,
3672,
62,
2425,
33411,
4279,
796,
2534
] |
Name the broadcast for davis-wade stadium starkville ms | SELECT "Broadcast" FROM table_29063 WHERE "Site" = 'Davis-Wade Stadium • Starkville MS' | [
5376,
262,
7025,
329,
288,
23401,
12,
86,
671,
10308,
19278,
4244,
13845,
46506,
366,
30507,
2701,
1,
16034,
3084,
62,
1959,
3312,
18,
33411,
366,
29123,
1,
796,
705,
36462,
12,
54,
671,
10499,
5595,
20956,
4244,
6579,
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
] | [
5376,
262,
7025,
329,
288,
23401,
12,
86,
671,
10308,
19278,
4244,
13845,
46506,
366,
30507,
2701,
1,
16034,
3084,
62,
1959,
3312,
18,
33411,
366,
29123,
1,
796,
705,
36462,
12,
54,
671,
10499,
5595,
20956,
4244,
6579,
6
] |
give me the number of patients with a diagnoses of other and unspecified open wound of head without mention of complication who were under 59 years of age. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "59" AND diagnoses.short_title = "Open wound of head NEC" | [
26535,
502,
262,
1271,
286,
3871,
351,
257,
40567,
286,
584,
290,
29547,
1280,
11699,
286,
1182,
1231,
3068,
286,
45185,
508,
547,
739,
7863,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
26535,
502,
262,
1271,
286,
3871,
351,
257,
40567,
286,
584,
290,
29547,
1280,
11699,
286,
1182,
1231,
3068,
286,
45185,
508,
547,
739,
7863,
812,
286,
2479,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
... |
what was the first procedure time of open reduc-int fix femur for patient 63676 in 2105? | 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 = 'open reduc-int fix femur') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 63676) AND... | [
10919,
373,
262,
717,
8771,
640,
286,
1280,
2027,
66,
12,
600,
4259,
2796,
333,
329,
5827,
718,
2623,
4304,
287,
362,
13348,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8771,
640,
286,
1280,
2027,
66,
12,
600,
4259,
2796,
333,
329,
5827,
718,
2623,
4304,
287,
362,
13348,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
29... |
What was the Ravg for 2003? | SELECT "RAvg" FROM table_7020 WHERE "Year" = '2003' | [
2061,
373,
262,
28146,
70,
329,
5816,
30,
46506,
366,
3861,
45119,
1,
16034,
3084,
62,
2154,
1238,
33411,
366,
17688,
1,
796,
705,
16088,
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
] | [
2061,
373,
262,
28146,
70,
329,
5816,
30,
46506,
366,
3861,
45119,
1,
16034,
3084,
62,
2154,
1238,
33411,
366,
17688,
1,
796,
705,
16088,
6
] |
What is the home port of m40? | SELECT home_port FROM table_name_62 WHERE pennant = "m40" | [
2061,
318,
262,
1363,
2493,
286,
285,
1821,
30,
46506,
1363,
62,
634,
16034,
3084,
62,
3672,
62,
5237,
33411,
22429,
415,
796,
366,
76,
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,
1,
1
] | [
2061,
318,
262,
1363,
2493,
286,
285,
1821,
30,
46506,
1363,
62,
634,
16034,
3084,
62,
3672,
62,
5237,
33411,
22429,
415,
796,
366,
76,
1821,
1
] |
What are the transit connections from Pioneer Square U? | SELECT "Transit Connections" FROM table_25301 WHERE "Station" = 'Pioneer Square U' | [
2061,
389,
262,
11168,
8787,
422,
31437,
9276,
471,
30,
46506,
366,
8291,
270,
8113,
507,
1,
16034,
3084,
62,
1495,
18938,
33411,
366,
12367,
1,
796,
705,
47,
7935,
263,
9276,
471,
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,
389,
262,
11168,
8787,
422,
31437,
9276,
471,
30,
46506,
366,
8291,
270,
8113,
507,
1,
16034,
3084,
62,
1495,
18938,
33411,
366,
12367,
1,
796,
705,
47,
7935,
263,
9276,
471,
6
] |
Name the number of poles for 15th position | SELECT COUNT(poles) FROM table_24466191_1 WHERE position = "15th" | [
5376,
262,
1271,
286,
24971,
329,
1315,
400,
2292,
46506,
327,
28270,
7,
79,
4316,
8,
16034,
3084,
62,
25707,
2791,
26492,
62,
16,
33411,
2292,
796,
366,
1314,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
24971,
329,
1315,
400,
2292,
46506,
327,
28270,
7,
79,
4316,
8,
16034,
3084,
62,
25707,
2791,
26492,
62,
16,
33411,
2292,
796,
366,
1314,
400,
1
] |
Give me a histogram for how old is each gender, on average?, list in ascending by the mean age. | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) | [
23318,
502,
257,
1554,
21857,
329,
703,
1468,
318,
1123,
5279,
11,
319,
2811,
21747,
1351,
287,
41988,
416,
262,
1612,
2479,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
35224,
7,
496,
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
] | [
23318,
502,
257,
1554,
21857,
329,
703,
1468,
318,
1123,
5279,
11,
319,
2811,
21747,
1351,
287,
41988,
416,
262,
1612,
2479,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
35224,
7,
496,
8
] |
in 2105 how many patients with diabetes mellitus were diagnosed during the same month after previously being diagnosed with acute respiratory distress? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'diabetes mellitus' AND STRFTIME('%y', diagnosis.diagnosistime) = '2105') AS t1 JOIN (SELECT patient.uniquepi... | [
259,
362,
13348,
703,
867,
3871,
351,
12593,
33748,
17506,
547,
14641,
1141,
262,
976,
1227,
706,
4271,
852,
14641,
351,
14352,
22949,
17087,
30,
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... | [
259,
362,
13348,
703,
867,
3871,
351,
12593,
33748,
17506,
547,
14641,
1141,
262,
976,
1227,
706,
4271,
852,
14641,
351,
14352,
22949,
17087,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
1557,
538,
312,
8,
16034,
... |
How many rounds total were there on may 31? | SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31" | [
2437,
867,
9196,
2472,
547,
612,
319,
743,
3261,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
11261,
3261,
1
] | [
1,
1,
1,
1,
1,
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,
9196,
2472,
547,
612,
319,
743,
3261,
30,
46506,
327,
28270,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
11261,
3261,
1
] |
Name the number of class aa for bridgeport and 1999-2000 | SELECT COUNT(class_aA) FROM table_14601528_2 WHERE class_aAA = Bridgeport AND school_year = "1999-2000" | [
5376,
262,
1271,
286,
1398,
257,
64,
329,
7696,
634,
290,
7358,
12,
11024,
46506,
327,
28270,
7,
4871,
62,
64,
32,
8,
16034,
3084,
62,
20964,
25150,
2078,
62,
17,
33411,
1398,
62,
64,
3838,
796,
10290,
634,
5357,
1524,
62,
1941,
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
] | [
5376,
262,
1271,
286,
1398,
257,
64,
329,
7696,
634,
290,
7358,
12,
11024,
46506,
327,
28270,
7,
4871,
62,
64,
32,
8,
16034,
3084,
62,
20964,
25150,
2078,
62,
17,
33411,
1398,
62,
64,
3838,
796,
10290,
634,
5357,
1524,
62,
1941,
7... |
Who played for Memphis State? | SELECT "Player" FROM table_33553 WHERE "School/Club Team" = 'memphis state' | [
8241,
2826,
329,
20522,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2091,
48096,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
11883,
18691,
1181,
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
] | [
8241,
2826,
329,
20522,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2091,
48096,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
11883,
18691,
1181,
6
] |
provide the number of patients whose gender is f and drug code is adva250ih? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "ADVA250IH" | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2563,
2438,
318,
1354,
64,
9031,
4449,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
2563,
2438,
318,
1354,
64,
9031,
4449,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
167... |
Where did steve smith go to school? | SELECT "School/Club Team" FROM table_75449 WHERE "Player" = 'steve smith' | [
8496,
750,
2876,
303,
895,
342,
467,
284,
1524,
30,
46506,
366,
26130,
14,
42350,
4816,
1,
16034,
3084,
62,
2425,
31911,
33411,
366,
14140,
1,
796,
705,
4169,
303,
895,
342,
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
] | [
8496,
750,
2876,
303,
895,
342,
467,
284,
1524,
30,
46506,
366,
26130,
14,
42350,
4816,
1,
16034,
3084,
62,
2425,
31911,
33411,
366,
14140,
1,
796,
705,
4169,
303,
895,
342,
6
] |
Which text has traditional characters of ? | SELECT text FROM table_name_47 WHERE traditional_characters = "心如猨猴" | [
13828,
2420,
468,
4569,
3435,
286,
5633,
46506,
2420,
16034,
3084,
62,
3672,
62,
2857,
33411,
4569,
62,
10641,
19858,
796,
366,
33232,
225,
36685,
224,
163,
234,
101,
163,
234,
112,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2420,
468,
4569,
3435,
286,
5633,
46506,
2420,
16034,
3084,
62,
3672,
62,
2857,
33411,
4569,
62,
10641,
19858,
796,
366,
33232,
225,
36685,
224,
163,
234,
101,
163,
234,
112,
1
] |
What is the minimum number of perfect 40s? | SELECT MIN(perfect_40s) FROM table_15988037_24 | [
2061,
318,
262,
5288,
1271,
286,
2818,
2319,
82,
30,
46506,
20625,
7,
25833,
62,
1821,
82,
8,
16034,
3084,
62,
1314,
4089,
1795,
2718,
62,
1731
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5288,
1271,
286,
2818,
2319,
82,
30,
46506,
20625,
7,
25833,
62,
1821,
82,
8,
16034,
3084,
62,
1314,
4089,
1795,
2718,
62,
1731
] |
Who was the winner/2nd place finisher in the Caulfield Guineas? | SELECT winner_2nd FROM table_name_18 WHERE race = "caulfield guineas" | [
8241,
373,
262,
8464,
14,
17,
358,
1295,
957,
4828,
287,
262,
327,
2518,
3245,
1962,
500,
292,
30,
46506,
8464,
62,
17,
358,
16034,
3084,
62,
3672,
62,
1507,
33411,
3234,
796,
366,
66,
2518,
3245,
915,
500,
292,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8464,
14,
17,
358,
1295,
957,
4828,
287,
262,
327,
2518,
3245,
1962,
500,
292,
30,
46506,
8464,
62,
17,
358,
16034,
3084,
62,
3672,
62,
1507,
33411,
3234,
796,
366,
66,
2518,
3245,
915,
500,
292,
1
] |
ground transportation please in the city of BOS between airport and downtown | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city AS CITY_0, city AS CITY_1, ground_service WHERE airport.airport_code = airport_service.airport_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = airport_service.city_code AND CITY_1.city_name = 'BOSTON' AND ground_service.airpor... | [
2833,
9358,
3387,
287,
262,
1748,
286,
347,
2640,
1022,
9003,
290,
9436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2833,
9358,
3387,
287,
262,
1748,
286,
347,
2640,
1022,
9003,
290,
9436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
... |
what is the laps when the driver is tony rolt and the grid is less than 10? | SELECT SUM("Laps") FROM table_55433 WHERE "Driver" = 'tony rolt' AND "Grid" < '10' | [
10919,
318,
262,
24590,
618,
262,
4639,
318,
256,
1647,
686,
2528,
290,
262,
10706,
318,
1342,
621,
838,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
2816,
42117,
33411,
366,
32103,
1,
796,
705,
1122,
88,
686,
2528,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
24590,
618,
262,
4639,
318,
256,
1647,
686,
2528,
290,
262,
10706,
318,
1342,
621,
838,
30,
46506,
35683,
7203,
43,
1686,
4943,
16034,
3084,
62,
2816,
42117,
33411,
366,
32103,
1,
796,
705,
1122,
88,
686,
2528,
6,
5... |
give me the number of medicaid patients who had procedure icd9 code 403. | 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 = "403" | [
26535,
502,
262,
1271,
286,
6924,
1698,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
38210,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6924,
1698,
3871,
508,
550,
8771,
14158,
67,
24,
2438,
38210,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
181... |
What was the result when the San Francisco 49ers were the opponents? | SELECT result FROM table_name_35 WHERE opponent = "san francisco 49ers" | [
2061,
373,
262,
1255,
618,
262,
2986,
6033,
5125,
364,
547,
262,
7691,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2327,
33411,
6125,
796,
366,
12807,
46754,
4861,
5125,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
618,
262,
2986,
6033,
5125,
364,
547,
262,
7691,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2327,
33411,
6125,
796,
366,
12807,
46754,
4861,
5125,
364,
1
] |
What's the highest game against the New York Rangers with more than 55 points? | SELECT MAX(game) FROM table_name_16 WHERE opponent = "new york rangers" AND points > 55 | [
2061,
338,
262,
4511,
983,
1028,
262,
968,
1971,
13804,
351,
517,
621,
5996,
2173,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
6125,
796,
366,
3605,
331,
967,
374,
6606,
1,
5357,
2173,
1875,
5996
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
983,
1028,
262,
968,
1971,
13804,
351,
517,
621,
5996,
2173,
30,
46506,
25882,
7,
6057,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
6125,
796,
366,
3605,
331,
967,
374,
6606,
1,
5357,
2173,
1875,
5996
] |
What was the rank of a transfer fee larger than 13 million, and after 2008? | SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008 | [
2061,
373,
262,
4279,
286,
257,
4351,
6838,
4025,
621,
1511,
1510,
11,
290,
706,
3648,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
4351,
62,
39071,
17569,
26391,
62,
14100,
62,
1875,
1511,
5357,
614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
286,
257,
4351,
6838,
4025,
621,
1511,
1510,
11,
290,
706,
3648,
30,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
2075,
33411,
4351,
62,
39071,
17569,
26391,
62,
14100,
62,
1875,
1511,
5357,
614,
... |
Name of clem hill, and Inns larger than 126 has the lowest runs? | SELECT MIN(runs) FROM table_name_83 WHERE name = "clem hill" AND inns > 126 | [
5376,
286,
1190,
76,
12788,
11,
290,
554,
5907,
4025,
621,
19710,
468,
262,
9016,
4539,
30,
46506,
20625,
7,
48381,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1438,
796,
366,
2375,
76,
12788,
1,
5357,
3527,
82,
1875,
19710
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
1190,
76,
12788,
11,
290,
554,
5907,
4025,
621,
19710,
468,
262,
9016,
4539,
30,
46506,
20625,
7,
48381,
8,
16034,
3084,
62,
3672,
62,
5999,
33411,
1438,
796,
366,
2375,
76,
12788,
1,
5357,
3527,
82,
1875,
19710
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.