instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is Venue, when Year is 2005, and when Result is 8th? | SELECT "Venue" FROM table_49799 WHERE "Year" = '2005' AND "Result" = '8th' | [
2061,
318,
9932,
518,
11,
618,
6280,
318,
5075,
11,
290,
618,
25414,
318,
807,
400,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38073,
2079,
33411,
366,
17688,
1,
796,
705,
14315,
6,
5357,
366,
23004,
1,
796,
705,
23,
400,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
9932,
518,
11,
618,
6280,
318,
5075,
11,
290,
618,
25414,
318,
807,
400,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
38073,
2079,
33411,
366,
17688,
1,
796,
705,
14315,
6,
5357,
366,
23004,
1,
796,
705,
23,
400,
6
] |
what are the hospitals admission times of patient 006-188114 since 2105? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-188114' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' | [
10919,
389,
262,
11301,
13938,
1661,
286,
5827,
3571,
21,
12,
20356,
16562,
1201,
362,
13348,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
20356,
16562,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
11301,
13938,
1661,
286,
5827,
3571,
21,
12,
20356,
16562,
1201,
362,
13348,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
20356,
16562,
6,
5357,
... |
What is the original artist of top 9 as the week number? | SELECT original_artist FROM table_name_88 WHERE week__number = "top 9" | [
2061,
318,
262,
2656,
6802,
286,
1353,
860,
355,
262,
1285,
1271,
30,
46506,
2656,
62,
49016,
16034,
3084,
62,
3672,
62,
3459,
33411,
1285,
834,
17618,
796,
366,
4852,
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,
1,
1
] | [
2061,
318,
262,
2656,
6802,
286,
1353,
860,
355,
262,
1285,
1271,
30,
46506,
2656,
62,
49016,
16034,
3084,
62,
3672,
62,
3459,
33411,
1285,
834,
17618,
796,
366,
4852,
860,
1
] |
I want the location for round of 3 and time of 4:40 | SELECT "Location" FROM table_10699 WHERE "Round" = '3' AND "Time" = '4:40' | [
40,
765,
262,
4067,
329,
2835,
286,
513,
290,
640,
286,
604,
25,
1821,
46506,
366,
14749,
1,
16034,
3084,
62,
15801,
2079,
33411,
366,
22685,
1,
796,
705,
18,
6,
5357,
366,
7575,
1,
796,
705,
19,
25,
1821,
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
] | [
40,
765,
262,
4067,
329,
2835,
286,
513,
290,
640,
286,
604,
25,
1821,
46506,
366,
14749,
1,
16034,
3084,
62,
15801,
2079,
33411,
366,
22685,
1,
796,
705,
18,
6,
5357,
366,
7575,
1,
796,
705,
19,
25,
1821,
6
] |
Bar graph to show sum revenue from different name, and rank bars in asc order. | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name | [
10374,
4823,
284,
905,
2160,
6426,
422,
1180,
1438,
11,
290,
4279,
9210,
287,
10570,
1502,
13,
46506,
6530,
11,
35683,
7,
3041,
4080,
8,
16034,
17858,
17496,
44441,
11050,
6530,
38678,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
4823,
284,
905,
2160,
6426,
422,
1180,
1438,
11,
290,
4279,
9210,
287,
10570,
1502,
13,
46506,
6530,
11,
35683,
7,
3041,
4080,
8,
16034,
17858,
17496,
44441,
11050,
6530,
38678,
11050,
6530
] |
Name the title with representative edward h. strobel | SELECT title FROM table_name_21 WHERE representative = "edward h. strobel" | [
5376,
262,
3670,
351,
8852,
1225,
904,
289,
13,
9660,
6667,
46506,
3670,
16034,
3084,
62,
3672,
62,
2481,
33411,
8852,
796,
366,
276,
904,
289,
13,
9660,
6667,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3670,
351,
8852,
1225,
904,
289,
13,
9660,
6667,
46506,
3670,
16034,
3084,
62,
3672,
62,
2481,
33411,
8852,
796,
366,
276,
904,
289,
13,
9660,
6667,
1
] |
What year was S.A. Allward's theme that had an issue price of $16.95 released? | SELECT year FROM table_name_60 WHERE issue_price = "$16.95" AND artist = "s.a. allward" | [
2061,
614,
373,
311,
13,
32,
13,
1439,
904,
338,
7505,
326,
550,
281,
2071,
2756,
286,
720,
1433,
13,
3865,
2716,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
1899,
33411,
2071,
62,
20888,
796,
17971,
1433,
13,
3865,
1,
5357,
6802,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
614,
373,
311,
13,
32,
13,
1439,
904,
338,
7505,
326,
550,
281,
2071,
2756,
286,
720,
1433,
13,
3865,
2716,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
1899,
33411,
2071,
62,
20888,
796,
17971,
1433,
13,
3865,
1,
5357,
6802,
... |
provide the number of patients whose drug name is 0.9% sodium chloride (mini bag plus)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "0.9% Sodium Chloride (Mini Bag Plus)" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
657,
13,
24,
4,
21072,
44921,
357,
45313,
6131,
5556,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
2563,
1438,
318,
657,
13,
24,
4,
21072,
44921,
357,
45313,
6131,
5556,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34... |
lack of basic language skills in either english or kiswahili | SELECT * FROM table_train_69 WHERE language <> 'english' OR language <> 'kiswahili' | [
75,
441,
286,
4096,
3303,
4678,
287,
2035,
46932,
393,
479,
271,
86,
993,
2403,
46506,
1635,
16034,
3084,
62,
27432,
62,
3388,
33411,
3303,
1279,
29,
705,
39126,
6,
6375,
3303,
1279,
29,
705,
74,
271,
86,
993,
2403,
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
] | [
75,
441,
286,
4096,
3303,
4678,
287,
2035,
46932,
393,
479,
271,
86,
993,
2403,
46506,
1635,
16034,
3084,
62,
27432,
62,
3388,
33411,
3303,
1279,
29,
705,
39126,
6,
6375,
3303,
1279,
29,
705,
74,
271,
86,
993,
2403,
6
] |
what is maximum age of patients whose marital status is single and admission type is urgent? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.admission_type = "URGENT" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
2099,
318,
18039,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
2479,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
13938,
2099,
318,
18039,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
1672... |
Bar graph to show minimal room count from different apt type code, and sort X in asc order. | SELECT apt_type_code, MIN(room_count) FROM Apartments GROUP BY apt_type_code ORDER BY apt_type_code | [
10374,
4823,
284,
905,
10926,
2119,
954,
422,
1180,
15409,
2099,
2438,
11,
290,
3297,
1395,
287,
10570,
1502,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823,
62,
9127,
8,
16034,
22596,
902,
44441,
11050,
15409,
62,
4906,
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
] | [
10374,
4823,
284,
905,
10926,
2119,
954,
422,
1180,
15409,
2099,
2438,
11,
290,
3297,
1395,
287,
10570,
1502,
13,
46506,
15409,
62,
4906,
62,
8189,
11,
20625,
7,
3823,
62,
9127,
8,
16034,
22596,
902,
44441,
11050,
15409,
62,
4906,
62,... |
What is the Rank of the Rowers with a Time of 7:30.92? | SELECT SUM(rank) FROM table_name_56 WHERE time = "7:30.92" | [
2061,
318,
262,
10916,
286,
262,
371,
3618,
351,
257,
3862,
286,
767,
25,
1270,
13,
5892,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
796,
366,
22,
25,
1270,
13,
5892,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10916,
286,
262,
371,
3618,
351,
257,
3862,
286,
767,
25,
1270,
13,
5892,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
3980,
33411,
640,
796,
366,
22,
25,
1270,
13,
5892,
1
] |
What is the name of the venue that away team footscray played at? | SELECT "Venue" FROM table_56963 WHERE "Away team" = 'footscray' | [
2061,
318,
262,
1438,
286,
262,
14359,
326,
1497,
1074,
2366,
1416,
2433,
2826,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
20,
3388,
5066,
33411,
366,
32,
1014,
1074,
1,
796,
705,
5898,
1416,
2433,
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,
1438,
286,
262,
14359,
326,
1497,
1074,
2366,
1416,
2433,
2826,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
20,
3388,
5066,
33411,
366,
32,
1014,
1074,
1,
796,
705,
5898,
1416,
2433,
6
] |
How many candidates ran in the election in the Arkansas 4 district? | SELECT COUNT(candidates) FROM table_1342359_4 WHERE district = "Arkansas 4" | [
2437,
867,
5871,
4966,
287,
262,
3071,
287,
262,
14538,
604,
4783,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
19880,
1954,
3270,
62,
19,
33411,
4783,
796,
366,
42007,
6618,
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
] | [
2437,
867,
5871,
4966,
287,
262,
3071,
287,
262,
14538,
604,
4783,
30,
46506,
327,
28270,
7,
46188,
37051,
8,
16034,
3084,
62,
19880,
1954,
3270,
62,
19,
33411,
4783,
796,
366,
42007,
6618,
604,
1
] |
What is the highest result for Jankovic at Indian Wells and round of SF? | SELECT MAX("Jankovic") FROM table_8147 WHERE "Round" = 'sf' AND "Tournament" = 'indian wells' | [
2061,
318,
262,
4511,
1255,
329,
449,
962,
17215,
379,
3942,
18292,
290,
2835,
286,
14362,
30,
46506,
25882,
7203,
41,
962,
17215,
4943,
16034,
3084,
62,
23,
20198,
33411,
366,
22685,
1,
796,
705,
28202,
6,
5357,
366,
51,
5138,
1,
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,
4511,
1255,
329,
449,
962,
17215,
379,
3942,
18292,
290,
2835,
286,
14362,
30,
46506,
25882,
7203,
41,
962,
17215,
4943,
16034,
3084,
62,
23,
20198,
33411,
366,
22685,
1,
796,
705,
28202,
6,
5357,
366,
51,
5138,
1,
7... |
What is the 1999 tournament that has a Q1 in 2003 and a Q3 in 2002? | SELECT 1999 FROM table_name_2 WHERE 2003 = "q1" AND 2002 = "q3" | [
2061,
318,
262,
7358,
7756,
326,
468,
257,
1195,
16,
287,
5816,
290,
257,
1195,
18,
287,
6244,
30,
46506,
7358,
16034,
3084,
62,
3672,
62,
17,
33411,
5816,
796,
366,
80,
16,
1,
5357,
6244,
796,
366,
80,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7358,
7756,
326,
468,
257,
1195,
16,
287,
5816,
290,
257,
1195,
18,
287,
6244,
30,
46506,
7358,
16034,
3084,
62,
3672,
62,
17,
33411,
5816,
796,
366,
80,
16,
1,
5357,
6244,
796,
366,
80,
18,
1
] |
What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze? | SELECT AVG(total) FROM table_name_70 WHERE gold = 0 AND rank < 16 AND nation = "georgia" AND bronze > 2 | [
2061,
318,
262,
2811,
7472,
326,
468,
257,
3561,
286,
657,
11,
618,
262,
4279,
318,
1342,
621,
1467,
11,
262,
3277,
318,
7859,
290,
612,
318,
517,
621,
362,
329,
19461,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
326,
468,
257,
3561,
286,
657,
11,
618,
262,
4279,
318,
1342,
621,
1467,
11,
262,
3277,
318,
7859,
290,
612,
318,
517,
621,
362,
329,
19461,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
215... |
With a Losing BP of 8, what is the drawn? | SELECT "Drawn" FROM table_70823 WHERE "Losing BP" = '8' | [
3152,
257,
406,
2752,
20997,
286,
807,
11,
644,
318,
262,
7428,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
32583,
1954,
33411,
366,
43,
2752,
20997,
1,
796,
705,
23,
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
] | [
3152,
257,
406,
2752,
20997,
286,
807,
11,
644,
318,
262,
7428,
30,
46506,
366,
35,
5791,
1,
16034,
3084,
62,
32583,
1954,
33411,
366,
43,
2752,
20997,
1,
796,
705,
23,
6
] |
How many blocks have a weight greater than 82, and a height less than 199? | SELECT SUM("Block") FROM table_40185 WHERE "Weight" > '82' AND "Height" < '199' | [
2437,
867,
7021,
423,
257,
3463,
3744,
621,
9415,
11,
290,
257,
6001,
1342,
621,
1594,
30,
46506,
35683,
7203,
12235,
4943,
16034,
3084,
62,
21844,
5332,
33411,
366,
25844,
1,
1875,
705,
6469,
6,
5357,
366,
23106,
1,
1279,
705,
19104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7021,
423,
257,
3463,
3744,
621,
9415,
11,
290,
257,
6001,
1342,
621,
1594,
30,
46506,
35683,
7203,
12235,
4943,
16034,
3084,
62,
21844,
5332,
33411,
366,
25844,
1,
1875,
705,
6469,
6,
5357,
366,
23106,
1,
1279,
705,
19104,... |
Which ministers are not a part of the Progress Party, and count them by a bar chart, and I want to order by the x-axis from high to low. | SELECT Minister, COUNT(Minister) FROM party WHERE Party_name <> 'Progress Party' GROUP BY Minister ORDER BY Minister DESC | [
13828,
14138,
389,
407,
257,
636,
286,
262,
18387,
3615,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
4139,
11,
327,
28270,
7,
9452,
1694,
8,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14138,
389,
407,
257,
636,
286,
262,
18387,
3615,
11,
290,
954,
606,
416,
257,
2318,
8262,
11,
290,
314,
765,
284,
1502,
416,
262,
2124,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
4139,
11,
327,
28270,
7,
9452,
1694,
8,
16... |
count the number of times that patient 015-94542 has had tube fdging form until 44 months ago. | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-94542')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | [
9127,
262,
1271,
286,
1661,
326,
5827,
5534,
20,
12,
24,
2231,
3682,
468,
550,
12403,
277,
67,
2667,
1296,
1566,
5846,
1933,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
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... | [
9127,
262,
1271,
286,
1661,
326,
5827,
5534,
20,
12,
24,
2231,
3682,
468,
550,
12403,
277,
67,
2667,
1296,
1566,
5846,
1933,
2084,
13,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
... |
What are the states or counties of the address of the stores with marketing region code 'CA'? | SELECT T1.State_County FROM Addresses AS T1 JOIN Stores AS T2 ON T1.Address_ID = T2.Address_ID WHERE T2.Marketing_Region_Code = "CA" | [
2061,
389,
262,
2585,
393,
14683,
286,
262,
2209,
286,
262,
7000,
351,
7124,
3814,
2438,
705,
8141,
30960,
46506,
309,
16,
13,
9012,
62,
12332,
88,
16034,
3060,
16746,
7054,
309,
16,
32357,
1268,
41835,
7054,
309,
17,
6177,
309,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
2585,
393,
14683,
286,
262,
2209,
286,
262,
7000,
351,
7124,
3814,
2438,
705,
8141,
30960,
46506,
309,
16,
13,
9012,
62,
12332,
88,
16034,
3060,
16746,
7054,
309,
16,
32357,
1268,
41835,
7054,
309,
17,
6177,
309,
16,
... |
a Year smaller than 2007, and a Result of 1st is in what venue? | SELECT "Venue" FROM table_66725 WHERE "Year" < '2007' AND "Result" = '1st' | [
64,
6280,
4833,
621,
4343,
11,
290,
257,
25414,
286,
352,
301,
318,
287,
644,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
28933,
1495,
33411,
366,
17688,
1,
1279,
705,
12726,
6,
5357,
366,
23004,
1,
796,
705,
16,
301,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
64,
6280,
4833,
621,
4343,
11,
290,
257,
25414,
286,
352,
301,
318,
287,
644,
14359,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
28933,
1495,
33411,
366,
17688,
1,
1279,
705,
12726,
6,
5357,
366,
23004,
1,
796,
705,
16,
301,
6... |
Where was the title released in 1977? | SELECT "Country of Release" FROM table_66590 WHERE "Year of Release" = '1977' | [
8496,
373,
262,
3670,
2716,
287,
15589,
30,
46506,
366,
33921,
286,
13868,
1,
16034,
3084,
62,
2791,
36993,
33411,
366,
17688,
286,
13868,
1,
796,
705,
37781,
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
] | [
8496,
373,
262,
3670,
2716,
287,
15589,
30,
46506,
366,
33921,
286,
13868,
1,
16034,
3084,
62,
2791,
36993,
33411,
366,
17688,
286,
13868,
1,
796,
705,
37781,
6
] |
What is Alexander Wronski's Position? | SELECT position FROM table_name_31 WHERE name = "alexander wronski" | [
2061,
318,
10009,
370,
12212,
4106,
338,
23158,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3132,
33411,
1438,
796,
366,
1000,
87,
4066,
1319,
684,
4106,
1
] | [
1,
1,
1,
1,
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,
10009,
370,
12212,
4106,
338,
23158,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
3132,
33411,
1438,
796,
366,
1000,
87,
4066,
1319,
684,
4106,
1
] |
known mediterranean anemia | SELECT * FROM table_train_43 WHERE anemia = 1 | [
4002,
1117,
19012,
281,
22859,
46506,
1635,
16034,
3084,
62,
27432,
62,
3559,
33411,
281,
22859,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4002,
1117,
19012,
281,
22859,
46506,
1635,
16034,
3084,
62,
27432,
62,
3559,
33411,
281,
22859,
796,
352
] |
Who was the opponent when 48,121 people attended? | SELECT opponent FROM table_name_49 WHERE attendance = "48,121" | [
8241,
373,
262,
6125,
618,
4764,
11,
19244,
661,
9141,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2920,
33411,
14858,
796,
366,
2780,
11,
19244,
1
] | [
1,
1,
1,
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,
6125,
618,
4764,
11,
19244,
661,
9141,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2920,
33411,
14858,
796,
366,
2780,
11,
19244,
1
] |
what's the minimum cost of a hospital with -polys since 2103? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = '-polys')) AND STRFTIME('%y', cost.chargetime) >= '2103' GROUP BY cos... | [
10919,
338,
262,
5288,
1575,
286,
257,
4436,
351,
532,
35428,
82,
1201,
362,
15197,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
1575,
286,
257,
4436,
351,
532,
35428,
82,
1201,
362,
15197,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
... |
What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12? | SELECT MAX("CPC Blend Kazakhstan") FROM table_60224 WHERE "Barrow Island Australia" < '12' | [
2061,
318,
262,
4511,
41190,
13516,
34474,
1271,
618,
2409,
808,
5451,
4505,
318,
4833,
621,
1105,
30,
46506,
25882,
7203,
34,
5662,
41198,
34474,
4943,
16034,
3084,
62,
1899,
24137,
33411,
366,
33,
6018,
5451,
4505,
1,
1279,
705,
1065,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
41190,
13516,
34474,
1271,
618,
2409,
808,
5451,
4505,
318,
4833,
621,
1105,
30,
46506,
25882,
7203,
34,
5662,
41198,
34474,
4943,
16034,
3084,
62,
1899,
24137,
33411,
366,
33,
6018,
5451,
4505,
1,
1279,
705,
1065,... |
Name the equivalence for varas for geometrical pace | SELECT equivalence_in_varas FROM table_26538461_2 WHERE english_name = "Geometrical pace" | [
5376,
262,
6854,
594,
329,
1401,
292,
329,
4903,
908,
8143,
8761,
46506,
6854,
594,
62,
259,
62,
7785,
292,
16034,
3084,
62,
22980,
2548,
40652,
62,
17,
33411,
46932,
62,
3672,
796,
366,
10082,
908,
8143,
8761,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6854,
594,
329,
1401,
292,
329,
4903,
908,
8143,
8761,
46506,
6854,
594,
62,
259,
62,
7785,
292,
16034,
3084,
62,
22980,
2548,
40652,
62,
17,
33411,
46932,
62,
3672,
796,
366,
10082,
908,
8143,
8761,
1
] |
Find the common personal name of course authors and students. | SELECT personal_name FROM course_authors_and_tutors INTERSECT SELECT personal_name FROM students | [
16742,
262,
2219,
2614,
1438,
286,
1781,
7035,
290,
2444,
13,
46506,
2614,
62,
3672,
16034,
1781,
62,
41617,
62,
392,
62,
83,
315,
669,
17828,
4877,
9782,
33493,
2614,
62,
3672,
16034,
2444
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2219,
2614,
1438,
286,
1781,
7035,
290,
2444,
13,
46506,
2614,
62,
3672,
16034,
1781,
62,
41617,
62,
392,
62,
83,
315,
669,
17828,
4877,
9782,
33493,
2614,
62,
3672,
16034,
2444
] |
in this year what were the top four most frequent diagnoses that patients were given in the same hospital encounter after being diagnosed with anuria - suspect atn? | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anuri... | [
259,
428,
614,
644,
547,
262,
1353,
1440,
749,
10792,
40567,
326,
3871,
547,
1813,
287,
262,
976,
4436,
8791,
706,
852,
14641,
351,
281,
34484,
532,
4099,
379,
77,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
428,
614,
644,
547,
262,
1353,
1440,
749,
10792,
40567,
326,
3871,
547,
1813,
287,
262,
976,
4436,
8791,
706,
852,
14641,
351,
281,
34484,
532,
4099,
379,
77,
30,
46506,
256,
18,
13,
47356,
5958,
3672,
16034,
357,
46506,
256,
1... |
Voting before and after the new profile was changed. | SELECT CAST(DATEADD(week, DATEDIFF(week, @epoch, CreationDate), @epoch) AS DATE) AS week, COUNT(v.Id) AS Votes FROM Votes AS v WHERE CreationDate > CAST(DATEADD(day, DATEDIFF(day, GETDATE(), @epoch), @epoch) AS DATE) GROUP BY DATEDIFF(week, @epoch, CreationDate) ORDER BY DATEDIFF(week, @epoch, CreationDate) | [
53,
10720,
878,
290,
706,
262,
649,
7034,
373,
3421,
13,
46506,
327,
11262,
7,
35,
6158,
29266,
7,
10464,
11,
360,
11617,
29267,
7,
10464,
11,
2488,
538,
5374,
11,
21582,
10430,
828,
2488,
538,
5374,
8,
7054,
360,
6158,
8,
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,
1... | [
53,
10720,
878,
290,
706,
262,
649,
7034,
373,
3421,
13,
46506,
327,
11262,
7,
35,
6158,
29266,
7,
10464,
11,
360,
11617,
29267,
7,
10464,
11,
2488,
538,
5374,
11,
21582,
10430,
828,
2488,
538,
5374,
8,
7054,
360,
6158,
8,
7054,
1... |
Which Slalom has an overall of 25 in the 2009 season? | SELECT slalom FROM table_name_32 WHERE overall = "25" AND season = 2009 | [
13828,
3454,
282,
296,
468,
281,
4045,
286,
1679,
287,
262,
3717,
1622,
30,
46506,
1017,
282,
296,
16034,
3084,
62,
3672,
62,
2624,
33411,
4045,
796,
366,
1495,
1,
5357,
1622,
796,
3717
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3454,
282,
296,
468,
281,
4045,
286,
1679,
287,
262,
3717,
1622,
30,
46506,
1017,
282,
296,
16034,
3084,
62,
3672,
62,
2624,
33411,
4045,
796,
366,
1495,
1,
5357,
1622,
796,
3717
] |
What venue featured the home side of st kilda? | SELECT "Venue" FROM table_32461 WHERE "Home team" = 'st kilda' | [
2061,
14359,
8096,
262,
1363,
1735,
286,
336,
479,
27281,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
33916,
5333,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
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,
14359,
8096,
262,
1363,
1735,
286,
336,
479,
27281,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
33916,
5333,
33411,
366,
16060,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
how many asian patients had 78057 as their diagnosis icd9 code | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "ASIAN" AND diagnoses.icd9_code = "78057" | [
4919,
867,
355,
666,
3871,
550,
41287,
3553,
355,
511,
13669,
14158,
67,
24,
2438,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
355,
666,
3871,
550,
41287,
3553,
355,
511,
13669,
14158,
67,
24,
2438,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62... |
Who was the original artist for week number Top 16 (8 women)? | SELECT "Original artist" FROM table_20307 WHERE "Week #" = 'Top 16 (8 Women)' | [
8241,
373,
262,
2656,
6802,
329,
1285,
1271,
5849,
1467,
357,
23,
1466,
19427,
46506,
366,
20556,
6802,
1,
16034,
3084,
62,
1238,
22996,
33411,
366,
20916,
1303,
1,
796,
705,
9126,
1467,
357,
23,
6926,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
2656,
6802,
329,
1285,
1271,
5849,
1467,
357,
23,
1466,
19427,
46506,
366,
20556,
6802,
1,
16034,
3084,
62,
1238,
22996,
33411,
366,
20916,
1303,
1,
796,
705,
9126,
1467,
357,
23,
6926,
33047
] |
how many people were there who are current patients? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.dischtime IS NULL | [
4919,
867,
661,
547,
612,
508,
389,
1459,
3871,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
6381,
354,
2435,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
661,
547,
612,
508,
389,
1459,
3871,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
6381,
354,
2435,
3180,
15697
] |
which team did this team face against next after beating minnesota on january 29 of this season ? | SELECT "opponent" FROM table_204_795 WHERE "date" > (SELECT "date" FROM table_204_795 WHERE "date" = 'january 29, 1949') ORDER BY "date" LIMIT 1 | [
4758,
1074,
750,
428,
1074,
1986,
1028,
1306,
706,
11226,
949,
8360,
319,
42897,
2838,
2808,
286,
428,
1622,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
18638,
62,
41544,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
750,
428,
1074,
1986,
1028,
1306,
706,
11226,
949,
8360,
319,
42897,
2838,
2808,
286,
428,
1622,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
18638,
62,
41544,
33411,
366,
4475,
1,
1875,
357,
46506,
366,
4475,
1,
160... |
What number in the series was episode 2 in the season? | SELECT MAX(no_in_series) FROM table_2468961_3 WHERE no_in_season = 2 | [
2061,
1271,
287,
262,
2168,
373,
4471,
362,
287,
262,
1622,
30,
46506,
25882,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
1731,
3104,
4846,
16,
62,
18,
33411,
645,
62,
259,
62,
6230,
796,
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,
1
] | [
2061,
1271,
287,
262,
2168,
373,
4471,
362,
287,
262,
1622,
30,
46506,
25882,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
1731,
3104,
4846,
16,
62,
18,
33411,
645,
62,
259,
62,
6230,
796,
362
] |
What time is it for the southern home team? | SELECT "Time" FROM table_63149 WHERE "Home team" = 'southern' | [
2061,
640,
318,
340,
329,
262,
8372,
1363,
1074,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
5066,
19442,
33411,
366,
16060,
1074,
1,
796,
705,
82,
4927,
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,
640,
318,
340,
329,
262,
8372,
1363,
1074,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
5066,
19442,
33411,
366,
16060,
1074,
1,
796,
705,
82,
4927,
6
] |
What was the score for the 2014 FIFA World Cup Qual. competition? | SELECT "Score" FROM table_67917 WHERE "Competition" = '2014 fifa world cup qual.' | [
2061,
373,
262,
4776,
329,
262,
1946,
21285,
2159,
5454,
9537,
13,
5449,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
37601,
1558,
33411,
366,
7293,
15620,
1,
796,
705,
4967,
5515,
64,
995,
6508,
4140,
2637
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
329,
262,
1946,
21285,
2159,
5454,
9537,
13,
5449,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
37601,
1558,
33411,
366,
7293,
15620,
1,
796,
705,
4967,
5515,
64,
995,
6508,
4140,
2637
] |
specify the number of patients with icd9 code 5849 who had a stay at hospital for more than 6 days | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "5849" | [
16684,
1958,
262,
1271,
286,
3871,
351,
14158,
67,
24,
2438,
7618,
2920,
508,
550,
257,
2652,
379,
4436,
329,
517,
621,
718,
1528,
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... | [
16684,
1958,
262,
1271,
286,
3871,
351,
14158,
67,
24,
2438,
7618,
2920,
508,
550,
257,
2652,
379,
4436,
329,
517,
621,
718,
1528,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
What was the date of the game when the record was 9 5 2? | SELECT "Date" FROM table_70289 WHERE "Record" = '9–5–2' | [
2061,
373,
262,
3128,
286,
262,
983,
618,
262,
1700,
373,
860,
642,
362,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
27693,
33411,
366,
23739,
1,
796,
705,
24,
1906,
20,
1906,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
286,
262,
983,
618,
262,
1700,
373,
860,
642,
362,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2154,
27693,
33411,
366,
23739,
1,
796,
705,
24,
1906,
20,
1906,
17,
6
] |
what are the number of times the venue was located in el salvador ? | SELECT COUNT(*) FROM table_203_652 WHERE "venue" = 'el salvador' | [
10919,
389,
262,
1271,
286,
1661,
262,
14359,
373,
5140,
287,
1288,
24143,
7079,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
43193,
33411,
366,
4080,
1,
796,
705,
417,
24143,
7079,
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,
1271,
286,
1661,
262,
14359,
373,
5140,
287,
1288,
24143,
7079,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
43193,
33411,
366,
4080,
1,
796,
705,
417,
24143,
7079,
6
] |
i was wondering what patient 031-23724's maximum value of systemicmean on the first icu visit was? | SELECT MAX(vitalperiodic.systemicmean) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724') AND NOT patient.unitdischargetime IS ... | [
72,
373,
11263,
644,
5827,
657,
3132,
12,
24693,
1731,
338,
5415,
1988,
286,
21971,
32604,
319,
262,
717,
14158,
84,
3187,
373,
30,
46506,
25882,
7,
85,
1287,
41007,
291,
13,
10057,
291,
32604,
8,
16034,
9204,
41007,
291,
33411,
9204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
373,
11263,
644,
5827,
657,
3132,
12,
24693,
1731,
338,
5415,
1988,
286,
21971,
32604,
319,
262,
717,
14158,
84,
3187,
373,
30,
46506,
25882,
7,
85,
1287,
41007,
291,
13,
10057,
291,
32604,
8,
16034,
9204,
41007,
291,
33411,
9204,... |
How many try bonuses were there when there were 64 tries for? | SELECT "Try bonus" FROM table_17801 WHERE "Tries for" = '64' | [
2437,
867,
1949,
17568,
547,
612,
618,
612,
547,
5598,
8404,
329,
30,
46506,
366,
23433,
7202,
1,
16034,
3084,
62,
23188,
486,
33411,
366,
51,
1678,
329,
1,
796,
705,
2414,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1949,
17568,
547,
612,
618,
612,
547,
5598,
8404,
329,
30,
46506,
366,
23433,
7202,
1,
16034,
3084,
62,
23188,
486,
33411,
366,
51,
1678,
329,
1,
796,
705,
2414,
6
] |
patient 002-38474 was since 5 years ago in the emergency room? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '002-38474' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-5 year') | [
26029,
3571,
17,
12,
2548,
38652,
373,
1201,
642,
812,
2084,
287,
262,
6334,
2119,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
21601,
12,
2548,
38652,
6,
5357,
5827,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26029,
3571,
17,
12,
2548,
38652,
373,
1201,
642,
812,
2084,
287,
262,
6334,
2119,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
21601,
12,
2548,
38652,
6,
5357,
5827,
13,
4... |
What is Team, when Game is 77? | SELECT team FROM table_name_90 WHERE game = 77 | [
2061,
318,
4816,
11,
618,
3776,
318,
8541,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3829,
33411,
983,
796,
8541
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4816,
11,
618,
3776,
318,
8541,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3829,
33411,
983,
796,
8541
] |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the founder , and group by attribute founder by a bar chart. | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2438,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
13,
46506,
309,
17,
13,
21077,
263,
11,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2438,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
416,
257,
2318,
8262,
13,
46506,
309,
17,
13,
21077,
263,
11,
309,
... |
What is 1986, when 1978 is 'A', when 1979 is 'A', and when 1980 is '1R'? | SELECT "1986" FROM table_43503 WHERE "1978" = 'a' AND "1979" = 'a' AND "1980" = '1r' | [
2061,
318,
12113,
11,
618,
15524,
318,
705,
32,
3256,
618,
13521,
318,
705,
32,
3256,
290,
618,
7169,
318,
705,
16,
49,
30960,
46506,
366,
28054,
1,
16034,
3084,
62,
3559,
31938,
33411,
366,
37950,
1,
796,
705,
64,
6,
5357,
366,
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
] | [
2061,
318,
12113,
11,
618,
15524,
318,
705,
32,
3256,
618,
13521,
318,
705,
32,
3256,
290,
618,
7169,
318,
705,
16,
49,
30960,
46506,
366,
28054,
1,
16034,
3084,
62,
3559,
31938,
33411,
366,
37950,
1,
796,
705,
64,
6,
5357,
366,
3... |
when is the first time patient 027-188709 has had the minimum sao2 on this month/17? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-188709')) AND NOT vitalperiodic.sao2 IS NULL AN... | [
12518,
318,
262,
717,
640,
5827,
657,
1983,
12,
20356,
31495,
468,
550,
262,
5288,
473,
78,
17,
319,
428,
1227,
14,
1558,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
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... | [
12518,
318,
262,
717,
640,
5827,
657,
1983,
12,
20356,
31495,
468,
550,
262,
5288,
473,
78,
17,
319,
428,
1227,
14,
1558,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
2... |
Name the number of years for 18.5 | SELECT COUNT(year) FROM table_2181798_1 WHERE avg_finish = "18.5" | [
5376,
262,
1271,
286,
812,
329,
1248,
13,
20,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
28727,
1558,
4089,
62,
16,
33411,
42781,
62,
15643,
680,
796,
366,
1507,
13,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1271,
286,
812,
329,
1248,
13,
20,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
28727,
1558,
4089,
62,
16,
33411,
42781,
62,
15643,
680,
796,
366,
1507,
13,
20,
1
] |
tell me the three most frequently ordered procedure for patients of 30s in 2103? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND STRFTIME('%y', treatment.treatmenttime) = '2103' GROUP BY treatment.t... | [
33331,
502,
262,
1115,
749,
6777,
6149,
8771,
329,
3871,
286,
1542,
82,
287,
362,
15197,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
1115,
749,
6777,
6149,
8771,
329,
3871,
286,
1542,
82,
287,
362,
15197,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
1105... |
What is the RECNet with a Class of B and the City of License of Rouyn-Noranda? | SELECT "RECNet" FROM table_66625 WHERE "Class" = 'b' AND "City of license" = 'rouyn-noranda' | [
2061,
318,
262,
19644,
7934,
351,
257,
5016,
286,
347,
290,
262,
2254,
286,
13789,
286,
13876,
2047,
12,
21991,
5282,
30,
46506,
366,
38827,
7934,
1,
16034,
3084,
62,
2791,
26704,
33411,
366,
9487,
1,
796,
705,
65,
6,
5357,
366,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19644,
7934,
351,
257,
5016,
286,
347,
290,
262,
2254,
286,
13789,
286,
13876,
2047,
12,
21991,
5282,
30,
46506,
366,
38827,
7934,
1,
16034,
3084,
62,
2791,
26704,
33411,
366,
9487,
1,
796,
705,
65,
6,
5357,
366,
149... |
What is the area km for a population of 99,685 (2008)? | SELECT "Area km\u00b2" FROM table_63218 WHERE "Population" = '99,685 (2008)' | [
2061,
318,
262,
1989,
10571,
329,
257,
3265,
286,
7388,
11,
35978,
357,
11528,
19427,
46506,
366,
30547,
10571,
59,
84,
405,
65,
17,
1,
16034,
3084,
62,
21,
2624,
1507,
33411,
366,
45251,
1,
796,
705,
2079,
11,
35978,
357,
11528,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1989,
10571,
329,
257,
3265,
286,
7388,
11,
35978,
357,
11528,
19427,
46506,
366,
30547,
10571,
59,
84,
405,
65,
17,
1,
16034,
3084,
62,
21,
2624,
1507,
33411,
366,
45251,
1,
796,
705,
2079,
11,
35978,
357,
11528,
33... |
what is drug type of subject id 24425? | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.subject_id = "24425" | [
10919,
318,
2563,
2099,
286,
2426,
4686,
1987,
32114,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
25707,
1495,
1
] | [
1,
1,
1,
1,
1,
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,
2563,
2099,
286,
2426,
4686,
1987,
32114,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
32796,
62,
312,
796,
366,
25707,
1495,
1
] |
Which award was given to Lianhe Zaobao? | SELECT "Award" FROM table_63094 WHERE "Organisation" = 'lianhe zaobao' | [
13828,
5764,
373,
1813,
284,
406,
666,
258,
44210,
672,
5488,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
30005,
5824,
33411,
366,
26121,
5612,
1,
796,
705,
75,
666,
258,
1976,
64,
672,
5488,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5764,
373,
1813,
284,
406,
666,
258,
44210,
672,
5488,
30,
46506,
366,
32,
904,
1,
16034,
3084,
62,
30005,
5824,
33411,
366,
26121,
5612,
1,
796,
705,
75,
666,
258,
1976,
64,
672,
5488,
6
] |
how many patients whose discharge location is home and days of hospital stay is greater than 14? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.days_stay > "14" | [
4919,
867,
3871,
3025,
17655,
4067,
318,
1363,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
1478,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
17655,
4067,
318,
1363,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
1478,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
6381,
10136,
62,
24886,
796... |
Find the number of students for each department Plot them as bar chart, I want to list by the names in asc. | SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE | [
16742,
262,
1271,
286,
2444,
329,
1123,
5011,
28114,
606,
355,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
3891,
287,
10570,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
49348,
3525,
44441,
11050,
5550,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
2444,
329,
1123,
5011,
28114,
606,
355,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
3891,
287,
10570,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
327,
28270,
7,
28104,
16034,
49348,
3525,
44441,
11050,
5550,
1... |
What round was the opponent Sergiy Stakhovsky? | SELECT round FROM table_name_28 WHERE opponent = "sergiy stakhovsky" | [
2061,
2835,
373,
262,
6125,
2930,
70,
7745,
520,
11322,
29716,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2078,
33411,
6125,
796,
366,
2655,
70,
7745,
336,
11322,
29716,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2835,
373,
262,
6125,
2930,
70,
7745,
520,
11322,
29716,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2078,
33411,
6125,
796,
366,
2655,
70,
7745,
336,
11322,
29716,
1
] |
Compute the total the total number across how to get there as a pie chart. | SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There | [
7293,
1133,
262,
2472,
262,
2472,
1271,
1973,
703,
284,
651,
612,
355,
257,
2508,
8262,
13,
46506,
1374,
62,
1462,
62,
3855,
62,
1858,
11,
327,
28270,
7,
28104,
16034,
9852,
396,
62,
8086,
37810,
44441,
11050,
1374,
62,
1462,
62,
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
] | [
7293,
1133,
262,
2472,
262,
2472,
1271,
1973,
703,
284,
651,
612,
355,
257,
2508,
8262,
13,
46506,
1374,
62,
1462,
62,
3855,
62,
1858,
11,
327,
28270,
7,
28104,
16034,
9852,
396,
62,
8086,
37810,
44441,
11050,
1374,
62,
1462,
62,
38... |
What was the away team when the game was at Princes Park? | SELECT "Away team" FROM table_77659 WHERE "Venue" = 'princes park' | [
2061,
373,
262,
1497,
1074,
618,
262,
983,
373,
379,
7489,
728,
3250,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3324,
36445,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
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,
373,
262,
1497,
1074,
618,
262,
983,
373,
379,
7489,
728,
3250,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3324,
36445,
33411,
366,
37522,
518,
1,
796,
705,
1050,
17386,
3952,
6
] |
Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8? | SELECT "Poll" FROM table_38960 WHERE "Wk 10" > '2' AND "Wk 2" = '12' AND "Wk 13" = '8' | [
13828,
3278,
550,
257,
1285,
838,
4025,
621,
362,
11,
257,
1285,
362,
286,
3446,
1105,
11,
290,
257,
1285,
1511,
286,
807,
30,
46506,
366,
39176,
1,
16034,
3084,
62,
29769,
1899,
33411,
366,
54,
74,
838,
1,
1875,
705,
17,
6,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3278,
550,
257,
1285,
838,
4025,
621,
362,
11,
257,
1285,
362,
286,
3446,
1105,
11,
290,
257,
1285,
1511,
286,
807,
30,
46506,
366,
39176,
1,
16034,
3084,
62,
29769,
1899,
33411,
366,
54,
74,
838,
1,
1875,
705,
17,
6,
5357,... |
How many customers are there? | SELECT COUNT(*) FROM customers | [
2437,
867,
4297,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
4297
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
4297,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
4297
] |
What is the 3rd ratio for tag number 1386-000-017 and input splines of 26? | SELECT 3 AS rd FROM table_1310499_1 WHERE input_splines = 26 AND tag_id = "1386-000-017" | [
2061,
318,
262,
513,
4372,
8064,
329,
7621,
1271,
1511,
4521,
12,
830,
12,
29326,
290,
5128,
4328,
1127,
286,
2608,
30,
46506,
513,
7054,
374,
67,
16034,
3084,
62,
1485,
13464,
2079,
62,
16,
33411,
5128,
62,
22018,
1127,
796,
2608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
513,
4372,
8064,
329,
7621,
1271,
1511,
4521,
12,
830,
12,
29326,
290,
5128,
4328,
1127,
286,
2608,
30,
46506,
513,
7054,
374,
67,
16034,
3084,
62,
1485,
13464,
2079,
62,
16,
33411,
5128,
62,
22018,
1127,
796,
2608,
... |
What was the maximum week that had attendance of 10738? | SELECT MAX("Week") FROM table_27234 WHERE "Attendance" = '10738' | [
2061,
373,
262,
5415,
1285,
326,
550,
14858,
286,
16226,
2548,
30,
46506,
25882,
7203,
20916,
4943,
16034,
3084,
62,
1983,
24409,
33411,
366,
8086,
437,
590,
1,
796,
705,
15982,
2548,
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,
262,
5415,
1285,
326,
550,
14858,
286,
16226,
2548,
30,
46506,
25882,
7203,
20916,
4943,
16034,
3084,
62,
1983,
24409,
33411,
366,
8086,
437,
590,
1,
796,
705,
15982,
2548,
6
] |
Draw a bar chart of manager name versus how many manager name, I want to sort how many manager name in desc order. | SELECT Manager_Name, COUNT(Manager_Name) FROM gas_station GROUP BY Manager_Name ORDER BY COUNT(Manager_Name) DESC | [
25302,
257,
2318,
8262,
286,
4706,
1438,
9051,
703,
867,
4706,
1438,
11,
314,
765,
284,
3297,
703,
867,
4706,
1438,
287,
1715,
1502,
13,
46506,
9142,
62,
5376,
11,
327,
28270,
7,
13511,
62,
5376,
8,
16034,
3623,
62,
17529,
44441,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
4706,
1438,
9051,
703,
867,
4706,
1438,
11,
314,
765,
284,
3297,
703,
867,
4706,
1438,
287,
1715,
1502,
13,
46506,
9142,
62,
5376,
11,
327,
28270,
7,
13511,
62,
5376,
8,
16034,
3623,
62,
17529,
44441,
11... |
What is the total number in 2006, which has an official foundation of municipality of 1918? | SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918 | [
2061,
318,
262,
2472,
1271,
287,
4793,
11,
543,
468,
281,
1743,
8489,
286,
27264,
286,
25859,
30,
46506,
327,
28270,
7,
13330,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
3128,
62,
1659,
62,
16841,
62,
42526,
62,
1659,
62,
6199,
4311... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
287,
4793,
11,
543,
468,
281,
1743,
8489,
286,
27264,
286,
25859,
30,
46506,
327,
28270,
7,
13330,
8,
16034,
3084,
62,
3672,
62,
3865,
33411,
3128,
62,
1659,
62,
16841,
62,
42526,
62,
1659,
62,
6199,
4311... |
what is the difference in gauge between works numbers 541 and 542 ? | SELECT ABS((SELECT "gauge" FROM table_204_30 WHERE "works number" = 541) - (SELECT "gauge" FROM table_204_30 WHERE "works number" = 542)) | [
10919,
318,
262,
3580,
287,
18266,
1022,
2499,
3146,
642,
3901,
290,
642,
3682,
5633,
46506,
29950,
19510,
46506,
366,
70,
559,
469,
1,
16034,
3084,
62,
18638,
62,
1270,
33411,
366,
5225,
1271,
1,
796,
642,
3901,
8,
532,
357,
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
] | [
10919,
318,
262,
3580,
287,
18266,
1022,
2499,
3146,
642,
3901,
290,
642,
3682,
5633,
46506,
29950,
19510,
46506,
366,
70,
559,
469,
1,
16034,
3084,
62,
18638,
62,
1270,
33411,
366,
5225,
1271,
1,
796,
642,
3901,
8,
532,
357,
46506,
... |
Which College had an Overall pick of 171? | SELECT "College" FROM table_50395 WHERE "Overall" = '171' | [
13828,
5535,
550,
281,
14674,
2298,
286,
28369,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
1120,
31010,
33411,
366,
16350,
1,
796,
705,
27192,
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
] | [
13828,
5535,
550,
281,
14674,
2298,
286,
28369,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
1120,
31010,
33411,
366,
16350,
1,
796,
705,
27192,
6
] |
When was the duchess, who was married on 11 july 1643, born? | SELECT birth FROM table_name_12 WHERE marriage = "11 july 1643" | [
2215,
373,
262,
288,
1229,
33979,
11,
508,
373,
6405,
319,
1367,
474,
2062,
1467,
3559,
11,
4642,
30,
46506,
4082,
16034,
3084,
62,
3672,
62,
1065,
33411,
4845,
796,
366,
1157,
474,
2062,
1467,
3559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
288,
1229,
33979,
11,
508,
373,
6405,
319,
1367,
474,
2062,
1467,
3559,
11,
4642,
30,
46506,
4082,
16034,
3084,
62,
3672,
62,
1065,
33411,
4845,
796,
366,
1157,
474,
2062,
1467,
3559,
1
] |
What's the title of the episode with production code 104? | SELECT title FROM table_2818164_2 WHERE production_code = 104 | [
2061,
338,
262,
3670,
286,
262,
4471,
351,
3227,
2438,
14436,
30,
46506,
3670,
16034,
3084,
62,
2078,
1507,
23237,
62,
17,
33411,
3227,
62,
8189,
796,
14436
] | [
1,
1,
1,
1,
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,
3670,
286,
262,
4471,
351,
3227,
2438,
14436,
30,
46506,
3670,
16034,
3084,
62,
2078,
1507,
23237,
62,
17,
33411,
3227,
62,
8189,
796,
14436
] |
List the player that scored 4 times. | SELECT name FROM table_24565004_15 WHERE goals¹ = 4 | [
8053,
262,
2137,
326,
7781,
604,
1661,
13,
46506,
1438,
16034,
3084,
62,
22995,
2996,
22914,
62,
1314,
33411,
4661,
126,
117,
796,
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
] | [
8053,
262,
2137,
326,
7781,
604,
1661,
13,
46506,
1438,
16034,
3084,
62,
22995,
2996,
22914,
62,
1314,
33411,
4661,
126,
117,
796,
604
] |
Am I eligible to take HUMGEN 644 right now ? | SELECT COUNT(*) > 0 FROM course, course_offering, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'HUMGEN' AND course.number = 644 AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'WN' AND semester.semester_id = course_off... | [
5840,
314,
8867,
284,
1011,
45850,
35353,
718,
2598,
826,
783,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5840,
314,
8867,
284,
1011,
45850,
35353,
718,
2598,
826,
783,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
... |
Use a group line chart to show how many competitions are held in each year, group by official name and bin by year, and order x axis in descending order. | SELECT Year, COUNT(Year) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY Official_Name ORDER BY Year DESC | [
11041,
257,
1448,
1627,
8262,
284,
905,
703,
867,
24174,
389,
2714,
287,
1123,
614,
11,
1448,
416,
1743,
1438,
290,
9874,
416,
614,
11,
290,
1502,
2124,
16488,
287,
31491,
1502,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
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,
1... | [
11041,
257,
1448,
1627,
8262,
284,
905,
703,
867,
24174,
389,
2714,
287,
1123,
614,
11,
1448,
416,
1743,
1438,
290,
9874,
416,
614,
11,
290,
1502,
2124,
16488,
287,
31491,
1502,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
16034,
1... |
What was the most recent year the venue was Barcelona, Spain? | SELECT MAX(year) FROM table_name_37 WHERE venue = "barcelona, spain" | [
2061,
373,
262,
749,
2274,
614,
262,
14359,
373,
15142,
11,
8602,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2718,
33411,
14359,
796,
366,
5657,
14308,
11,
599,
391,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
2274,
614,
262,
14359,
373,
15142,
11,
8602,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2718,
33411,
14359,
796,
366,
5657,
14308,
11,
599,
391,
1
] |
Name th margin of victory when date is 10 jul 2011 | SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011" | [
5376,
294,
10330,
286,
5373,
618,
3128,
318,
838,
474,
377,
2813,
46506,
10330,
62,
1659,
62,
32433,
652,
16034,
3084,
62,
1314,
3829,
43193,
62,
19,
33411,
3128,
796,
366,
940,
5979,
2813,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
10330,
286,
5373,
618,
3128,
318,
838,
474,
377,
2813,
46506,
10330,
62,
1659,
62,
32433,
652,
16034,
3084,
62,
1314,
3829,
43193,
62,
19,
33411,
3128,
796,
366,
940,
5979,
2813,
1
] |
the number of patients who have been diagnosed with late effect acute polio. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'late effect acute polio')) | [
1169,
1271,
286,
3871,
508,
423,
587,
14641,
351,
2739,
1245,
14352,
42664,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1169,
1271,
286,
3871,
508,
423,
587,
14641,
351,
2739,
1245,
14352,
42664,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,... |
How many different instructors have taught some course? | SELECT COUNT(DISTINCT id) FROM teaches | [
2437,
867,
1180,
33667,
423,
7817,
617,
1781,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
4686,
8,
16034,
17324
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1180,
33667,
423,
7817,
617,
1781,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
4686,
8,
16034,
17324
] |
Which Leading Scorer has an Opponent of @ seattle, and a Record of 14-16? | SELECT "Leading Scorer" FROM table_76490 WHERE "Opponent" = '@ seattle' AND "Record" = '14-16' | [
13828,
43225,
1446,
11934,
468,
281,
9385,
3471,
286,
2488,
384,
1999,
11,
290,
257,
13266,
286,
1478,
12,
1433,
30,
46506,
366,
20451,
278,
1446,
11934,
1,
16034,
3084,
62,
22,
2414,
3829,
33411,
366,
27524,
3471,
1,
796,
705,
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
] | [
13828,
43225,
1446,
11934,
468,
281,
9385,
3471,
286,
2488,
384,
1999,
11,
290,
257,
13266,
286,
1478,
12,
1433,
30,
46506,
366,
20451,
278,
1446,
11934,
1,
16034,
3084,
62,
22,
2414,
3829,
33411,
366,
27524,
3471,
1,
796,
705,
31,
... |
Visualize a bar chart to show the dates that have the top 3 days with the largest max gust speeds at the day of the week level. | SELECT date, COUNT(date) FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3 | [
36259,
1096,
257,
2318,
8262,
284,
905,
262,
9667,
326,
423,
262,
1353,
513,
1528,
351,
262,
4387,
3509,
35253,
12055,
379,
262,
1110,
286,
262,
1285,
1241,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
38678,
11050,
3509,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
284,
905,
262,
9667,
326,
423,
262,
1353,
513,
1528,
351,
262,
4387,
3509,
35253,
12055,
379,
262,
1110,
286,
262,
1285,
1241,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
38678,
11050,
3509,... |
Who is the Host team that has a chicago bears as a visiting team? | SELECT "Host team" FROM table_71886 WHERE "Visiting team" = 'chicago bears' | [
8241,
318,
262,
14504,
1074,
326,
468,
257,
442,
4549,
13062,
355,
257,
10013,
1074,
30,
46506,
366,
17932,
1074,
1,
16034,
3084,
62,
45720,
4521,
33411,
366,
15854,
1780,
1074,
1,
796,
705,
354,
4549,
13062,
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
] | [
8241,
318,
262,
14504,
1074,
326,
468,
257,
442,
4549,
13062,
355,
257,
10013,
1074,
30,
46506,
366,
17932,
1074,
1,
16034,
3084,
62,
45720,
4521,
33411,
366,
15854,
1780,
1074,
1,
796,
705,
354,
4549,
13062,
6
] |
Which circuit was held on May 7 for 1 hour? | SELECT "Circuit" FROM table_37437 WHERE "Date" = 'may 7' AND "Length" = '1 hour' | [
13828,
10349,
373,
2714,
319,
1737,
767,
329,
352,
1711,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
31020,
2718,
33411,
366,
10430,
1,
796,
705,
11261,
767,
6,
5357,
366,
24539,
1,
796,
705,
16,
1711,
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
] | [
13828,
10349,
373,
2714,
319,
1737,
767,
329,
352,
1711,
30,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
31020,
2718,
33411,
366,
10430,
1,
796,
705,
11261,
767,
6,
5357,
366,
24539,
1,
796,
705,
16,
1711,
6
] |
How many votes were cast when the constituency was midlothian? | SELECT votes__cast FROM table_25818630_2 WHERE constituency = "Midlothian" | [
2437,
867,
5690,
547,
3350,
618,
262,
28280,
373,
3095,
75,
849,
666,
30,
46506,
5690,
834,
2701,
16034,
3084,
62,
25600,
25096,
1270,
62,
17,
33411,
28280,
796,
366,
22622,
75,
849,
666,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5690,
547,
3350,
618,
262,
28280,
373,
3095,
75,
849,
666,
30,
46506,
5690,
834,
2701,
16034,
3084,
62,
25600,
25096,
1270,
62,
17,
33411,
28280,
796,
366,
22622,
75,
849,
666,
1
] |
UWP top questions since May1, 2016 by viewcount. | SELECT p.Id AS "post_link", Title, p.Tags AS Tags, p.ViewCount AS "Views", p.Score AS "Score", p.AnswerCount AS "Answers", DATEDIFF(day, p.CreationDate, GETDATE()) AS "Age (days)", p.AcceptedAnswerId AS "Answer Accepted?" FROM Posts AS p WHERE p.CreationDate >= '20160501' AND (p.Tags LIKE '%<uwp>%' OR p.Tags LIKE '%<wi... | [
52,
25527,
1353,
2683,
1201,
1737,
16,
11,
1584,
416,
1570,
9127,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
11851,
11,
279,
13,
36142,
7054,
44789,
11,
279,
13,
7680,
12332,
7054,
366,
7680,
82,
1600,
279,
13,
26595... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
52,
25527,
1353,
2683,
1201,
1737,
16,
11,
1584,
416,
1570,
9127,
13,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
11851,
11,
279,
13,
36142,
7054,
44789,
11,
279,
13,
7680,
12332,
7054,
366,
7680,
82,
1600,
279,
13,
26595... |
Name the colorado when alaska is connecticut | SELECT colorado FROM table_17425749_1 WHERE alaska = "Connecticut" | [
5376,
262,
3124,
4533,
618,
435,
8480,
318,
2018,
13554,
46506,
3124,
4533,
16034,
3084,
62,
22985,
28676,
2920,
62,
16,
33411,
435,
8480,
796,
366,
13313,
13554,
1
] | [
1,
1,
1,
1,
1,
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,
3124,
4533,
618,
435,
8480,
318,
2018,
13554,
46506,
3124,
4533,
16034,
3084,
62,
22985,
28676,
2920,
62,
16,
33411,
435,
8480,
796,
366,
13313,
13554,
1
] |
What is the minimum number of f/laps? | SELECT MIN("F/Laps") FROM table_28445 | [
2061,
318,
262,
5288,
1271,
286,
277,
14,
75,
1686,
30,
46506,
20625,
7203,
37,
14,
43,
1686,
4943,
16034,
3084,
62,
30336,
2231
] | [
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,
277,
14,
75,
1686,
30,
46506,
20625,
7203,
37,
14,
43,
1686,
4943,
16034,
3084,
62,
30336,
2231
] |
what is the highest rank when the bronze is less than 1 and the total is less than 1? | SELECT MAX("Rank") FROM table_56923 WHERE "Bronze" < '1' AND "Total" < '1' | [
10919,
318,
262,
4511,
4279,
618,
262,
22101,
318,
1342,
621,
352,
290,
262,
2472,
318,
1342,
621,
352,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
20,
3388,
1954,
33411,
366,
18760,
2736,
1,
1279,
705,
16,
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
] | [
10919,
318,
262,
4511,
4279,
618,
262,
22101,
318,
1342,
621,
352,
290,
262,
2472,
318,
1342,
621,
352,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
20,
3388,
1954,
33411,
366,
18760,
2736,
1,
1279,
705,
16,
6,
5357,
366,
1... |
Date of October 25, 1964 involves what record? | SELECT record FROM table_name_1 WHERE date = "october 25, 1964" | [
10430,
286,
3267,
1679,
11,
17575,
9018,
644,
1700,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
16,
33411,
3128,
796,
366,
38441,
2023,
1679,
11,
17575,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10430,
286,
3267,
1679,
11,
17575,
9018,
644,
1700,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
16,
33411,
3128,
796,
366,
38441,
2023,
1679,
11,
17575,
1
] |
How many Field goals (5 points) have a Total Points of 123, and Touchdowns (5 points) larger than 13? | SELECT COUNT(field_goals__5_points_) FROM table_name_59 WHERE total_points = 123 AND touchdowns__5_points_ > 13 | [
2437,
867,
7663,
4661,
357,
20,
2173,
8,
423,
257,
7472,
11045,
286,
17031,
11,
290,
15957,
30371,
357,
20,
2173,
8,
4025,
621,
1511,
30,
46506,
327,
28270,
7,
3245,
62,
2188,
874,
834,
20,
62,
13033,
62,
8,
16034,
3084,
62,
3672,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7663,
4661,
357,
20,
2173,
8,
423,
257,
7472,
11045,
286,
17031,
11,
290,
15957,
30371,
357,
20,
2173,
8,
4025,
621,
1511,
30,
46506,
327,
28270,
7,
3245,
62,
2188,
874,
834,
20,
62,
13033,
62,
8,
16034,
3084,
62,
3672,... |
When the away team is Geelong, what is the highest crowd count? | SELECT MAX("Crowd") FROM table_56471 WHERE "Away team" = 'geelong' | [
2215,
262,
1497,
1074,
318,
2269,
21537,
11,
644,
318,
262,
4511,
4315,
954,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
2414,
4869,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
1497,
1074,
318,
2269,
21537,
11,
644,
318,
262,
4511,
4315,
954,
30,
46506,
25882,
7203,
34,
3986,
4943,
16034,
3084,
62,
20,
2414,
4869,
33411,
366,
32,
1014,
1074,
1,
796,
705,
469,
21537,
6
] |
what is admission type of subject id 2110? | SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "2110" | [
10919,
318,
13938,
2099,
286,
2426,
4686,
2310,
940,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2481,
940,
1
] | [
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
286,
2426,
4686,
2310,
940,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2481,
940,
1
] |
What is the 1995 value with of the 1993 ATP Masters Series? | SELECT 1995 FROM table_name_15 WHERE 1993 = "atp masters series" | [
2061,
318,
262,
8735,
1988,
351,
286,
262,
9656,
39046,
15812,
7171,
30,
46506,
8735,
16034,
3084,
62,
3672,
62,
1314,
33411,
9656,
796,
366,
265,
79,
18159,
2168,
1
] | [
1,
1,
1,
1,
1,
1,
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,
8735,
1988,
351,
286,
262,
9656,
39046,
15812,
7171,
30,
46506,
8735,
16034,
3084,
62,
3672,
62,
1314,
33411,
9656,
796,
366,
265,
79,
18159,
2168,
1
] |
What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4? | SELECT "Make and model" FROM table_35044 WHERE "Fuel propulsion" = 'diesel' AND "Floor type" = 'high' AND "Bicycle capacity\u2020" < '3' AND "Quantity" = '4' | [
2061,
787,
290,
2746,
286,
262,
21866,
4038,
351,
257,
1029,
4314,
2099,
11,
7161,
5339,
1342,
621,
513,
11,
290,
257,
12040,
286,
604,
30,
46506,
366,
12050,
290,
2746,
1,
16034,
3084,
62,
14877,
2598,
33411,
366,
42663,
38873,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
290,
2746,
286,
262,
21866,
4038,
351,
257,
1029,
4314,
2099,
11,
7161,
5339,
1342,
621,
513,
11,
290,
257,
12040,
286,
604,
30,
46506,
366,
12050,
290,
2746,
1,
16034,
3084,
62,
14877,
2598,
33411,
366,
42663,
38873,
1,
... |
Who is the developer for Windows live messenger? | SELECT "Developer" FROM table_22162 WHERE "Title" = 'Windows Live Messenger' | [
8241,
318,
262,
8517,
329,
3964,
2107,
31228,
30,
46506,
366,
45351,
1,
16034,
3084,
62,
1828,
25061,
33411,
366,
19160,
1,
796,
705,
11209,
7547,
24306,
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,
318,
262,
8517,
329,
3964,
2107,
31228,
30,
46506,
366,
45351,
1,
16034,
3084,
62,
1828,
25061,
33411,
366,
19160,
1,
796,
705,
11209,
7547,
24306,
6
] |
For those employees who was hired before 2002-06-21, give me the comparison about the average of department_id over the hire_date bin hire_date by weekday by a bar chart, rank by the Y-axis from low to high. | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(DEPARTMENT_ID) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
5011,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
11,
4279,
416,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
5011,
62,
312,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
416,
257,
2318,
8262,
11,
4279,
416,
262,
... |
Any other teacher teach 421 rather than Prof. Katie Weyant ? | SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 421 AND NOT instructor.name LIKE '%Katie Weyant%' AND offering_instructor.instructor_id = instructor.instructor_id AND offer... | [
7149,
584,
4701,
4545,
49294,
2138,
621,
4415,
13,
24721,
775,
88,
415,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7149,
584,
4701,
4545,
49294,
2138,
621,
4415,
13,
24721,
775,
88,
415,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
17319,
62,
... |
Show all distinct product categories along with the number of mailshots in each category. | SELECT product_category, COUNT(*) FROM mailshot_campaigns GROUP BY product_category | [
15307,
477,
7310,
1720,
9376,
1863,
351,
262,
1271,
286,
6920,
20910,
287,
1123,
6536,
13,
46506,
1720,
62,
22872,
11,
327,
28270,
7,
28104,
16034,
6920,
9442,
62,
35012,
82,
44441,
11050,
1720,
62,
22872
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
7310,
1720,
9376,
1863,
351,
262,
1271,
286,
6920,
20910,
287,
1123,
6536,
13,
46506,
1720,
62,
22872,
11,
327,
28270,
7,
28104,
16034,
6920,
9442,
62,
35012,
82,
44441,
11050,
1720,
62,
22872
] |
For those records from the products and each product's manufacturer, give me the comparison about the average of price over the name , and group by attribute name by a bar chart, and order X-axis in asc order. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2756,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
1502,
1395,
12,
22704,
287,
10570,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
2756,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
1502,
1395,
12,
22704,
287,
10570,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.