instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
how many patients whose diagnoses short title is chr airway obstruct nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Chr airway obstruct NEC" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
442,
81,
1633,
1014,
26520,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
318,
442,
81,
1633,
1014,
26520,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
... |
How many wins were held before being defeated by toda? | SELECT COUNT("Wins") FROM table_78635 WHERE "Defeated by" = 'toda' | [
2437,
867,
7864,
547,
2714,
878,
852,
9772,
416,
284,
6814,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
46302,
2327,
33411,
366,
7469,
68,
515,
416,
1,
796,
705,
83,
11329,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
7864,
547,
2714,
878,
852,
9772,
416,
284,
6814,
30,
46506,
327,
28270,
7203,
54,
1040,
4943,
16034,
3084,
62,
46302,
2327,
33411,
366,
7469,
68,
515,
416,
1,
796,
705,
83,
11329,
6
] |
Show all game names played by at least 1000 hours. | SELECT gname FROM plays_games AS T1 JOIN video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid HAVING SUM(hours_played) >= 1000 | [
15307,
477,
983,
3891,
2826,
416,
379,
1551,
8576,
2250,
13,
46506,
308,
3672,
16034,
5341,
62,
19966,
7054,
309,
16,
32357,
1268,
2008,
62,
19966,
7054,
309,
17,
6177,
309,
16,
13,
6057,
312,
796,
309,
17,
13,
6057,
312,
44441,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
983,
3891,
2826,
416,
379,
1551,
8576,
2250,
13,
46506,
308,
3672,
16034,
5341,
62,
19966,
7054,
309,
16,
32357,
1268,
2008,
62,
19966,
7054,
309,
17,
6177,
309,
16,
13,
6057,
312,
796,
309,
17,
13,
6057,
312,
44441,
110... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, and order by the Y in ascending. | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Manufacturer | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
290,
1502,
416,
262,
575,
287,
41988,
13,
46506,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
290,
1502,
416,
262,
575,
287,
41988,
13,
46506,
3... |
how many female patients have been diagnosed with paralytic ileus? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "F" AND diagnoses.short_title = "Paralytic ileus" | [
4919,
867,
4048,
3871,
423,
587,
14641,
351,
26901,
13370,
220,
576,
385,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
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... | [
4919,
867,
4048,
3871,
423,
587,
14641,
351,
26901,
13370,
220,
576,
385,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312... |
How many countries had players named Marc Savard get picked? | SELECT COUNT("Nationality") FROM table_4123 WHERE "Player" = 'Marc Savard' | [
2437,
867,
2678,
550,
1938,
3706,
13067,
8858,
446,
651,
6497,
30,
46506,
327,
28270,
7203,
16186,
414,
4943,
16034,
3084,
62,
19,
10163,
33411,
366,
14140,
1,
796,
705,
22697,
8858,
446,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2678,
550,
1938,
3706,
13067,
8858,
446,
651,
6497,
30,
46506,
327,
28270,
7203,
16186,
414,
4943,
16034,
3084,
62,
19,
10163,
33411,
366,
14140,
1,
796,
705,
22697,
8858,
446,
6
] |
What is the date successor seated where Massachusetts 2nd is the district? | SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd" | [
2061,
318,
262,
3128,
17270,
21639,
810,
10140,
362,
358,
318,
262,
4783,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
1828,
1120,
6052,
62,
19,
33411,
4783,
796,
366,
20273,
9770,
362,
358,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
17270,
21639,
810,
10140,
362,
358,
318,
262,
4783,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
1828,
1120,
6052,
62,
19,
33411,
4783,
796,
366,
20273,
9770,
362,
358,
1
] |
What is the Date with a Score that is 46-77? | SELECT date FROM table_name_65 WHERE score = "46-77" | [
2061,
318,
262,
7536,
351,
257,
15178,
326,
318,
6337,
12,
3324,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
4776,
796,
366,
3510,
12,
3324,
1
] | [
1,
1,
1,
1,
1,
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,
7536,
351,
257,
15178,
326,
318,
6337,
12,
3324,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
4776,
796,
366,
3510,
12,
3324,
1
] |
If the earning amount is $309,886, what is the money list ranking? | SELECT "Money list rank" FROM table_24759 WHERE "Earnings ($)" = '309,886' | [
1532,
262,
13748,
2033,
318,
720,
26895,
11,
44980,
11,
644,
318,
262,
1637,
1351,
12759,
30,
46506,
366,
26788,
1351,
4279,
1,
16034,
3084,
62,
1731,
38314,
33411,
366,
49725,
654,
7198,
16725,
796,
705,
26895,
11,
44980,
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
] | [
1532,
262,
13748,
2033,
318,
720,
26895,
11,
44980,
11,
644,
318,
262,
1637,
1351,
12759,
30,
46506,
366,
26788,
1351,
4279,
1,
16034,
3084,
62,
1731,
38314,
33411,
366,
49725,
654,
7198,
16725,
796,
705,
26895,
11,
44980,
6
] |
what is the total amount of input until 12/28/2105 patient 23061 had received? | SELECT SUM(inputevents_cv.amount) 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 = 23061)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) <= '2105-12-28' | [
10919,
318,
262,
2472,
2033,
286,
5128,
1566,
1105,
14,
2078,
14,
17,
13348,
5827,
18395,
5333,
550,
2722,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
2033,
286,
5128,
1566,
1105,
14,
2078,
14,
17,
13348,
5827,
18395,
5333,
550,
2722,
30,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
... |
PresenceInsights tag (1 tag only); monthly totals NLB. | 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 ... | [
25460,
594,
20376,
2337,
7621,
357,
16,
7621,
691,
1776,
9651,
26310,
22879,
33,
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,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
25460,
594,
20376,
2337,
7621,
357,
16,
7621,
691,
1776,
9651,
26310,
22879,
33,
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,
1... |
What was the total crowd of the Carlton game? | SELECT COUNT(crowd) FROM table_name_45 WHERE home_team = "carlton" | [
2061,
373,
262,
2472,
4315,
286,
262,
44348,
983,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2472,
4315,
286,
262,
44348,
983,
30,
46506,
327,
28270,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
Stacked bar chart of school_id for with each ACC_Home in each acc road, rank by the Y-axis in asc. | SELECT ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY School_ID | [
1273,
6021,
2318,
8262,
286,
1524,
62,
312,
329,
351,
1123,
15859,
62,
16060,
287,
1123,
697,
2975,
11,
4279,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
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,
1,
1,
1,
1,
1
] | [
1273,
6021,
2318,
8262,
286,
1524,
62,
312,
329,
351,
1123,
15859,
62,
16060,
287,
1123,
697,
2975,
11,
4279,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
15859,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699,
44441,
11050,... |
what is the number of patients whose days of hospital stay is greater than 11 and lab test name is potassium? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "11" AND lab.label = "Potassium" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1367,
290,
2248,
1332,
1438,
318,
33156,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
318,
3744,
621,
1367,
290,
2248,
1332,
1438,
318,
33156,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... |
Name the total number of tier 1 capital for allied irish banks | SELECT COUNT(tier_1_capital), _€_million FROM table_22368322_2 WHERE institution = "Allied Irish Banks" | [
5376,
262,
2472,
1271,
286,
14249,
352,
3139,
329,
22034,
4173,
680,
6341,
46506,
327,
28270,
7,
24948,
62,
16,
62,
27544,
828,
4808,
26391,
62,
14100,
16034,
3084,
62,
1828,
2623,
5999,
1828,
62,
17,
33411,
9901,
796,
366,
3237,
798,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14249,
352,
3139,
329,
22034,
4173,
680,
6341,
46506,
327,
28270,
7,
24948,
62,
16,
62,
27544,
828,
4808,
26391,
62,
14100,
16034,
3084,
62,
1828,
2623,
5999,
1828,
62,
17,
33411,
9901,
796,
366,
3237,
798,... |
What is the margin of victory of the tournament on 15 Jul 2007? | SELECT "Margin of victory" FROM table_11479 WHERE "Date" = '15 jul 2007' | [
2061,
318,
262,
10330,
286,
5373,
286,
262,
7756,
319,
1315,
5979,
4343,
30,
46506,
366,
24428,
259,
286,
5373,
1,
16034,
3084,
62,
1157,
31714,
33411,
366,
10430,
1,
796,
705,
1314,
474,
377,
4343,
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,
10330,
286,
5373,
286,
262,
7756,
319,
1315,
5979,
4343,
30,
46506,
366,
24428,
259,
286,
5373,
1,
16034,
3084,
62,
1157,
31714,
33411,
366,
10430,
1,
796,
705,
1314,
474,
377,
4343,
6
] |
What is listed for the Elevator that has the Elector of Gerardo? | SELECT "Elevator" FROM table_14249 WHERE "Elector" = 'gerardo' | [
2061,
318,
5610,
329,
262,
37881,
1352,
326,
468,
262,
5903,
273,
286,
13573,
13109,
30,
46506,
366,
36,
2768,
1352,
1,
16034,
3084,
62,
1415,
21626,
33411,
366,
19453,
273,
1,
796,
705,
1362,
13109,
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,
5610,
329,
262,
37881,
1352,
326,
468,
262,
5903,
273,
286,
13573,
13109,
30,
46506,
366,
36,
2768,
1352,
1,
16034,
3084,
62,
1415,
21626,
33411,
366,
19453,
273,
1,
796,
705,
1362,
13109,
6
] |
how many more bubas bison were released than copris hispanus linnaeus ? | SELECT (SELECT "total released" FROM table_204_869 WHERE "species" = 'bubas bison') - (SELECT "total released" FROM table_204_869 WHERE "species" = 'copris hispanus linnaeus') | [
4919,
867,
517,
10015,
292,
275,
1653,
547,
2716,
621,
2243,
2442,
465,
6839,
385,
9493,
2616,
27650,
5633,
46506,
357,
46506,
366,
23350,
2716,
1,
16034,
3084,
62,
18638,
62,
23,
3388,
33411,
366,
35448,
1,
796,
705,
46176,
292,
275,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
10015,
292,
275,
1653,
547,
2716,
621,
2243,
2442,
465,
6839,
385,
9493,
2616,
27650,
5633,
46506,
357,
46506,
366,
23350,
2716,
1,
16034,
3084,
62,
18638,
62,
23,
3388,
33411,
366,
35448,
1,
796,
705,
46176,
292,
275,... |
find the number of patients who had lactate lab test and died on or before 2179. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2179.0" AND lab.label = "Lactate" | [
19796,
262,
1271,
286,
3871,
508,
550,
26222,
378,
2248,
1332,
290,
3724,
319,
393,
878,
362,
21738,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
3871,
508,
550,
26222,
378,
2248,
1332,
290,
3724,
319,
393,
878,
362,
21738,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
167... |
What is the cpu of the calculator released in 1993? | SELECT cpu FROM table_11703336_1 WHERE year_released = "1993" | [
2061,
318,
262,
42804,
286,
262,
28260,
2716,
287,
9656,
30,
46506,
42804,
16034,
3084,
62,
1157,
2154,
2091,
2623,
62,
16,
33411,
614,
62,
30147,
796,
366,
24465,
1
] | [
1,
1,
1,
1,
1,
1,
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,
42804,
286,
262,
28260,
2716,
287,
9656,
30,
46506,
42804,
16034,
3084,
62,
1157,
2154,
2091,
2623,
62,
16,
33411,
614,
62,
30147,
796,
366,
24465,
1
] |
which age range had the largest percentage for other religion ? | SELECT "ages attained (years)" FROM table_203_770 ORDER BY "other religion" DESC LIMIT 1 | [
4758,
2479,
2837,
550,
262,
4387,
5873,
329,
584,
5737,
5633,
46506,
366,
1095,
28681,
357,
19002,
16725,
16034,
3084,
62,
22416,
62,
41820,
38678,
11050,
366,
847,
5737,
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,
1,
1,
1,
1
] | [
4758,
2479,
2837,
550,
262,
4387,
5873,
329,
584,
5737,
5633,
46506,
366,
1095,
28681,
357,
19002,
16725,
16034,
3084,
62,
22416,
62,
41820,
38678,
11050,
366,
847,
5737,
1,
22196,
34,
27564,
2043,
352
] |
What was the score on December 3 when Detroit was the home team and Legace took the decision? | SELECT "Score" FROM table_71469 WHERE "Home" = 'detroit' AND "Decision" = 'legace' AND "Date" = 'december 3' | [
2061,
373,
262,
4776,
319,
3426,
513,
618,
8488,
373,
262,
1363,
1074,
290,
3564,
558,
1718,
262,
2551,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
45722,
3388,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
10707,
1166,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
319,
3426,
513,
618,
8488,
373,
262,
1363,
1074,
290,
3564,
558,
1718,
262,
2551,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
45722,
3388,
33411,
366,
16060,
1,
796,
705,
15255,
7775,
6,
5357,
366,
10707,
1166,
... |
what is the number of patients whose age is less than 89 and diagnoses long title is benzodiazepine-based tranquilizers causing adverse effects in therapeutic use? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "89" AND diagnoses.long_title = "Benzodiazepine-based tranquilizers causing adverse effects in therapeutic use" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
9919,
290,
40567,
890,
3670,
318,
39601,
375,
48826,
500,
12,
3106,
46944,
11341,
6666,
12681,
3048,
287,
21546,
779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
9919,
290,
40567,
890,
3670,
318,
39601,
375,
48826,
500,
12,
3106,
46944,
11341,
6666,
12681,
3048,
287,
21546,
779,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
... |
what is the number of patients whose days of hospital stay is greater than 6 and lab test name is mch? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "6" AND lab.label = "MCH" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
718,
290,
2248,
1332,
1438,
318,
285,
354,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
718,
290,
2248,
1332,
1438,
318,
285,
354,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
What is the Player that has a To standard of 1, and a Score of 71-68-76=215? | SELECT "Player" FROM table_44462 WHERE "To par" = '–1' AND "Score" = '71-68-76=215' | [
2061,
318,
262,
7853,
326,
468,
257,
1675,
3210,
286,
352,
11,
290,
257,
15178,
286,
9166,
12,
3104,
12,
4304,
28,
23349,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2598,
39997,
33411,
366,
2514,
1582,
1,
796,
705,
1906,
16,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7853,
326,
468,
257,
1675,
3210,
286,
352,
11,
290,
257,
15178,
286,
9166,
12,
3104,
12,
4304,
28,
23349,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2598,
39997,
33411,
366,
2514,
1582,
1,
796,
705,
1906,
16,
6,
53... |
which tribunal sentenced the largest number of executions ? | SELECT "tribunal" FROM table_203_303 ORDER BY "total" DESC LIMIT 1 | [
4758,
30105,
11897,
262,
4387,
1271,
286,
30632,
5633,
46506,
366,
83,
822,
18835,
1,
16034,
3084,
62,
22416,
62,
22572,
38678,
11050,
366,
23350,
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
] | [
4758,
30105,
11897,
262,
4387,
1271,
286,
30632,
5633,
46506,
366,
83,
822,
18835,
1,
16034,
3084,
62,
22416,
62,
22572,
38678,
11050,
366,
23350,
1,
22196,
34,
27564,
2043,
352
] |
had patient 007-15837 excreted variance? | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-15837')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | [
18108,
5827,
3571,
22,
12,
21273,
2718,
2859,
1186,
276,
24198,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
3571,
22,
12,
21273,
2718,
2859,
1186,
276,
24198,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
1603... |
What is the High assists with a Date that is march 31? | SELECT "High assists" FROM table_41443 WHERE "Date" = 'march 31' | [
2061,
318,
262,
3334,
13648,
351,
257,
7536,
326,
318,
9960,
3261,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
37309,
3559,
33411,
366,
10430,
1,
796,
705,
76,
998,
3261,
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,
3334,
13648,
351,
257,
7536,
326,
318,
9960,
3261,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
37309,
3559,
33411,
366,
10430,
1,
796,
705,
76,
998,
3261,
6
] |
What venue did he finish 7th? | SELECT venue FROM table_name_55 WHERE position = "7th" | [
2061,
14359,
750,
339,
5461,
767,
400,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2816,
33411,
2292,
796,
366,
22,
400,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
750,
339,
5461,
767,
400,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
2816,
33411,
2292,
796,
366,
22,
400,
1
] |
diagnosis of type ii diabetes | SELECT * FROM table_train_192 WHERE diabetic = 'ii' | [
47356,
5958,
286,
2099,
21065,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
17477,
33411,
44016,
796,
705,
4178,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
47356,
5958,
286,
2099,
21065,
12593,
46506,
1635,
16034,
3084,
62,
27432,
62,
17477,
33411,
44016,
796,
705,
4178,
6
] |
what is the number of patients whose admission type is elective and procedure long title is removal of t-tube, other bile duct tube, or liver tube? | 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 = "Removal of T-tube, other bile duct tube, or liver tube" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
890,
3670,
318,
9934,
286,
256,
12,
29302,
11,
584,
275,
576,
28494,
12403,
11,
393,
14383,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
8771,
890,
3670,
318,
9934,
286,
256,
12,
29302,
11,
584,
275,
576,
28494,
12403,
11,
393,
14383,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
... |
How many touchdowns did the fullback score? | SELECT MIN(touchdowns) FROM table_25711913_8 WHERE position = "Fullback" | [
2437,
867,
17692,
750,
262,
49570,
4776,
30,
46506,
20625,
7,
29332,
30371,
8,
16034,
3084,
62,
1495,
4869,
1129,
1485,
62,
23,
33411,
2292,
796,
366,
13295,
1891,
1
] | [
1,
1,
1,
1,
1,
1,
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,
17692,
750,
262,
49570,
4776,
30,
46506,
20625,
7,
29332,
30371,
8,
16034,
3084,
62,
1495,
4869,
1129,
1485,
62,
23,
33411,
2292,
796,
366,
13295,
1891,
1
] |
What are the ids and details for all organizations that have grants of more than 6000 dollars. Show a pie chart. | SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details | [
2061,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
13,
5438,
257,
2508,
8262,
13,
46506,
309,
17,
13,
9971,
5612,
62,
36604,
11,
309,
16,
13,
9971,
5612,
62,
312,
16034,
40535,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
220,
2340,
290,
3307,
329,
477,
5745,
326,
423,
11455,
286,
517,
621,
39064,
5054,
13,
5438,
257,
2508,
8262,
13,
46506,
309,
17,
13,
9971,
5612,
62,
36604,
11,
309,
16,
13,
9971,
5612,
62,
312,
16034,
40535,
7054,
... |
What is the release date of the album written by Goss, James James Goss under Audiogo? | SELECT "release date" FROM table_48636 WHERE "Writer" = 'goss, james james goss' AND "Company" = 'audiogo' | [
2061,
318,
262,
2650,
3128,
286,
262,
5062,
3194,
416,
402,
793,
11,
3700,
3700,
402,
793,
739,
26686,
24076,
30,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
34251,
2623,
33411,
366,
34379,
1,
796,
705,
70,
793,
11,
474,
1047,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
5062,
3194,
416,
402,
793,
11,
3700,
3700,
402,
793,
739,
26686,
24076,
30,
46506,
366,
20979,
3128,
1,
16034,
3084,
62,
34251,
2623,
33411,
366,
34379,
1,
796,
705,
70,
793,
11,
474,
1047,
474,... |
what is days of hospital stay and diagnoses icd9 code of subject id 28588? | SELECT demographic.days_stay, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "28588" | [
10919,
318,
1528,
286,
4436,
2652,
290,
40567,
14158,
67,
24,
2438,
286,
2426,
4686,
2579,
39118,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
40567,
13,
291,
67,
24,
62,
8189,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
1528,
286,
4436,
2652,
290,
40567,
14158,
67,
24,
2438,
286,
2426,
4686,
2579,
39118,
30,
46506,
16728,
13,
12545,
62,
31712,
11,
40567,
13,
291,
67,
24,
62,
8189,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
... |
Who is the driver when the grid is 18? | SELECT "Driver" FROM table_58456 WHERE "Grid" = '18' | [
8241,
318,
262,
4639,
618,
262,
10706,
318,
1248,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
3365,
29228,
33411,
366,
41339,
1,
796,
705,
1507,
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
] | [
8241,
318,
262,
4639,
618,
262,
10706,
318,
1248,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
3365,
29228,
33411,
366,
41339,
1,
796,
705,
1507,
6
] |
What was the name of the player from Olympiacos in 2008? | SELECT "Name" FROM table_45822 WHERE "2008 club" = 'olympiacos' | [
2061,
373,
262,
1438,
286,
262,
2137,
422,
7001,
9607,
418,
287,
3648,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
29334,
1828,
33411,
366,
11528,
3430,
1,
796,
705,
3366,
3149,
9607,
418,
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,
373,
262,
1438,
286,
262,
2137,
422,
7001,
9607,
418,
287,
3648,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
29334,
1828,
33411,
366,
11528,
3430,
1,
796,
705,
3366,
3149,
9607,
418,
6
] |
what were the top three most frequent diagnoses that patients were given within 2 months after being diagnosed with hiccough until 2 years ago? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | [
10919,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
1813,
1626,
362,
1933,
706,
852,
14641,
351,
289,
44240,
619,
1566,
362,
812,
2084,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
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,
547,
262,
1353,
1115,
749,
10792,
40567,
326,
3871,
547,
1813,
1626,
362,
1933,
706,
852,
14641,
351,
289,
44240,
619,
1566,
362,
812,
2084,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
2... |
list lowest cost flight from DALLAS to BALTIMORE | 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.... | [
4868,
9016,
1575,
5474,
422,
360,
7036,
1921,
284,
347,
31429,
3955,
1581,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
1575,
5474,
422,
360,
7036,
1921,
284,
347,
31429,
3955,
1581,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... |
Can you compare the account balances of customers with the letter 'a' in their names using a bar graph. | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | [
6090,
345,
8996,
262,
1848,
25223,
286,
4297,
351,
262,
3850,
705,
64,
6,
287,
511,
3891,
1262,
257,
2318,
4823,
13,
46506,
9378,
62,
3672,
11,
697,
62,
6893,
16034,
6491,
33411,
9378,
62,
3672,
34178,
705,
4,
64,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
8996,
262,
1848,
25223,
286,
4297,
351,
262,
3850,
705,
64,
6,
287,
511,
3891,
1262,
257,
2318,
4823,
13,
46506,
9378,
62,
3672,
11,
697,
62,
6893,
16034,
6491,
33411,
9378,
62,
3672,
34178,
705,
4,
64,
4,
6
] |
by which route is the medication d5lr administered? | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "D5LR" | [
1525,
543,
6339,
318,
262,
14103,
288,
20,
14050,
17169,
30,
46506,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
35,
20,
35972,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1525,
543,
6339,
318,
262,
14103,
288,
20,
14050,
17169,
30,
46506,
34092,
13,
38629,
16034,
34092,
33411,
34092,
13,
30349,
796,
366,
35,
20,
35972,
1
] |
What is the nationality of the person with 50 goals and rank 3? | SELECT "Nationality" FROM table_67433 WHERE "Goals" = '50' AND "Ranking" = '3' | [
2061,
318,
262,
29835,
286,
262,
1048,
351,
2026,
4661,
290,
4279,
513,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3134,
42117,
33411,
366,
5247,
874,
1,
796,
705,
1120,
6,
5357,
366,
49,
15230,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
29835,
286,
262,
1048,
351,
2026,
4661,
290,
4279,
513,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3134,
42117,
33411,
366,
5247,
874,
1,
796,
705,
1120,
6,
5357,
366,
49,
15230,
1,
796,
705,
18,
6
] |
Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag? | SELECT "Tuesday Tiw/ Tyr" FROM table_66877 WHERE "Sunday Sunna/S\u00f3l" = 'sondag' | [
13828,
3431,
309,
14246,
14,
51,
2417,
468,
257,
3502,
3825,
2616,
14,
36949,
286,
264,
623,
363,
30,
46506,
366,
26133,
309,
14246,
14,
14319,
1,
16034,
3084,
62,
35809,
3324,
33411,
366,
21934,
3825,
2616,
14,
50,
59,
84,
405,
69,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3431,
309,
14246,
14,
51,
2417,
468,
257,
3502,
3825,
2616,
14,
36949,
286,
264,
623,
363,
30,
46506,
366,
26133,
309,
14246,
14,
14319,
1,
16034,
3084,
62,
35809,
3324,
33411,
366,
21934,
3825,
2616,
14,
50,
59,
84,
405,
69,... |
When was Jonny Leadbeater President? | SELECT season FROM table_16446652_1 WHERE president = "Jonny Leadbeater" | [
2215,
373,
5966,
3281,
20116,
1350,
729,
1992,
30,
46506,
1622,
16034,
3084,
62,
1433,
2598,
2791,
4309,
62,
16,
33411,
1893,
796,
366,
18219,
3281,
20116,
1350,
729,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
5966,
3281,
20116,
1350,
729,
1992,
30,
46506,
1622,
16034,
3084,
62,
1433,
2598,
2791,
4309,
62,
16,
33411,
1893,
796,
366,
18219,
3281,
20116,
1350,
729,
1
] |
okay and on 5 4 i would like to go from ATLANTA to DENVER leaving early in the morning around 8 | 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 (((flight.departure_time BETWEEN 830 AND 730) AND date_day.day_number = 4 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_nam... | [
482,
323,
290,
319,
642,
604,
1312,
561,
588,
284,
467,
422,
5161,
25697,
5603,
284,
37692,
5959,
4305,
1903,
287,
262,
3329,
1088,
807,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
1549... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
482,
323,
290,
319,
642,
604,
1312,
561,
588,
284,
467,
422,
5161,
25697,
5603,
284,
37692,
5959,
4305,
1903,
287,
262,
3329,
1088,
807,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
1549... |
Which team played their first leg at home with an aggregate score of 3-4? | SELECT home__1st_leg_ FROM table_name_70 WHERE aggregate = "3-4" | [
13828,
1074,
2826,
511,
717,
1232,
379,
1363,
351,
281,
19406,
4776,
286,
513,
12,
19,
30,
46506,
1363,
834,
16,
301,
62,
1455,
62,
16034,
3084,
62,
3672,
62,
2154,
33411,
19406,
796,
366,
18,
12,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
2826,
511,
717,
1232,
379,
1363,
351,
281,
19406,
4776,
286,
513,
12,
19,
30,
46506,
1363,
834,
16,
301,
62,
1455,
62,
16034,
3084,
62,
3672,
62,
2154,
33411,
19406,
796,
366,
18,
12,
19,
1
] |
What is teh Nuskhuri symbol for in Asomtavruli? | SELECT nuskhuri FROM table_name_80 WHERE asomtavruli = "ⴋ" | [
2061,
318,
573,
71,
399,
385,
14636,
9900,
6194,
329,
287,
1081,
296,
83,
615,
81,
32176,
30,
46506,
299,
385,
14636,
9900,
16034,
3084,
62,
3672,
62,
1795,
33411,
355,
296,
83,
615,
81,
32176,
796,
366,
158,
112,
233,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
573,
71,
399,
385,
14636,
9900,
6194,
329,
287,
1081,
296,
83,
615,
81,
32176,
30,
46506,
299,
385,
14636,
9900,
16034,
3084,
62,
3672,
62,
1795,
33411,
355,
296,
83,
615,
81,
32176,
796,
366,
158,
112,
233,
1
] |
in the detroit team who made the high points | SELECT high_points FROM table_30049462_5 WHERE team = "Detroit" | [
259,
262,
1062,
7775,
1074,
508,
925,
262,
1029,
2173,
46506,
1029,
62,
13033,
16034,
3084,
62,
6200,
2920,
39997,
62,
20,
33411,
1074,
796,
366,
40404,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
259,
262,
1062,
7775,
1074,
508,
925,
262,
1029,
2173,
46506,
1029,
62,
13033,
16034,
3084,
62,
6200,
2920,
39997,
62,
20,
33411,
1074,
796,
366,
40404,
1
] |
how many hours has passed since the last time that patient 10624 has been prescribed miconazole powder 2% on their current hospital visit? | 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 = 10624 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'miconazole powder 2%' ORDER BY prescriptions... | [
4919,
867,
2250,
468,
3804,
1201,
262,
938,
640,
326,
5827,
15696,
1731,
468,
587,
14798,
285,
4749,
1031,
2305,
11913,
362,
4,
319,
511,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
3804,
1201,
262,
938,
640,
326,
5827,
15696,
1731,
468,
587,
14798,
285,
4749,
1031,
2305,
11913,
362,
4,
319,
511,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237... |
List the titles of books that are not published. | SELECT title FROM book WHERE NOT book_id IN (SELECT book_id FROM publication) | [
8053,
262,
8714,
286,
3835,
326,
389,
407,
3199,
13,
46506,
3670,
16034,
1492,
33411,
5626,
1492,
62,
312,
3268,
357,
46506,
1492,
62,
312,
16034,
9207,
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
] | [
8053,
262,
8714,
286,
3835,
326,
389,
407,
3199,
13,
46506,
3670,
16034,
1492,
33411,
5626,
1492,
62,
312,
3268,
357,
46506,
1492,
62,
312,
16034,
9207,
8
] |
Give me a pie to show school_id from different acc regular season. | SELECT ACC_Regular_Season, School_ID FROM basketball_match | [
23318,
502,
257,
2508,
284,
905,
1524,
62,
312,
422,
1180,
697,
3218,
1622,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
1,
1,
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,
2508,
284,
905,
1524,
62,
312,
422,
1180,
697,
3218,
1622,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] |
how many of the current patients are 40s? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.hospitaldischargetime IS NULL AND patient.age BETWEEN 40 AND 49 | [
4919,
867,
286,
262,
1459,
3871,
389,
2319,
82,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
5357,
5827,
13,
496,
38651,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1459,
3871,
389,
2319,
82,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
5357,
5827,
13,
496,
38651,
88... |
how many times did patient 20441 have a criticare hn intake on the first hospital encounter? | SELECT COUNT(*) 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 = 20441 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND inputevents_cv.itemid... | [
4919,
867,
1661,
750,
5827,
1160,
39710,
423,
257,
4014,
533,
289,
77,
10337,
319,
262,
717,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
750,
5827,
1160,
39710,
423,
257,
4014,
533,
289,
77,
10337,
319,
262,
717,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
... |
What is the Region, when the Catalog is 25AP 301? | SELECT "Region" FROM table_48239 WHERE "Catalog" = '25ap 301' | [
2061,
318,
262,
17718,
11,
618,
262,
44515,
318,
1679,
2969,
25643,
30,
46506,
366,
47371,
1,
16034,
3084,
62,
2780,
23516,
33411,
366,
49015,
1,
796,
705,
1495,
499,
25643,
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,
17718,
11,
618,
262,
44515,
318,
1679,
2969,
25643,
30,
46506,
366,
47371,
1,
16034,
3084,
62,
2780,
23516,
33411,
366,
49015,
1,
796,
705,
1495,
499,
25643,
6
] |
What is the Outcome of the jounieh tournament? | SELECT "Outcome" FROM table_35269 WHERE "Tournament" = 'jounieh' | [
2061,
318,
262,
3806,
2958,
286,
262,
474,
977,
494,
71,
7756,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2327,
26276,
33411,
366,
51,
5138,
1,
796,
705,
73,
977,
494,
71,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3806,
2958,
286,
262,
474,
977,
494,
71,
7756,
30,
46506,
366,
7975,
2958,
1,
16034,
3084,
62,
2327,
26276,
33411,
366,
51,
5138,
1,
796,
705,
73,
977,
494,
71,
6
] |
how many hours has it been since the last time in the current hospital encounter patient 027-85328 had a procedure? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328... | [
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
287,
262,
1459,
4436,
8791,
5827,
657,
1983,
12,
23,
4310,
2078,
550,
257,
8771,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
340,
587,
1201,
262,
938,
640,
287,
262,
1459,
4436,
8791,
5827,
657,
1983,
12,
23,
4310,
2078,
550,
257,
8771,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
... |
Was Prof. Hyosang Kang the person who taught NESLANG 420 in the Fall of 2019 ? | SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'NESLANG' AND course.number = 420 AND instructor.name LIKE '%Hyosang Kang%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering... | [
16973,
4415,
13,
6707,
418,
648,
27504,
262,
1048,
508,
7817,
31925,
43,
15567,
28262,
287,
262,
7218,
286,
13130,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4415,
13,
6707,
418,
648,
27504,
262,
1048,
508,
7817,
31925,
43,
15567,
28262,
287,
262,
7218,
286,
13130,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249... |
number of mocho cota matches held in mexico city in 1983 or 1984 | SELECT COUNT(*) FROM table_204_373 WHERE "location" = 'mexico city' AND "date" IN (1983, 1984) | [
17618,
286,
285,
5374,
78,
269,
4265,
7466,
2714,
287,
502,
87,
3713,
1748,
287,
13540,
393,
12844,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
34770,
33411,
366,
24886,
1,
796,
705,
76,
1069,
3713,
1748,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17618,
286,
285,
5374,
78,
269,
4265,
7466,
2714,
287,
502,
87,
3713,
1748,
287,
13540,
393,
12844,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
34770,
33411,
366,
24886,
1,
796,
705,
76,
1069,
3713,
1748,
6,
5357,
366,
... |
Create a bar chart showing the total number across sex | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
1714,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
1714,
46506,
14419,
11,
327,
28270,
7,
28104,
16034,
35262,
44441,
11050,
14419
] |
List the name and gender for all artists who released songs in March. | SELECT T1.artist_name, T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.releasedate LIKE "%Mar%" | [
8053,
262,
1438,
290,
5279,
329,
477,
7912,
508,
2716,
7259,
287,
2805,
13,
46506,
309,
16,
13,
49016,
62,
3672,
11,
309,
16,
13,
8388,
16034,
6802,
7054,
309,
16,
32357,
1268,
3496,
7054,
309,
17,
6177,
309,
16,
13,
49016,
62,
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,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1438,
290,
5279,
329,
477,
7912,
508,
2716,
7259,
287,
2805,
13,
46506,
309,
16,
13,
49016,
62,
3672,
11,
309,
16,
13,
8388,
16034,
6802,
7054,
309,
16,
32357,
1268,
3496,
7054,
309,
17,
6177,
309,
16,
13,
49016,
62,
36... |
what is the primary disease and diagnosis long title of subject name steven sepulveda? | SELECT demographic.diagnosis, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Steven Sepulveda" | [
10919,
318,
262,
4165,
4369,
290,
13669,
890,
3670,
286,
2426,
1438,
2876,
574,
41767,
377,
1079,
64,
30,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
1810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
4369,
290,
13669,
890,
3670,
286,
2426,
1438,
2876,
574,
41767,
377,
1079,
64,
30,
46506,
16728,
13,
47356,
5958,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
1810... |
How many bookings does each booking status have? List the booking status code and the number of corresponding bookings. | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code | [
2437,
867,
1492,
654,
857,
1123,
25452,
3722,
423,
30,
7343,
262,
25452,
3722,
2438,
290,
262,
1271,
286,
11188,
1492,
654,
13,
46506,
25452,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
5949,
1823,
62,
10482,
654,
44441,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1492,
654,
857,
1123,
25452,
3722,
423,
30,
7343,
262,
25452,
3722,
2438,
290,
262,
1271,
286,
11188,
1492,
654,
13,
46506,
25452,
62,
13376,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
5949,
1823,
62,
10482,
654,
44441,
110... |
when did patient 011-49649 last come into the hospital via the other hospital? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '011-49649' AND patient.hospitaladmitsource = 'other hospital' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
12518,
750,
5827,
5534,
16,
12,
2920,
33300,
938,
1282,
656,
262,
4436,
2884,
262,
584,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
2920,
33300,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
750,
5827,
5534,
16,
12,
2920,
33300,
938,
1282,
656,
262,
4436,
2884,
262,
584,
4436,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28555,
12,
2920,
33300,
6,
5357,
... |
How many specimens does the SANT institution have? | SELECT SUM(no_specimens) FROM table_name_1 WHERE abbr = "sant" | [
2437,
867,
27569,
857,
262,
311,
8643,
9901,
423,
30,
46506,
35683,
7,
3919,
62,
16684,
12117,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
450,
1671,
796,
366,
82,
415,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
27569,
857,
262,
311,
8643,
9901,
423,
30,
46506,
35683,
7,
3919,
62,
16684,
12117,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
450,
1671,
796,
366,
82,
415,
1
] |
Who is the shirt sponsor for the team with a head coach of andre schubert and a kitmaker of puma? | SELECT shirt_sponsor FROM table_name_48 WHERE kitmaker = "puma" AND head_coach = "andre schubert" | [
8241,
318,
262,
10147,
17487,
329,
262,
1074,
351,
257,
1182,
3985,
286,
290,
260,
5513,
84,
4835,
290,
257,
6220,
10297,
286,
279,
7487,
30,
46506,
10147,
62,
20587,
273,
16034,
3084,
62,
3672,
62,
2780,
33411,
6220,
10297,
796,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
10147,
17487,
329,
262,
1074,
351,
257,
1182,
3985,
286,
290,
260,
5513,
84,
4835,
290,
257,
6220,
10297,
286,
279,
7487,
30,
46506,
10147,
62,
20587,
273,
16034,
3084,
62,
3672,
62,
2780,
33411,
6220,
10297,
796,
366,... |
S bastien Bourdais of the team Newman/Haas Racing has what qual 1? | SELECT "Qual 1" FROM table_43519 WHERE "Team" = 'newman/haas racing' AND "Name" = 'sébastien bourdais' | [
50,
19918,
2013,
20576,
6814,
271,
286,
262,
1074,
27698,
14,
23303,
292,
14954,
468,
644,
4140,
352,
30,
46506,
366,
46181,
352,
1,
16034,
3084,
62,
40064,
1129,
33411,
366,
15592,
1,
796,
705,
3605,
805,
14,
3099,
292,
11717,
6,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
50,
19918,
2013,
20576,
6814,
271,
286,
262,
1074,
27698,
14,
23303,
292,
14954,
468,
644,
4140,
352,
30,
46506,
366,
46181,
352,
1,
16034,
3084,
62,
40064,
1129,
33411,
366,
15592,
1,
796,
705,
3605,
805,
14,
3099,
292,
11717,
6,
5... |
Show the name of each party and the corresponding number of delegates from that party with a bar chart, and could you rank by the Y-axis in ascending? | SELECT T2.Party, SUM(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY SUM(COUNT(*)) | [
15307,
262,
1438,
286,
1123,
2151,
290,
262,
11188,
1271,
286,
15265,
422,
326,
2151,
351,
257,
2318,
8262,
11,
290,
714,
345,
4279,
416,
262,
575,
12,
22704,
287,
41988,
30,
46506,
309,
17,
13,
33553,
11,
35683,
7,
34,
28270,
46491... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
1123,
2151,
290,
262,
11188,
1271,
286,
15265,
422,
326,
2151,
351,
257,
2318,
8262,
11,
290,
714,
345,
4279,
416,
262,
575,
12,
22704,
287,
41988,
30,
46506,
309,
17,
13,
33553,
11,
35683,
7,
34,
28270,
46491... |
Which Tonnage (GRT) is the highest one that has a Date of 16 june 1940? | SELECT MAX(tonnage__grt_) FROM table_name_52 WHERE date = "16 june 1940" | [
13828,
16859,
77,
496,
357,
10761,
51,
8,
318,
262,
4511,
530,
326,
468,
257,
7536,
286,
1467,
474,
1726,
16236,
30,
46506,
25882,
7,
1122,
77,
496,
834,
2164,
83,
62,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16859,
77,
496,
357,
10761,
51,
8,
318,
262,
4511,
530,
326,
468,
257,
7536,
286,
1467,
474,
1726,
16236,
30,
46506,
25882,
7,
1122,
77,
496,
834,
2164,
83,
62,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3128,
796,
366,
143... |
what is the number of times that patient 030-53416 had received a cpap/peep therapy - 5-10 cm h2o in 2105? | SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-53416')) AND treatment.treatmentname = 'cpap/peep therapy - 5-10 cm h2o' AND... | [
10919,
318,
262,
1271,
286,
1661,
326,
5827,
657,
1270,
12,
20,
2682,
1433,
550,
2722,
257,
31396,
499,
14,
431,
538,
9102,
532,
642,
12,
940,
12067,
289,
17,
78,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
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... | [
10919,
318,
262,
1271,
286,
1661,
326,
5827,
657,
1270,
12,
20,
2682,
1433,
550,
2722,
257,
31396,
499,
14,
431,
538,
9102,
532,
642,
12,
940,
12067,
289,
17,
78,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
16034,
3513,
33411,... |
what are the four most frequently ordered lab tests for patients who had previously received beta blocker within the same month, during the previous year? | 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 = 'beta blocker' AND DATETIME(treatment.treatmenttime, ... | [
10919,
389,
262,
1440,
749,
6777,
6149,
2248,
5254,
329,
3871,
508,
550,
4271,
2722,
12159,
38731,
1626,
262,
976,
1227,
11,
1141,
262,
2180,
614,
30,
46506,
256,
18,
13,
23912,
3672,
16034,
357,
46506,
256,
17,
13,
23912,
3672,
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... | [
10919,
389,
262,
1440,
749,
6777,
6149,
2248,
5254,
329,
3871,
508,
550,
4271,
2722,
12159,
38731,
1626,
262,
976,
1227,
11,
1141,
262,
2180,
614,
30,
46506,
256,
18,
13,
23912,
3672,
16034,
357,
46506,
256,
17,
13,
23912,
3672,
11,
... |
What country has a total of 293? | SELECT "Country" FROM table_43218 WHERE "Total" = '293' | [
2061,
1499,
468,
257,
2472,
286,
37224,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
45331,
1507,
33411,
366,
14957,
1,
796,
705,
31675,
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
] | [
2061,
1499,
468,
257,
2472,
286,
37224,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
45331,
1507,
33411,
366,
14957,
1,
796,
705,
31675,
6
] |
For the game played on November 29, who had the highest rebounds? | SELECT "High rebounds" FROM table_7864 WHERE "Date" = 'november 29' | [
1890,
262,
983,
2826,
319,
3389,
2808,
11,
508,
550,
262,
4511,
18841,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
3695,
2414,
33411,
366,
10430,
1,
796,
705,
77,
3239,
2808,
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
] | [
1890,
262,
983,
2826,
319,
3389,
2808,
11,
508,
550,
262,
4511,
18841,
30,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
3695,
2414,
33411,
366,
10430,
1,
796,
705,
77,
3239,
2808,
6
] |
what is the number of patients whose admission type is newborn and procedure short title is insert endotracheal tube? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "NEWBORN" AND procedures.short_title = "Insert endotracheal tube" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
8771,
1790,
3670,
318,
7550,
46710,
81,
4891,
282,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
8771,
1790,
3670,
318,
7550,
46710,
81,
4891,
282,
12403,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, could you sort by the Y in ascending please? | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY SUM(SALARY) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
714,
345,
3297,
416,
262,
575... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
9588,
837,
290,
1448,
416,
11688,
1693,
62,
312,
11,
714,
345,
3297,
416,
262,
575... |
What was the low number of draws for Levante Ud when their goal difference was smaller than 6? | SELECT MIN(draws) FROM table_name_14 WHERE club = "levante ud" AND goal_difference < 6 | [
2061,
373,
262,
1877,
1271,
286,
14293,
329,
42607,
68,
35774,
618,
511,
3061,
3580,
373,
4833,
621,
718,
30,
46506,
20625,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
1415,
33411,
3430,
796,
366,
2768,
12427,
334,
67,
1,
5357,
3061... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1877,
1271,
286,
14293,
329,
42607,
68,
35774,
618,
511,
3061,
3580,
373,
4833,
621,
718,
30,
46506,
20625,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
1415,
33411,
3430,
796,
366,
2768,
12427,
334,
67,
1,
5357,
3061... |
What was the value in 2006 when 2003 was not held and 2012 was A? | SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a" | [
2061,
373,
262,
1988,
287,
4793,
618,
5816,
373,
407,
2714,
290,
2321,
373,
317,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
1821,
33411,
5816,
796,
366,
1662,
2714,
1,
5357,
2321,
796,
366,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1988,
287,
4793,
618,
5816,
373,
407,
2714,
290,
2321,
373,
317,
30,
46506,
4793,
16034,
3084,
62,
3672,
62,
1821,
33411,
5816,
796,
366,
1662,
2714,
1,
5357,
2321,
796,
366,
64,
1
] |
how many new points does the player roberta vinci have? | SELECT MAX(new_points) FROM table_29572583_20 WHERE player = "Roberta Vinci" | [
4919,
867,
649,
2173,
857,
262,
2137,
686,
4835,
64,
410,
259,
979,
423,
30,
46506,
25882,
7,
3605,
62,
13033,
8,
16034,
3084,
62,
1959,
3553,
1495,
5999,
62,
1238,
33411,
2137,
796,
366,
15924,
8326,
11820,
979,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
649,
2173,
857,
262,
2137,
686,
4835,
64,
410,
259,
979,
423,
30,
46506,
25882,
7,
3605,
62,
13033,
8,
16034,
3084,
62,
1959,
3553,
1495,
5999,
62,
1238,
33411,
2137,
796,
366,
15924,
8326,
11820,
979,
1
] |
which ship is the only container ship listed ? | SELECT "ship name" FROM table_203_193 WHERE "type" = 'container ship' | [
4758,
4074,
318,
262,
691,
9290,
4074,
5610,
5633,
46506,
366,
6720,
1438,
1,
16034,
3084,
62,
22416,
62,
24943,
33411,
366,
4906,
1,
796,
705,
34924,
4074,
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
] | [
4758,
4074,
318,
262,
691,
9290,
4074,
5610,
5633,
46506,
366,
6720,
1438,
1,
16034,
3084,
62,
22416,
62,
24943,
33411,
366,
4906,
1,
796,
705,
34924,
4074,
6
] |
Tell me the title for the production code less than 706 with series number more than 175 | SELECT "Title" FROM table_53532 WHERE "Series #" > '175' AND "Production code" < '706' | [
24446,
502,
262,
3670,
329,
262,
3227,
2438,
1342,
621,
767,
3312,
351,
2168,
1271,
517,
621,
19038,
46506,
366,
19160,
1,
16034,
3084,
62,
44465,
2624,
33411,
366,
27996,
1303,
1,
1875,
705,
17430,
6,
5357,
366,
35027,
2438,
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
] | [
24446,
502,
262,
3670,
329,
262,
3227,
2438,
1342,
621,
767,
3312,
351,
2168,
1271,
517,
621,
19038,
46506,
366,
19160,
1,
16034,
3084,
62,
44465,
2624,
33411,
366,
27996,
1303,
1,
1875,
705,
17430,
6,
5357,
366,
35027,
2438,
1,
1279,... |
For each customer who has at least two orders, find the customer name and number of orders made. | SELECT T2.customer_name, COUNT(*) FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id HAVING COUNT(*) >= 2 | [
1890,
1123,
6491,
508,
468,
379,
1551,
734,
6266,
11,
1064,
262,
6491,
1438,
290,
1271,
286,
6266,
925,
13,
46506,
309,
17,
13,
23144,
263,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
6266,
7054,
309,
16,
32357,
1268,
4297,
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... | [
1890,
1123,
6491,
508,
468,
379,
1551,
734,
6266,
11,
1064,
262,
6491,
1438,
290,
1271,
286,
6266,
925,
13,
46506,
309,
17,
13,
23144,
263,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
6266,
7054,
309,
16,
32357,
1268,
4297,
7054,
309... |
What is the average Gold entry for the Netherlands that also has a Bronze entry that is greater than 0? | SELECT AVG("Gold") FROM table_79400 WHERE "Nation" = 'netherlands' AND "Bronze" > '0' | [
2061,
318,
262,
2811,
3561,
5726,
329,
262,
12671,
326,
635,
468,
257,
19461,
5726,
326,
318,
3744,
621,
657,
30,
46506,
35224,
7203,
13306,
4943,
16034,
3084,
62,
3720,
7029,
33411,
366,
46108,
1,
796,
705,
3262,
372,
4447,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
3561,
5726,
329,
262,
12671,
326,
635,
468,
257,
19461,
5726,
326,
318,
3744,
621,
657,
30,
46506,
35224,
7203,
13306,
4943,
16034,
3084,
62,
3720,
7029,
33411,
366,
46108,
1,
796,
705,
3262,
372,
4447,
6,
5357,
... |
What state had william bigler (d) as a successor) | SELECT "State (class)" FROM table_26637 WHERE "Successor" = 'William Bigler (D)' | [
2061,
1181,
550,
481,
1789,
1263,
1754,
357,
67,
8,
355,
257,
17270,
8,
46506,
366,
9012,
357,
4871,
16725,
16034,
3084,
62,
25540,
2718,
33411,
366,
33244,
273,
1,
796,
705,
17121,
4403,
1754,
357,
35,
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,
1181,
550,
481,
1789,
1263,
1754,
357,
67,
8,
355,
257,
17270,
8,
46506,
366,
9012,
357,
4871,
16725,
16034,
3084,
62,
25540,
2718,
33411,
366,
33244,
273,
1,
796,
705,
17121,
4403,
1754,
357,
35,
33047
] |
Which nominating festival did United Kingdom enter? | SELECT "Nominating Festival" FROM table_15369 WHERE "Country" = 'united kingdom' | [
13828,
48833,
10876,
750,
1578,
7526,
3802,
30,
46506,
366,
45,
296,
6010,
11117,
1,
16034,
3084,
62,
1314,
30803,
33411,
366,
33921,
1,
796,
705,
41187,
13239,
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
] | [
13828,
48833,
10876,
750,
1578,
7526,
3802,
30,
46506,
366,
45,
296,
6010,
11117,
1,
16034,
3084,
62,
1314,
30803,
33411,
366,
33921,
1,
796,
705,
41187,
13239,
6
] |
Give me the comparison about the average of Height over the Sex , and group by attribute Sex, and display in desc by the bars. | SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY Sex DESC | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
27280,
625,
262,
14419,
837,
290,
1448,
416,
11688,
14419,
11,
290,
3359,
287,
1715,
416,
262,
9210,
13,
46506,
14419,
11,
35224,
7,
23106,
8,
16034,
661,
44441,
11050,
14419,
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
] | [
23318,
502,
262,
7208,
546,
262,
2811,
286,
27280,
625,
262,
14419,
837,
290,
1448,
416,
11688,
14419,
11,
290,
3359,
287,
1715,
416,
262,
9210,
13,
46506,
14419,
11,
35224,
7,
23106,
8,
16034,
661,
44441,
11050,
14419,
38678,
11050,
... |
how many categories fall under the category of britons? | SELECT COUNT(type) FROM table_261895_1 WHERE nickname = "Britons" | [
4919,
867,
9376,
2121,
739,
262,
6536,
286,
275,
799,
684,
30,
46506,
327,
28270,
7,
4906,
8,
16034,
3084,
62,
2075,
1507,
3865,
62,
16,
33411,
21814,
796,
366,
17959,
684,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9376,
2121,
739,
262,
6536,
286,
275,
799,
684,
30,
46506,
327,
28270,
7,
4906,
8,
16034,
3084,
62,
2075,
1507,
3865,
62,
16,
33411,
21814,
796,
366,
17959,
684,
1
] |
What are the names, headquarters and revenues for manufacturers, sorted by revenue descending? | SELECT name, headquarter, revenue FROM manufacturers ORDER BY revenue DESC | [
2061,
389,
262,
3891,
11,
10043,
290,
13089,
329,
11372,
11,
23243,
416,
6426,
31491,
30,
46506,
1438,
11,
1182,
24385,
11,
6426,
16034,
11372,
38678,
11050,
6426,
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
] | [
2061,
389,
262,
3891,
11,
10043,
290,
13089,
329,
11372,
11,
23243,
416,
6426,
31491,
30,
46506,
1438,
11,
1182,
24385,
11,
6426,
16034,
11372,
38678,
11050,
6426,
22196,
34
] |
In which area was there a score of 68? | SELECT place FROM table_name_42 WHERE score = 68 | [
818,
543,
1989,
373,
612,
257,
4776,
286,
8257,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
8257
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
543,
1989,
373,
612,
257,
4776,
286,
8257,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
8257
] |
who are the writers of the episode whose production code(s) is 225560? | SELECT "Written by" FROM table_29793 WHERE "Production code(s)" = '225560' | [
8727,
389,
262,
8786,
286,
262,
4471,
3025,
3227,
2438,
7,
82,
8,
318,
362,
13381,
1899,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1959,
44750,
33411,
366,
35027,
2438,
7,
82,
16725,
796,
705,
17,
13381,
1899,
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,
389,
262,
8786,
286,
262,
4471,
3025,
3227,
2438,
7,
82,
8,
318,
362,
13381,
1899,
30,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
1959,
44750,
33411,
366,
35027,
2438,
7,
82,
16725,
796,
705,
17,
13381,
1899,
6
] |
Which Pop/Area (1/km ) has a No P. larger than 1, and a Name of albergaria-a-velha? | SELECT AVG("Pop/Area (1/km\u00b2)") FROM table_62220 WHERE "No P." > '1' AND "Name" = 'albergaria-a-velha' | [
13828,
8099,
14,
30547,
357,
16,
14,
13276,
1267,
468,
257,
1400,
350,
13,
4025,
621,
352,
11,
290,
257,
6530,
286,
435,
3900,
10312,
12,
64,
12,
626,
3099,
30,
46506,
35224,
7203,
16979,
14,
30547,
357,
16,
14,
13276,
59,
84,
405... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8099,
14,
30547,
357,
16,
14,
13276,
1267,
468,
257,
1400,
350,
13,
4025,
621,
352,
11,
290,
257,
6530,
286,
435,
3900,
10312,
12,
64,
12,
626,
3099,
30,
46506,
35224,
7203,
16979,
14,
30547,
357,
16,
14,
13276,
59,
84,
405... |
How many opponents have a 1-0 record against the Cowboys? | SELECT opponents FROM table_22801331_1 WHERE record = "1-0" | [
2437,
867,
7691,
423,
257,
352,
12,
15,
1700,
1028,
262,
16535,
30,
46506,
7691,
16034,
3084,
62,
23815,
486,
31697,
62,
16,
33411,
1700,
796,
366,
16,
12,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
7691,
423,
257,
352,
12,
15,
1700,
1028,
262,
16535,
30,
46506,
7691,
16034,
3084,
62,
23815,
486,
31697,
62,
16,
33411,
1700,
796,
366,
16,
12,
15,
1
] |
what is the highest round when the player is troy creurer (d)? | SELECT MAX(round) FROM table_name_90 WHERE player = "troy creurer (d)" | [
10919,
318,
262,
4511,
2835,
618,
262,
2137,
318,
256,
3287,
1126,
15051,
357,
67,
19427,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
2137,
796,
366,
83,
3287,
1126,
15051,
357,
67,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
4511,
2835,
618,
262,
2137,
318,
256,
3287,
1126,
15051,
357,
67,
19427,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
2137,
796,
366,
83,
3287,
1126,
15051,
357,
67,
16725
] |
At a latitude of 71.1e, what is the feature's name origin? | SELECT "Name origin" FROM table_72809 WHERE "Longitude" = '71.1E' | [
2953,
257,
32477,
286,
9166,
13,
16,
68,
11,
644,
318,
262,
3895,
338,
1438,
8159,
30,
46506,
366,
5376,
8159,
1,
16034,
3084,
62,
4761,
34583,
33411,
366,
14617,
3984,
1,
796,
705,
4869,
13,
16,
36,
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
] | [
2953,
257,
32477,
286,
9166,
13,
16,
68,
11,
644,
318,
262,
3895,
338,
1438,
8159,
30,
46506,
366,
5376,
8159,
1,
16034,
3084,
62,
4761,
34583,
33411,
366,
14617,
3984,
1,
796,
705,
4869,
13,
16,
36,
6
] |
GENERATE HTML PAGE SHOWING (mostly) ANIMATED GIFS posted in specified # of days. Creates HTML to paste into blank .html file showing .GIF images (mostly animated GIFs) linked to Q&A posts within 'the past number of days specified'. Looks for the first occurrence of `.gif` in the post body and searches backwards for `ht... | SELECT SUBSTRING(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - (CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1), CHARINDEX(REVERSE(@stStart), REVERSE(LEFT(Body, CHARINDEX(@stEnd, Body) + LEN(@stStart) - 1))) + LEN(@stStart) - 1) AS "gif_url", CASE WH... | [
35353,
1137,
6158,
11532,
48488,
37041,
2751,
357,
29471,
8,
3537,
3955,
11617,
24984,
50,
4481,
287,
7368,
1303,
286,
1528,
13,
7921,
274,
11532,
284,
17008,
656,
9178,
764,
6494,
2393,
4478,
764,
38,
5064,
4263,
357,
29471,
15108,
249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35353,
1137,
6158,
11532,
48488,
37041,
2751,
357,
29471,
8,
3537,
3955,
11617,
24984,
50,
4481,
287,
7368,
1303,
286,
1528,
13,
7921,
274,
11532,
284,
17008,
656,
9178,
764,
6494,
2393,
4478,
764,
38,
5064,
4263,
357,
29471,
15108,
249... |
who was the fastest swimmer ? | SELECT "name" FROM table_204_422 ORDER BY "time" LIMIT 1 | [
8727,
373,
262,
14162,
9422,
647,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44361,
38678,
11050,
366,
2435,
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
] | [
8727,
373,
262,
14162,
9422,
647,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
44361,
38678,
11050,
366,
2435,
1,
27564,
2043,
352
] |
find the number of patients who had blood fluid lab test and had diagnoses icd9 code 29281. | 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.icd9_code = "29281" AND lab.fluid = "Blood" | [
19796,
262,
1271,
286,
3871,
508,
550,
2910,
11711,
2248,
1332,
290,
550,
40567,
14158,
67,
24,
2438,
2808,
30368,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
3871,
508,
550,
2910,
11711,
2248,
1332,
290,
550,
40567,
14158,
67,
24,
2438,
2808,
30368,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4... |
Find the name of scientists who are not assigned to any project. | SELECT Name FROM scientists WHERE NOT ssn IN (SELECT scientist FROM AssignedTo) | [
16742,
262,
1438,
286,
5519,
508,
389,
407,
8686,
284,
597,
1628,
13,
46506,
6530,
16034,
5519,
33411,
5626,
264,
16184,
3268,
357,
46506,
11444,
16034,
2195,
3916,
2514,
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
] | [
16742,
262,
1438,
286,
5519,
508,
389,
407,
8686,
284,
597,
1628,
13,
46506,
6530,
16034,
5519,
33411,
5626,
264,
16184,
3268,
357,
46506,
11444,
16034,
2195,
3916,
2514,
8
] |
How many cities were there in 2012 where the rate of burglary was 224.8? | SELECT COUNT(property_crime) FROM table_1818254_1 WHERE burglary = "224.8" | [
2437,
867,
4736,
547,
612,
287,
2321,
810,
262,
2494,
286,
33724,
373,
26063,
13,
23,
30,
46506,
327,
28270,
7,
26745,
62,
28126,
8,
16034,
3084,
62,
1507,
1507,
24970,
62,
16,
33411,
33724,
796,
366,
24137,
13,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4736,
547,
612,
287,
2321,
810,
262,
2494,
286,
33724,
373,
26063,
13,
23,
30,
46506,
327,
28270,
7,
26745,
62,
28126,
8,
16034,
3084,
62,
1507,
1507,
24970,
62,
16,
33411,
33724,
796,
366,
24137,
13,
23,
1
] |
What is the total number of losses for entries with 15 wins and a position larger than 3? | SELECT SUM(losses) FROM table_name_69 WHERE wins = 15 AND position > 3 | [
2061,
318,
262,
2472,
1271,
286,
9089,
329,
12784,
351,
1315,
7864,
290,
257,
2292,
4025,
621,
513,
30,
46506,
35683,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
7864,
796,
1315,
5357,
2292,
1875,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
9089,
329,
12784,
351,
1315,
7864,
290,
257,
2292,
4025,
621,
513,
30,
46506,
35683,
7,
22462,
274,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
7864,
796,
1315,
5357,
2292,
1875,
513
] |
What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid? | SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11 | [
2061,
318,
262,
2472,
1271,
286,
406,
1686,
618,
17661,
2523,
329,
640,
329,
14679,
290,
1342,
621,
1367,
329,
10706,
30,
46506,
327,
28270,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
640,
796,
366,
26000,
1166,
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,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
406,
1686,
618,
17661,
2523,
329,
640,
329,
14679,
290,
1342,
621,
1367,
329,
10706,
30,
46506,
327,
28270,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
640,
796,
366,
26000,
1166,
1,
5357... |
Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction. | SELECT T2.name FROM locations AS T1 JOIN tourist_attractions AS T2 ON T1.location_id = T2.location_id WHERE T1.address = "254 Ottilie Junction" OR T2.how_to_get_there = "bus" | [
16742,
262,
3891,
286,
262,
18473,
29156,
326,
318,
2035,
9857,
416,
1323,
393,
379,
2209,
35360,
9767,
346,
494,
44410,
13,
46506,
309,
17,
13,
3672,
16034,
7064,
7054,
309,
16,
32357,
1268,
18473,
62,
1078,
37810,
7054,
309,
17,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
3891,
286,
262,
18473,
29156,
326,
318,
2035,
9857,
416,
1323,
393,
379,
2209,
35360,
9767,
346,
494,
44410,
13,
46506,
309,
17,
13,
3672,
16034,
7064,
7054,
309,
16,
32357,
1268,
18473,
62,
1078,
37810,
7054,
309,
17,
617... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.