instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is Italy's rank? | SELECT "Rank" FROM table_64422 WHERE "Country" = 'italy' | [
2061,
318,
8031,
338,
4279,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
29173,
1828,
33411,
366,
33921,
1,
796,
705,
1287,
88,
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
] | [
2061,
318,
8031,
338,
4279,
30,
46506,
366,
27520,
1,
16034,
3084,
62,
29173,
1828,
33411,
366,
33921,
1,
796,
705,
1287,
88,
6
] |
What school does the Blue Raiders belong to? | SELECT "School" FROM table_14903 WHERE "Team" = 'blue raiders' | [
2061,
1524,
857,
262,
4518,
16120,
5594,
284,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
19442,
3070,
33411,
366,
15592,
1,
796,
705,
17585,
9513,
364,
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,
1524,
857,
262,
4518,
16120,
5594,
284,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
19442,
3070,
33411,
366,
15592,
1,
796,
705,
17585,
9513,
364,
6
] |
In the game where the home team scored 12.17 (89), who was the home team? | SELECT "Home team" FROM table_78288 WHERE "Home team score" = '12.17 (89)' | [
818,
262,
983,
810,
262,
1363,
1074,
7781,
1105,
13,
1558,
357,
4531,
828,
508,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3695,
25270,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1065,
13,
1558,
357,
453... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
262,
983,
810,
262,
1363,
1074,
7781,
1105,
13,
1558,
357,
4531,
828,
508,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3695,
25270,
33411,
366,
16060,
1074,
4776,
1,
796,
705,
1065,
13,
1558,
357,
453... |
A bar chart shows the distribution of Date_of_Birth and Weight , and I want to sort from high to low by the X-axis. | SELECT Date_of_Birth, Weight FROM people ORDER BY Date_of_Birth DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
7536,
62,
1659,
62,
38480,
290,
14331,
837,
290,
314,
765,
284,
3297,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
7536,
62,
1659,
62,
38480,
11,
14331,
16034,
661,
38678,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
7536,
62,
1659,
62,
38480,
290,
14331,
837,
290,
314,
765,
284,
3297,
422,
1029,
284,
1877,
416,
262,
1395,
12,
22704,
13,
46506,
7536,
62,
1659,
62,
38480,
11,
14331,
16034,
661,
38678,
11050,
... |
Got most down to non-CW answers. | SELECT DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS Rank, Posts.OwnerUserId AS "user_link", Posts.OwnerUserId AS UserId, COUNT(*) AS Count FROM Posts, Votes WHERE Posts.Id = Votes.PostId AND Votes.VoteTypeId = 3 AND Posts.PostTypeId = 2 AND Posts.CommunityOwnedDate IS NULL AND Posts.OwnerUserId > 0 GROUP BY Posts.Owne... | [
30074,
749,
866,
284,
1729,
12,
43538,
7429,
13,
46506,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
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... | [
30074,
749,
866,
284,
1729,
12,
43538,
7429,
13,
46506,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
10916,
11,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
16... |
How many fires were more than 100 acres in 2006? | SELECT COUNT(*) FROM fires WHERE fire_year = 2006 AND fire_size > 100 | [
2437,
867,
12252,
547,
517,
621,
1802,
16051,
287,
4793,
30,
46506,
327,
28270,
7,
28104,
16034,
12252,
33411,
2046,
62,
1941,
796,
4793,
5357,
2046,
62,
7857,
1875,
1802
] | [
1,
1,
1,
1,
1,
1,
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,
12252,
547,
517,
621,
1802,
16051,
287,
4793,
30,
46506,
327,
28270,
7,
28104,
16034,
12252,
33411,
2046,
62,
1941,
796,
4793,
5357,
2046,
62,
7857,
1875,
1802
] |
How many debates are there? | SELECT COUNT(*) FROM debate | [
2437,
867,
15389,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
4384
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
15389,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
4384
] |
What is the away side that playes at lake oval? | SELECT "Away team score" FROM table_32641 WHERE "Venue" = 'lake oval' | [
2061,
318,
262,
1497,
1735,
326,
711,
274,
379,
13546,
41186,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
39195,
3901,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1497,
1735,
326,
711,
274,
379,
13546,
41186,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
39195,
3901,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] |
Most popular StackOverflow tags per month. | SELECT num.TagName AS Tag, rate.Rate AS QuestionsPerMonth FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND Posts.CreationDate > '2015-02-01' AND Posts.CreationDate < '2015-03-01' GROUP BY TagName) AS rate INNER JOIN (SELECT COUNT(PostId) AS ... | [
6943,
2968,
23881,
5886,
11125,
15940,
583,
1227,
13,
46506,
997,
13,
24835,
5376,
7054,
17467,
11,
2494,
13,
32184,
7054,
20396,
5990,
31948,
16034,
357,
46506,
327,
28270,
7,
6307,
7390,
8,
7054,
14806,
11,
17467,
5376,
16034,
44789,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6943,
2968,
23881,
5886,
11125,
15940,
583,
1227,
13,
46506,
997,
13,
24835,
5376,
7054,
17467,
11,
2494,
13,
32184,
7054,
20396,
5990,
31948,
16034,
357,
46506,
327,
28270,
7,
6307,
7390,
8,
7054,
14806,
11,
17467,
5376,
16034,
44789,
... |
How may episodes did season 1 have? | SELECT COUNT(episodes) FROM table_name_22 WHERE season_no = 1 | [
2437,
743,
8640,
750,
1622,
352,
423,
30,
46506,
327,
28270,
7,
538,
8052,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
1622,
62,
3919,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
743,
8640,
750,
1622,
352,
423,
30,
46506,
327,
28270,
7,
538,
8052,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
1622,
62,
3919,
796,
352
] |
NoSQL Trends (# of Questions per Month). | SELECT DATEADD(mm, (YEAR(Posts.CreationDate) - 1900) * 12 + MONTH(Posts.CreationDate) - 1, 0) AS Month, Tags.TagName, COUNT(*) AS Questions FROM Tags LEFT JOIN PostTags ON PostTags.TagId = Tags.Id LEFT JOIN Posts ON Posts.Id = PostTags.PostId LEFT JOIN PostTypes ON PostTypes.Id = Posts.PostTypeId WHERE Tags.TagName IN ... | [
2949,
17861,
34308,
17426,
286,
20396,
583,
16061,
737,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21496,
13,
12443,
341,
10430,
8,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2949,
17861,
34308,
17426,
286,
20396,
583,
16061,
737,
46506,
360,
6158,
29266,
7,
3020,
11,
357,
56,
17133,
7,
21496,
13,
12443,
341,
10430,
8,
532,
21489,
8,
1635,
1105,
1343,
25000,
4221,
7,
21496,
13,
12443,
341,
10430,
8,
532,
... |
what is the drug type of Sodium Chloride 3% Inhalation Soln? | SELECT prescriptions.drug_type FROM prescriptions WHERE prescriptions.drug = "Sodium Chloride 3% Inhalation Soln" | [
10919,
318,
262,
2563,
2099,
286,
47942,
609,
4685,
485,
513,
4,
554,
14201,
341,
4294,
77,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
50,
12664,
609,
4685,
485,
513,
4,
554,
14201,
341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
2099,
286,
47942,
609,
4685,
485,
513,
4,
554,
14201,
341,
4294,
77,
30,
46506,
34092,
13,
30349,
62,
4906,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
50,
12664,
609,
4685,
485,
513,
4,
554,
14201,
341,
... |
Name the circuit with class of gts | SELECT "Circuit" FROM table_5061 WHERE "Class" = 'gts' | [
5376,
262,
10349,
351,
1398,
286,
308,
912,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
1120,
5333,
33411,
366,
9487,
1,
796,
705,
70,
912,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
10349,
351,
1398,
286,
308,
912,
46506,
366,
31560,
5013,
1,
16034,
3084,
62,
1120,
5333,
33411,
366,
9487,
1,
796,
705,
70,
912,
6
] |
what were the three most frequently prescribed drugs for patients with age 30s until 2100? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 30 AND 39) AND STRFTIME('%y', prescriptions.startdate) <= '2100' GROUP BY prescriptions.drug) AS t1 W... | [
10919,
547,
262,
1115,
749,
6777,
14798,
5010,
329,
3871,
351,
2479,
1542,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1115,
749,
6777,
14798,
5010,
329,
3871,
351,
2479,
1542,
82,
1566,
38123,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
... |
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year? | SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008" | [
47445,
286,
32339,
11,
290,
257,
8829,
9327,
14,
35027,
5834,
286,
275,
15630,
40504,
672,
31085,
11,
290,
257,
13868,
14,
16170,
7536,
286,
1511,
645,
303,
1916,
3648,
318,
644,
2160,
286,
262,
614,
30,
46506,
35683,
7,
1941,
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,
1... | [
47445,
286,
32339,
11,
290,
257,
8829,
9327,
14,
35027,
5834,
286,
275,
15630,
40504,
672,
31085,
11,
290,
257,
13868,
14,
16170,
7536,
286,
1511,
645,
303,
1916,
3648,
318,
644,
2160,
286,
262,
614,
30,
46506,
35683,
7,
1941,
8,
16... |
What is the sum of votes of the party with a % of 0.53 and more than 0 seats? | SELECT SUM("Votes (Gib.)") FROM table_6694 WHERE "% (Gib.)" = '0.53' AND "Seats" > '0' | [
2061,
318,
262,
2160,
286,
5690,
286,
262,
2151,
351,
257,
4064,
286,
657,
13,
4310,
290,
517,
621,
657,
8632,
30,
46506,
35683,
7203,
53,
6421,
357,
38,
571,
2014,
4943,
16034,
3084,
62,
2791,
5824,
33411,
36521,
357,
38,
571,
2014... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5690,
286,
262,
2151,
351,
257,
4064,
286,
657,
13,
4310,
290,
517,
621,
657,
8632,
30,
46506,
35683,
7203,
53,
6421,
357,
38,
571,
2014,
4943,
16034,
3084,
62,
2791,
5824,
33411,
36521,
357,
38,
571,
2014... |
how many patients whose days of hospital stay is greater than 34 and drug route is both eyes? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "34" AND prescriptions.route = "BOTH EYES" | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
4974,
290,
2563,
6339,
318,
1111,
2951,
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,
1... | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
4974,
290,
2563,
6339,
318,
1111,
2951,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
1... |
What is the Right Ascension with a Diffuse Nebula Object Type has a 42 30 Declination and a NGC less than 6995? | SELECT "Right ascension ( J2000 )" FROM table_11441 WHERE "NGC number" < '6995' AND "Object type" = 'diffuse nebula' AND "Declination ( J2000 )" = '°42′30″' | [
2061,
318,
262,
6498,
41416,
351,
257,
10631,
1904,
46915,
9515,
5994,
468,
257,
5433,
1542,
16691,
1883,
290,
257,
399,
15916,
1342,
621,
718,
33438,
30,
46506,
366,
11028,
10570,
3004,
357,
449,
11024,
1267,
1,
16034,
3084,
62,
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... | [
2061,
318,
262,
6498,
41416,
351,
257,
10631,
1904,
46915,
9515,
5994,
468,
257,
5433,
1542,
16691,
1883,
290,
257,
399,
15916,
1342,
621,
718,
33438,
30,
46506,
366,
11028,
10570,
3004,
357,
449,
11024,
1267,
1,
16034,
3084,
62,
1157,
... |
what were the top four common lab tests that patients had within the same month after having a insulin - subcutaneous dose of longer-acting insulin prepara procedure until 2 years ago? | SELECT t3.labname FROM (SELECT t2.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'insulin - subcutaneous dose of longer-acting insulin... | [
10919,
547,
262,
1353,
1440,
2219,
2248,
5254,
326,
3871,
550,
1626,
262,
976,
1227,
706,
1719,
257,
14588,
532,
850,
8968,
11655,
10742,
286,
2392,
12,
27362,
14588,
9198,
64,
8771,
1566,
362,
812,
2084,
30,
46506,
256,
18,
13,
23912... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1353,
1440,
2219,
2248,
5254,
326,
3871,
550,
1626,
262,
976,
1227,
706,
1719,
257,
14588,
532,
850,
8968,
11655,
10742,
286,
2392,
12,
27362,
14588,
9198,
64,
8771,
1566,
362,
812,
2084,
30,
46506,
256,
18,
13,
23912... |
what is the average age of married patients who are of 43 years of age or more? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.age >= "43" | [
10919,
318,
262,
2811,
2479,
286,
6405,
3871,
508,
389,
286,
5946,
812,
286,
2479,
393,
517,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2811,
2479,
286,
6405,
3871,
508,
389,
286,
5946,
812,
286,
2479,
393,
517,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
40569,
7112,
1961,
1,
5357,
1... |
What is the average episode # with a name of the origin of Donnie (part 1)? | SELECT AVG("Episode #") FROM table_55122 WHERE "Episode Name" = 'the origin of donnie (part 1)' | [
2061,
318,
262,
2811,
4471,
1303,
351,
257,
1438,
286,
262,
8159,
286,
2094,
11952,
357,
3911,
352,
19427,
46506,
35224,
7203,
23758,
1303,
4943,
16034,
3084,
62,
2816,
18376,
33411,
366,
23758,
6530,
1,
796,
705,
1169,
8159,
286,
836,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
1303,
351,
257,
1438,
286,
262,
8159,
286,
2094,
11952,
357,
3911,
352,
19427,
46506,
35224,
7203,
23758,
1303,
4943,
16034,
3084,
62,
2816,
18376,
33411,
366,
23758,
6530,
1,
796,
705,
1169,
8159,
286,
836,
... |
Show the card type codes and the number of transactions with a bar chart. | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code | [
15307,
262,
2657,
2099,
12416,
290,
262,
1271,
286,
8945,
351,
257,
2318,
8262,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
7054,
309,
16,
32357,
1268,
36707,
62,
34,
1371,
7054,
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... | [
15307,
262,
2657,
2099,
12416,
290,
262,
1271,
286,
8945,
351,
257,
2318,
8262,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
7054,
309,
16,
32357,
1268,
36707,
62,
34,
1371,
7054,
309,
... |
What ist he Home with a Score that is 42-64? | SELECT "Home" FROM table_39910 WHERE "Score" = '42-64' | [
2061,
318,
83,
339,
5995,
351,
257,
15178,
326,
318,
5433,
12,
2414,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
28771,
940,
33411,
366,
26595,
1,
796,
705,
3682,
12,
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
] | [
2061,
318,
83,
339,
5995,
351,
257,
15178,
326,
318,
5433,
12,
2414,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
28771,
940,
33411,
366,
26595,
1,
796,
705,
3682,
12,
2414,
6
] |
What is the score of T5 place in the United States? | SELECT "Score" FROM table_48746 WHERE "Country" = 'united states' AND "Place" = 't5' | [
2061,
318,
262,
4776,
286,
309,
20,
1295,
287,
262,
1578,
1829,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
35133,
3510,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
27271,
1,
796,
705,
83,
20,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
286,
309,
20,
1295,
287,
262,
1578,
1829,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
35133,
3510,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6,
5357,
366,
27271,
1,
796,
705,
83,
20,
6
] |
The MDE requirement can be fulfilled with which easiest class ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_cou... | [
464,
337,
7206,
9079,
460,
307,
23085,
351,
543,
16638,
1398,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
13,
1818,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
464,
337,
7206,
9079,
460,
307,
23085,
351,
543,
16638,
1398,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
13,
1818,
22... |
what is the number of blocks made by moses malone ? | SELECT SUM("rebounds") FROM table_203_532 WHERE "player" = 'moses malone' | [
10919,
318,
262,
1271,
286,
7021,
925,
416,
285,
4629,
6428,
505,
5633,
46506,
35683,
7203,
34806,
3733,
4943,
16034,
3084,
62,
22416,
62,
20,
2624,
33411,
366,
7829,
1,
796,
705,
76,
4629,
6428,
505,
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,
318,
262,
1271,
286,
7021,
925,
416,
285,
4629,
6428,
505,
5633,
46506,
35683,
7203,
34806,
3733,
4943,
16034,
3084,
62,
22416,
62,
20,
2624,
33411,
366,
7829,
1,
796,
705,
76,
4629,
6428,
505,
6
] |
What is the highest number of ends won of 47 Ends Lost and a Shot % less than 73? | SELECT MAX("Ends Won") FROM table_44132 WHERE "Ends Lost" = '47' AND "Shot %" < '73' | [
2061,
318,
262,
4511,
1271,
286,
5645,
1839,
286,
6298,
46756,
9164,
290,
257,
13590,
4064,
1342,
621,
8854,
30,
46506,
25882,
7203,
12915,
82,
23306,
4943,
16034,
3084,
62,
2598,
19924,
33411,
366,
12915,
82,
9164,
1,
796,
705,
2857,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
5645,
1839,
286,
6298,
46756,
9164,
290,
257,
13590,
4064,
1342,
621,
8854,
30,
46506,
25882,
7203,
12915,
82,
23306,
4943,
16034,
3084,
62,
2598,
19924,
33411,
366,
12915,
82,
9164,
1,
796,
705,
2857,
... |
what are the top three frequent input events since 3 years ago? | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%intake%' AND DATETIME(intakeoutput.intakeoutputtime) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 3 | [
10919,
389,
262,
1353,
1115,
10792,
5128,
2995,
1201,
513,
812,
2084,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1353,
1115,
10792,
5128,
2995,
1201,
513,
812,
2084,
30,
46506,
256,
16,
13,
3846,
18242,
16034,
357,
46506,
10337,
22915,
13,
3846,
18242,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270... |
Who is the opponent in the final on August 14, 2006? | SELECT "Opponent in the final" FROM table_57808 WHERE "Date" = 'august 14, 2006' | [
8241,
318,
262,
6125,
287,
262,
2457,
319,
2932,
1478,
11,
4793,
30,
46506,
366,
27524,
3471,
287,
262,
2457,
1,
16034,
3084,
62,
3553,
28362,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1478,
11,
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,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
6125,
287,
262,
2457,
319,
2932,
1478,
11,
4793,
30,
46506,
366,
27524,
3471,
287,
262,
2457,
1,
16034,
3084,
62,
3553,
28362,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1478,
11,
4793,
6
] |
Visualize the title and their total smallest ratings of the movie using a bar chart, show bar in desc order. | SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title ORDER BY T2.title DESC | [
36259,
1096,
262,
3670,
290,
511,
2472,
18197,
10109,
286,
262,
3807,
1262,
257,
2318,
8262,
11,
905,
2318,
287,
1715,
1502,
13,
46506,
309,
17,
13,
7839,
11,
35683,
7,
23678,
7,
51,
16,
13,
30783,
4008,
16034,
12028,
7054,
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... | [
36259,
1096,
262,
3670,
290,
511,
2472,
18197,
10109,
286,
262,
3807,
1262,
257,
2318,
8262,
11,
905,
2318,
287,
1715,
1502,
13,
46506,
309,
17,
13,
7839,
11,
35683,
7,
23678,
7,
51,
16,
13,
30783,
4008,
16034,
12028,
7054,
309,
16,... |
How many distinct complaint type codes are there in the database? | SELECT COUNT(DISTINCT complaint_type_code) FROM complaints | [
2437,
867,
7310,
8224,
2099,
12416,
389,
612,
287,
262,
6831,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8224,
62,
4906,
62,
8189,
8,
16034,
9687
] | [
1,
1,
1,
1,
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,
8224,
2099,
12416,
389,
612,
287,
262,
6831,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
8224,
62,
4906,
62,
8189,
8,
16034,
9687
] |
what was the number of patients diagnosed with chest pain - r/o myocardial ischemia within 2 months after cardiac surgery consultation, this year? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'cardiac surgery consultation' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME... | [
10919,
373,
262,
1271,
286,
3871,
14641,
351,
7721,
2356,
532,
374,
14,
78,
616,
44412,
498,
318,
15245,
544,
1626,
362,
1933,
706,
26077,
8185,
18103,
11,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1271,
286,
3871,
14641,
351,
7721,
2356,
532,
374,
14,
78,
616,
44412,
498,
318,
15245,
544,
1626,
362,
1933,
706,
26077,
8185,
18103,
11,
428,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
403,
... |
What principal has a school mascot of the patriots? | SELECT "Principal" FROM table_55989 WHERE "Mascot" = 'patriots' | [
2061,
10033,
468,
257,
1524,
37358,
286,
262,
12650,
1747,
30,
46506,
366,
42904,
8521,
1,
16034,
3084,
62,
2816,
42520,
33411,
366,
44,
3372,
313,
1,
796,
705,
8071,
44447,
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,
10033,
468,
257,
1524,
37358,
286,
262,
12650,
1747,
30,
46506,
366,
42904,
8521,
1,
16034,
3084,
62,
2816,
42520,
33411,
366,
44,
3372,
313,
1,
796,
705,
8071,
44447,
6
] |
What episode in the season was 'easy as pie'? | SELECT MIN("No. in season") FROM table_26609 WHERE "Title" = 'Easy as Pie' | [
2061,
4471,
287,
262,
1622,
373,
705,
38171,
355,
2508,
30960,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
2075,
31751,
33411,
366,
19160,
1,
796,
705,
28406,
355,
21690,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4471,
287,
262,
1622,
373,
705,
38171,
355,
2508,
30960,
46506,
20625,
7203,
2949,
13,
287,
1622,
4943,
16034,
3084,
62,
2075,
31751,
33411,
366,
19160,
1,
796,
705,
28406,
355,
21690,
6
] |
who got the first position when fujieda city government got the fourth position? | SELECT "Champions" FROM table_24517 WHERE "Fourth place" = 'Fujieda City Government' | [
8727,
1392,
262,
717,
2292,
618,
14035,
73,
798,
64,
1748,
1230,
1392,
262,
5544,
2292,
30,
46506,
366,
1925,
4350,
1,
16034,
3084,
62,
22995,
1558,
33411,
366,
45530,
1295,
1,
796,
705,
37,
23577,
798,
64,
2254,
5070,
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
] | [
8727,
1392,
262,
717,
2292,
618,
14035,
73,
798,
64,
1748,
1230,
1392,
262,
5544,
2292,
30,
46506,
366,
1925,
4350,
1,
16034,
3084,
62,
22995,
1558,
33411,
366,
45530,
1295,
1,
796,
705,
37,
23577,
798,
64,
2254,
5070,
6
] |
What College/junior/club team has a Position of centre, and pick is #22? | SELECT "College/junior/club team" FROM table_36653 WHERE "Position" = 'centre' AND "Pick #" = '22' | [
2061,
5535,
14,
29741,
1504,
14,
18664,
1074,
468,
257,
23158,
286,
7372,
11,
290,
2298,
318,
1303,
1828,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
2623,
46435,
33411,
366,
26545,
1,
796,
705,
1087,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5535,
14,
29741,
1504,
14,
18664,
1074,
468,
257,
23158,
286,
7372,
11,
290,
2298,
318,
1303,
1828,
30,
46506,
366,
38951,
14,
29741,
1504,
14,
18664,
1074,
1,
16034,
3084,
62,
2623,
46435,
33411,
366,
26545,
1,
796,
705,
1087,
... |
tell me both the time of admission and discharge for patient francis baseler. | SELECT demographic.admittime, demographic.dischtime FROM demographic WHERE demographic.name = "Francis Baseler" | [
33331,
502,
1111,
262,
640,
286,
13938,
290,
17655,
329,
5827,
46754,
271,
1615,
417,
263,
13,
46506,
16728,
13,
324,
20124,
524,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
42885,
271,
6455,
417,
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
] | [
33331,
502,
1111,
262,
640,
286,
13938,
290,
17655,
329,
5827,
46754,
271,
1615,
417,
263,
13,
46506,
16728,
13,
324,
20124,
524,
11,
16728,
13,
6381,
354,
2435,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
42885,
271,
6455,
417,
2... |
Which opponent has a score of 84-88 (ot)? | SELECT opponent FROM table_name_79 WHERE score = "84-88 (ot)" | [
13828,
6125,
468,
257,
4776,
286,
9508,
12,
3459,
357,
313,
19427,
46506,
6125,
16034,
3084,
62,
3672,
62,
3720,
33411,
4776,
796,
366,
5705,
12,
3459,
357,
313,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6125,
468,
257,
4776,
286,
9508,
12,
3459,
357,
313,
19427,
46506,
6125,
16034,
3084,
62,
3672,
62,
3720,
33411,
4776,
796,
366,
5705,
12,
3459,
357,
313,
16725
] |
What Week 2 has a Week 1 of crystal beddows? | SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows" | [
2061,
6119,
362,
468,
257,
6119,
352,
286,
15121,
3996,
67,
1666,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
2791,
33411,
1285,
62,
16,
796,
366,
20470,
7757,
3996,
67,
1666,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6119,
362,
468,
257,
6119,
352,
286,
15121,
3996,
67,
1666,
30,
46506,
1285,
62,
17,
16034,
3084,
62,
3672,
62,
2791,
33411,
1285,
62,
16,
796,
366,
20470,
7757,
3996,
67,
1666,
1
] |
Number of approved suggested edits by user. | SELECT COUNT(*) FROM SuggestedEdits WHERE OwnerUserId = '##userid##' AND NOT ApprovalDate IS NULL | [
15057,
286,
6325,
5220,
31671,
416,
2836,
13,
46506,
327,
28270,
7,
28104,
16034,
35042,
276,
7407,
896,
33411,
23853,
12982,
7390,
796,
705,
2235,
7220,
312,
2235,
6,
5357,
5626,
20010,
2100,
10430,
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,
1,
1
] | [
15057,
286,
6325,
5220,
31671,
416,
2836,
13,
46506,
327,
28270,
7,
28104,
16034,
35042,
276,
7407,
896,
33411,
23853,
12982,
7390,
796,
705,
2235,
7220,
312,
2235,
6,
5357,
5626,
20010,
2100,
10430,
3180,
15697
] |
Most upvoted questions closed as unclear what you'are asking and then reopened. | SELECT q.ViewCount AS Views, q.Score AS score, q.Id AS "post_link" FROM Posts AS q INNER JOIN PostHistory AS h ON q.Id = h.PostId WHERE h.PostHistoryTypeId = 10 AND h.Comment = 103 AND NOT q.ClosedDate IS NULL ORDER BY Score LIMIT 20 | [
6943,
510,
85,
5191,
2683,
4838,
355,
10061,
644,
345,
6,
533,
4737,
290,
788,
37415,
13,
46506,
10662,
13,
7680,
12332,
7054,
29978,
11,
10662,
13,
26595,
7054,
4776,
11,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6943,
510,
85,
5191,
2683,
4838,
355,
10061,
644,
345,
6,
533,
4737,
290,
788,
37415,
13,
46506,
10662,
13,
7680,
12332,
7054,
29978,
11,
10662,
13,
26595,
7054,
4776,
11,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
... |
what is the number of patients whose discharge location is snf and lab test name is reticulocyte count, automated? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "SNF" AND lab.label = "Reticulocyte Count, Automated" | [
10919,
318,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
3013,
69,
290,
2248,
1332,
1438,
318,
1005,
291,
377,
43320,
954,
11,
16359,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17655,
4067,
318,
3013,
69,
290,
2248,
1332,
1438,
318,
1005,
291,
377,
43320,
954,
11,
16359,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
what is the age and date of birth of patient id 16438? | SELECT demographic.age, demographic.dob FROM demographic WHERE demographic.subject_id = "16438" | [
10919,
318,
262,
2479,
290,
3128,
286,
4082,
286,
5827,
4686,
25307,
2548,
30,
46506,
16728,
13,
496,
11,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
23237,
2548,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
290,
3128,
286,
4082,
286,
5827,
4686,
25307,
2548,
30,
46506,
16728,
13,
496,
11,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
23237,
2548,
1
] |
What is the axis unit of the aircraft yak-1b 'white 23', flown on 19.07.1943? | SELECT "Axis Unit" FROM table_13084 WHERE "Aircraft flown" = 'yak-1b "white 23' AND "Date (dd.mm.yyyy)" = '19.07.1943' | [
2061,
318,
262,
16488,
4326,
286,
262,
6215,
46251,
12,
16,
65,
705,
11186,
2242,
3256,
22371,
319,
678,
13,
2998,
13,
1129,
3559,
30,
46506,
366,
31554,
271,
11801,
1,
16034,
3084,
62,
12952,
5705,
33411,
366,
32,
27002,
22371,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16488,
4326,
286,
262,
6215,
46251,
12,
16,
65,
705,
11186,
2242,
3256,
22371,
319,
678,
13,
2998,
13,
1129,
3559,
30,
46506,
366,
31554,
271,
11801,
1,
16034,
3084,
62,
12952,
5705,
33411,
366,
32,
27002,
22371,
1,
... |
Tell me the 1st leg for team being budoni (Sardinia) | SELECT "1st leg" FROM table_52455 WHERE "Team 1" = 'budoni (sardinia)' | [
24446,
502,
262,
352,
301,
1232,
329,
1074,
852,
3600,
14651,
357,
50,
446,
43168,
8,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
48057,
2816,
33411,
366,
15592,
352,
1,
796,
705,
65,
463,
14651,
357,
82,
446,
43168,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
352,
301,
1232,
329,
1074,
852,
3600,
14651,
357,
50,
446,
43168,
8,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
48057,
2816,
33411,
366,
15592,
352,
1,
796,
705,
65,
463,
14651,
357,
82,
446,
43168,
33047
] |
Which players were number 3? | SELECT "Player" FROM table_334 WHERE "No.(s)" = '3' | [
13828,
1938,
547,
1271,
513,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
31380,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1938,
547,
1271,
513,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
31380,
33411,
366,
2949,
12195,
82,
16725,
796,
705,
18,
6
] |
Which Segment A has a Segment B of s awning? | SELECT "Segment A" FROM table_5431 WHERE "Segment B" = 's awning' | [
13828,
1001,
5154,
317,
468,
257,
1001,
5154,
347,
286,
264,
257,
675,
278,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
4051,
3132,
33411,
366,
41030,
434,
347,
1,
796,
705,
82,
257,
675,
278,
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,
1001,
5154,
317,
468,
257,
1001,
5154,
347,
286,
264,
257,
675,
278,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
4051,
3132,
33411,
366,
41030,
434,
347,
1,
796,
705,
82,
257,
675,
278,
6
] |
when did patient 73713 receive procedures for the first time during this year? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73713) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY procedures_icd.charttime LIMIT 1 | [
12518,
750,
5827,
37517,
1485,
3328,
9021,
329,
262,
717,
640,
1141,
428,
614,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
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... | [
12518,
750,
5827,
37517,
1485,
3328,
9021,
329,
262,
717,
640,
1141,
428,
614,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
... |
What's the To par of St Andrews before the year 1888? | SELECT to_par_ AS "a_" FROM table_name_35 WHERE course = "st andrews" AND year < 1888 | [
2061,
338,
262,
1675,
1582,
286,
520,
26414,
878,
262,
614,
49584,
30,
46506,
284,
62,
1845,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
3672,
62,
2327,
33411,
1781,
796,
366,
301,
290,
1809,
82,
1,
5357,
614,
1279,
49584
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1675,
1582,
286,
520,
26414,
878,
262,
614,
49584,
30,
46506,
284,
62,
1845,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
3672,
62,
2327,
33411,
1781,
796,
366,
301,
290,
1809,
82,
1,
5357,
614,
1279,
49584
] |
Who wrote the last episode (episode 15) of season 3? | SELECT "Written by" FROM table_1781 WHERE "No. in season" = '15' | [
8241,
2630,
262,
938,
4471,
357,
38668,
1315,
8,
286,
1622,
513,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1558,
6659,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
1314,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
2630,
262,
938,
4471,
357,
38668,
1315,
8,
286,
1622,
513,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1558,
6659,
33411,
366,
2949,
13,
287,
1622,
1,
796,
705,
1314,
6
] |
Comments with a score of 5 or more. | SELECT PostId AS "post_link", Score, Text FROM Comments WHERE UserId = @UserId AND Score >= 5 ORDER BY Score DESC | [
23903,
351,
257,
4776,
286,
642,
393,
517,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
2488,
12982,
7390,
5357,
15178,
18189,
642,
38678,
11050,
15178,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23903,
351,
257,
4776,
286,
642,
393,
517,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
8255,
16034,
19502,
33411,
11787,
7390,
796,
2488,
12982,
7390,
5357,
15178,
18189,
642,
38678,
11050,
15178,
22196,
34
] |
Who is the away team for tie no 11? | SELECT away_team FROM table_24887326_6 WHERE tie_no = 11 | [
8241,
318,
262,
1497,
1074,
329,
9839,
645,
1367,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
1731,
3459,
4790,
2075,
62,
21,
33411,
9839,
62,
3919,
796,
1367
] | [
1,
1,
1,
1,
1,
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,
1497,
1074,
329,
9839,
645,
1367,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
1731,
3459,
4790,
2075,
62,
21,
33411,
9839,
62,
3919,
796,
1367
] |
How many constructors had a grid of 13? | SELECT COUNT(constructor) FROM table_27396005_2 WHERE grid = 13 | [
2437,
867,
5678,
669,
550,
257,
10706,
286,
1511,
30,
46506,
327,
28270,
7,
41571,
273,
8,
16034,
3084,
62,
1983,
2670,
8054,
20,
62,
17,
33411,
10706,
796,
1511
] | [
1,
1,
1,
1,
1,
1,
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,
5678,
669,
550,
257,
10706,
286,
1511,
30,
46506,
327,
28270,
7,
41571,
273,
8,
16034,
3084,
62,
1983,
2670,
8054,
20,
62,
17,
33411,
10706,
796,
1511
] |
What is the CB CW of the song which has a BB Pop of 11? | SELECT "CB CW" FROM table_4787 WHERE "BB Pop" = '11' | [
2061,
318,
262,
10078,
24006,
286,
262,
3496,
543,
468,
257,
12597,
8099,
286,
1367,
30,
46506,
366,
23199,
24006,
1,
16034,
3084,
62,
2857,
5774,
33411,
366,
15199,
8099,
1,
796,
705,
1157,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10078,
24006,
286,
262,
3496,
543,
468,
257,
12597,
8099,
286,
1367,
30,
46506,
366,
23199,
24006,
1,
16034,
3084,
62,
2857,
5774,
33411,
366,
15199,
8099,
1,
796,
705,
1157,
6
] |
What was the third place of the performance in 2006 with the host Japan? | SELECT "Third place" FROM table_70024 WHERE "Host" = 'japan' AND "Season" < '2006' | [
2061,
373,
262,
2368,
1295,
286,
262,
2854,
287,
4793,
351,
262,
2583,
2869,
30,
46506,
366,
22747,
1295,
1,
16034,
3084,
62,
9879,
1731,
33411,
366,
17932,
1,
796,
705,
73,
2674,
6,
5357,
366,
18960,
1,
1279,
705,
13330,
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,
373,
262,
2368,
1295,
286,
262,
2854,
287,
4793,
351,
262,
2583,
2869,
30,
46506,
366,
22747,
1295,
1,
16034,
3084,
62,
9879,
1731,
33411,
366,
17932,
1,
796,
705,
73,
2674,
6,
5357,
366,
18960,
1,
1279,
705,
13330,
6
] |
Name the number of stations for 15 minutes travel time | SELECT COUNT("Stations") FROM table_26374 WHERE "Travel time" = '15 minutes' | [
5376,
262,
1271,
286,
8985,
329,
1315,
2431,
3067,
640,
46506,
327,
28270,
7203,
1273,
602,
4943,
16034,
3084,
62,
2075,
31020,
33411,
366,
33074,
640,
1,
796,
705,
1314,
2431,
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
] | [
5376,
262,
1271,
286,
8985,
329,
1315,
2431,
3067,
640,
46506,
327,
28270,
7203,
1273,
602,
4943,
16034,
3084,
62,
2075,
31020,
33411,
366,
33074,
640,
1,
796,
705,
1314,
2431,
6
] |
What is the Score of the Game with a Record of 13 12? | SELECT "Score" FROM table_76862 WHERE "Record" = '13–12' | [
2061,
318,
262,
15178,
286,
262,
3776,
351,
257,
13266,
286,
1511,
1105,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
30610,
5237,
33411,
366,
23739,
1,
796,
705,
1485,
1906,
1065,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15178,
286,
262,
3776,
351,
257,
13266,
286,
1511,
1105,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
30610,
5237,
33411,
366,
23739,
1,
796,
705,
1485,
1906,
1065,
6
] |
Find All_Games and Team_ID , and visualize them by a bar chart, and could you display by the x-axis in desc? | SELECT All_Games, Team_ID FROM basketball_match ORDER BY All_Games DESC | [
16742,
1439,
62,
24474,
290,
4816,
62,
2389,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
3359,
416,
262,
2124,
12,
22704,
287,
1715,
30,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
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
] | [
16742,
1439,
62,
24474,
290,
4816,
62,
2389,
837,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
714,
345,
3359,
416,
262,
2124,
12,
22704,
287,
1715,
30,
46506,
1439,
62,
24474,
11,
4816,
62,
2389,
16034,
9669,
62,
15699,
38678,
1... |
how many days has passed since patient 004-79017 first received a lab test for bedside glucose in their current hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', lab.labresulttime)) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-79017' AND patient.hospi... | [
4919,
867,
1528,
468,
3804,
1201,
5827,
3571,
19,
12,
3720,
29326,
717,
2722,
257,
2248,
1332,
329,
3996,
1589,
15701,
287,
511,
1459,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
3469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
3804,
1201,
5827,
3571,
19,
12,
3720,
29326,
717,
2722,
257,
2248,
1332,
329,
3996,
1589,
15701,
287,
511,
1459,
4436,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
3469... |
When did the season premiere that had a viewer rank of #6? | SELECT "Season premiere" FROM table_61169 WHERE "Viewer rank (#)" = '#6' | [
2215,
750,
262,
1622,
19245,
326,
550,
257,
19091,
4279,
286,
1303,
21,
30,
46506,
366,
18960,
19245,
1,
16034,
3084,
62,
21,
1157,
3388,
33411,
366,
7680,
263,
4279,
17426,
16725,
796,
705,
2,
21,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
262,
1622,
19245,
326,
550,
257,
19091,
4279,
286,
1303,
21,
30,
46506,
366,
18960,
19245,
1,
16034,
3084,
62,
21,
1157,
3388,
33411,
366,
7680,
263,
4279,
17426,
16725,
796,
705,
2,
21,
6
] |
Comments posted after your comment. | SELECT c.UserId AS "user_link", c.Id AS "comment_link", p.Id AS "post_link" FROM Posts AS p, Comments AS c INNER JOIN Comments AS b ON c.PostId = b.PostId WHERE b.UserId = '##UserId##' AND c.UserId != '##UserId##' AND c.CreationDate > b.CreationDate AND p.Id = c.PostId ORDER BY c.CreationDate DESC | [
23903,
4481,
706,
534,
2912,
13,
46506,
269,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
269,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
279,
11,
19502,
7054,
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... | [
23903,
4481,
706,
534,
2912,
13,
46506,
269,
13,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
269,
13,
7390,
7054,
366,
23893,
62,
8726,
1600,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
7054,
279,
11,
19502,
7054,
2... |
How many names have a country of civ? | SELECT COUNT("Name") FROM table_25312 WHERE "Country" = 'CIV' | [
2437,
867,
3891,
423,
257,
1499,
286,
36317,
30,
46506,
327,
28270,
7203,
5376,
4943,
16034,
3084,
62,
1495,
27970,
33411,
366,
33921,
1,
796,
705,
34,
3824,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3891,
423,
257,
1499,
286,
36317,
30,
46506,
327,
28270,
7203,
5376,
4943,
16034,
3084,
62,
1495,
27970,
33411,
366,
33921,
1,
796,
705,
34,
3824,
6
] |
can i get a RENTAL CAR in DALLAS | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city, ground_service WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'DALLAS' AND ground_service.airport_code = airport.airport_code AND ground_service.transport_typ... | [
5171,
1312,
651,
257,
371,
3525,
1847,
17368,
287,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5171,
1312,
651,
257,
371,
3525,
1847,
17368,
287,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
2323,
62,
15271,
33411,
9003,
13,
958,
634,
... |
Name the most maidens when e.r. 5.11 | SELECT MAX(maidens) FROM table_15700367_4 WHERE er = "5.11" | [
5376,
262,
749,
25920,
641,
618,
304,
13,
81,
13,
642,
13,
1157,
46506,
25882,
7,
23151,
641,
8,
16034,
3084,
62,
1314,
9879,
27824,
62,
19,
33411,
1931,
796,
366,
20,
13,
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
] | [
5376,
262,
749,
25920,
641,
618,
304,
13,
81,
13,
642,
13,
1157,
46506,
25882,
7,
23151,
641,
8,
16034,
3084,
62,
1314,
9879,
27824,
62,
19,
33411,
1931,
796,
366,
20,
13,
1157,
1
] |
What is the Format for Branding of 1290 wkbk w281au 104.1? | SELECT format FROM table_10333757_1 WHERE branding = "1290 WKBK W281AU 104.1" | [
2061,
318,
262,
18980,
329,
13512,
278,
286,
1105,
3829,
266,
32812,
74,
266,
30368,
559,
14436,
13,
16,
30,
46506,
5794,
16034,
3084,
62,
940,
20370,
39251,
62,
16,
33411,
24150,
796,
366,
1065,
3829,
370,
22764,
42,
370,
30368,
2683... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18980,
329,
13512,
278,
286,
1105,
3829,
266,
32812,
74,
266,
30368,
559,
14436,
13,
16,
30,
46506,
5794,
16034,
3084,
62,
940,
20370,
39251,
62,
16,
33411,
24150,
796,
366,
1065,
3829,
370,
22764,
42,
370,
30368,
2683... |
how many patients are with married marital status diagnosed for subarachnoid hemorrhage following injury without mention of open intracranial wound with loss of consciousness of unspecified duration? | 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 = "Subarachnoid hemorrhage following injury without mention of open intracranial wound, with loss of consciousness of unspe... | [
4919,
867,
3871,
389,
351,
6405,
29555,
3722,
14641,
329,
850,
283,
620,
77,
1868,
42203,
496,
1708,
5095,
1231,
3068,
286,
1280,
9913,
330,
2596,
498,
11699,
351,
2994,
286,
10510,
286,
29547,
9478,
30,
46506,
327,
28270,
7,
35,
8808... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
351,
6405,
29555,
3722,
14641,
329,
850,
283,
620,
77,
1868,
42203,
496,
1708,
5095,
1231,
3068,
286,
1280,
9913,
330,
2596,
498,
11699,
351,
2994,
286,
10510,
286,
29547,
9478,
30,
46506,
327,
28270,
7,
35,
8808... |
how did patient 25723 last get admitted until 3 years ago to the hospital? | SELECT admissions.admission_type FROM admissions WHERE admissions.subject_id = 25723 AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-3 year') ORDER BY admissions.admittime DESC LIMIT 1 | [
4919,
750,
5827,
36100,
1954,
938,
651,
6848,
1566,
513,
812,
2084,
284,
262,
4436,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
36100,
1954,
5357,
360,
1404,
2767,
12789,
7,
324,
848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
36100,
1954,
938,
651,
6848,
1566,
513,
812,
2084,
284,
262,
4436,
30,
46506,
25349,
13,
324,
3411,
62,
4906,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
36100,
1954,
5357,
360,
1404,
2767,
12789,
7,
324,
848... |
When the driver is Juan Manuel Fangio and laps is less than 39, what is the highest grid? | SELECT MAX("Grid") FROM table_78518 WHERE "Laps" < '39' AND "Driver" = 'juan manuel fangio' | [
2215,
262,
4639,
318,
16852,
25995,
24468,
952,
290,
24590,
318,
1342,
621,
5014,
11,
644,
318,
262,
4511,
10706,
30,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
41172,
1507,
33411,
366,
43,
1686,
1,
1279,
705,
2670,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4639,
318,
16852,
25995,
24468,
952,
290,
24590,
318,
1342,
621,
5014,
11,
644,
318,
262,
4511,
10706,
30,
46506,
25882,
7203,
41339,
4943,
16034,
3084,
62,
41172,
1507,
33411,
366,
43,
1686,
1,
1279,
705,
2670,
6,
5357,
36... |
how many hours had passed since the last time patient 99883 was prescribed clotrimazole on the current hospital encounter? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99883 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'clotrimazole' ORDER BY prescriptions.startda... | [
4919,
867,
2250,
550,
3804,
1201,
262,
938,
640,
5827,
7388,
49287,
373,
14798,
5148,
3036,
1031,
2305,
319,
262,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
550,
3804,
1201,
262,
938,
640,
5827,
7388,
49287,
373,
14798,
5148,
3036,
1031,
2305,
319,
262,
1459,
4436,
8791,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
... |
What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971? | SELECT notes FROM table_name_82 WHERE vehicle = "scout x-4" AND ceased_operation = "june 1971" | [
2061,
389,
262,
4710,
5115,
262,
24490,
2124,
12,
19,
4038,
543,
24368,
4905,
287,
2795,
16382,
30,
46506,
4710,
16034,
3084,
62,
3672,
62,
6469,
33411,
4038,
796,
366,
1416,
448,
2124,
12,
19,
1,
5357,
24368,
62,
27184,
796,
366,
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
] | [
2061,
389,
262,
4710,
5115,
262,
24490,
2124,
12,
19,
4038,
543,
24368,
4905,
287,
2795,
16382,
30,
46506,
4710,
16034,
3084,
62,
3672,
62,
6469,
33411,
4038,
796,
366,
1416,
448,
2124,
12,
19,
1,
5357,
24368,
62,
27184,
796,
366,
7... |
What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004? | SELECT MIN("Long") FROM table_76634 WHERE "Name" = 'kass, rob' AND "Avg/g" < '-0.30000000000000004' | [
2061,
318,
262,
9016,
5882,
11,
618,
6530,
318,
40511,
11,
3851,
11,
290,
618,
33455,
14,
70,
318,
1342,
621,
532,
15,
13,
18,
8269,
24598,
19,
30,
46506,
20625,
7203,
14617,
4943,
16034,
3084,
62,
22,
2791,
2682,
33411,
366,
5376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5882,
11,
618,
6530,
318,
40511,
11,
3851,
11,
290,
618,
33455,
14,
70,
318,
1342,
621,
532,
15,
13,
18,
8269,
24598,
19,
30,
46506,
20625,
7203,
14617,
4943,
16034,
3084,
62,
22,
2791,
2682,
33411,
366,
5376,
... |
What time was the kickoff when the miami dolphins were the opponent? | SELECT "Kickoff ( ET )" FROM table_40922 WHERE "Opponent" = 'miami dolphins' | [
2061,
640,
373,
262,
40532,
618,
262,
285,
7871,
36798,
547,
262,
6125,
30,
46506,
366,
45390,
2364,
357,
12152,
1267,
1,
16034,
3084,
62,
29416,
1828,
33411,
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
] | [
2061,
640,
373,
262,
40532,
618,
262,
285,
7871,
36798,
547,
262,
6125,
30,
46506,
366,
45390,
2364,
357,
12152,
1267,
1,
16034,
3084,
62,
29416,
1828,
33411,
366,
27524,
3471,
1,
796,
705,
76,
7871,
36798,
6
] |
How many patients have a 2165-10-19 05:33:00 lab test chart time? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.charttime = "2165-10-19 05:33:00" | [
2437,
867,
3871,
423,
257,
362,
20986,
12,
940,
12,
1129,
8870,
25,
2091,
25,
405,
2248,
1332,
8262,
640,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3871,
423,
257,
362,
20986,
12,
940,
12,
1129,
8870,
25,
2091,
25,
405,
2248,
1332,
8262,
640,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
61... |
What was the 2010 population of frankfort which has a rank smaller than 14? | SELECT AVG("2010 Pop") FROM table_77294 WHERE "City" = 'frankfort' AND "Rank" < '14' | [
2061,
373,
262,
3050,
3265,
286,
14346,
3319,
543,
468,
257,
4279,
4833,
621,
1478,
30,
46506,
35224,
7203,
10333,
8099,
4943,
16034,
3084,
62,
3324,
27696,
33411,
366,
14941,
1,
796,
705,
8310,
962,
3319,
6,
5357,
366,
27520,
1,
1279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3050,
3265,
286,
14346,
3319,
543,
468,
257,
4279,
4833,
621,
1478,
30,
46506,
35224,
7203,
10333,
8099,
4943,
16034,
3084,
62,
3324,
27696,
33411,
366,
14941,
1,
796,
705,
8310,
962,
3319,
6,
5357,
366,
27520,
1,
1279... |
What was the decision when Tampa Bay was the visitor? | SELECT decision FROM table_name_14 WHERE visitor = "tampa bay" | [
2061,
373,
262,
2551,
618,
15528,
4696,
373,
262,
21493,
30,
46506,
2551,
16034,
3084,
62,
3672,
62,
1415,
33411,
21493,
796,
366,
83,
13299,
15489,
1
] | [
1,
1,
1,
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,
2551,
618,
15528,
4696,
373,
262,
21493,
30,
46506,
2551,
16034,
3084,
62,
3672,
62,
1415,
33411,
21493,
796,
366,
83,
13299,
15489,
1
] |
top 100 display names on stackoverflow. | SELECT DisplayName, COUNT(DisplayName) FROM Users GROUP BY DisplayName ORDER BY COUNT(DisplayName) DESC LIMIT 100 | [
4852,
1802,
3359,
3891,
319,
8931,
2502,
11125,
13,
46506,
16531,
5376,
11,
327,
28270,
7,
23114,
5376,
8,
16034,
18987,
44441,
11050,
16531,
5376,
38678,
11050,
327,
28270,
7,
23114,
5376,
8,
22196,
34,
27564,
2043,
1802
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4852,
1802,
3359,
3891,
319,
8931,
2502,
11125,
13,
46506,
16531,
5376,
11,
327,
28270,
7,
23114,
5376,
8,
16034,
18987,
44441,
11050,
16531,
5376,
38678,
11050,
327,
28270,
7,
23114,
5376,
8,
22196,
34,
27564,
2043,
1802
] |
Name the population of people for area being 24.35 | SELECT population__people_ FROM table_14465924_1 WHERE area__km_2__ = "24.35" | [
5376,
262,
3265,
286,
661,
329,
1989,
852,
1987,
13,
2327,
46506,
3265,
834,
15332,
62,
16034,
3084,
62,
18444,
36445,
1731,
62,
16,
33411,
1989,
834,
13276,
62,
17,
834,
796,
366,
1731,
13,
2327,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
286,
661,
329,
1989,
852,
1987,
13,
2327,
46506,
3265,
834,
15332,
62,
16034,
3084,
62,
18444,
36445,
1731,
62,
16,
33411,
1989,
834,
13276,
62,
17,
834,
796,
366,
1731,
13,
2327,
1
] |
Which junior high school has male and female genders? | SELECT junior_high_school__12_15_yrs_ FROM table_name_97 WHERE gender = "male and female" | [
13828,
13430,
1029,
1524,
468,
4257,
290,
4048,
38054,
30,
46506,
13430,
62,
8929,
62,
14347,
834,
1065,
62,
1314,
62,
48489,
62,
16034,
3084,
62,
3672,
62,
5607,
33411,
5279,
796,
366,
22606,
290,
4048,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13430,
1029,
1524,
468,
4257,
290,
4048,
38054,
30,
46506,
13430,
62,
8929,
62,
14347,
834,
1065,
62,
1314,
62,
48489,
62,
16034,
3084,
62,
3672,
62,
5607,
33411,
5279,
796,
366,
22606,
290,
4048,
1
] |
What is Runner(s)-up, when Date is 21 Jan 2007? | SELECT runner_s__up FROM table_name_47 WHERE date = "21 jan 2007" | [
2061,
318,
21529,
7,
82,
13219,
929,
11,
618,
7536,
318,
2310,
2365,
4343,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2857,
33411,
3128,
796,
366,
2481,
42897,
4343,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
21529,
7,
82,
13219,
929,
11,
618,
7536,
318,
2310,
2365,
4343,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2857,
33411,
3128,
796,
366,
2481,
42897,
4343,
1
] |
_____ and _______ both played 16 games . | SELECT "player" FROM table_204_344 WHERE "games played" = 16 | [
29343,
290,
220,
37405,
1111,
2826,
1467,
1830,
764,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
33535,
33411,
366,
19966,
2826,
1,
796,
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
] | [
29343,
290,
220,
37405,
1111,
2826,
1467,
1830,
764,
46506,
366,
7829,
1,
16034,
3084,
62,
18638,
62,
33535,
33411,
366,
19966,
2826,
1,
796,
1467
] |
what exactly does late effect, terrorism mean? | SELECT d_icd_diagnoses.long_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'late effect, terrorism' UNION SELECT d_icd_procedures.long_title FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'late effect, terrorism' | [
10919,
3446,
857,
2739,
1245,
11,
8649,
1612,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
6511,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3446,
857,
2739,
1245,
11,
8649,
1612,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
6511,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
796,
705,
176... |
What city was in 1889? | SELECT "City" FROM table_39634 WHERE "Year" = '1889' | [
2061,
1748,
373,
287,
49545,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
34107,
2682,
33411,
366,
17688,
1,
796,
705,
1507,
4531,
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
] | [
2061,
1748,
373,
287,
49545,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
34107,
2682,
33411,
366,
17688,
1,
796,
705,
1507,
4531,
6
] |
What is the average Position, when Goal Difference is '17', and when Wins is greater than 13? | SELECT AVG("Position") FROM table_12550 WHERE "Goal Difference" = '17' AND "Wins" > '13' | [
2061,
318,
262,
2811,
23158,
11,
618,
25376,
43795,
318,
705,
1558,
3256,
290,
618,
24423,
318,
3744,
621,
1511,
30,
46506,
35224,
7203,
26545,
4943,
16034,
3084,
62,
11623,
1120,
33411,
366,
49045,
43795,
1,
796,
705,
1558,
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
] | [
2061,
318,
262,
2811,
23158,
11,
618,
25376,
43795,
318,
705,
1558,
3256,
290,
618,
24423,
318,
3744,
621,
1511,
30,
46506,
35224,
7203,
26545,
4943,
16034,
3084,
62,
11623,
1120,
33411,
366,
49045,
43795,
1,
796,
705,
1558,
6,
5357,
... |
What was the Opponent in the game with a Score of 102-125? | SELECT "Opponent" FROM table_45627 WHERE "Score" = '102-125' | [
2061,
373,
262,
9385,
3471,
287,
262,
983,
351,
257,
15178,
286,
15143,
12,
11623,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
29228,
1983,
33411,
366,
26595,
1,
796,
705,
15377,
12,
11623,
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,
9385,
3471,
287,
262,
983,
351,
257,
15178,
286,
15143,
12,
11623,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
29228,
1983,
33411,
366,
26595,
1,
796,
705,
15377,
12,
11623,
6
] |
Show the position of players and the corresponding number of players with a bar chart, and order names in desc order. | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY Position DESC | [
15307,
262,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
351,
257,
2318,
8262,
11,
290,
1502,
3891,
287,
1715,
1502,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158,
38678,
11050,
23158,
2219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
1938,
290,
262,
11188,
1271,
286,
1938,
351,
257,
2318,
8262,
11,
290,
1502,
3891,
287,
1715,
1502,
13,
46506,
23158,
11,
327,
28270,
7,
28104,
16034,
2872,
62,
6230,
44441,
11050,
23158,
38678,
11050,
23158,
2219... |
fc schalke 04 and what other club beat them ? | SELECT "club" FROM table_204_985 WHERE "club" <> 'fc schalke 04' AND "aggregate" < "aggregate" | [
16072,
5513,
282,
365,
8702,
290,
644,
584,
3430,
4405,
606,
5633,
46506,
366,
18664,
1,
16034,
3084,
62,
18638,
62,
42250,
33411,
366,
18664,
1,
1279,
29,
705,
16072,
5513,
282,
365,
8702,
6,
5357,
366,
9460,
49373,
1,
1279,
366,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16072,
5513,
282,
365,
8702,
290,
644,
584,
3430,
4405,
606,
5633,
46506,
366,
18664,
1,
16034,
3084,
62,
18638,
62,
42250,
33411,
366,
18664,
1,
1279,
29,
705,
16072,
5513,
282,
365,
8702,
6,
5357,
366,
9460,
49373,
1,
1279,
366,
9... |
how many male patients tested for magnessium urine in lab? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "M" AND lab.label = "Magnesium, Urine" | [
4919,
867,
4257,
3871,
6789,
329,
2153,
1108,
1505,
18922,
287,
2248,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
4257,
3871,
6789,
329,
2153,
1108,
1505,
18922,
287,
2248,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796... |
Do any upper-level classes exist that have projects but no exams ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND course.has_projects = 'Y' AND program_course.category LIKE 'ULCS' | [
5211,
597,
6727,
12,
5715,
6097,
2152,
326,
423,
4493,
475,
645,
26420,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
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... | [
5211,
597,
6727,
12,
5715,
6097,
2152,
326,
423,
4493,
475,
645,
26420,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1430,
62,
17319,
6177,
... |
With a Record of 9-24, what was the Score? | SELECT "Score" FROM table_54493 WHERE "Record" = '9-24' | [
3152,
257,
13266,
286,
860,
12,
1731,
11,
644,
373,
262,
15178,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
47576,
6052,
33411,
366,
23739,
1,
796,
705,
24,
12,
1731,
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
] | [
3152,
257,
13266,
286,
860,
12,
1731,
11,
644,
373,
262,
15178,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
47576,
6052,
33411,
366,
23739,
1,
796,
705,
24,
12,
1731,
6
] |
How many people live in the area of Sorell according to the Census of 2011? | SELECT "Population 2011 census" FROM table_911 WHERE "Local Government Area" = 'Sorell' | [
2437,
867,
661,
2107,
287,
262,
1989,
286,
311,
382,
297,
1864,
284,
262,
20962,
286,
2813,
30,
46506,
366,
45251,
2813,
21649,
1,
16034,
3084,
62,
35549,
33411,
366,
14565,
5070,
9498,
1,
796,
705,
50,
382,
297,
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
] | [
2437,
867,
661,
2107,
287,
262,
1989,
286,
311,
382,
297,
1864,
284,
262,
20962,
286,
2813,
30,
46506,
366,
45251,
2813,
21649,
1,
16034,
3084,
62,
35549,
33411,
366,
14565,
5070,
9498,
1,
796,
705,
50,
382,
297,
6
] |
What are the weapons used by guardians for the direction East? | SELECT "Weapon" FROM table_15903 WHERE "Direction" = 'East' | [
2061,
389,
262,
3777,
973,
416,
32769,
329,
262,
4571,
3687,
30,
46506,
366,
27632,
1,
16034,
3084,
62,
19707,
3070,
33411,
366,
35,
4154,
1,
796,
705,
25234,
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,
389,
262,
3777,
973,
416,
32769,
329,
262,
4571,
3687,
30,
46506,
366,
27632,
1,
16034,
3084,
62,
19707,
3070,
33411,
366,
35,
4154,
1,
796,
705,
25234,
6
] |
What was the score for the South American Championship dated December 13, 1925? | SELECT "Result" FROM table_40787 WHERE "Competition" = 'south american championship' AND "Date" = 'december 13, 1925' | [
2061,
373,
262,
4776,
329,
262,
2520,
1605,
10749,
14567,
3426,
1511,
11,
36864,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1821,
41019,
33411,
366,
7293,
15620,
1,
796,
705,
35782,
45630,
272,
12184,
6,
5357,
366,
10430,
1,
796,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
329,
262,
2520,
1605,
10749,
14567,
3426,
1511,
11,
36864,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1821,
41019,
33411,
366,
7293,
15620,
1,
796,
705,
35782,
45630,
272,
12184,
6,
5357,
366,
10430,
1,
796,
705,... |
With original artist of Tina Turner, what is the week number? | SELECT "Week #" FROM table_24430 WHERE "Original artist" = 'Tina Turner' | [
3152,
2656,
6802,
286,
35903,
15406,
11,
644,
318,
262,
1285,
1271,
30,
46506,
366,
20916,
1303,
1,
16034,
3084,
62,
25707,
1270,
33411,
366,
20556,
6802,
1,
796,
705,
51,
1437,
15406,
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
] | [
3152,
2656,
6802,
286,
35903,
15406,
11,
644,
318,
262,
1285,
1271,
30,
46506,
366,
20916,
1303,
1,
16034,
3084,
62,
25707,
1270,
33411,
366,
20556,
6802,
1,
796,
705,
51,
1437,
15406,
6
] |
Name the total number of date for round 26 | SELECT COUNT("Date") FROM table_24230 WHERE "Round" = '26' | [
5376,
262,
2472,
1271,
286,
3128,
329,
2835,
2608,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
1731,
19214,
33411,
366,
22685,
1,
796,
705,
2075,
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
] | [
5376,
262,
2472,
1271,
286,
3128,
329,
2835,
2608,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
1731,
19214,
33411,
366,
22685,
1,
796,
705,
2075,
6
] |
Name the least production code for bryan moore & chris peterson | SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson" | [
5376,
262,
1551,
3227,
2438,
329,
275,
29038,
6941,
382,
1222,
442,
2442,
4273,
882,
46506,
20625,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
26050,
3459,
26200,
62,
16,
33411,
3194,
62,
1525,
796,
366,
33,
29038,
8877,
1222,
5180,
18914... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1551,
3227,
2438,
329,
275,
29038,
6941,
382,
1222,
442,
2442,
4273,
882,
46506,
20625,
7,
25493,
62,
8189,
8,
16034,
3084,
62,
26050,
3459,
26200,
62,
16,
33411,
3194,
62,
1525,
796,
366,
33,
29038,
8877,
1222,
5180,
18914... |
What is bedford's mascot? | SELECT "Mascot" FROM table_75006 WHERE "Location" = 'bedford' | [
2061,
318,
3996,
3841,
338,
37358,
30,
46506,
366,
44,
3372,
313,
1,
16034,
3084,
62,
2425,
28041,
33411,
366,
14749,
1,
796,
705,
3077,
3841,
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,
3996,
3841,
338,
37358,
30,
46506,
366,
44,
3372,
313,
1,
16034,
3084,
62,
2425,
28041,
33411,
366,
14749,
1,
796,
705,
3077,
3841,
6
] |
What was the result of the game played at Jeppesen Stadium? | SELECT "Result" FROM table_58932 WHERE "Game site" = 'jeppesen stadium' | [
2061,
373,
262,
1255,
286,
262,
983,
2826,
379,
3852,
381,
274,
268,
10499,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
44169,
2624,
33411,
366,
8777,
2524,
1,
796,
705,
18015,
381,
274,
268,
10308,
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,
373,
262,
1255,
286,
262,
983,
2826,
379,
3852,
381,
274,
268,
10499,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
44169,
2624,
33411,
366,
8777,
2524,
1,
796,
705,
18015,
381,
274,
268,
10308,
6
] |
how many patients whose discharge location is disc-tran cancer/chldrn h and procedure short title is contrast arteriogram-leg? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.short_title = "Contrast arteriogram-leg" | [
4919,
867,
3871,
3025,
17655,
4067,
318,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
290,
8771,
1790,
3670,
318,
6273,
30675,
72,
21857,
12,
1455,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
17655,
4067,
318,
1221,
12,
2213,
272,
4890,
14,
354,
335,
35906,
289,
290,
8771,
1790,
3670,
318,
6273,
30675,
72,
21857,
12,
1455,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8... |
Which driver has less than 37 wins and at 14.12%? | SELECT AVG(entries) FROM table_name_64 WHERE wins < 37 AND percentage = "14.12%" | [
13828,
4639,
468,
1342,
621,
5214,
7864,
290,
379,
1478,
13,
1065,
4,
30,
46506,
35224,
7,
298,
1678,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
7864,
1279,
5214,
5357,
5873,
796,
366,
1415,
13,
1065,
39658
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4639,
468,
1342,
621,
5214,
7864,
290,
379,
1478,
13,
1065,
4,
30,
46506,
35224,
7,
298,
1678,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
7864,
1279,
5214,
5357,
5873,
796,
366,
1415,
13,
1065,
39658
] |
How many different people had a General Classification on Stage 5? | SELECT COUNT("General classification") FROM table_3802 WHERE "Stage" = '5' | [
2437,
867,
1180,
661,
550,
257,
3611,
40984,
319,
15371,
642,
30,
46506,
327,
28270,
7203,
12218,
17923,
4943,
16034,
3084,
62,
23734,
17,
33411,
366,
29391,
1,
796,
705,
20,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
1180,
661,
550,
257,
3611,
40984,
319,
15371,
642,
30,
46506,
327,
28270,
7203,
12218,
17923,
4943,
16034,
3084,
62,
23734,
17,
33411,
366,
29391,
1,
796,
705,
20,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.