instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
how many hours have passed since the last time that patient 1902 has had an d5ns intake on the current intensive care unit visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1902) AND icustays.outtime IS NULL) ... | [
4919,
867,
2250,
423,
3804,
1201,
262,
938,
640,
326,
5827,
45611,
468,
550,
281,
288,
20,
5907,
10337,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
423,
3804,
1201,
262,
938,
640,
326,
5827,
45611,
468,
550,
281,
288,
20,
5907,
10337,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694... |
give me the number of white ethnic background patients who were born before 2060. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.dob_year < "2060" | [
26535,
502,
262,
1271,
286,
2330,
9450,
4469,
3871,
508,
547,
4642,
878,
1160,
1899,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
2330,
9450,
4469,
3871,
508,
547,
4642,
878,
1160,
1899,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
1,
... |
what is the number of patients who received a antiemetic - serotonin antagonist procedure within 2 months after having received a neurosurgery consultation procedure until 4 years ago? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'neurosurgery consultation' AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-4 year')) AS ... | [
10919,
318,
262,
1271,
286,
3871,
508,
2722,
257,
3098,
368,
5139,
532,
32236,
34667,
8771,
1626,
362,
1933,
706,
1719,
2722,
257,
7669,
11793,
7076,
18103,
8771,
1566,
604,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
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... | [
10919,
318,
262,
1271,
286,
3871,
508,
2722,
257,
3098,
368,
5139,
532,
32236,
34667,
8771,
1626,
362,
1933,
706,
1719,
2722,
257,
7669,
11793,
7076,
18103,
8771,
1566,
604,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
2... |
what is the number of patients whose diagnoses short title is long-term use of insulin and lab test name is urobilinogen? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Long-term use of insulin" AND lab.label = "Urobilinogen" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
890,
12,
4354,
779,
286,
14588,
290,
2248,
1332,
1438,
318,
334,
22609,
346,
259,
6644,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
890,
12,
4354,
779,
286,
14588,
290,
2248,
1332,
1438,
318,
334,
22609,
346,
259,
6644,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16... |
ASP.NET MVC, Django en Laravel. | 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 ... | [
1921,
47,
13,
12884,
337,
15922,
11,
37770,
551,
29849,
626,
13,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1921,
47,
13,
12884,
337,
15922,
11,
37770,
551,
29849,
626,
13,
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... |
Which class has an identifier of CBUA-FM? | SELECT "Class" FROM table_70111 WHERE "Identifier" = 'cbua-fm' | [
13828,
1398,
468,
281,
27421,
286,
10078,
34970,
12,
23264,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
41583,
1157,
33411,
366,
33234,
7483,
1,
796,
705,
21101,
6413,
12,
38353,
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
] | [
13828,
1398,
468,
281,
27421,
286,
10078,
34970,
12,
23264,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
41583,
1157,
33411,
366,
33234,
7483,
1,
796,
705,
21101,
6413,
12,
38353,
6
] |
How many people scored the most points during the game on December 10? | SELECT COUNT("High points") FROM table_29947 WHERE "Date" = 'December 10' | [
2437,
867,
661,
7781,
262,
749,
2173,
1141,
262,
983,
319,
3426,
838,
30,
46506,
327,
28270,
7203,
11922,
2173,
4943,
16034,
3084,
62,
22579,
2857,
33411,
366,
10430,
1,
796,
705,
20588,
838,
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
] | [
2437,
867,
661,
7781,
262,
749,
2173,
1141,
262,
983,
319,
3426,
838,
30,
46506,
327,
28270,
7203,
11922,
2173,
4943,
16034,
3084,
62,
22579,
2857,
33411,
366,
10430,
1,
796,
705,
20588,
838,
6
] |
Who was the champion when the attendance was 70,000? | SELECT champion FROM table_name_43 WHERE attendance = "70,000" | [
8241,
373,
262,
8783,
618,
262,
14858,
373,
4317,
11,
830,
30,
46506,
8783,
16034,
3084,
62,
3672,
62,
3559,
33411,
14858,
796,
366,
2154,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
8783,
618,
262,
14858,
373,
4317,
11,
830,
30,
46506,
8783,
16034,
3084,
62,
3672,
62,
3559,
33411,
14858,
796,
366,
2154,
11,
830,
1
] |
have known allergies or history of hypersensitivity to insulin lispro | SELECT * FROM table_train_174 WHERE allergy_to_insulin_lispro = 1 | [
14150,
1900,
36665,
393,
2106,
286,
45086,
40545,
284,
14588,
300,
271,
1676,
46506,
1635,
16034,
3084,
62,
27432,
62,
22985,
33411,
36197,
62,
1462,
62,
1040,
11599,
62,
27999,
1676,
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,
1,
1,
1,
1,
1,
1
] | [
14150,
1900,
36665,
393,
2106,
286,
45086,
40545,
284,
14588,
300,
271,
1676,
46506,
1635,
16034,
3084,
62,
27432,
62,
22985,
33411,
36197,
62,
1462,
62,
1040,
11599,
62,
27999,
1676,
796,
352
] |
Give me a histogram for what are the name and level of catalog structure with level number between 5 and 10, list by the x axis in desc. | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_name DESC | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
838,
11,
1351,
416,
262,
2124,
16488,
287,
1715,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
62,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
502,
257,
1554,
21857,
329,
644,
389,
262,
1438,
290,
1241,
286,
18388,
4645,
351,
1241,
1271,
1022,
642,
290,
838,
11,
1351,
416,
262,
2124,
16488,
287,
1715,
13,
46506,
18388,
62,
5715,
62,
3672,
11,
18388,
62,
5715,
62,
17... |
What team name belongs to Seaford? | SELECT "Team" FROM table_14904 WHERE "School" = 'seaford' | [
2061,
1074,
1438,
14448,
284,
49967,
585,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
19442,
3023,
33411,
366,
26130,
1,
796,
705,
325,
1878,
585,
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,
1074,
1438,
14448,
284,
49967,
585,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
19442,
3023,
33411,
366,
26130,
1,
796,
705,
325,
1878,
585,
6
] |
Name the number of rank for season 6 | SELECT COUNT("Rank") FROM table_24192 WHERE "Season" = '6' | [
5376,
262,
1271,
286,
4279,
329,
1622,
718,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
1731,
17477,
33411,
366,
18960,
1,
796,
705,
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
] | [
5376,
262,
1271,
286,
4279,
329,
1622,
718,
46506,
327,
28270,
7203,
27520,
4943,
16034,
3084,
62,
1731,
17477,
33411,
366,
18960,
1,
796,
705,
21,
6
] |
users with no questions or answers. Users with no questions | SELECT u.Id AS "user_link", COUNT(p.OwnerUserId) AS "total posts", u.UpVotes, u.DownVotes FROM Users AS u LEFT JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE u.UpVotes + u.DownVotes > 0 GROUP BY u.Id, u.UpVotes, u.DownVotes ORDER BY COUNT(p.OwnerUserId), u.UpVotes DESC | [
18417,
351,
645,
2683,
393,
7429,
13,
18987,
351,
645,
2683,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
79,
13,
42419,
12982,
7390,
8,
7054,
366,
23350,
6851,
1600,
334,
13,
4933,
53,
6421,
11,
334,
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... | [
18417,
351,
645,
2683,
393,
7429,
13,
18987,
351,
645,
2683,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
79,
13,
42419,
12982,
7390,
8,
7054,
366,
23350,
6851,
1600,
334,
13,
4933,
53,
6421,
11,
334,
13,
... |
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million? | SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.6 | [
2061,
318,
262,
2472,
2010,
7630,
618,
12042,
583,
2648,
318,
2681,
13,
19,
11,
290,
7630,
14,
22462,
307,
1640,
1687,
373,
4833,
621,
30483,
13,
21,
1510,
30,
46506,
35683,
7,
3262,
62,
9183,
834,
8,
7054,
4248,
76,
62,
16034,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2010,
7630,
618,
12042,
583,
2648,
318,
2681,
13,
19,
11,
290,
7630,
14,
22462,
307,
1640,
1687,
373,
4833,
621,
30483,
13,
21,
1510,
30,
46506,
35683,
7,
3262,
62,
9183,
834,
8,
7054,
4248,
76,
62,
16034,
30... |
Questions with close votes by specific tag. | SELECT ROW_NUMBER() OVER (ORDER BY p.Id), p.Id AS "post_link", p.Tags FROM Posts AS p INNER JOIN Votes AS v ON p.Id = v.PostId INNER JOIN PostTags AS pt ON p.Id = pt.PostId INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE v.VoteTypeId = 6 AND p.ClosedDate IS NULL AND t.TagName = '##Tag:string?tagname##' | [
35741,
351,
1969,
5690,
416,
2176,
7621,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
279,
13,
7390,
828,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
36142,
16034,
12043,
7054,
279,
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... | [
35741,
351,
1969,
5690,
416,
2176,
7621,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
279,
13,
7390,
828,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
13,
36142,
16034,
12043,
7054,
279,
3268,
... |
Return the title of the film with the highest high estimate? | SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.film_id = T2.film_id ORDER BY high_estimate DESC LIMIT 1 | [
13615,
262,
3670,
286,
262,
2646,
351,
262,
4511,
1029,
8636,
30,
46506,
256,
16,
13,
7839,
16034,
2646,
7054,
309,
16,
32357,
1268,
2646,
62,
10728,
62,
395,
18991,
7054,
309,
17,
6177,
309,
16,
13,
26240,
62,
312,
796,
309,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
3670,
286,
262,
2646,
351,
262,
4511,
1029,
8636,
30,
46506,
256,
16,
13,
7839,
16034,
2646,
7054,
309,
16,
32357,
1268,
2646,
62,
10728,
62,
395,
18991,
7054,
309,
17,
6177,
309,
16,
13,
26240,
62,
312,
796,
309,
17,
... |
what is the to par when the score is 69-70-72-72=283? | SELECT "To par" FROM table_9170 WHERE "Score" = '69-70-72-72=283' | [
10919,
318,
262,
284,
1582,
618,
262,
4776,
318,
8644,
12,
2154,
12,
4761,
12,
4761,
28,
30290,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
17279,
33411,
366,
26595,
1,
796,
705,
3388,
12,
2154,
12,
4761,
12,
4761,
28,
302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
1582,
618,
262,
4776,
318,
8644,
12,
2154,
12,
4761,
12,
4761,
28,
30290,
30,
46506,
366,
2514,
1582,
1,
16034,
3084,
62,
24,
17279,
33411,
366,
26595,
1,
796,
705,
3388,
12,
2154,
12,
4761,
12,
4761,
28,
302... |
What party is Charles Van Wyck part of? | SELECT "Party" FROM table_5602 WHERE "Incumbent" = 'charles van wyck' | [
2061,
2151,
318,
7516,
6656,
12958,
694,
636,
286,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
20,
31418,
33411,
366,
25517,
2178,
298,
1,
796,
705,
10641,
829,
5719,
266,
88,
694,
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,
2151,
318,
7516,
6656,
12958,
694,
636,
286,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
20,
31418,
33411,
366,
25517,
2178,
298,
1,
796,
705,
10641,
829,
5719,
266,
88,
694,
6
] |
How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso? | SELECT laps FROM table_name_7 WHERE constructor = "renault" AND driver = "fernando alonso" | [
2437,
867,
24590,
547,
612,
618,
262,
23772,
373,
44083,
11,
290,
618,
262,
12434,
373,
31063,
36345,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
22,
33411,
23772,
796,
366,
918,
1721,
1,
5357,
4639,
796,
366,
69,
13023,
78,
435,
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
] | [
2437,
867,
24590,
547,
612,
618,
262,
23772,
373,
44083,
11,
290,
618,
262,
12434,
373,
31063,
36345,
30,
46506,
24590,
16034,
3084,
62,
3672,
62,
22,
33411,
23772,
796,
366,
918,
1721,
1,
5357,
4639,
796,
366,
69,
13023,
78,
435,
2... |
Microservices trend (# 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 ... | [
13031,
30416,
5182,
17426,
286,
2683,
583,
1227,
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,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13031,
30416,
5182,
17426,
286,
2683,
583,
1227,
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,
3... |
What is the production code for the episode written by Drew Z. Greenberg? | SELECT "Production code" FROM table_72723 WHERE "Written by" = 'Drew Z. Greenberg' | [
2061,
318,
262,
3227,
2438,
329,
262,
4471,
3194,
416,
18624,
1168,
13,
46702,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
47760,
1954,
33411,
366,
25354,
416,
1,
796,
705,
35,
1809,
1168,
13,
46702,
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,
318,
262,
3227,
2438,
329,
262,
4471,
3194,
416,
18624,
1168,
13,
46702,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
47760,
1954,
33411,
366,
25354,
416,
1,
796,
705,
35,
1809,
1168,
13,
46702,
6
] |
What is Director, when Primary Language(s) is 'Azerbaijani', and when Original Title is 'Buta'? | SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta" | [
2061,
318,
5890,
11,
618,
21087,
15417,
7,
82,
8,
318,
705,
32,
9107,
65,
1872,
73,
3216,
3256,
290,
618,
13745,
11851,
318,
705,
1537,
64,
30960,
46506,
3437,
16034,
3084,
62,
3672,
62,
3829,
33411,
4165,
62,
16129,
62,
82,
62,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
5890,
11,
618,
21087,
15417,
7,
82,
8,
318,
705,
32,
9107,
65,
1872,
73,
3216,
3256,
290,
618,
13745,
11851,
318,
705,
1537,
64,
30960,
46506,
3437,
16034,
3084,
62,
3672,
62,
3829,
33411,
4165,
62,
16129,
62,
82,
62,
7... |
Which Capacity has a City of london, and a Stadium of queen's club? | SELECT AVG("Capacity") FROM table_36014 WHERE "City" = 'london' AND "Stadium" = 'queen''s club' | [
13828,
29765,
468,
257,
2254,
286,
300,
3391,
11,
290,
257,
10499,
286,
16599,
338,
3430,
30,
46506,
35224,
7203,
15610,
4355,
4943,
16034,
3084,
62,
2623,
28645,
33411,
366,
14941,
1,
796,
705,
75,
3391,
6,
5357,
366,
1273,
6271,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29765,
468,
257,
2254,
286,
300,
3391,
11,
290,
257,
10499,
286,
16599,
338,
3430,
30,
46506,
35224,
7203,
15610,
4355,
4943,
16034,
3084,
62,
2623,
28645,
33411,
366,
14941,
1,
796,
705,
75,
3391,
6,
5357,
366,
1273,
6271,
1,
... |
was patient 10855 on any ultracal today? | SELECT COUNT(*) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10855)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'ultracal... | [
9776,
5827,
15495,
2816,
319,
597,
23212,
330,
282,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
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,
1,
1... | [
9776,
5827,
15495,
2816,
319,
597,
23212,
330,
282,
1909,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
... |
Waht is the Country of the play by Author Aristophanes? | SELECT country FROM table_name_25 WHERE author = "aristophanes" | [
54,
993,
83,
318,
262,
12946,
286,
262,
711,
416,
6434,
23203,
2522,
7305,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1495,
33411,
1772,
796,
366,
34566,
2522,
7305,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
54,
993,
83,
318,
262,
12946,
286,
262,
711,
416,
6434,
23203,
2522,
7305,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1495,
33411,
1772,
796,
366,
34566,
2522,
7305,
1
] |
What is the Score of the competition on October 25? | SELECT "Score" FROM table_12817 WHERE "Date" = 'october 25' | [
2061,
318,
262,
15178,
286,
262,
5449,
319,
3267,
1679,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
12762,
1558,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1679,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15178,
286,
262,
5449,
319,
3267,
1679,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
12762,
1558,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
1679,
6
] |
What status has 10 as the population? | SELECT status FROM table_name_10 WHERE population = 10 | [
2061,
3722,
468,
838,
355,
262,
3265,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
940,
33411,
3265,
796,
838
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3722,
468,
838,
355,
262,
3265,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
940,
33411,
3265,
796,
838
] |
what is until 04/2105 maximum albumin, body fluid value of patient 31300? | SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31300) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'albumin, body fluid') AND STRFTIME('%y-%m', labevents.charttime) <= '2105-0... | [
10919,
318,
1566,
8702,
14,
17,
13348,
5415,
5062,
259,
11,
1767,
11711,
1988,
286,
5827,
35897,
405,
30,
46506,
25882,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1566,
8702,
14,
17,
13348,
5415,
5062,
259,
11,
1767,
11711,
1988,
286,
5827,
35897,
405,
30,
46506,
25882,
7,
23912,
31534,
13,
2100,
84,
44709,
8,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357... |
What class is assigned to frequencies larger than 89.3 with an ERP W of 250? | SELECT class FROM table_name_60 WHERE frequency_mhz > 89.3 AND erp_w = 250 | [
2061,
1398,
318,
8686,
284,
19998,
4025,
621,
9919,
13,
18,
351,
281,
13793,
47,
370,
286,
8646,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
1899,
33411,
8373,
62,
76,
32179,
1875,
9919,
13,
18,
5357,
1931,
79,
62,
86,
796,
8646
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1398,
318,
8686,
284,
19998,
4025,
621,
9919,
13,
18,
351,
281,
13793,
47,
370,
286,
8646,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
1899,
33411,
8373,
62,
76,
32179,
1875,
9919,
13,
18,
5357,
1931,
79,
62,
86,
796,
8646
] |
What was their position when the score of B was less than 9.05, a total was 15.275, and A Score larger than 6.4? | SELECT AVG(position) FROM table_name_47 WHERE b_score < 9.05 AND total = 15.275 AND a_score > 6.4 | [
2061,
373,
511,
2292,
618,
262,
4776,
286,
347,
373,
1342,
621,
860,
13,
2713,
11,
257,
2472,
373,
1315,
13,
23195,
11,
290,
317,
15178,
4025,
621,
718,
13,
19,
30,
46506,
35224,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
373,
511,
2292,
618,
262,
4776,
286,
347,
373,
1342,
621,
860,
13,
2713,
11,
257,
2472,
373,
1315,
13,
23195,
11,
290,
317,
15178,
4025,
621,
718,
13,
19,
30,
46506,
35224,
7,
9150,
8,
16034,
3084,
62,
3672,
62,
2857,
33411,... |
find a flight from WASHINGTON to SAN FRANCISCO on tuesday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 22 AND date_day.month_number = 3... | [
19796,
257,
5474,
422,
370,
19436,
284,
37376,
8782,
20940,
1797,
8220,
319,
256,
3322,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
257,
5474,
422,
370,
19436,
284,
37376,
8782,
20940,
1797,
8220,
319,
256,
3322,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... |
which driver has the least amount of points ? | SELECT "driver" FROM table_203_76 ORDER BY "points" LIMIT 1 | [
4758,
4639,
468,
262,
1551,
2033,
286,
2173,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
22416,
62,
4304,
38678,
11050,
366,
13033,
1,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4758,
4639,
468,
262,
1551,
2033,
286,
2173,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
22416,
62,
4304,
38678,
11050,
366,
13033,
1,
27564,
2043,
352
] |
Find All_Home and School_ID , and group by attribute ACC_Home, and visualize them by a bar chart, I want to order from low to high by the School_ID. | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY School_ID | [
16742,
1439,
62,
16060,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1502,
422,
1877,
284,
1029,
416,
262,
3961,
62,
2389,
13,
46506,
1439,
62,
1606... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16060,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
314,
765,
284,
1502,
422,
1877,
284,
1029,
416,
262,
3961,
62,
2389,
13,
46506,
1439,
62,
1606... |
What is the release date with par116 as the cat. #? | SELECT release_date FROM table_name_96 WHERE cat__number = "par116" | [
2061,
318,
262,
2650,
3128,
351,
1582,
18298,
355,
262,
3797,
13,
1303,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4846,
33411,
3797,
834,
17618,
796,
366,
1845,
18298,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2650,
3128,
351,
1582,
18298,
355,
262,
3797,
13,
1303,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
4846,
33411,
3797,
834,
17618,
796,
366,
1845,
18298,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, show by the y-axis in descending. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(EMPLOYEE_ID) DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,... |
Is Biology and Management of Insects a class that is offered ? | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Biology and Management of Insects%' OR name LIKE '%Biology and Management of Insects%') AND department = 'EECS' | [
3792,
24698,
290,
8549,
286,
36652,
82,
257,
1398,
326,
318,
4438,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
33,
12371,
290,
8549,
286,
36652,
82,
4,
6,
6375,
1438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3792,
24698,
290,
8549,
286,
36652,
82,
257,
1398,
326,
318,
4438,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
33,
12371,
290,
8549,
286,
36652,
82,
4,
6,
6375,
1438,
... |
Which channel did Going for Gold air on? | SELECT "Original channel" FROM table_37933 WHERE "Programme" = 'going for gold' | [
13828,
6518,
750,
19219,
329,
3561,
1633,
319,
30,
46506,
366,
20556,
6518,
1,
16034,
3084,
62,
29088,
2091,
33411,
366,
15167,
1326,
1,
796,
705,
5146,
329,
3869,
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
] | [
13828,
6518,
750,
19219,
329,
3561,
1633,
319,
30,
46506,
366,
20556,
6518,
1,
16034,
3084,
62,
29088,
2091,
33411,
366,
15167,
1326,
1,
796,
705,
5146,
329,
3869,
6
] |
What was the final score when the Buffalo Bills were the visiting team? | SELECT final_score FROM table_name_94 WHERE visiting_team = "buffalo bills" | [
2061,
373,
262,
2457,
4776,
618,
262,
14905,
20209,
547,
262,
10013,
1074,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
5824,
33411,
10013,
62,
15097,
796,
366,
36873,
7335,
9024,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2457,
4776,
618,
262,
14905,
20209,
547,
262,
10013,
1074,
30,
46506,
2457,
62,
26675,
16034,
3084,
62,
3672,
62,
5824,
33411,
10013,
62,
15097,
796,
366,
36873,
7335,
9024,
1
] |
Compare the distribution of the players' gender using a bar chart, and could you display in ascending by the x axis? | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY Gender | [
41488,
262,
6082,
286,
262,
1938,
6,
5279,
1262,
257,
2318,
8262,
11,
290,
714,
345,
3359,
287,
41988,
416,
262,
2124,
16488,
30,
46506,
20247,
11,
327,
28270,
7,
41394,
8,
16034,
2137,
44441,
11050,
20247,
38678,
11050,
20247
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
41488,
262,
6082,
286,
262,
1938,
6,
5279,
1262,
257,
2318,
8262,
11,
290,
714,
345,
3359,
287,
41988,
416,
262,
2124,
16488,
30,
46506,
20247,
11,
327,
28270,
7,
41394,
8,
16034,
2137,
44441,
11050,
20247,
38678,
11050,
20247
] |
List all total poll percentages when the for percentage is 59,532 (54). | SELECT total_poll___percentage_ FROM table_1289762_1 WHERE for___percentage_ = "59,532 (54)" | [
8053,
477,
2472,
3278,
28071,
618,
262,
329,
5873,
318,
7863,
11,
20,
2624,
357,
4051,
737,
46506,
2472,
62,
30393,
17569,
25067,
496,
62,
16034,
3084,
62,
1065,
4531,
48194,
62,
16,
33411,
329,
17569,
25067,
496,
62,
796,
366,
3270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
2472,
3278,
28071,
618,
262,
329,
5873,
318,
7863,
11,
20,
2624,
357,
4051,
737,
46506,
2472,
62,
30393,
17569,
25067,
496,
62,
16034,
3084,
62,
1065,
4531,
48194,
62,
16,
33411,
329,
17569,
25067,
496,
62,
796,
366,
3270,
... |
Show me classes that involve parts of Plant Physiological Ecology and Collat Conseq of Crim Conv . | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Collat Conseq of Crim Conv%' OR course.description LIKE '%Collat Conseq of Crim Conv%' OR course.name LIKE '%Collat Conseq of Crim Conv%') AND (area.area LIKE '%Plant Ph... | [
15307,
502,
6097,
326,
6211,
3354,
286,
16561,
8687,
15071,
39978,
290,
7778,
265,
1482,
41068,
286,
9822,
34872,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
502,
6097,
326,
6211,
3354,
286,
16561,
8687,
15071,
39978,
290,
7778,
265,
1482,
41068,
286,
9822,
34872,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
2147... |
What is the sum of capacity of cinemas open for each year? Return a line chart. | SELECT Openning_year, SUM(Capacity) FROM cinema | [
2061,
318,
262,
2160,
286,
5339,
286,
13483,
292,
1280,
329,
1123,
614,
30,
8229,
257,
1627,
8262,
13,
46506,
4946,
768,
62,
1941,
11,
35683,
7,
15610,
4355,
8,
16034,
22041
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
5339,
286,
13483,
292,
1280,
329,
1123,
614,
30,
8229,
257,
1627,
8262,
13,
46506,
4946,
768,
62,
1941,
11,
35683,
7,
15610,
4355,
8,
16034,
22041
] |
calculate the average age of unmarried patients who were born after 2090. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "SINGLE" AND demographic.dob_year > "2090" | [
9948,
3129,
378,
262,
2811,
2479,
286,
39183,
3871,
508,
547,
4642,
706,
1160,
3829,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
16728,
13,
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,
1,
1,
1,
1,
1,
1,
1
] | [
9948,
3129,
378,
262,
2811,
2479,
286,
39183,
3871,
508,
547,
4642,
706,
1160,
3829,
13,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
16728,
13,
6... |
Just show employees' salaries by their first name in a bar chart, I want to order by the Y in desc. | SELECT FIRST_NAME, SALARY FROM employees ORDER BY SALARY DESC | [
5703,
905,
4409,
6,
17058,
416,
511,
717,
1438,
287,
257,
2318,
8262,
11,
314,
765,
284,
1502,
416,
262,
575,
287,
1715,
13,
46506,
31328,
62,
20608,
11,
42475,
13153,
16034,
4409,
38678,
11050,
42475,
13153,
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
] | [
5703,
905,
4409,
6,
17058,
416,
511,
717,
1438,
287,
257,
2318,
8262,
11,
314,
765,
284,
1502,
416,
262,
575,
287,
1715,
13,
46506,
31328,
62,
20608,
11,
42475,
13153,
16034,
4409,
38678,
11050,
42475,
13153,
22196,
34
] |
Which year did the Short Pump Town Center Mall open? | SELECT "Year opened" FROM table_57878 WHERE "Mall name" = 'short pump town center' | [
13828,
614,
750,
262,
10073,
23220,
8329,
3337,
16618,
1280,
30,
46506,
366,
17688,
4721,
1,
16034,
3084,
62,
38907,
3695,
33411,
366,
44,
439,
1438,
1,
796,
705,
19509,
8901,
3240,
3641,
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
] | [
13828,
614,
750,
262,
10073,
23220,
8329,
3337,
16618,
1280,
30,
46506,
366,
17688,
4721,
1,
16034,
3084,
62,
38907,
3695,
33411,
366,
44,
439,
1438,
1,
796,
705,
19509,
8901,
3240,
3641,
6
] |
What time in office does the U.S. Navy have? | SELECT "Time in office" FROM table_50090 WHERE "Branch" = 'u.s. navy' | [
2061,
640,
287,
2607,
857,
262,
471,
13,
50,
13,
8565,
423,
30,
46506,
366,
7575,
287,
2607,
1,
16034,
3084,
62,
4059,
3829,
33411,
366,
33,
25642,
1,
796,
705,
84,
13,
82,
13,
23956,
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,
640,
287,
2607,
857,
262,
471,
13,
50,
13,
8565,
423,
30,
46506,
366,
7575,
287,
2607,
1,
16034,
3084,
62,
4059,
3829,
33411,
366,
33,
25642,
1,
796,
705,
84,
13,
82,
13,
23956,
6
] |
Game larger than 76, and a March larger than 26 involves what score? | SELECT "Score" FROM table_35185 WHERE "Game" > '76' AND "March" > '26' | [
8777,
4025,
621,
8684,
11,
290,
257,
2805,
4025,
621,
2608,
9018,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2327,
21652,
33411,
366,
8777,
1,
1875,
705,
4304,
6,
5357,
366,
16192,
1,
1875,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8777,
4025,
621,
8684,
11,
290,
257,
2805,
4025,
621,
2608,
9018,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2327,
21652,
33411,
366,
8777,
1,
1875,
705,
4304,
6,
5357,
366,
16192,
1,
1875,
705,
2075,
6
] |
what is maximum age of patients whose insurance is government and year of death is less than 2138? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.insurance = "Government" AND demographic.dod_year < "2138.0" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
5096,
318,
1230,
290,
614,
286,
1918,
318,
1342,
621,
362,
20107,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
16728,
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
] | [
10919,
318,
5415,
2479,
286,
3871,
3025,
5096,
318,
1230,
290,
614,
286,
1918,
318,
1342,
621,
362,
20107,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
16728,
13,
... |
What is the tie no when scunthorpe united was the away team? | SELECT tie_no FROM table_name_6 WHERE away_team = "scunthorpe united" | [
2061,
318,
262,
9839,
645,
618,
629,
403,
400,
273,
431,
16503,
373,
262,
1497,
1074,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
21,
33411,
1497,
62,
15097,
796,
366,
1416,
403,
400,
273,
431,
16503,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9839,
645,
618,
629,
403,
400,
273,
431,
16503,
373,
262,
1497,
1074,
30,
46506,
9839,
62,
3919,
16034,
3084,
62,
3672,
62,
21,
33411,
1497,
62,
15097,
796,
366,
1416,
403,
400,
273,
431,
16503,
1
] |
what is the top four most frequent output event until 3 years ago? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE DATETIME(outputevents.charttime) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4) | [
10919,
318,
262,
1353,
1440,
749,
10792,
5072,
1785,
1566,
513,
812,
2084,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
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,
1,
1... | [
10919,
318,
262,
1353,
1440,
749,
10792,
5072,
1785,
1566,
513,
812,
2084,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
256,
16,
13,
9186,
312,
16034,
357,
46506,... |
Who had the high assist in the game where the record is 13-11? | SELECT "High assists" FROM table_22613 WHERE "Record" = '13-11' | [
8241,
550,
262,
1029,
3342,
287,
262,
983,
810,
262,
1700,
318,
1511,
12,
1157,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
24909,
1485,
33411,
366,
23739,
1,
796,
705,
1485,
12,
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,
1
] | [
8241,
550,
262,
1029,
3342,
287,
262,
983,
810,
262,
1700,
318,
1511,
12,
1157,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
24909,
1485,
33411,
366,
23739,
1,
796,
705,
1485,
12,
1157,
6
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of price , and group by attribute headquarter, and list in descending by the total number of price please. | SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Price) DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1351,
287,
31491,
416,
262,
2472,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1182,
24385,
290,
262,
2160,
286,
2756,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1351,
287,
31491,
416,
262,
2472,
... |
Which away team that had a tie of 7? | SELECT "Away team" FROM table_79602 WHERE "Tie no" = '7' | [
13828,
1497,
1074,
326,
550,
257,
9839,
286,
767,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3720,
31418,
33411,
366,
51,
494,
645,
1,
796,
705,
22,
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
] | [
13828,
1497,
1074,
326,
550,
257,
9839,
286,
767,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3720,
31418,
33411,
366,
51,
494,
645,
1,
796,
705,
22,
6
] |
What player played for the Balmain Tigers? | SELECT "Player" FROM table_4885 WHERE "Club" = 'balmain tigers' | [
2061,
2137,
2826,
329,
262,
8528,
12417,
17662,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
5332,
33411,
366,
42350,
1,
796,
705,
6893,
12417,
43114,
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,
2137,
2826,
329,
262,
8528,
12417,
17662,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
5332,
33411,
366,
42350,
1,
796,
705,
6893,
12417,
43114,
6
] |
What are week 4 results? | SELECT result FROM table_14608759_1 WHERE week = 4 | [
2061,
389,
1285,
604,
2482,
30,
46506,
1255,
16034,
3084,
62,
1415,
28688,
38314,
62,
16,
33411,
1285,
796,
604
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
1285,
604,
2482,
30,
46506,
1255,
16034,
3084,
62,
1415,
28688,
38314,
62,
16,
33411,
1285,
796,
604
] |
New users whose first three questions have a positive score. | SELECT 'site://users/' + CAST(Id AS TEXT) + '?tab=questions&sort=newest|' + DisplayName, CreationDate FROM (SELECT u.Id, u.DisplayName, u.CreationDate, p.Score, RANK() OVER (PARTITION BY u.Id ORDER BY p.CreationDate) AS Rank FROM Users AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 1) AS temp W... | [
3791,
2985,
3025,
717,
1115,
2683,
423,
257,
3967,
4776,
13,
46506,
705,
15654,
1378,
18417,
14,
6,
1343,
327,
11262,
7,
7390,
7054,
40383,
8,
1343,
705,
30,
8658,
28,
6138,
507,
5,
30619,
28,
3605,
395,
91,
6,
1343,
16531,
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... | [
3791,
2985,
3025,
717,
1115,
2683,
423,
257,
3967,
4776,
13,
46506,
705,
15654,
1378,
18417,
14,
6,
1343,
327,
11262,
7,
7390,
7054,
40383,
8,
1343,
705,
30,
8658,
28,
6138,
507,
5,
30619,
28,
3605,
395,
91,
6,
1343,
16531,
5376,
... |
What opponent has october less than 20, and 8 for points? | SELECT "Opponent" FROM table_37542 WHERE "October" < '20' AND "Points" = '8' | [
2061,
6125,
468,
19318,
2023,
1342,
621,
1160,
11,
290,
807,
329,
2173,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
22318,
3682,
33411,
366,
18517,
1,
1279,
705,
1238,
6,
5357,
366,
40710,
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,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
6125,
468,
19318,
2023,
1342,
621,
1160,
11,
290,
807,
329,
2173,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
22318,
3682,
33411,
366,
18517,
1,
1279,
705,
1238,
6,
5357,
366,
40710,
1,
796,
705,
23,
6
] |
Name the result for glenn thompson | SELECT result FROM table_25030512_41 WHERE incumbent = "Glenn Thompson" | [
5376,
262,
1255,
329,
1278,
1697,
294,
296,
8430,
46506,
1255,
16034,
3084,
62,
9031,
22515,
1065,
62,
3901,
33411,
23526,
796,
366,
9861,
1697,
11654,
1
] | [
1,
1,
1,
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,
1255,
329,
1278,
1697,
294,
296,
8430,
46506,
1255,
16034,
3084,
62,
9031,
22515,
1065,
62,
3901,
33411,
23526,
796,
366,
9861,
1697,
11654,
1
] |
RCIDIV 302 has been in the course listings for how long ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'RCIDIV' AND course.number = 302 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | [
7397,
2389,
3824,
32591,
468,
587,
287,
262,
1781,
26890,
329,
703,
890,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7397,
2389,
3824,
32591,
468,
587,
287,
262,
1781,
26890,
329,
703,
890,
5633,
46506,
360,
8808,
1268,
4177,
24878,
13,
1941,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
13,
17319,
62,
312,
796,
1781,
62,
2364,
1586... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the amount of hire_date bin hire_date by weekday in a bar chart, order how many hire date from low to high order please. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
1502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2033,
286,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
1502,
... |
What episode has average ratings of 7.4%? | SELECT AVG(episodes) FROM table_name_64 WHERE average_ratings = "7.4%" | [
2061,
4471,
468,
2811,
10109,
286,
767,
13,
19,
4,
30,
46506,
35224,
7,
538,
8052,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
2811,
62,
10366,
654,
796,
366,
22,
13,
19,
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
] | [
2061,
4471,
468,
2811,
10109,
286,
767,
13,
19,
4,
30,
46506,
35224,
7,
538,
8052,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
2811,
62,
10366,
654,
796,
366,
22,
13,
19,
39658
] |
Where's the school that Mark Fletcher is the principal of? | SELECT city___town FROM table_1984697_53 WHERE principal = "Mark Fletcher" | [
8496,
338,
262,
1524,
326,
2940,
31942,
318,
262,
10033,
286,
30,
46506,
1748,
17569,
12735,
16034,
3084,
62,
28296,
40035,
62,
4310,
33411,
10033,
796,
366,
9704,
31942,
1
] | [
1,
1,
1,
1,
1,
1,
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,
338,
262,
1524,
326,
2940,
31942,
318,
262,
10033,
286,
30,
46506,
1748,
17569,
12735,
16034,
3084,
62,
28296,
40035,
62,
4310,
33411,
10033,
796,
366,
9704,
31942,
1
] |
What score does Vasil Levski National Stadium, Sofia earn? | SELECT "Score" FROM table_31552 WHERE "Venue" = 'vasil levski national stadium, sofia' | [
2061,
4776,
857,
23663,
346,
1004,
14259,
4106,
2351,
10499,
11,
41427,
544,
5160,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
27936,
4309,
33411,
366,
37522,
518,
1,
796,
705,
11017,
346,
443,
14259,
4106,
2260,
10308,
11,
523,
69,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
857,
23663,
346,
1004,
14259,
4106,
2351,
10499,
11,
41427,
544,
5160,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
27936,
4309,
33411,
366,
37522,
518,
1,
796,
705,
11017,
346,
443,
14259,
4106,
2260,
10308,
11,
523,
69,
54... |
What was the winning score of the PGA Championship (3)? | SELECT "Winning score" FROM table_17939 WHERE "Championship" = 'PGA Championship (3)' | [
2061,
373,
262,
5442,
4776,
286,
262,
350,
9273,
10749,
357,
18,
19427,
46506,
366,
16643,
768,
4776,
1,
16034,
3084,
62,
21738,
2670,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
6968,
32,
10749,
357,
18,
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
] | [
2061,
373,
262,
5442,
4776,
286,
262,
350,
9273,
10749,
357,
18,
19427,
46506,
366,
16643,
768,
4776,
1,
16034,
3084,
62,
21738,
2670,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
6968,
32,
10749,
357,
18,
33047
] |
has patient 027-23129 been having any allergy a year before? | SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-23129')) AND DATETIME(allergy.allergytime, 'start of year') = DATETIME(CURRE... | [
10134,
5827,
657,
1983,
12,
1954,
18741,
587,
1719,
597,
36197,
257,
614,
878,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
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,
1... | [
10134,
5827,
657,
1983,
12,
1954,
18741,
587,
1719,
597,
36197,
257,
614,
878,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
1... |
mini _ mental state examination ( mmse ) range: 20 to 30 | SELECT * FROM table_train_93 WHERE mini_mental_state_examination_mmse >= 20 AND mini_mental_state_examination_mmse <= 30 | [
45313,
4808,
5110,
1181,
12452,
357,
8085,
325,
1267,
2837,
25,
1160,
284,
1542,
46506,
1635,
16034,
3084,
62,
27432,
62,
6052,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
18189,
1160,
5357,
9927,
62,
37098,
62,
5219,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
45313,
4808,
5110,
1181,
12452,
357,
8085,
325,
1267,
2837,
25,
1160,
284,
1542,
46506,
1635,
16034,
3084,
62,
27432,
62,
6052,
33411,
9927,
62,
37098,
62,
5219,
62,
47779,
62,
3020,
325,
18189,
1160,
5357,
9927,
62,
37098,
62,
5219,
... |
how many floors does the tallest building have ? | SELECT "floors" FROM table_204_489 ORDER BY "floors" DESC LIMIT 1 | [
4919,
867,
18570,
857,
262,
38760,
2615,
423,
5633,
46506,
366,
48679,
669,
1,
16034,
3084,
62,
18638,
62,
35890,
38678,
11050,
366,
48679,
669,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
18570,
857,
262,
38760,
2615,
423,
5633,
46506,
366,
48679,
669,
1,
16034,
3084,
62,
18638,
62,
35890,
38678,
11050,
366,
48679,
669,
1,
22196,
34,
27564,
2043,
352
] |
count the number of elective hospital admissions who underwent arthrocentesis. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Arthrocentesis" | [
9127,
262,
1271,
286,
1742,
425,
4436,
25349,
508,
25289,
610,
26110,
1087,
9339,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
1742,
425,
4436,
25349,
508,
25289,
610,
26110,
1087,
9339,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
... |
Who owns the fm 101.3 frequency? | SELECT owner FROM table_name_96 WHERE frequency = "fm 101.3" | [
8241,
12216,
262,
277,
76,
8949,
13,
18,
8373,
30,
46506,
4870,
16034,
3084,
62,
3672,
62,
4846,
33411,
8373,
796,
366,
38353,
8949,
13,
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
] | [
8241,
12216,
262,
277,
76,
8949,
13,
18,
8373,
30,
46506,
4870,
16034,
3084,
62,
3672,
62,
4846,
33411,
8373,
796,
366,
38353,
8949,
13,
18,
1
] |
Which Drew has a Lost larger than 14? | SELECT SUM(drew) FROM table_name_17 WHERE lost > 14 | [
13828,
18624,
468,
257,
9164,
4025,
621,
1478,
30,
46506,
35683,
7,
67,
1809,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
2626,
1875,
1478
] | [
1,
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,
18624,
468,
257,
9164,
4025,
621,
1478,
30,
46506,
35683,
7,
67,
1809,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
2626,
1875,
1478
] |
What record has w as the result, with January 2 as the date? | SELECT "Record" FROM table_79137 WHERE "Result" = 'w' AND "Date" = 'january 2' | [
2061,
1700,
468,
266,
355,
262,
1255,
11,
351,
3269,
362,
355,
262,
3128,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3720,
19708,
33411,
366,
23004,
1,
796,
705,
86,
6,
5357,
366,
10430,
1,
796,
705,
13881,
2838,
362,
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,
1700,
468,
266,
355,
262,
1255,
11,
351,
3269,
362,
355,
262,
3128,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3720,
19708,
33411,
366,
23004,
1,
796,
705,
86,
6,
5357,
366,
10430,
1,
796,
705,
13881,
2838,
362,
6
] |
Which Release Date has a Voltage Range of 1.148 v - 1.196 v? | SELECT release_date FROM table_name_34 WHERE voltage_range = "1.148 v - 1.196 v" | [
13828,
13868,
7536,
468,
257,
45444,
13667,
286,
352,
13,
18294,
410,
532,
352,
13,
25272,
410,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
2682,
33411,
15004,
62,
9521,
796,
366,
16,
13,
18294,
410,
532,
352,
13,
25272,
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
] | [
13828,
13868,
7536,
468,
257,
45444,
13667,
286,
352,
13,
18294,
410,
532,
352,
13,
25272,
410,
30,
46506,
2650,
62,
4475,
16034,
3084,
62,
3672,
62,
2682,
33411,
15004,
62,
9521,
796,
366,
16,
13,
18294,
410,
532,
352,
13,
25272,
4... |
What is the color code with a temperature classification of ordinary? | SELECT "Color Code (with Fusible Link)" FROM table_43031 WHERE "Temperature Classification" = 'ordinary' | [
2061,
318,
262,
3124,
2438,
351,
257,
5951,
17923,
286,
8850,
30,
46506,
366,
10258,
6127,
357,
4480,
376,
385,
856,
7502,
16725,
16034,
3084,
62,
31794,
3132,
33411,
366,
42492,
40984,
1,
796,
705,
35947,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3124,
2438,
351,
257,
5951,
17923,
286,
8850,
30,
46506,
366,
10258,
6127,
357,
4480,
376,
385,
856,
7502,
16725,
16034,
3084,
62,
31794,
3132,
33411,
366,
42492,
40984,
1,
796,
705,
35947,
6
] |
Name who wrote the episode when the viewers was 1.81 | SELECT "Written by" FROM table_20163 WHERE "U.S. viewers (million)" = '1.81' | [
5376,
508,
2630,
262,
4471,
618,
262,
10209,
373,
352,
13,
6659,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1264,
5066,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
16,
13,
6659,
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
] | [
5376,
508,
2630,
262,
4471,
618,
262,
10209,
373,
352,
13,
6659,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1264,
5066,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
16,
13,
6659,
6
] |
In how many different years was the team nicknamed Comets founded? | SELECT COUNT(founded) FROM table_28243691_2 WHERE team_nickname = "Comets" | [
818,
703,
867,
1180,
812,
373,
262,
1074,
35786,
36238,
82,
9393,
30,
46506,
327,
28270,
7,
27060,
8,
16034,
3084,
62,
2078,
1731,
2623,
6420,
62,
17,
33411,
1074,
62,
17172,
3672,
796,
366,
34,
908,
82,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
703,
867,
1180,
812,
373,
262,
1074,
35786,
36238,
82,
9393,
30,
46506,
327,
28270,
7,
27060,
8,
16034,
3084,
62,
2078,
1731,
2623,
6420,
62,
17,
33411,
1074,
62,
17172,
3672,
796,
366,
34,
908,
82,
1
] |
Show the average age of drivers from the same home city using a bar graph, and show X in asc order please. | SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY Home_city | [
15307,
262,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
290,
905,
1395,
287,
10570,
1502,
3387,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205,
38678,
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
] | [
15307,
262,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
290,
905,
1395,
287,
10570,
1502,
3387,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205,
38678,
11... |
Was the sounddock series I v2 iphone certified? | SELECT "iPhone Certified" FROM table_26794 WHERE "Version" = 'SoundDock series I v2' | [
16973,
262,
2128,
67,
735,
2168,
314,
410,
17,
220,
13323,
505,
15704,
30,
46506,
366,
37032,
36054,
1,
16034,
3084,
62,
2075,
50242,
33411,
366,
14815,
1,
796,
705,
21369,
35,
735,
2168,
314,
410,
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,
1,
1
] | [
16973,
262,
2128,
67,
735,
2168,
314,
410,
17,
220,
13323,
505,
15704,
30,
46506,
366,
37032,
36054,
1,
16034,
3084,
62,
2075,
50242,
33411,
366,
14815,
1,
796,
705,
21369,
35,
735,
2168,
314,
410,
17,
6
] |
list the patient ids of the patients that were diagnosed with late effect cv dis nec in 2101. | SELECT 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 cv dis nec') AND STRFTIME('%y', diagnoses_icd.charttime) = '21... | [
4868,
262,
5827,
220,
2340,
286,
262,
3871,
326,
547,
14641,
351,
2739,
1245,
269,
85,
595,
27576,
287,
2310,
486,
13,
46506,
25349,
13,
32796,
62,
312,
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... | [
4868,
262,
5827,
220,
2340,
286,
262,
3871,
326,
547,
14641,
351,
2739,
1245,
269,
85,
595,
27576,
287,
2310,
486,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,
... |
ON JUNE 11, WHAT WAS THE NUMBER OF RNDS ? | SELECT MIN("Rnd") FROM table_21024 WHERE "Date" = 'June 11' | [
1340,
449,
41884,
1367,
11,
25003,
21725,
3336,
36871,
13246,
3963,
43112,
5258,
5633,
46506,
20625,
7203,
49,
358,
4943,
16034,
3084,
62,
21536,
1731,
33411,
366,
10430,
1,
796,
705,
15749,
1367,
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
] | [
1340,
449,
41884,
1367,
11,
25003,
21725,
3336,
36871,
13246,
3963,
43112,
5258,
5633,
46506,
20625,
7203,
49,
358,
4943,
16034,
3084,
62,
21536,
1731,
33411,
366,
10430,
1,
796,
705,
15749,
1367,
6
] |
List all the MCs with peak ranking of 6 who were inducted in 2007. | SELECT top_mc FROM table_29160596_1 WHERE year_inducted = 2007 AND peak_ranking = 6 | [
8053,
477,
262,
13122,
82,
351,
9103,
12759,
286,
718,
508,
547,
28948,
276,
287,
4343,
13,
46506,
1353,
62,
23209,
16034,
3084,
62,
1959,
1433,
2713,
4846,
62,
16,
33411,
614,
62,
521,
4782,
276,
796,
4343,
5357,
9103,
62,
28405,
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
] | [
8053,
477,
262,
13122,
82,
351,
9103,
12759,
286,
718,
508,
547,
28948,
276,
287,
4343,
13,
46506,
1353,
62,
23209,
16034,
3084,
62,
1959,
1433,
2713,
4846,
62,
16,
33411,
614,
62,
521,
4782,
276,
796,
4343,
5357,
9103,
62,
28405,
7... |
count the number of times patient 82235 had anterior rect resect nec procedures. | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'anterior rect resect nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 82235) | [
9127,
262,
1271,
286,
1661,
5827,
807,
1828,
2327,
550,
32700,
13621,
1599,
310,
27576,
9021,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
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... | [
9127,
262,
1271,
286,
1661,
5827,
807,
1828,
2327,
550,
32700,
13621,
1599,
310,
27576,
9021,
13,
46506,
327,
28270,
7,
28104,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
46506,
288,
62,
... |
Bin the hire date into the day of week interval, and then calculate the average salary of employees in each day for a bar chart, note that just select those employees without the letter M in their first name, and could you list Y in ascending order? | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY AVG(SALARY) | [
33,
259,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
11,
290,
788,
15284,
262,
2811,
9588,
286,
4409,
287,
1123,
1110,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33,
259,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
11,
290,
788,
15284,
262,
2811,
9588,
286,
4409,
287,
1123,
1110,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
11,... |
how many of the patients with episodic mood disord nos belonged to hispanic or latino ethnic origin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND diagnoses.short_title = "Episodic mood disord NOS" | [
4919,
867,
286,
262,
3871,
351,
48177,
29512,
10038,
595,
585,
43630,
19611,
284,
465,
35843,
393,
3042,
2879,
9450,
8159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
3871,
351,
48177,
29512,
10038,
595,
585,
43630,
19611,
284,
465,
35843,
393,
3042,
2879,
9450,
8159,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Which position had fewer rounds than 3, and an overall of less than 48? | SELECT "Position" FROM table_37938 WHERE "Round" < '3' AND "Overall" < '48' | [
13828,
2292,
550,
7380,
9196,
621,
513,
11,
290,
281,
4045,
286,
1342,
621,
4764,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
29088,
2548,
33411,
366,
22685,
1,
1279,
705,
18,
6,
5357,
366,
16350,
1,
1279,
705,
2780,
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
] | [
13828,
2292,
550,
7380,
9196,
621,
513,
11,
290,
281,
4045,
286,
1342,
621,
4764,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
29088,
2548,
33411,
366,
22685,
1,
1279,
705,
18,
6,
5357,
366,
16350,
1,
1279,
705,
2780,
6
] |
How many laps were driven by the racer who earned 4th place in 2013? | SELECT COUNT("Laps") FROM table_15152 WHERE "Pos." = '4th' AND "Year" > '2013' | [
2437,
867,
24590,
547,
7986,
416,
262,
48233,
508,
7366,
604,
400,
1295,
287,
2211,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
1314,
17827,
33411,
366,
21604,
526,
796,
705,
19,
400,
6,
5357,
366,
17688,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
24590,
547,
7986,
416,
262,
48233,
508,
7366,
604,
400,
1295,
287,
2211,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
1314,
17827,
33411,
366,
21604,
526,
796,
705,
19,
400,
6,
5357,
366,
17688,
1,
1875,
... |
Which Height (cm) has a Birthplace of new canaan, connecticut? | SELECT COUNT(height__cm_) FROM table_name_52 WHERE birthplace = "new canaan, connecticut" | [
13828,
27280,
357,
11215,
8,
468,
257,
17647,
5372,
286,
649,
460,
28340,
11,
2018,
13554,
30,
46506,
327,
28270,
7,
17015,
834,
11215,
62,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
48145,
796,
366,
3605,
460,
28340,
11,
2018,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
27280,
357,
11215,
8,
468,
257,
17647,
5372,
286,
649,
460,
28340,
11,
2018,
13554,
30,
46506,
327,
28270,
7,
17015,
834,
11215,
62,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
48145,
796,
366,
3605,
460,
28340,
11,
2018,
13554,... |
what's the average cost of a hospital that includes a drug called pravastatin since 2101? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'pravastatin') AND STRFTIME('%y', cost.chargetime) >= '2101' GROUP BY cost.hadm_id) AS t1 | [
10919,
338,
262,
2811,
1575,
286,
257,
4436,
326,
3407,
257,
2563,
1444,
279,
4108,
459,
10680,
1201,
2310,
486,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
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... | [
10919,
338,
262,
2811,
1575,
286,
257,
4436,
326,
3407,
257,
2563,
1444,
279,
4108,
459,
10680,
1201,
2310,
486,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1... |
How many points when 15 is scored is considered the minimum? | SELECT MIN("Points") FROM table_19656 WHERE "Scored" = '15' | [
2437,
867,
2173,
618,
1315,
318,
7781,
318,
3177,
262,
5288,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
1129,
37466,
33411,
366,
3351,
1850,
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
] | [
2437,
867,
2173,
618,
1315,
318,
7781,
318,
3177,
262,
5288,
30,
46506,
20625,
7203,
40710,
4943,
16034,
3084,
62,
1129,
37466,
33411,
366,
3351,
1850,
1,
796,
705,
1314,
6
] |
previous to october 5 , 2008 how many matches were won ? | SELECT COUNT(*) FROM table_203_656 WHERE id < (SELECT id FROM table_203_656 WHERE "date" = 'october 5, 2008 - 15:00') AND "result" = 'won' | [
3866,
1442,
284,
19318,
2023,
642,
837,
3648,
703,
867,
7466,
547,
1839,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
37466,
33411,
4686,
1279,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
37466,
33411,
366,
4475,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3866,
1442,
284,
19318,
2023,
642,
837,
3648,
703,
867,
7466,
547,
1839,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
37466,
33411,
4686,
1279,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
37466,
33411,
366,
4475,
1,
... |
Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body? | SELECT "Driver" FROM table_56597 WHERE "Tuner" = 'n. leelakrishnan' AND "Governing Body" = 'mai' AND "Season" = '2003' | [
8241,
318,
262,
4639,
287,
1622,
5816,
351,
257,
6278,
263,
286,
399,
13,
1004,
417,
461,
37518,
12647,
290,
257,
36709,
15030,
1767,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
47372,
5607,
33411,
366,
51,
38886,
1,
796,
705,
77,
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... | [
8241,
318,
262,
4639,
287,
1622,
5816,
351,
257,
6278,
263,
286,
399,
13,
1004,
417,
461,
37518,
12647,
290,
257,
36709,
15030,
1767,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
47372,
5607,
33411,
366,
51,
38886,
1,
796,
705,
77,
13... |
what is the number of patients whose year of birth is less than 2121 and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
31... |
What was the original air date of episode number 1? | SELECT "Original air date" FROM table_25597 WHERE "No." = '1' | [
2061,
373,
262,
2656,
1633,
3128,
286,
4471,
1271,
352,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1495,
43239,
33411,
366,
2949,
526,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2656,
1633,
3128,
286,
4471,
1271,
352,
30,
46506,
366,
20556,
1633,
3128,
1,
16034,
3084,
62,
1495,
43239,
33411,
366,
2949,
526,
796,
705,
16,
6
] |
How many airports' names have the word Interanation in them? | SELECT COUNT(*) FROM airports WHERE name LIKE '%International%' | [
2437,
867,
22600,
6,
3891,
423,
262,
1573,
4225,
272,
341,
287,
606,
30,
46506,
327,
28270,
7,
28104,
16034,
22600,
33411,
1438,
34178,
705,
4,
24274,
4,
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,
22600,
6,
3891,
423,
262,
1573,
4225,
272,
341,
287,
606,
30,
46506,
327,
28270,
7,
28104,
16034,
22600,
33411,
1438,
34178,
705,
4,
24274,
4,
6
] |
What school is in Richmond? | SELECT school FROM table_2076608_3 WHERE location_s_ = "Richmond" | [
2061,
1524,
318,
287,
16940,
30,
46506,
1524,
16034,
3084,
62,
1238,
4304,
28688,
62,
18,
33411,
4067,
62,
82,
62,
796,
366,
14868,
6327,
1
] | [
1,
1,
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,
318,
287,
16940,
30,
46506,
1524,
16034,
3084,
62,
1238,
4304,
28688,
62,
18,
33411,
4067,
62,
82,
62,
796,
366,
14868,
6327,
1
] |
what is maximum age of patients whose death status is 0 and discharge location is rehab/distinct part hosp? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP" | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
17655,
4067,
318,
14321,
14,
17080,
4612,
636,
10496,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
5415,
2479,
286,
3871,
3025,
1918,
3722,
318,
657,
290,
17655,
4067,
318,
14321,
14,
17080,
4612,
636,
10496,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366,
15... |
Which location held the Iron 8 Championship tournament? | SELECT "Location" FROM table_40107 WHERE "Championship" = 'iron 8 championship tournament' | [
13828,
4067,
2714,
262,
7931,
807,
10749,
7756,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21844,
2998,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
1934,
807,
12184,
7756,
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
] | [
13828,
4067,
2714,
262,
7931,
807,
10749,
7756,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
21844,
2998,
33411,
366,
1925,
4350,
1056,
1,
796,
705,
1934,
807,
12184,
7756,
6
] |
What is the away team with a 5 tie no? | SELECT "Away team" FROM table_77132 WHERE "Tie no" = '5' | [
2061,
318,
262,
1497,
1074,
351,
257,
642,
9839,
645,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3324,
19924,
33411,
366,
51,
494,
645,
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
] | [
2061,
318,
262,
1497,
1074,
351,
257,
642,
9839,
645,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
3324,
19924,
33411,
366,
51,
494,
645,
1,
796,
705,
20,
6
] |
how many patients whose admission type is elective and drug name is rosiglitazone maleate? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND prescriptions.drug = "Rosiglitazone Maleate" | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2563,
1438,
318,
686,
82,
328,
18250,
1031,
505,
4257,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
2563,
1438,
318,
686,
82,
328,
18250,
1031,
505,
4257,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
what is the maximum number of monthly diagnosed cases of ch dvt/embl prox low ext since 2104? | SELECT MAX(t1.c1) FROM (SELECT COUNT(DISTINCT diagnoses_icd.hadm_id) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ch dvt/embl prox low ext') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2104' GROUP BY STRFTIME('%y... | [
10919,
318,
262,
5415,
1271,
286,
9651,
14641,
2663,
286,
442,
288,
36540,
14,
368,
2436,
14793,
1877,
1070,
1201,
362,
13464,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1271,
286,
9651,
14641,
2663,
286,
442,
288,
36540,
14,
368,
2436,
14793,
1877,
1070,
1201,
362,
13464,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
40567... |
What is the # for worthing high school? | SELECT COUNT(_number) FROM table_22496344_1 WHERE high_school = "Worthing" | [
2061,
318,
262,
1303,
329,
476,
1197,
1029,
1524,
30,
46506,
327,
28270,
28264,
17618,
8,
16034,
3084,
62,
24137,
4846,
33535,
62,
16,
33411,
1029,
62,
14347,
796,
366,
54,
273,
1197,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1303,
329,
476,
1197,
1029,
1524,
30,
46506,
327,
28270,
28264,
17618,
8,
16034,
3084,
62,
24137,
4846,
33535,
62,
16,
33411,
1029,
62,
14347,
796,
366,
54,
273,
1197,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.