instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons? | SELECT long_ranged_weapons FROM table_27704991_1 WHERE close_ranged_weapons = "Knife (stone), Knife (iron)" | [
1532,
262,
13872,
17929,
3777,
389,
262,
9845,
357,
6440,
828,
9845,
357,
1934,
828,
644,
389,
262,
5882,
17929,
3777,
30,
46506,
890,
62,
34457,
62,
33999,
16034,
3084,
62,
1983,
2154,
28324,
16,
62,
16,
33411,
1969,
62,
34457,
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
] | [
1532,
262,
13872,
17929,
3777,
389,
262,
9845,
357,
6440,
828,
9845,
357,
1934,
828,
644,
389,
262,
5882,
17929,
3777,
30,
46506,
890,
62,
34457,
62,
33999,
16034,
3084,
62,
1983,
2154,
28324,
16,
62,
16,
33411,
1969,
62,
34457,
62,
... |
How many drivers participated in the race Australian Grand Prix held in 2009? | SELECT COUNT(*) FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid WHERE T2.name = "Australian Grand Prix" AND year = 2009 | [
2437,
867,
6643,
14888,
287,
262,
3234,
6638,
5675,
23832,
2714,
287,
3717,
30,
46506,
327,
28270,
7,
28104,
16034,
2482,
7054,
309,
16,
32357,
1268,
9558,
7054,
309,
17,
6177,
309,
16,
13,
16740,
312,
796,
309,
17,
13,
16740,
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
] | [
2437,
867,
6643,
14888,
287,
262,
3234,
6638,
5675,
23832,
2714,
287,
3717,
30,
46506,
327,
28270,
7,
28104,
16034,
2482,
7054,
309,
16,
32357,
1268,
9558,
7054,
309,
17,
6177,
309,
16,
13,
16740,
312,
796,
309,
17,
13,
16740,
312,
... |
count the number of patients whose marital status is married and diagnoses long title is mechanical complication due to other implant and internal device, not elsewhere classified? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "MARRIED" AND diagnoses.long_title = "Mechanical complication due to other implant and internal device, not elsewhere classified" | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
40567,
890,
3670,
318,
12370,
45185,
2233,
284,
584,
29016,
290,
5387,
3335,
11,
407,
8057,
10090,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
40567,
890,
3670,
318,
12370,
45185,
2233,
284,
584,
29016,
290,
5387,
3335,
11,
407,
8057,
10090,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... |
What is the College of the Player from San Miguel Beermen PBA Team? | SELECT "College" FROM table_65066 WHERE "PBA team" = 'san miguel beermen' | [
2061,
318,
262,
5535,
286,
262,
7853,
422,
2986,
29825,
16971,
3653,
350,
4339,
4816,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
17544,
2791,
33411,
366,
47,
4339,
1074,
1,
796,
705,
12807,
37011,
2731,
6099,
3653,
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,
318,
262,
5535,
286,
262,
7853,
422,
2986,
29825,
16971,
3653,
350,
4339,
4816,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
17544,
2791,
33411,
366,
47,
4339,
1074,
1,
796,
705,
12807,
37011,
2731,
6099,
3653,
6
] |
What is the date before week 13 and Miami Dolphins as an opponent? | SELECT "Date" FROM table_33755 WHERE "Week" < '13' AND "Opponent" = 'miami dolphins' | [
2061,
318,
262,
3128,
878,
1285,
1511,
290,
8437,
21668,
355,
281,
6125,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2091,
38172,
33411,
366,
20916,
1,
1279,
705,
1485,
6,
5357,
366,
27524,
3471,
1,
796,
705,
76,
7871,
36798,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
878,
1285,
1511,
290,
8437,
21668,
355,
281,
6125,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2091,
38172,
33411,
366,
20916,
1,
1279,
705,
1485,
6,
5357,
366,
27524,
3471,
1,
796,
705,
76,
7871,
36798,
6
] |
Get email MD5 hashes for StackExchange users. | SELECT Id, DisplayName, EmailHash FROM Users WHERE EmailHash = '5e7308ff7122df9ebbee7b52956a2ea3' LIMIT 50 | [
3855,
3053,
10670,
20,
46621,
329,
23881,
3109,
3803,
2985,
13,
46506,
5121,
11,
16531,
5376,
11,
9570,
26257,
16034,
18987,
33411,
9570,
26257,
796,
705,
20,
68,
22,
21495,
487,
22,
18376,
7568,
24,
1765,
20963,
22,
65,
49721,
3980,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3855,
3053,
10670,
20,
46621,
329,
23881,
3109,
3803,
2985,
13,
46506,
5121,
11,
16531,
5376,
11,
9570,
26257,
16034,
18987,
33411,
9570,
26257,
796,
705,
20,
68,
22,
21495,
487,
22,
18376,
7568,
24,
1765,
20963,
22,
65,
49721,
3980,
... |
Find password and author_tutor_ATB , and visualize them by a bar chart. | SELECT password, author_tutor_ATB FROM Course_Authors_and_Tutors ORDER BY personal_name | [
16742,
9206,
290,
1772,
62,
83,
38409,
62,
1404,
33,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
9206,
11,
1772,
62,
83,
38409,
62,
1404,
33,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9206,
290,
1772,
62,
83,
38409,
62,
1404,
33,
837,
290,
38350,
606,
416,
257,
2318,
8262,
13,
46506,
9206,
11,
1772,
62,
83,
38409,
62,
1404,
33,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
... |
Name the officing running for for carol marsh | SELECT office_running_for FROM table_1855841_1 WHERE candidate = "Carol Marsh" | [
5376,
262,
1163,
278,
2491,
329,
329,
1097,
349,
22397,
46506,
2607,
62,
20270,
62,
1640,
16034,
3084,
62,
1507,
40486,
3901,
62,
16,
33411,
4540,
796,
366,
9914,
349,
9786,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1163,
278,
2491,
329,
329,
1097,
349,
22397,
46506,
2607,
62,
20270,
62,
1640,
16034,
3084,
62,
1507,
40486,
3901,
62,
16,
33411,
4540,
796,
366,
9914,
349,
9786,
1
] |
what's the first leg with gran canaria as team #2? | SELECT "1st leg" FROM table_36355 WHERE "Team #2" = 'gran canaria' | [
10919,
338,
262,
717,
1232,
351,
19468,
460,
10312,
355,
1074,
1303,
17,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
2623,
28567,
33411,
366,
15592,
1303,
17,
1,
796,
705,
46324,
460,
10312,
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
] | [
10919,
338,
262,
717,
1232,
351,
19468,
460,
10312,
355,
1074,
1303,
17,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
2623,
28567,
33411,
366,
15592,
1303,
17,
1,
796,
705,
46324,
460,
10312,
6
] |
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152? | SELECT COUNT("Games won") FROM table_45711 WHERE "Bonus points" > '1' AND "Points difference" < '50' AND "Points against" = '106' AND "Points for" < '152' | [
13828,
5776,
1839,
468,
18770,
2173,
4025,
621,
352,
11,
257,
11045,
3580,
4833,
621,
2026,
11,
11045,
1028,
286,
15696,
11,
290,
11045,
329,
4833,
621,
24848,
30,
46506,
327,
28270,
7203,
24474,
1839,
4943,
16034,
3084,
62,
33032,
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,
1,
1,
1... | [
13828,
5776,
1839,
468,
18770,
2173,
4025,
621,
352,
11,
257,
11045,
3580,
4833,
621,
2026,
11,
11045,
1028,
286,
15696,
11,
290,
11045,
329,
4833,
621,
24848,
30,
46506,
327,
28270,
7203,
24474,
1839,
4943,
16034,
3084,
62,
33032,
1157... |
Where is the track that opened in 1995? | SELECT location FROM table_1245148_1 WHERE year_opened = 1995 | [
8496,
318,
262,
2610,
326,
4721,
287,
8735,
30,
46506,
4067,
16034,
3084,
62,
1065,
2231,
18294,
62,
16,
33411,
614,
62,
26350,
796,
8735
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
2610,
326,
4721,
287,
8735,
30,
46506,
4067,
16034,
3084,
62,
1065,
2231,
18294,
62,
16,
33411,
614,
62,
26350,
796,
8735
] |
What is the state of the senator with a November 14, 1972 date of successor's formal installation? | SELECT "State (class)" FROM table_54396 WHERE "Date of successor's formal installation" = 'november 14, 1972' | [
2061,
318,
262,
1181,
286,
262,
12329,
351,
257,
3389,
1478,
11,
16101,
3128,
286,
17270,
338,
8766,
9988,
30,
46506,
366,
9012,
357,
4871,
16725,
16034,
3084,
62,
4051,
34107,
33411,
366,
10430,
286,
17270,
338,
8766,
9988,
1,
796,
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
] | [
2061,
318,
262,
1181,
286,
262,
12329,
351,
257,
3389,
1478,
11,
16101,
3128,
286,
17270,
338,
8766,
9988,
30,
46506,
366,
9012,
357,
4871,
16725,
16034,
3084,
62,
4051,
34107,
33411,
366,
10430,
286,
17270,
338,
8766,
9988,
1,
796,
7... |
What is the Height of Junior Meghan Austin? | SELECT height FROM table_name_59 WHERE year = "junior" AND name = "meghan austin" | [
2061,
318,
262,
27280,
286,
20000,
2185,
6064,
9533,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
3270,
33411,
614,
796,
366,
29741,
1504,
1,
5357,
1438,
796,
366,
1326,
6064,
38132,
259,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
27280,
286,
20000,
2185,
6064,
9533,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
3270,
33411,
614,
796,
366,
29741,
1504,
1,
5357,
1438,
796,
366,
1326,
6064,
38132,
259,
1
] |
What is the number of locations of the wrestlers? Visualize by a bar chart, and I want to sort by the Y in desc. | SELECT Location, COUNT(Location) FROM wrestler GROUP BY Location ORDER BY COUNT(Location) DESC | [
2061,
318,
262,
1271,
286,
7064,
286,
262,
41758,
30,
15612,
1096,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
416,
262,
575,
287,
1715,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
34845,
44441,
11050,
13397,
38678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7064,
286,
262,
41758,
30,
15612,
1096,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
3297,
416,
262,
575,
287,
1715,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
34845,
44441,
11050,
13397,
38678,
... |
what is the number of patients whose diagnoses short title is chronic kidney dis nos and drug route is sc? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Chronic kidney dis NOS" AND prescriptions.route = "SC" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
10726,
21919,
595,
43630,
290,
2563,
6339,
318,
629,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
10726,
21919,
595,
43630,
290,
2563,
6339,
318,
629,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
What are the highest point in latvia | SELECT highest_point FROM table_24285393_1 WHERE country_or_region = "Latvia" | [
2061,
389,
262,
4511,
966,
287,
3042,
8869,
46506,
4511,
62,
4122,
16034,
3084,
62,
1731,
26279,
26007,
62,
16,
33411,
1499,
62,
273,
62,
36996,
796,
366,
24220,
8869,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4511,
966,
287,
3042,
8869,
46506,
4511,
62,
4122,
16034,
3084,
62,
1731,
26279,
26007,
62,
16,
33411,
1499,
62,
273,
62,
36996,
796,
366,
24220,
8869,
1
] |
where did the world artistic gymnastics take place before san juan ? | SELECT "location" FROM table_203_285 WHERE "year" < (SELECT "year" FROM table_203_285 WHERE "location" = 'san juan') ORDER BY "year" DESC LIMIT 1 | [
3003,
750,
262,
995,
17290,
38581,
24232,
1011,
1295,
878,
5336,
474,
7258,
5633,
46506,
366,
24886,
1,
16034,
3084,
62,
22416,
62,
26279,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
26279,
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
] | [
3003,
750,
262,
995,
17290,
38581,
24232,
1011,
1295,
878,
5336,
474,
7258,
5633,
46506,
366,
24886,
1,
16034,
3084,
62,
22416,
62,
26279,
33411,
366,
1941,
1,
1279,
357,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
26279,
33411,
... |
give me the number of patients whose admission type is emergency and diagnoses long title is coronary atherosclerosis of native coronary artery? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Coronary atherosclerosis of native coronary artery" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
37151,
13366,
4951,
31399,
286,
6868,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
37151,
13366,
4951,
31399,
286,
6868,
37151,
37646,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
What was the time for a round less than 3? | SELECT "Time" FROM table_43225 WHERE "Round" < '3' | [
2061,
373,
262,
640,
329,
257,
2835,
1342,
621,
513,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
45331,
1495,
33411,
366,
22685,
1,
1279,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
640,
329,
257,
2835,
1342,
621,
513,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
45331,
1495,
33411,
366,
22685,
1,
1279,
705,
18,
6
] |
Show the headquarters that have both companies in banking industry and companies in oil and gas industry. | SELECT headquarters FROM company WHERE industry = "Banking" INTERSECT SELECT headquarters FROM company WHERE industry = "Oil and gas" | [
15307,
262,
10043,
326,
423,
1111,
2706,
287,
11754,
2831,
290,
2706,
287,
3056,
290,
3623,
2831,
13,
46506,
10043,
16034,
1664,
33411,
2831,
796,
366,
33,
15230,
1,
17828,
4877,
9782,
33493,
10043,
16034,
1664,
33411,
2831,
796,
366,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
10043,
326,
423,
1111,
2706,
287,
11754,
2831,
290,
2706,
287,
3056,
290,
3623,
2831,
13,
46506,
10043,
16034,
1664,
33411,
2831,
796,
366,
33,
15230,
1,
17828,
4877,
9782,
33493,
10043,
16034,
1664,
33411,
2831,
796,
366,
4... |
How many documents have expenses? | SELECT COUNT(*) FROM documents_with_expenses | [
2437,
867,
4963,
423,
9307,
30,
46506,
327,
28270,
7,
28104,
16034,
4963,
62,
4480,
62,
11201,
4541
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4963,
423,
9307,
30,
46506,
327,
28270,
7,
28104,
16034,
4963,
62,
4480,
62,
11201,
4541
] |
What nation was number 1 and had a total larger than 5? | SELECT nation FROM table_name_6 WHERE total > 5 AND rank = "1" | [
2061,
3277,
373,
1271,
352,
290,
550,
257,
2472,
4025,
621,
642,
30,
46506,
3277,
16034,
3084,
62,
3672,
62,
21,
33411,
2472,
1875,
642,
5357,
4279,
796,
366,
16,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3277,
373,
1271,
352,
290,
550,
257,
2472,
4025,
621,
642,
30,
46506,
3277,
16034,
3084,
62,
3672,
62,
21,
33411,
2472,
1875,
642,
5357,
4279,
796,
366,
16,
1
] |
Which airport has an IATA Code of ORD? | SELECT airport_name FROM table_18047346_5 WHERE iata_code = "ORD" | [
13828,
9003,
468,
281,
314,
13563,
6127,
286,
6375,
35,
30,
46506,
9003,
62,
3672,
16034,
3084,
62,
15259,
2857,
30557,
62,
20,
33411,
1312,
1045,
62,
8189,
796,
366,
12532,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
9003,
468,
281,
314,
13563,
6127,
286,
6375,
35,
30,
46506,
9003,
62,
3672,
16034,
3084,
62,
15259,
2857,
30557,
62,
20,
33411,
1312,
1045,
62,
8189,
796,
366,
12532,
1
] |
has patient 015-60616 been diagnosed? | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-60616')) | [
10134,
5827,
5534,
20,
12,
33206,
1433,
587,
14641,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
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... | [
10134,
5827,
5534,
20,
12,
33206,
1433,
587,
14641,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
13669,
33411,
13669,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
5827,
33411,
5827,
13,
... |
Find meter_200 and the average of meter_100 , and group by attribute meter_200, and visualize them by a bar chart, I want to list mean meter 100 from low to high order. | SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY AVG(meter_100) | [
16742,
16430,
62,
2167,
290,
262,
2811,
286,
16430,
62,
3064,
837,
290,
1448,
416,
11688,
16430,
62,
2167,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1351,
1612,
16430,
1802,
422,
1877,
284,
1029,
1502,
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... | [
16742,
16430,
62,
2167,
290,
262,
2811,
286,
16430,
62,
3064,
837,
290,
1448,
416,
11688,
16430,
62,
2167,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1351,
1612,
16430,
1802,
422,
1877,
284,
1029,
1502,
13,
46506,
... |
during this year how many patients have undergone serum transfusion nec within 2 months after rev hip repl-fem comp? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'rev hip rep... | [
42122,
428,
614,
703,
867,
3871,
423,
29900,
20502,
13501,
4241,
27576,
1626,
362,
1933,
706,
2710,
10359,
2186,
12,
69,
368,
552,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
42122,
428,
614,
703,
867,
3871,
423,
29900,
20502,
13501,
4241,
27576,
1626,
362,
1933,
706,
2710,
10359,
2186,
12,
69,
368,
552,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
25... |
show me OAKLAND to DALLAS flights | 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 = 'OAKLAND' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS... | [
12860,
502,
440,
10206,
28182,
284,
360,
7036,
1921,
13956,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
440,
10206,
28182,
284,
360,
7036,
1921,
13956,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009... |
how many drivers drove a ferrari in the race ? | SELECT COUNT("driver") FROM table_204_473 WHERE "constructor" = 'ferrari' | [
4919,
867,
6643,
10357,
257,
277,
8056,
2743,
287,
262,
3234,
5633,
46506,
327,
28270,
7203,
26230,
4943,
16034,
3084,
62,
18638,
62,
37804,
33411,
366,
41571,
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,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
6643,
10357,
257,
277,
8056,
2743,
287,
262,
3234,
5633,
46506,
327,
28270,
7203,
26230,
4943,
16034,
3084,
62,
18638,
62,
37804,
33411,
366,
41571,
273,
1,
796,
705,
2232,
81,
2743,
6
] |
what episode had the highest rating ? | SELECT "air date" FROM table_204_384 ORDER BY "rating" DESC LIMIT 1 | [
10919,
4471,
550,
262,
4511,
7955,
5633,
46506,
366,
958,
3128,
1,
16034,
3084,
62,
18638,
62,
22842,
38678,
11050,
366,
8821,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
4471,
550,
262,
4511,
7955,
5633,
46506,
366,
958,
3128,
1,
16034,
3084,
62,
18638,
62,
22842,
38678,
11050,
366,
8821,
1,
22196,
34,
27564,
2043,
352
] |
What is the Fourth place with a Year that is 1966? | SELECT "Fourth place" FROM table_42909 WHERE "Year" = '1966' | [
2061,
318,
262,
15692,
1295,
351,
257,
6280,
326,
318,
19322,
30,
46506,
366,
45530,
1295,
1,
16034,
3084,
62,
11785,
2931,
33411,
366,
17688,
1,
796,
705,
44227,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15692,
1295,
351,
257,
6280,
326,
318,
19322,
30,
46506,
366,
45530,
1295,
1,
16034,
3084,
62,
11785,
2931,
33411,
366,
17688,
1,
796,
705,
44227,
6
] |
Tell me the number of attendance that has a result of l 35-17 | SELECT COUNT("Attendance") FROM table_52182 WHERE "Result" = 'l 35-17' | [
24446,
502,
262,
1271,
286,
14858,
326,
468,
257,
1255,
286,
300,
3439,
12,
1558,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
4309,
24294,
33411,
366,
23004,
1,
796,
705,
75,
3439,
12,
1558,
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
] | [
24446,
502,
262,
1271,
286,
14858,
326,
468,
257,
1255,
286,
300,
3439,
12,
1558,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
4309,
24294,
33411,
366,
23004,
1,
796,
705,
75,
3439,
12,
1558,
6
] |
what are the genders of patient 006-99708? | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '006-99708' | [
10919,
389,
262,
38054,
286,
5827,
3571,
21,
12,
2079,
32583,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
2079,
32583,
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,
389,
262,
38054,
286,
5827,
3571,
21,
12,
2079,
32583,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
2079,
32583,
6
] |
What is the record when the visiting team was the Quebec Nordiques on April 22? | SELECT "Record" FROM table_37465 WHERE "Visitor" = 'quebec nordiques' AND "Date" = 'april 22' | [
2061,
318,
262,
1700,
618,
262,
10013,
1074,
373,
262,
14778,
18687,
6368,
319,
3035,
2534,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
31020,
2996,
33411,
366,
15854,
2072,
1,
796,
705,
421,
1765,
721,
299,
585,
6368,
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,
1,
1
] | [
2061,
318,
262,
1700,
618,
262,
10013,
1074,
373,
262,
14778,
18687,
6368,
319,
3035,
2534,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
31020,
2996,
33411,
366,
15854,
2072,
1,
796,
705,
421,
1765,
721,
299,
585,
6368,
6,
5357,
366,
... |
What is Builder, when Date is 1953? | SELECT "Builder" FROM table_44384 WHERE "Date" = '1953' | [
2061,
318,
35869,
11,
618,
7536,
318,
24217,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2598,
22842,
33411,
366,
10430,
1,
796,
705,
1129,
4310,
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
] | [
2061,
318,
35869,
11,
618,
7536,
318,
24217,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2598,
22842,
33411,
366,
10430,
1,
796,
705,
1129,
4310,
6
] |
What is the sum of Long for derrick locke? | SELECT SUM(long) FROM table_name_30 WHERE name = "derrick locke" | [
2061,
318,
262,
2160,
286,
5882,
329,
4587,
5557,
1179,
365,
30,
46506,
35683,
7,
6511,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
1438,
796,
366,
1082,
5557,
1179,
365,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5882,
329,
4587,
5557,
1179,
365,
30,
46506,
35683,
7,
6511,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
1438,
796,
366,
1082,
5557,
1179,
365,
1
] |
What is the lost number when the team played 26 games and there were 83 points? | SELECT lost FROM table_name_32 WHERE played = "26" AND points = "83" | [
2061,
318,
262,
2626,
1271,
618,
262,
1074,
2826,
2608,
1830,
290,
612,
547,
9698,
2173,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
2624,
33411,
2826,
796,
366,
2075,
1,
5357,
2173,
796,
366,
5999,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
1271,
618,
262,
1074,
2826,
2608,
1830,
290,
612,
547,
9698,
2173,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
2624,
33411,
2826,
796,
366,
2075,
1,
5357,
2173,
796,
366,
5999,
1
] |
What is the Country that has a Player of Scott Hoch? | SELECT country FROM table_name_31 WHERE player = "scott hoch" | [
2061,
318,
262,
12946,
326,
468,
257,
7853,
286,
4746,
367,
5374,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3132,
33411,
2137,
796,
366,
1416,
1252,
289,
5374,
1
] | [
1,
1,
1,
1,
1,
1,
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,
12946,
326,
468,
257,
7853,
286,
4746,
367,
5374,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3132,
33411,
2137,
796,
366,
1416,
1252,
289,
5374,
1
] |
What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e? | SELECT MAX(year) FROM table_name_81 WHERE engine = "cosworth v8" AND chassis = "hesketh 308e" | [
2061,
318,
262,
3452,
614,
326,
468,
281,
3113,
286,
8615,
9268,
410,
23,
11,
351,
257,
24587,
286,
339,
8135,
2788,
35617,
68,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
3113,
796,
366,
6966,
9268,
410,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3452,
614,
326,
468,
281,
3113,
286,
8615,
9268,
410,
23,
11,
351,
257,
24587,
286,
339,
8135,
2788,
35617,
68,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
3113,
796,
366,
6966,
9268,
410,
... |
give me the number of patients whose admission type is elective and drug code is morpim? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.formulary_drug_cd = "MORPIM" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2563,
2438,
318,
38837,
320,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2563,
2438,
318,
38837,
320,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... |
What is the lowest Tournaments with Highest Rank of Maegashira 13? | SELECT MIN("Tournaments") FROM table_62625 WHERE "Highest rank" = 'maegashira 13' | [
2061,
318,
262,
9016,
309,
16950,
351,
41864,
10916,
286,
6669,
1533,
1077,
8704,
1511,
30,
46506,
20625,
7203,
51,
16950,
4943,
16034,
3084,
62,
45191,
1495,
33411,
366,
36124,
3634,
4279,
1,
796,
705,
2611,
1533,
1077,
8704,
1511,
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,
9016,
309,
16950,
351,
41864,
10916,
286,
6669,
1533,
1077,
8704,
1511,
30,
46506,
20625,
7203,
51,
16950,
4943,
16034,
3084,
62,
45191,
1495,
33411,
366,
36124,
3634,
4279,
1,
796,
705,
2611,
1533,
1077,
8704,
1511,
6
] |
Whta is the lowest col in m of gerlachovsk t t peak, which has an elevation greater than 2,655 m? | SELECT MIN(col__m_) FROM table_name_69 WHERE peak = "gerlachovský štít" AND elevation__m_ > 2 OFFSET 655 | [
1199,
8326,
318,
262,
9016,
951,
287,
285,
286,
27602,
75,
620,
709,
8135,
256,
256,
9103,
11,
543,
468,
281,
22910,
3744,
621,
362,
11,
35916,
285,
30,
46506,
20625,
7,
4033,
834,
76,
62,
8,
16034,
3084,
62,
3672,
62,
3388,
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... | [
1199,
8326,
318,
262,
9016,
951,
287,
285,
286,
27602,
75,
620,
709,
8135,
256,
256,
9103,
11,
543,
468,
281,
22910,
3744,
621,
362,
11,
35916,
285,
30,
46506,
20625,
7,
4033,
834,
76,
62,
8,
16034,
3084,
62,
3672,
62,
3388,
33411... |
how many height m ( ft ) with frequency mhz being 100.1 | SELECT COUNT(height_m___ft__) FROM table_13998897_1 WHERE frequency_mhz = "100.1" | [
4919,
867,
6001,
285,
357,
10117,
1267,
351,
8373,
285,
32179,
852,
1802,
13,
16,
46506,
327,
28270,
7,
17015,
62,
76,
17569,
701,
834,
8,
16034,
3084,
62,
1485,
2079,
3459,
5607,
62,
16,
33411,
8373,
62,
76,
32179,
796,
366,
3064,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6001,
285,
357,
10117,
1267,
351,
8373,
285,
32179,
852,
1802,
13,
16,
46506,
327,
28270,
7,
17015,
62,
76,
17569,
701,
834,
8,
16034,
3084,
62,
1485,
2079,
3459,
5607,
62,
16,
33411,
8373,
62,
76,
32179,
796,
366,
3064,
... |
what are total transaction amounts for each transaction type?, show by the x axis in desc please. | SELECT transaction_type, SUM(transaction_amount) FROM Financial_Transactions GROUP BY transaction_type ORDER BY transaction_type DESC | [
10919,
389,
2472,
8611,
6867,
329,
1123,
8611,
2099,
21747,
905,
416,
262,
2124,
16488,
287,
1715,
3387,
13,
46506,
8611,
62,
4906,
11,
35683,
7,
7645,
2673,
62,
17287,
8,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
62,
4906,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
8611,
6867,
329,
1123,
8611,
2099,
21747,
905,
416,
262,
2124,
16488,
287,
1715,
3387,
13,
46506,
8611,
62,
4906,
11,
35683,
7,
7645,
2673,
62,
17287,
8,
16034,
11302,
62,
8291,
4658,
44441,
11050,
8611,
62,
4906,
38... |
What is the team when the name is alex sperafico? | SELECT "Team" FROM table_44253 WHERE "Name" = 'alex sperafico' | [
2061,
318,
262,
1074,
618,
262,
1438,
318,
257,
2588,
264,
525,
1878,
3713,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2598,
28592,
33411,
366,
5376,
1,
796,
705,
1000,
87,
264,
525,
1878,
3713,
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,
1074,
618,
262,
1438,
318,
257,
2588,
264,
525,
1878,
3713,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2598,
28592,
33411,
366,
5376,
1,
796,
705,
1000,
87,
264,
525,
1878,
3713,
6
] |
What is the number of silver when bronze is 0, and rank is less than 2? | SELECT SUM(silver) FROM table_name_5 WHERE bronze = 0 AND rank < 2 | [
2061,
318,
262,
1271,
286,
8465,
618,
22101,
318,
657,
11,
290,
4279,
318,
1342,
621,
362,
30,
46506,
35683,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
22101,
796,
657,
5357,
4279,
1279,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
8465,
618,
22101,
318,
657,
11,
290,
4279,
318,
1342,
621,
362,
30,
46506,
35683,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
22101,
796,
657,
5357,
4279,
1279,
362
] |
What is the team when player is listed as Ronjay Buenafe? | SELECT "Team" FROM table_4067 WHERE "Player" = 'Ronjay Buenafe' | [
2061,
318,
262,
1074,
618,
2137,
318,
5610,
355,
6575,
33708,
9842,
268,
8635,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
3134,
33411,
366,
14140,
1,
796,
705,
23672,
33708,
9842,
268,
8635,
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,
1074,
618,
2137,
318,
5610,
355,
6575,
33708,
9842,
268,
8635,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
1821,
3134,
33411,
366,
14140,
1,
796,
705,
23672,
33708,
9842,
268,
8635,
6
] |
is patient 022-34558 had normal respiration today? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-34558')) AND vitalperiodic.respiration BETWEEN respiration_lower... | [
271,
5827,
657,
1828,
12,
27712,
3365,
550,
3487,
1217,
15297,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
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... | [
271,
5827,
657,
1828,
12,
27712,
3365,
550,
3487,
1217,
15297,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3... |
A line chart for finding the number of the dates of the tests taken with result 'Pass', display x-axis from high to low order. | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" ORDER BY date_test_taken DESC | [
32,
1627,
8262,
329,
4917,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
3359,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1627,
8262,
329,
4917,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
3359,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
... |
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230? | SELECT MIN("Number in Fleet") FROM table_19197 WHERE "Chassis Manufacturer" = 'Scania' AND "Fleet Numbers" = '3230' | [
10919,
318,
18197,
1271,
287,
11026,
329,
24587,
11554,
1446,
5411,
290,
11026,
3146,
318,
3933,
1270,
30,
46506,
20625,
7203,
15057,
287,
20001,
4943,
16034,
3084,
62,
1129,
24991,
33411,
366,
1925,
20297,
40218,
1,
796,
705,
3351,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18197,
1271,
287,
11026,
329,
24587,
11554,
1446,
5411,
290,
11026,
3146,
318,
3933,
1270,
30,
46506,
20625,
7203,
15057,
287,
20001,
4943,
16034,
3084,
62,
1129,
24991,
33411,
366,
1925,
20297,
40218,
1,
796,
705,
3351,
5411,... |
What is the fewest gold medals for the nation with 4 silvers and more than 4 bronze? | SELECT MIN(gold) FROM table_name_4 WHERE silver = 4 AND bronze > 4 | [
2061,
318,
262,
1178,
395,
3869,
28057,
329,
262,
3277,
351,
604,
3313,
690,
290,
517,
621,
604,
22101,
30,
46506,
20625,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
8465,
796,
604,
5357,
22101,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1178,
395,
3869,
28057,
329,
262,
3277,
351,
604,
3313,
690,
290,
517,
621,
604,
22101,
30,
46506,
20625,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
19,
33411,
8465,
796,
604,
5357,
22101,
1875,
604
] |
which companies fly between BOSTON and OAKLAND | SELECT DISTINCT airline.airline_code FROM airline, 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na... | [
4758,
2706,
6129,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4758,
2706,
6129,
1022,
347,
10892,
1340,
290,
440,
10206,
28182,
46506,
360,
8808,
1268,
4177,
18091,
13,
958,
1370,
62,
8189,
16034,
18091,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... |
How many distinct students have been in detention? | SELECT COUNT(DISTINCT student_id) FROM Students_in_Detention | [
2437,
867,
7310,
2444,
423,
587,
287,
13280,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
3710,
62,
312,
8,
16034,
14882,
62,
259,
62,
11242,
1463
] | [
1,
1,
1,
1,
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,
7310,
2444,
423,
587,
287,
13280,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
3710,
62,
312,
8,
16034,
14882,
62,
259,
62,
11242,
1463
] |
Which Nominated Work won in 2000? | SELECT nominated_work FROM table_name_15 WHERE year = 2000 AND results = "won" | [
13828,
21198,
3898,
5521,
1839,
287,
4751,
30,
46506,
19332,
62,
1818,
16034,
3084,
62,
3672,
62,
1314,
33411,
614,
796,
4751,
5357,
2482,
796,
366,
26502,
1
] | [
1,
1,
1,
1,
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,
21198,
3898,
5521,
1839,
287,
4751,
30,
46506,
19332,
62,
1818,
16034,
3084,
62,
3672,
62,
1314,
33411,
614,
796,
4751,
5357,
2482,
796,
366,
26502,
1
] |
Which player was from Fermanagh and had an average score of 22? | SELECT AVG("Average") FROM table_63036 WHERE "Total" = '22' AND "County" = 'fermanagh' | [
13828,
2137,
373,
422,
376,
2224,
10471,
290,
550,
281,
2811,
4776,
286,
2534,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
30005,
2623,
33411,
366,
14957,
1,
796,
705,
1828,
6,
5357,
366,
12332,
88,
1,
796,
705,
69,
2224,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
373,
422,
376,
2224,
10471,
290,
550,
281,
2811,
4776,
286,
2534,
30,
46506,
35224,
7203,
26287,
4943,
16034,
3084,
62,
30005,
2623,
33411,
366,
14957,
1,
796,
705,
1828,
6,
5357,
366,
12332,
88,
1,
796,
705,
69,
2224,
... |
Name the surface for 12 september 2006 | SELECT "Surface" FROM table_71974 WHERE "Date" = '12 september 2006' | [
5376,
262,
4417,
329,
1105,
384,
457,
1491,
4793,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
22,
40828,
33411,
366,
10430,
1,
796,
705,
1065,
384,
457,
1491,
4793,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
4417,
329,
1105,
384,
457,
1491,
4793,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
22,
40828,
33411,
366,
10430,
1,
796,
705,
1065,
384,
457,
1491,
4793,
6
] |
What is the distance of Kawage station? | SELECT SUM("Distance (km)") FROM table_38496 WHERE "Station" = 'kawage' | [
2061,
318,
262,
5253,
286,
23043,
496,
4429,
30,
46506,
35683,
7203,
45767,
357,
13276,
8,
4943,
16034,
3084,
62,
2548,
37747,
33411,
366,
12367,
1,
796,
705,
74,
707,
496,
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,
5253,
286,
23043,
496,
4429,
30,
46506,
35683,
7203,
45767,
357,
13276,
8,
4943,
16034,
3084,
62,
2548,
37747,
33411,
366,
12367,
1,
796,
705,
74,
707,
496,
6
] |
What Club has Fiba European Champion's Cup and an Italian Cup? | SELECT club FROM table_name_27 WHERE european_cup = "fiba european champion's cup" AND national_cup = "italian cup" | [
2061,
6289,
468,
376,
23718,
3427,
15869,
338,
5454,
290,
281,
8200,
5454,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
1983,
33411,
11063,
431,
272,
62,
25244,
796,
366,
69,
23718,
11063,
431,
272,
8783,
338,
6508,
1,
5357,
2260,
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
] | [
2061,
6289,
468,
376,
23718,
3427,
15869,
338,
5454,
290,
281,
8200,
5454,
30,
46506,
3430,
16034,
3084,
62,
3672,
62,
1983,
33411,
11063,
431,
272,
62,
25244,
796,
366,
69,
23718,
11063,
431,
272,
8783,
338,
6508,
1,
5357,
2260,
62,
... |
what is the highest gold when silver is 1 and bronze is less than 0? | SELECT MAX(gold) FROM table_name_63 WHERE silver = 1 AND bronze < 0 | [
10919,
318,
262,
4511,
3869,
618,
8465,
318,
352,
290,
22101,
318,
1342,
621,
657,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
8465,
796,
352,
5357,
22101,
1279,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
4511,
3869,
618,
8465,
318,
352,
290,
22101,
318,
1342,
621,
657,
30,
46506,
25882,
7,
24267,
8,
16034,
3084,
62,
3672,
62,
5066,
33411,
8465,
796,
352,
5357,
22101,
1279,
657
] |
What was the average year during which the score was 270? | SELECT AVG("Year") FROM table_71269 WHERE "Score" = '270' | [
2061,
373,
262,
2811,
614,
1141,
543,
262,
4776,
373,
20479,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
49517,
3388,
33411,
366,
26595,
1,
796,
705,
20233,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2811,
614,
1141,
543,
262,
4776,
373,
20479,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
49517,
3388,
33411,
366,
26595,
1,
796,
705,
20233,
6
] |
Plot the total number by grouped by how to get there as a bar graph, and rank from high to low by the x axis. | SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY How_to_Get_There DESC | [
43328,
262,
2472,
1271,
416,
32824,
416,
703,
284,
651,
612,
355,
257,
2318,
4823,
11,
290,
4279,
422,
1029,
284,
1877,
416,
262,
2124,
16488,
13,
46506,
1374,
62,
1462,
62,
3855,
62,
1858,
11,
327,
28270,
7,
28104,
16034,
9852,
396... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
43328,
262,
2472,
1271,
416,
32824,
416,
703,
284,
651,
612,
355,
257,
2318,
4823,
11,
290,
4279,
422,
1029,
284,
1877,
416,
262,
2124,
16488,
13,
46506,
1374,
62,
1462,
62,
3855,
62,
1858,
11,
327,
28270,
7,
28104,
16034,
9852,
396... |
What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04? | SELECT "Default desktop environment" FROM table_3745 WHERE "Edition" = 'KDE' AND "Compatible repository" = 'Ubuntu 13.04' | [
2061,
318,
262,
4277,
11364,
2858,
618,
262,
8313,
318,
479,
2934,
290,
262,
11670,
16099,
318,
20967,
11157,
1511,
13,
3023,
30,
46506,
366,
19463,
11364,
2858,
1,
16034,
3084,
62,
2718,
2231,
33411,
366,
7407,
653,
1,
796,
705,
42,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4277,
11364,
2858,
618,
262,
8313,
318,
479,
2934,
290,
262,
11670,
16099,
318,
20967,
11157,
1511,
13,
3023,
30,
46506,
366,
19463,
11364,
2858,
1,
16034,
3084,
62,
2718,
2231,
33411,
366,
7407,
653,
1,
796,
705,
42,
... |
was patient 26156 heart rate ever less than 83.0 on the last intensive care unit visit? | 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 = 26156) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid IN (SELE... | [
9776,
5827,
2608,
21599,
2612,
2494,
1683,
1342,
621,
9698,
13,
15,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9776,
5827,
2608,
21599,
2612,
2494,
1683,
1342,
621,
9698,
13,
15,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
465... |
What was the lowest attendance by the game that had an away team of Vida? | SELECT MIN(attendance) FROM table_name_47 WHERE away = "vida" | [
2061,
373,
262,
9016,
14858,
416,
262,
983,
326,
550,
281,
1497,
1074,
286,
569,
3755,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1497,
796,
366,
85,
3755,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
416,
262,
983,
326,
550,
281,
1497,
1074,
286,
569,
3755,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
1497,
796,
366,
85,
3755,
1
] |
Which award was An Officer and a Gentleman nominated for? | SELECT "Award" FROM table_43432 WHERE "Result" = 'nominated' AND "Production" = 'an officer and a gentleman' | [
13828,
5764,
373,
1052,
10391,
290,
257,
42112,
19332,
329,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
47101,
2624,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
35027,
1,
796,
705,
272,
3818,
290,
257,
22427,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5764,
373,
1052,
10391,
290,
257,
42112,
19332,
329,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
47101,
2624,
33411,
366,
23004,
1,
796,
705,
26601,
3898,
6,
5357,
366,
35027,
1,
796,
705,
272,
3818,
290,
257,
22427,
6
] |
What type is ? | SELECT "Type" FROM table_27644 WHERE "Letters" = 'ΣΑΕΠ' | [
2061,
2099,
318,
5633,
46506,
366,
6030,
1,
16034,
3084,
62,
1983,
29173,
33411,
366,
5756,
1010,
1,
796,
705,
138,
96,
138,
239,
138,
243,
138,
254,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2099,
318,
5633,
46506,
366,
6030,
1,
16034,
3084,
62,
1983,
29173,
33411,
366,
5756,
1010,
1,
796,
705,
138,
96,
138,
239,
138,
243,
138,
254,
6
] |
How many rounds did the event rings: king of kings 2000 block a have with a record of 6-1? | SELECT round FROM table_name_82 WHERE event = "rings: king of kings 2000 block a" AND record = "6-1" | [
2437,
867,
9196,
750,
262,
1785,
13917,
25,
5822,
286,
21557,
4751,
2512,
257,
423,
351,
257,
1700,
286,
718,
12,
16,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
6469,
33411,
1785,
796,
366,
33173,
25,
5822,
286,
21557,
4751,
2512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
262,
1785,
13917,
25,
5822,
286,
21557,
4751,
2512,
257,
423,
351,
257,
1700,
286,
718,
12,
16,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
6469,
33411,
1785,
796,
366,
33173,
25,
5822,
286,
21557,
4751,
2512,
... |
How many different episode numbers does the episode written by Sheri Elwood and directed by Jim Allodi have? | SELECT COUNT("Total #") FROM table_74064 WHERE "Written by" = 'Sheri Elwood' AND "Directed by" = 'Jim Allodi' | [
2437,
867,
1180,
4471,
3146,
857,
262,
4471,
3194,
416,
6528,
72,
2574,
3822,
290,
7924,
416,
5395,
1439,
23130,
423,
30,
46506,
327,
28270,
7203,
14957,
1303,
4943,
16034,
3084,
62,
45598,
2414,
33411,
366,
25354,
416,
1,
796,
705,
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
] | [
2437,
867,
1180,
4471,
3146,
857,
262,
4471,
3194,
416,
6528,
72,
2574,
3822,
290,
7924,
416,
5395,
1439,
23130,
423,
30,
46506,
327,
28270,
7203,
14957,
1303,
4943,
16034,
3084,
62,
45598,
2414,
33411,
366,
25354,
416,
1,
796,
705,
2... |
What is Joan Leaven's occupation? | SELECT "Occupation" FROM table_31092 WHERE "Name" = 'Joan Leaven' | [
2061,
318,
26640,
1004,
4005,
338,
13755,
30,
46506,
366,
47658,
341,
1,
16034,
3084,
62,
26717,
5892,
33411,
366,
5376,
1,
796,
705,
9908,
272,
1004,
4005,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
26640,
1004,
4005,
338,
13755,
30,
46506,
366,
47658,
341,
1,
16034,
3084,
62,
26717,
5892,
33411,
366,
5376,
1,
796,
705,
9908,
272,
1004,
4005,
6
] |
What is the rank associated with a Height feet / m of 427 / 130? | SELECT rank FROM table_name_76 WHERE height_feet___m = "427 / 130" | [
2061,
318,
262,
4279,
3917,
351,
257,
27280,
3625,
1220,
285,
286,
45345,
1220,
11323,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
4304,
33411,
6001,
62,
39690,
17569,
76,
796,
366,
42363,
1220,
11323,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4279,
3917,
351,
257,
27280,
3625,
1220,
285,
286,
45345,
1220,
11323,
30,
46506,
4279,
16034,
3084,
62,
3672,
62,
4304,
33411,
6001,
62,
39690,
17569,
76,
796,
366,
42363,
1220,
11323,
1
] |
which games had an attendance of below 14,000 ? | SELECT "#" FROM table_204_792 WHERE "attendance" < 14000 | [
4758,
1830,
550,
281,
14858,
286,
2174,
1478,
11,
830,
5633,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
48156,
33411,
366,
1078,
437,
590,
1,
1279,
1478,
830
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
1830,
550,
281,
14858,
286,
2174,
1478,
11,
830,
5633,
46506,
25113,
1,
16034,
3084,
62,
18638,
62,
48156,
33411,
366,
1078,
437,
590,
1,
1279,
1478,
830
] |
what is the number of patients whose age is less than 24? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "24" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
1987,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
1987,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
496,
1279,
366,
1731,
1
] |
How many holes does Player Vijay Singh have? | SELECT COUNT("Hole") FROM table_7279 WHERE "Player" = 'vijay singh' | [
2437,
867,
10421,
857,
7853,
49219,
323,
14403,
423,
30,
46506,
327,
28270,
7203,
39,
2305,
4943,
16034,
3084,
62,
22,
26050,
33411,
366,
14140,
1,
796,
705,
85,
2926,
323,
1702,
71,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
10421,
857,
7853,
49219,
323,
14403,
423,
30,
46506,
327,
28270,
7203,
39,
2305,
4943,
16034,
3084,
62,
22,
26050,
33411,
366,
14140,
1,
796,
705,
85,
2926,
323,
1702,
71,
6
] |
How much did Jeff Burton win? | SELECT "Winnings" FROM table_73746 WHERE "Driver" = 'Jeff Burton' | [
2437,
881,
750,
5502,
27209,
1592,
30,
46506,
366,
54,
3732,
654,
1,
16034,
3084,
62,
22,
2718,
3510,
33411,
366,
32103,
1,
796,
705,
19139,
27209,
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
] | [
2437,
881,
750,
5502,
27209,
1592,
30,
46506,
366,
54,
3732,
654,
1,
16034,
3084,
62,
22,
2718,
3510,
33411,
366,
32103,
1,
796,
705,
19139,
27209,
6
] |
For those employees who did not have any job in the past, give me the comparison about the sum of manager_id over the hire_date bin hire_date by weekday by a bar chart. | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
2200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
4706,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
13,
46506,
36210,
2200... |
What Country is David Toms from? | SELECT "Country" FROM table_12718 WHERE "Player" = 'david toms' | [
2061,
12946,
318,
3271,
309,
3150,
422,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
16799,
1507,
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
] | [
2061,
12946,
318,
3271,
309,
3150,
422,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
16799,
1507,
33411,
366,
14140,
1,
796,
705,
67,
8490,
284,
907,
6
] |
What is the current club with more than 368 apps and a debut year earlier than 1994? | SELECT current_club FROM table_name_51 WHERE apps > 368 AND debut_year < 1994 | [
2061,
318,
262,
1459,
3430,
351,
517,
621,
43019,
6725,
290,
257,
8886,
614,
2961,
621,
9162,
30,
46506,
1459,
62,
18664,
16034,
3084,
62,
3672,
62,
4349,
33411,
6725,
1875,
43019,
5357,
8886,
62,
1941,
1279,
9162
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1459,
3430,
351,
517,
621,
43019,
6725,
290,
257,
8886,
614,
2961,
621,
9162,
30,
46506,
1459,
62,
18664,
16034,
3084,
62,
3672,
62,
4349,
33411,
6725,
1875,
43019,
5357,
8886,
62,
1941,
1279,
9162
] |
How many wins are with Dodge vehicles? | SELECT COUNT(miles__km_) FROM table_2241841_1 WHERE manufacturer = "Dodge" | [
2437,
867,
7864,
389,
351,
26048,
5672,
30,
46506,
327,
28270,
7,
76,
2915,
834,
13276,
62,
8,
16034,
3084,
62,
24137,
1507,
3901,
62,
16,
33411,
11554,
796,
366,
35,
9728,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7864,
389,
351,
26048,
5672,
30,
46506,
327,
28270,
7,
76,
2915,
834,
13276,
62,
8,
16034,
3084,
62,
24137,
1507,
3901,
62,
16,
33411,
11554,
796,
366,
35,
9728,
1
] |
what is minimum days of hospital stay of patients whose admission type is newborn? | SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.admission_type = "NEWBORN" | [
10919,
318,
5288,
1528,
286,
4436,
2652,
286,
3871,
3025,
13938,
2099,
318,
23856,
30,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
1528,
286,
4436,
2652,
286,
3871,
3025,
13938,
2099,
318,
23856,
30,
46506,
20625,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
13965,
33,
30649,
1
] |
What is the most points when the won is 9? | SELECT MAX(pts_for) FROM table_13018116_1 WHERE won = 9 | [
2061,
318,
262,
749,
2173,
618,
262,
1839,
318,
860,
30,
46506,
25882,
7,
457,
82,
62,
1640,
8,
16034,
3084,
62,
1485,
29159,
18298,
62,
16,
33411,
1839,
796,
860
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
2173,
618,
262,
1839,
318,
860,
30,
46506,
25882,
7,
457,
82,
62,
1640,
8,
16034,
3084,
62,
1485,
29159,
18298,
62,
16,
33411,
1839,
796,
860
] |
What are the number of the names of all the playlists?, and display in ascending by the the number of name. | SELECT name, COUNT(name) FROM playlists GROUP BY name ORDER BY COUNT(name) | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
262,
711,
20713,
21747,
290,
3359,
287,
41988,
416,
262,
262,
1271,
286,
1438,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
38678,
11050,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1271,
286,
262,
3891,
286,
477,
262,
711,
20713,
21747,
290,
3359,
287,
41988,
416,
262,
262,
1271,
286,
1438,
13,
46506,
1438,
11,
327,
28270,
7,
3672,
8,
16034,
711,
20713,
44441,
11050,
1438,
38678,
11050,
327,
2827... |
How many instructors for every course in 2008? Show me a bar chart grouping by course title, could you list X from high to low order? | SELECT title, COUNT(title) FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.ID = T3.ID WHERE year = 2008 GROUP BY title ORDER BY title DESC | [
2437,
867,
33667,
329,
790,
1781,
287,
3648,
30,
5438,
502,
257,
2318,
8262,
36115,
416,
1781,
3670,
11,
714,
345,
1351,
1395,
422,
1029,
284,
1877,
1502,
30,
46506,
3670,
11,
327,
28270,
7,
7839,
8,
16034,
1781,
7054,
309,
16,
3235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33667,
329,
790,
1781,
287,
3648,
30,
5438,
502,
257,
2318,
8262,
36115,
416,
1781,
3670,
11,
714,
345,
1351,
1395,
422,
1029,
284,
1877,
1502,
30,
46506,
3670,
11,
327,
28270,
7,
7839,
8,
16034,
1781,
7054,
309,
16,
3235... |
Which Game site has a Kickoff (ET) of 1:00pm, and a Record of 4 1? | SELECT game_site FROM table_name_18 WHERE kickoff__et_ = "1:00pm" AND record = "4–1" | [
13828,
3776,
2524,
468,
257,
10279,
2364,
357,
2767,
8,
286,
352,
25,
405,
4426,
11,
290,
257,
13266,
286,
604,
352,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
1507,
33411,
40532,
834,
316,
62,
796,
366,
16,
25,
405,
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
] | [
13828,
3776,
2524,
468,
257,
10279,
2364,
357,
2767,
8,
286,
352,
25,
405,
4426,
11,
290,
257,
13266,
286,
604,
352,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
1507,
33411,
40532,
834,
316,
62,
796,
366,
16,
25,
405,
44... |
how many days have elapsed since patient 15447 last received an intake of d5w on the current intensive care unit visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15447) AND icustays.outtime IS NULL) ... | [
4919,
867,
1528,
423,
42118,
1201,
5827,
1315,
34825,
938,
2722,
281,
10337,
286,
288,
20,
86,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1528,
423,
42118,
1201,
5827,
1315,
34825,
938,
2722,
281,
10337,
286,
288,
20,
86,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
5... |
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms? | SELECT AVG(year) FROM table_name_47 WHERE saar = "fk pirmasens" AND hessen = "wormatia worms" | [
2061,
318,
262,
2811,
614,
329,
257,
10318,
283,
286,
376,
42,
350,
2533,
292,
641,
290,
367,
44483,
286,
28505,
265,
544,
28505,
82,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
473,
283,
796,
366,
69,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
614,
329,
257,
10318,
283,
286,
376,
42,
350,
2533,
292,
641,
290,
367,
44483,
286,
28505,
265,
544,
28505,
82,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,
473,
283,
796,
366,
69,
74... |
specify the admission location of patient id 9575 | SELECT demographic.admission_location FROM demographic WHERE demographic.subject_id = "9575" | [
16684,
1958,
262,
13938,
4067,
286,
5827,
4686,
6957,
2425,
46506,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3865,
2425,
1
] | [
1,
1,
1,
1,
1,
1,
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,
262,
13938,
4067,
286,
5827,
4686,
6957,
2425,
46506,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3865,
2425,
1
] |
Who was the incumbent in the Ohio 16 district? | SELECT incumbent FROM table_1434788_5 WHERE district = "Ohio 16" | [
8241,
373,
262,
23526,
287,
262,
6835,
1467,
4783,
30,
46506,
23526,
16034,
3084,
62,
1415,
30995,
3459,
62,
20,
33411,
4783,
796,
366,
31274,
1467,
1
] | [
1,
1,
1,
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,
23526,
287,
262,
6835,
1467,
4783,
30,
46506,
23526,
16034,
3084,
62,
1415,
30995,
3459,
62,
20,
33411,
4783,
796,
366,
31274,
1467,
1
] |
What is the result at Dreisamstadion, Freiburg? | SELECT result FROM table_name_96 WHERE venue = "dreisamstadion, freiburg" | [
2061,
318,
262,
1255,
379,
30882,
271,
321,
24107,
295,
11,
4848,
571,
3686,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4846,
33411,
14359,
796,
366,
67,
260,
271,
321,
24107,
295,
11,
2030,
571,
3686,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
379,
30882,
271,
321,
24107,
295,
11,
4848,
571,
3686,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
4846,
33411,
14359,
796,
366,
67,
260,
271,
321,
24107,
295,
11,
2030,
571,
3686,
1
] |
Comments within 24 hours by high-rep users. | SELECT DATE(c.CreationDate) AS Days, COUNT(c.Id) AS CountOfComments FROM Comments AS c INNER JOIN Users AS u ON c.UserId = u.Id WHERE u.Reputation > '##HighRepBorder:int##' AND EXISTS(SELECT 1 FROM Posts AS p WHERE CAST((JULIANDAY(CreationDate) - JULIANDAY(p.CreationDate)) AS INT) < 24 AND p.Id = c.PostId) GROUP BY DAT... | [
23903,
1626,
1987,
2250,
416,
1029,
12,
7856,
2985,
13,
46506,
360,
6158,
7,
66,
13,
12443,
341,
10430,
8,
7054,
12579,
11,
327,
28270,
7,
66,
13,
7390,
8,
7054,
2764,
5189,
23903,
16034,
19502,
7054,
269,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23903,
1626,
1987,
2250,
416,
1029,
12,
7856,
2985,
13,
46506,
360,
6158,
7,
66,
13,
12443,
341,
10430,
8,
7054,
12579,
11,
327,
28270,
7,
66,
13,
7390,
8,
7054,
2764,
5189,
23903,
16034,
19502,
7054,
269,
3268,
21479,
32357,
1268,
... |
What was the role in 2001? | SELECT role FROM table_name_91 WHERE year = "2001" | [
2061,
373,
262,
2597,
287,
5878,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
6420,
33411,
614,
796,
366,
14585,
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,
2597,
287,
5878,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
6420,
33411,
614,
796,
366,
14585,
1
] |
what does patient 015-8398 age be in their last hospital encounter? | SELECT patient.age FROM patient WHERE patient.uniquepid = '015-8398' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
10919,
857,
5827,
5534,
20,
12,
23,
31952,
2479,
307,
287,
511,
938,
4436,
8791,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
25150,
12,
23,
31952,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
857,
5827,
5534,
20,
12,
23,
31952,
2479,
307,
287,
511,
938,
4436,
8791,
30,
46506,
5827,
13,
496,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
25150,
12,
23,
31952,
6,
5357,
5626,
5827,
13,
49257,
6381,
354,... |
Show the ids for all the faculty members who have at least 2 students. | SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2 | [
15307,
262,
220,
2340,
329,
477,
262,
12829,
1866,
508,
423,
379,
1551,
362,
2444,
13,
46506,
309,
16,
13,
47522,
2389,
16034,
35262,
7054,
309,
16,
32357,
1268,
13613,
7054,
309,
17,
6177,
309,
16,
13,
47522,
2389,
796,
309,
17,
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
] | [
15307,
262,
220,
2340,
329,
477,
262,
12829,
1866,
508,
423,
379,
1551,
362,
2444,
13,
46506,
309,
16,
13,
47522,
2389,
16034,
35262,
7054,
309,
16,
32357,
1268,
13613,
7054,
309,
17,
6177,
309,
16,
13,
47522,
2389,
796,
309,
17,
13... |
What draft pick is a goaltender? | SELECT pick__number FROM table_2897457_1 WHERE position = "Goaltender" | [
2061,
4538,
2298,
318,
257,
44113,
30,
46506,
2298,
834,
17618,
16034,
3084,
62,
2078,
5607,
33032,
62,
16,
33411,
2292,
796,
366,
5247,
2501,
2194,
1
] | [
1,
1,
1,
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,
4538,
2298,
318,
257,
44113,
30,
46506,
2298,
834,
17618,
16034,
3084,
62,
2078,
5607,
33032,
62,
16,
33411,
2292,
796,
366,
5247,
2501,
2194,
1
] |
Show name and salary for all employees sorted by salary. | SELECT name, salary FROM employee ORDER BY salary | [
15307,
1438,
290,
9588,
329,
477,
4409,
23243,
416,
9588,
13,
46506,
1438,
11,
9588,
16034,
6538,
38678,
11050,
9588
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
1438,
290,
9588,
329,
477,
4409,
23243,
416,
9588,
13,
46506,
1438,
11,
9588,
16034,
6538,
38678,
11050,
9588
] |
Who was the 20 Questions section aimed at when Centerfold Model was Rachel Je n Marteen? | SELECT "20 Questions" FROM table_41520 WHERE "Centerfold model" = 'rachel jeán marteen' | [
8241,
373,
262,
1160,
20396,
2665,
8998,
379,
618,
3337,
11379,
9104,
373,
15984,
3852,
299,
3981,
6429,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
35038,
1238,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
81,
9636,
11223,
21162,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
20396,
2665,
8998,
379,
618,
3337,
11379,
9104,
373,
15984,
3852,
299,
3981,
6429,
30,
46506,
366,
1238,
20396,
1,
16034,
3084,
62,
35038,
1238,
33411,
366,
23656,
11379,
2746,
1,
796,
705,
81,
9636,
11223,
21162,
... |
Name the release date for album # 2nd | SELECT release_date FROM table_1893815_1 WHERE album_number = "2nd" | [
5376,
262,
2650,
3128,
329,
5062,
1303,
362,
358,
46506,
2650,
62,
4475,
16034,
3084,
62,
23362,
2548,
1314,
62,
16,
33411,
5062,
62,
17618,
796,
366,
17,
358,
1
] | [
1,
1,
1,
1,
1,
1,
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,
2650,
3128,
329,
5062,
1303,
362,
358,
46506,
2650,
62,
4475,
16034,
3084,
62,
23362,
2548,
1314,
62,
16,
33411,
5062,
62,
17618,
796,
366,
17,
358,
1
] |
When was the competition that had a score of 3-0? | SELECT date FROM table_name_34 WHERE score = "3-0" | [
2215,
373,
262,
5449,
326,
550,
257,
4776,
286,
513,
12,
15,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2682,
33411,
4776,
796,
366,
18,
12,
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
] | [
2215,
373,
262,
5449,
326,
550,
257,
4776,
286,
513,
12,
15,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2682,
33411,
4776,
796,
366,
18,
12,
15,
1
] |
count the number of private health insurance patients who had transplant from cadaver. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Transplant cadaver donor" | [
9127,
262,
1271,
286,
2839,
1535,
5096,
3871,
508,
550,
23319,
422,
269,
4763,
332,
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,
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,
2839,
1535,
5096,
3871,
508,
550,
23319,
422,
269,
4763,
332,
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,
18108,
76... |
Which masters fought in hapkido style? | SELECT masters FROM table_14937957_1 WHERE martial_art_style = "Hapkido" | [
13828,
18159,
8350,
287,
387,
79,
74,
17305,
3918,
30,
46506,
18159,
16034,
3084,
62,
19442,
29088,
3553,
62,
16,
33411,
15618,
62,
433,
62,
7635,
796,
366,
39,
499,
74,
17305,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18159,
8350,
287,
387,
79,
74,
17305,
3918,
30,
46506,
18159,
16034,
3084,
62,
19442,
29088,
3553,
62,
16,
33411,
15618,
62,
433,
62,
7635,
796,
366,
39,
499,
74,
17305,
1
] |
Where was the player from who had the position of DF, who started 2007-10-30? | SELECT "From" FROM table_76257 WHERE "Position" = 'df' AND "Date From" = '2007-10-30' | [
8496,
373,
262,
2137,
422,
508,
550,
262,
2292,
286,
36323,
11,
508,
2067,
4343,
12,
940,
12,
1270,
30,
46506,
366,
4863,
1,
16034,
3084,
62,
4304,
28676,
33411,
366,
26545,
1,
796,
705,
7568,
6,
5357,
366,
10430,
3574,
1,
796,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
2137,
422,
508,
550,
262,
2292,
286,
36323,
11,
508,
2067,
4343,
12,
940,
12,
1270,
30,
46506,
366,
4863,
1,
16034,
3084,
62,
4304,
28676,
33411,
366,
26545,
1,
796,
705,
7568,
6,
5357,
366,
10430,
3574,
1,
796,
70... |
What was the lowest rank after 2009 with an accolade of 125 best albums of the past 25 years? | SELECT MIN("Rank") FROM table_76806 WHERE "Year" > '2009' AND "Accolade" = '125 best albums of the past 25 years' | [
2061,
373,
262,
9016,
4279,
706,
3717,
351,
281,
45667,
671,
286,
13151,
1266,
16788,
286,
262,
1613,
1679,
812,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
4304,
37988,
33411,
366,
17688,
1,
1875,
705,
10531,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9016,
4279,
706,
3717,
351,
281,
45667,
671,
286,
13151,
1266,
16788,
286,
262,
1613,
1679,
812,
30,
46506,
20625,
7203,
27520,
4943,
16034,
3084,
62,
4304,
37988,
33411,
366,
17688,
1,
1875,
705,
10531,
6,
5357,
366,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.