instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what are the five most frequently prescribed drugs for patients that have been prescribed propofol 10 mg/ml at the same time, since 2100? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'propofol 10 mg/ml' AND STRFTIME('%y', medication.dr... | [
10919,
389,
262,
1936,
749,
6777,
14798,
5010,
329,
3871,
326,
423,
587,
14798,
2632,
1659,
349,
838,
10527,
14,
4029,
379,
262,
976,
640,
11,
1201,
38123,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
6777,
14798,
5010,
329,
3871,
326,
423,
587,
14798,
2632,
1659,
349,
838,
10527,
14,
4029,
379,
262,
976,
640,
11,
1201,
38123,
30,
46506,
256,
18,
13,
30349,
3672,
16034,
357,
46506,
256,
17,
13,
30349,
... |
provide the number of patients who are aged below 49 years with a drug code morp0.5-4. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "49" AND prescriptions.formulary_drug_cd = "MORP0.5-4" | [
15234,
485,
262,
1271,
286,
3871,
508,
389,
9722,
2174,
5125,
812,
351,
257,
2563,
2438,
38837,
15,
13,
20,
12,
19,
13,
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... | [
15234,
485,
262,
1271,
286,
3871,
508,
389,
9722,
2174,
5125,
812,
351,
257,
2563,
2438,
38837,
15,
13,
20,
12,
19,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
For those employees who did not have any job in the past, return a line chart about the change of salary over hire_date , I want to sort by the HIRE_DATE from high to low please. | SELECT HIRE_DATE, SALARY FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
837,
314,
765,
284,
3297,
416,
262,
36210,
2200,
62,
35,
6158,
422,
1029,
284,
1877,
3387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
1627,
8262,
546,
262,
1487,
286,
9588,
625,
11078,
62,
4475,
837,
314,
765,
284,
3297,
416,
262,
36210,
2200,
62,
35,
6158,
422,
1029,
284,
1877,
3387,
... |
How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38? | SELECT SUM("Lost") FROM table_36754 WHERE "Points" > '40' AND "Position" = '11' AND "Played" < '38' | [
2437,
867,
9164,
423,
11045,
4025,
621,
2319,
11,
290,
257,
23158,
286,
1367,
11,
290,
257,
33101,
4833,
621,
4353,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
2623,
41874,
33411,
366,
40710,
1,
1875,
705,
1821,
6,
5357,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
9164,
423,
11045,
4025,
621,
2319,
11,
290,
257,
23158,
286,
1367,
11,
290,
257,
33101,
4833,
621,
4353,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
2623,
41874,
33411,
366,
40710,
1,
1875,
705,
1821,
6,
5357,
366... |
What year was clair engle first elected? | SELECT "First elected" FROM table_18569 WHERE "Incumbent" = 'Clair Engle' | [
2061,
614,
373,
537,
958,
1786,
293,
717,
7018,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
21652,
3388,
33411,
366,
25517,
2178,
298,
1,
796,
705,
2601,
958,
1985,
293,
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,
614,
373,
537,
958,
1786,
293,
717,
7018,
30,
46506,
366,
5962,
7018,
1,
16034,
3084,
62,
21652,
3388,
33411,
366,
25517,
2178,
298,
1,
796,
705,
2601,
958,
1985,
293,
6
] |
Give me the comparison about All_Games_Percent over the ACC_Regular_Season by a bar chart, show X from low to high order. | SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY ACC_Regular_Season | [
23318,
502,
262,
7208,
546,
1439,
62,
24474,
62,
31905,
625,
262,
15859,
62,
40164,
62,
18960,
416,
257,
2318,
8262,
11,
905,
1395,
422,
1877,
284,
1029,
1502,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
1439,
62,
24474,
62,
31905,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1439,
62,
24474,
62,
31905,
625,
262,
15859,
62,
40164,
62,
18960,
416,
257,
2318,
8262,
11,
905,
1395,
422,
1877,
284,
1029,
1502,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
1439,
62,
24474,
62,
31905,
... |
What is the score for the game that was played on 29-Jun-2009? | SELECT score FROM table_name_93 WHERE date = "29-jun-2009" | [
2061,
318,
262,
4776,
329,
262,
983,
326,
373,
2826,
319,
2808,
12,
22396,
12,
10531,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6052,
33411,
3128,
796,
366,
1959,
12,
29741,
12,
10531,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
329,
262,
983,
326,
373,
2826,
319,
2808,
12,
22396,
12,
10531,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6052,
33411,
3128,
796,
366,
1959,
12,
29741,
12,
10531,
1
] |
what were the five drugs that were ordered the most frequently in this year? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
10919,
547,
262,
1936,
5010,
326,
547,
6149,
262,
749,
6777,
287,
428,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1936,
5010,
326,
547,
6149,
262,
749,
6777,
287,
428,
614,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
2827... |
questions with many duplicates. | SELECT t.Id AS "post_link", t.Score, t.ClosedDate, COUNT(*) AS num FROM Posts AS t INNER JOIN PostLinks AS l ON t.Id = l.RelatedPostId INNER JOIN Posts AS s ON s.Id = l.PostId WHERE l.LinkTypeId = 3 GROUP BY t.Id, t.Score, t.ClosedDate ORDER BY COUNT(*) DESC LIMIT 200 | [
6138,
507,
351,
867,
14184,
16856,
13,
46506,
256,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
256,
13,
26595,
11,
256,
13,
2601,
1335,
10430,
11,
327,
28270,
7,
28104,
7054,
997,
16034,
12043,
7054,
256,
3268,
21479,
32357,
1268,
2947... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6138,
507,
351,
867,
14184,
16856,
13,
46506,
256,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
256,
13,
26595,
11,
256,
13,
2601,
1335,
10430,
11,
327,
28270,
7,
28104,
7054,
997,
16034,
12043,
7054,
256,
3268,
21479,
32357,
1268,
2947... |
what is procedure long title of procedure icd9 code 4601? | SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "4601" | [
10919,
318,
8771,
890,
3670,
286,
8771,
14158,
67,
24,
2438,
6337,
486,
30,
46506,
9021,
13,
6511,
62,
7839,
16034,
9021,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3510,
486,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8771,
890,
3670,
286,
8771,
14158,
67,
24,
2438,
6337,
486,
30,
46506,
9021,
13,
6511,
62,
7839,
16034,
9021,
33411,
9021,
13,
291,
67,
24,
62,
8189,
796,
366,
3510,
486,
1
] |
Top 200 users from Portland. Lists the top 100 Stackoverflow users from Portland, according to their profile information. | SELECT Id AS "user_link", Reputation, WebsiteUrl, Location FROM Users WHERE AboutMe LIKE '%at Google%' ORDER BY Reputation DESC LIMIT 200 | [
9126,
939,
2985,
422,
10727,
13,
44968,
262,
1353,
1802,
23881,
2502,
11125,
2985,
422,
10727,
11,
1864,
284,
511,
7034,
1321,
13,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
939,
2985,
422,
10727,
13,
44968,
262,
1353,
1802,
23881,
2502,
11125,
2985,
422,
10727,
11,
1864,
284,
511,
7034,
1321,
13,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
3341... |
What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwindi had less than 4,374? | SELECT MAX("Waggamba") FROM table_68822 WHERE "Inglewood" = '2,771' AND "Goondiwindi" < '4,374' | [
2061,
318,
262,
4511,
1988,
287,
370,
9460,
31842,
547,
17589,
293,
1383,
375,
550,
362,
11,
46761,
11,
475,
1514,
623,
72,
7972,
72,
550,
1342,
621,
604,
11,
31020,
30,
46506,
25882,
7203,
54,
9460,
31842,
4943,
16034,
3084,
62,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
4511,
1988,
287,
370,
9460,
31842,
547,
17589,
293,
1383,
375,
550,
362,
11,
46761,
11,
475,
1514,
623,
72,
7972,
72,
550,
1342,
621,
604,
11,
31020,
30,
46506,
25882,
7203,
54,
9460,
31842,
4943,
16034,
3084,
62,
34... |
how many patients born before 2101 have primary disease as pituitary bleed? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "PITUITARY BLEED" AND demographic.dob_year < "2101" | [
4919,
867,
3871,
4642,
878,
2310,
486,
423,
4165,
4369,
355,
6028,
5013,
560,
30182,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
47,
2043,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4642,
878,
2310,
486,
423,
4165,
4369,
355,
6028,
5013,
560,
30182,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366,
47,
2043,
52,
... |
Name the most pick number for guard and kansas city chiefs | SELECT MAX("Pick #") FROM table_27368 WHERE "Position" = 'Guard' AND "NFL Team" = 'Kansas City Chiefs' | [
5376,
262,
749,
2298,
1271,
329,
4860,
290,
479,
6618,
1748,
30217,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1983,
27412,
33411,
366,
26545,
1,
796,
705,
24502,
6,
5357,
366,
32078,
4816,
1,
796,
705,
43451,
2254,
18733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
749,
2298,
1271,
329,
4860,
290,
479,
6618,
1748,
30217,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1983,
27412,
33411,
366,
26545,
1,
796,
705,
24502,
6,
5357,
366,
32078,
4816,
1,
796,
705,
43451,
2254,
18733,
... |
Calculate the minimum age of spanish speaking patients who have bladder cancer/sda as their primary disease. | SELECT MIN(demographic.age) FROM demographic WHERE demographic.language = "SPAN" AND demographic.diagnosis = "BLADDER CANCER/SDA" | [
9771,
3129,
378,
262,
5288,
2479,
286,
599,
7115,
5486,
3871,
508,
423,
34918,
4890,
14,
82,
6814,
355,
511,
4165,
4369,
13,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
4303,
1565,
1,
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,
1,
1
] | [
9771,
3129,
378,
262,
5288,
2479,
286,
599,
7115,
5486,
3871,
508,
423,
34918,
4890,
14,
82,
6814,
355,
511,
4165,
4369,
13,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
4303,
1565,
1,
53... |
What is the result of nominee, Patricia McGourty, for the drama desk award? | SELECT result FROM table_name_17 WHERE award = "drama desk award" AND nominee = "patricia mcgourty" | [
2061,
318,
262,
1255,
286,
10429,
11,
30223,
11130,
454,
774,
11,
329,
262,
10512,
6915,
5764,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1558,
33411,
5764,
796,
366,
67,
20058,
6915,
5764,
1,
5357,
10429,
796,
366,
8071,
26654,
3665... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
286,
10429,
11,
30223,
11130,
454,
774,
11,
329,
262,
10512,
6915,
5764,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1558,
33411,
5764,
796,
366,
67,
20058,
6915,
5764,
1,
5357,
10429,
796,
366,
8071,
26654,
3665... |
What player has a college named san sebastian? | SELECT player FROM table_name_97 WHERE college = "san sebastian" | [
2061,
2137,
468,
257,
4152,
3706,
5336,
384,
65,
459,
666,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5607,
33411,
4152,
796,
366,
12807,
384,
65,
459,
666,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
468,
257,
4152,
3706,
5336,
384,
65,
459,
666,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5607,
33411,
4152,
796,
366,
12807,
384,
65,
459,
666,
1
] |
What is the average upper index MJ/Nm 3 for the upper index Kcal/Nm 3 entry of 19,376? | SELECT AVG(upper_index_mj__nm_3) FROM table_name_70 WHERE upper_index_kcal__nm_3 = 19 OFFSET 376 | [
2061,
318,
262,
2811,
6727,
6376,
33974,
14,
45,
76,
513,
329,
262,
6727,
6376,
509,
9948,
14,
45,
76,
513,
5726,
286,
678,
11,
32128,
30,
46506,
35224,
7,
45828,
62,
9630,
62,
76,
73,
834,
21533,
62,
18,
8,
16034,
3084,
62,
367... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6727,
6376,
33974,
14,
45,
76,
513,
329,
262,
6727,
6376,
509,
9948,
14,
45,
76,
513,
5726,
286,
678,
11,
32128,
30,
46506,
35224,
7,
45828,
62,
9630,
62,
76,
73,
834,
21533,
62,
18,
8,
16034,
3084,
62,
367... |
what is the number of patients whose year of birth is less than 2121 and lab test fluid is blood? | 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 = "Blood" | [
10919,
318,
262,
1271,
286,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
362,
19244,
290,
2248,
1332,
11711,
318,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2910,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
126... |
Find how many different affiliation types there are. | SELECT COUNT(DISTINCT affiliation) FROM university | [
16742,
703,
867,
1180,
26218,
3858,
612,
389,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
26218,
8,
16034,
6403
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
703,
867,
1180,
26218,
3858,
612,
389,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
26218,
8,
16034,
6403
] |
tell me the name of the laboratory test which patient 4900 first received since 113 months ago? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4900) AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-113 month') ORDER BY labevents.charttime LI... | [
33331,
502,
262,
1438,
286,
262,
14010,
1332,
543,
5827,
5125,
405,
717,
2722,
1201,
17318,
1933,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
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... | [
33331,
502,
262,
1438,
286,
262,
14010,
1332,
543,
5827,
5125,
405,
717,
2722,
1201,
17318,
1933,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
... |
Which Italian restaurant in Dallas has the highest rating ? | SELECT business.name FROM business, category AS CATEGORY_0, category AS CATEGORY_1 WHERE business.city = 'Dallas' AND CATEGORY_0.business_id = business.business_id AND CATEGORY_0.category_name = 'restaurant' AND CATEGORY_1.business_id = business.business_id AND CATEGORY_1.category_name = 'Italian' ORDER BY business.rat... | [
13828,
8200,
7072,
287,
8533,
468,
262,
4511,
7955,
5633,
46506,
1597,
13,
3672,
16034,
1597,
11,
6536,
7054,
327,
6158,
38,
15513,
62,
15,
11,
6536,
7054,
327,
6158,
38,
15513,
62,
16,
33411,
1597,
13,
19205,
796,
705,
40540,
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,
1,
1,
1,
1,
1,
1,
1... | [
13828,
8200,
7072,
287,
8533,
468,
262,
4511,
7955,
5633,
46506,
1597,
13,
3672,
16034,
1597,
11,
6536,
7054,
327,
6158,
38,
15513,
62,
15,
11,
6536,
7054,
327,
6158,
38,
15513,
62,
16,
33411,
1597,
13,
19205,
796,
705,
40540,
6,
53... |
What are the L2 cache specifications of part number amql64dam22gg? | SELECT "L2 Cache" FROM table_3721 WHERE "Order Part Number" = 'AMQL64DAM22GG' | [
2061,
389,
262,
406,
17,
12940,
20640,
286,
636,
1271,
716,
13976,
2414,
11043,
1828,
1130,
30,
46506,
366,
43,
17,
34088,
1,
16034,
3084,
62,
2718,
2481,
33411,
366,
18743,
2142,
7913,
1,
796,
705,
2390,
9711,
2414,
35,
2390,
1828,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
406,
17,
12940,
20640,
286,
636,
1271,
716,
13976,
2414,
11043,
1828,
1130,
30,
46506,
366,
43,
17,
34088,
1,
16034,
3084,
62,
2718,
2481,
33411,
366,
18743,
2142,
7913,
1,
796,
705,
2390,
9711,
2414,
35,
2390,
1828,
... |
Get me the number of patients with elective hospital admission who are on propofol. | 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 = "Propofol" | [
3855,
502,
262,
1271,
286,
3871,
351,
1742,
425,
4436,
13938,
508,
389,
319,
2632,
1659,
349,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3855,
502,
262,
1271,
286,
3871,
351,
1742,
425,
4436,
13938,
508,
389,
319,
2632,
1659,
349,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13... |
calculate one year survival probability of patients who were prescribed furosemide 40 mg tab after having been diagnosed with stroke - ischemic stroke? | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid... | [
9948,
3129,
378,
530,
614,
9441,
12867,
286,
3871,
508,
547,
14798,
277,
1434,
43616,
485,
2319,
10527,
7400,
706,
1719,
587,
14641,
351,
14000,
532,
318,
2395,
9383,
14000,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
530,
614,
9441,
12867,
286,
3871,
508,
547,
14798,
277,
1434,
43616,
485,
2319,
10527,
7400,
706,
1719,
587,
14641,
351,
14000,
532,
318,
2395,
9383,
14000,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
... |
when hayden roulston is the winner what is the team classification? | SELECT "Team classification" FROM table_30465 WHERE "Winner" = 'Hayden Roulston' | [
12518,
27678,
6559,
374,
2852,
3743,
318,
262,
8464,
644,
318,
262,
1074,
17923,
30,
46506,
366,
15592,
17923,
1,
16034,
3084,
62,
21288,
2996,
33411,
366,
48056,
1,
796,
705,
31306,
6559,
371,
2852,
3743,
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
] | [
12518,
27678,
6559,
374,
2852,
3743,
318,
262,
8464,
644,
318,
262,
1074,
17923,
30,
46506,
366,
15592,
17923,
1,
16034,
3084,
62,
21288,
2996,
33411,
366,
48056,
1,
796,
705,
31306,
6559,
371,
2852,
3743,
6
] |
What was the maximum capacity of larry gomes stadium? | SELECT MAX(capacity) FROM table_25794138_1 WHERE stadium = "Larry Gomes stadium" | [
2061,
373,
262,
5415,
5339,
286,
300,
6532,
308,
2586,
10308,
30,
46506,
25882,
7,
42404,
8,
16034,
3084,
62,
1495,
50242,
20107,
62,
16,
33411,
10308,
796,
366,
42918,
402,
2586,
10308,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5415,
5339,
286,
300,
6532,
308,
2586,
10308,
30,
46506,
25882,
7,
42404,
8,
16034,
3084,
62,
1495,
50242,
20107,
62,
16,
33411,
10308,
796,
366,
42918,
402,
2586,
10308,
1
] |
what number of black/cape verdean patients had the drug 0.45%sodium chloride? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug = "0.45% Sodium Chloride" | [
10919,
1271,
286,
2042,
14,
36435,
3326,
2934,
272,
3871,
550,
262,
2563,
657,
13,
2231,
4,
82,
12664,
44921,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
2042,
14,
36435,
3326,
2934,
272,
3871,
550,
262,
2563,
657,
13,
2231,
4,
82,
12664,
44921,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, show me about the correlation between salary and commission_pct in a scatter chart. | SELECT SALARY, COMMISSION_PCT FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | [
1890,
883,
4409,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
16096,
1022,
9588,
290,
5810,
62,
79,
310,
287,
257,
41058,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3025,
9588,
318,
287,
262,
2837,
286,
38055,
290,
1105,
830,
290,
5810,
318,
407,
9242,
393,
5011,
1271,
857,
407,
4961,
284,
2319,
11,
905,
502,
546,
262,
16096,
1022,
9588,
290,
5810,
62,
79,
310,
287,
257,
41058,... |
how many patients whose death status is 0 and drug name is venlafaxine xr? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.expire_flag = "0" AND prescriptions.drug = "Venlafaxine XR" | [
4919,
867,
3871,
3025,
1918,
3722,
318,
657,
290,
2563,
1438,
318,
8710,
75,
1878,
897,
500,
2124,
81,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
1918,
3722,
318,
657,
290,
2563,
1438,
318,
8710,
75,
1878,
897,
500,
2124,
81,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
... |
Give me the kickoff time of the game that was aired on CBS against the St. Louis Cardinals. | SELECT kickoff_ AS "a_" FROM table_11449311_2 WHERE tv = "CBS" AND opponent = "St. Louis Cardinals" | [
23318,
502,
262,
40532,
640,
286,
262,
983,
326,
373,
18530,
319,
11133,
1028,
262,
520,
13,
5593,
18071,
13,
46506,
40532,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
1157,
2598,
6052,
1157,
62,
17,
33411,
31557,
796,
366,
22923,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40532,
640,
286,
262,
983,
326,
373,
18530,
319,
11133,
1028,
262,
520,
13,
5593,
18071,
13,
46506,
40532,
62,
7054,
366,
64,
62,
1,
16034,
3084,
62,
1157,
2598,
6052,
1157,
62,
17,
33411,
31557,
796,
366,
22923,
1,... |
What is the average amount of assists with a rank higher than 6 and goals 10 and the scorer is Robert Ukrop | SELECT AVG(assists) FROM table_name_10 WHERE rank > 6 AND goals = 10 AND scorer = "robert ukrop" | [
2061,
318,
262,
2811,
2033,
286,
13648,
351,
257,
4279,
2440,
621,
718,
290,
4661,
838,
290,
262,
30664,
318,
5199,
5065,
1773,
46506,
35224,
7,
562,
1023,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
4279,
1875,
718,
5357,
4661,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
2033,
286,
13648,
351,
257,
4279,
2440,
621,
718,
290,
4661,
838,
290,
262,
30664,
318,
5199,
5065,
1773,
46506,
35224,
7,
562,
1023,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
4279,
1875,
718,
5357,
4661,
796,
... |
what flights are there from NEWARK to CHICAGO on CO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NEWAR... | [
10919,
13956,
389,
612,
422,
12682,
14175,
284,
5870,
2149,
4760,
46,
319,
327,
14058,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13956,
389,
612,
422,
12682,
14175,
284,
5870,
2149,
4760,
46,
319,
327,
14058,
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,
... |
what was the last type of hospital admission of patient 006-123134 since 2105. | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '006-123134' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
10919,
373,
262,
938,
2099,
286,
4436,
13938,
286,
5827,
3571,
21,
12,
10163,
19880,
1201,
362,
13348,
13,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
10163,
19880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
938,
2099,
286,
4436,
13938,
286,
5827,
3571,
21,
12,
10163,
19880,
1201,
362,
13348,
13,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
10163,
19880,
... |
What was the record on November 7? | SELECT COUNT("Record") FROM table_72874 WHERE "Date" = 'November 7' | [
2061,
373,
262,
1700,
319,
3389,
767,
30,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
48524,
4524,
33411,
366,
10430,
1,
796,
705,
21159,
767,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1700,
319,
3389,
767,
30,
46506,
327,
28270,
7203,
23739,
4943,
16034,
3084,
62,
48524,
4524,
33411,
366,
10430,
1,
796,
705,
21159,
767,
6
] |
What was the record of the game that went 0-7? | SELECT "Record" FROM table_15093 WHERE "Score" = '0-7' | [
2061,
373,
262,
1700,
286,
262,
983,
326,
1816,
657,
12,
22,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
8628,
6052,
33411,
366,
26595,
1,
796,
705,
15,
12,
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,
1
] | [
2061,
373,
262,
1700,
286,
262,
983,
326,
1816,
657,
12,
22,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
8628,
6052,
33411,
366,
26595,
1,
796,
705,
15,
12,
22,
6
] |
i would like a nonstop flight from JFK to LAS VEGAS on 3 2 | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, date_day, days, flight WHERE ((city.city_code = airport_service.city_code AND city.city_name = 'LAS VEGAS' AND date_day.day_number = 2 AND date_day.month_number = 3 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days... | [
72,
561,
588,
257,
1729,
11338,
5474,
422,
35216,
284,
406,
1921,
569,
7156,
1921,
319,
513,
362,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
11,
1528,
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... | [
72,
561,
588,
257,
1729,
11338,
5474,
422,
35216,
284,
406,
1921,
569,
7156,
1921,
319,
513,
362,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
3128,
62,
820,
11,
1528,
11,
... |
Upvotes for the Cassandra tag 2015. | SELECT Users.DisplayName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE Tags.Id = 34113 AND Posts.CreationDate > '201... | [
4933,
29307,
329,
262,
46750,
7621,
1853,
13,
46506,
18987,
13,
23114,
5376,
11,
327,
28270,
7,
28104,
7054,
3205,
53,
6421,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
796,
44789,
13,
7390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4933,
29307,
329,
262,
46750,
7621,
1853,
13,
46506,
18987,
13,
23114,
5376,
11,
327,
28270,
7,
28104,
7054,
3205,
53,
6421,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
796,
44789,
13,
7390,
... |
What was the result of the game played on 17 July 2008? | SELECT result FROM table_name_42 WHERE date = "17 july 2008" | [
2061,
373,
262,
1255,
286,
262,
983,
2826,
319,
1596,
2901,
3648,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3682,
33411,
3128,
796,
366,
1558,
474,
2062,
3648,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
2826,
319,
1596,
2901,
3648,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3682,
33411,
3128,
796,
366,
1558,
474,
2062,
3648,
1
] |
how many years did he play in less than 16 games ? | SELECT COUNT("year") FROM table_204_756 WHERE "games" < 16 | [
4919,
867,
812,
750,
339,
711,
287,
1342,
621,
1467,
1830,
5633,
46506,
327,
28270,
7203,
1941,
4943,
16034,
3084,
62,
18638,
62,
38219,
33411,
366,
19966,
1,
1279,
1467
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
812,
750,
339,
711,
287,
1342,
621,
1467,
1830,
5633,
46506,
327,
28270,
7203,
1941,
4943,
16034,
3084,
62,
18638,
62,
38219,
33411,
366,
19966,
1,
1279,
1467
] |
For all employees who have the letters D or S in their first name, find hire_date and the sum of salary bin hire_date by weekday, and visualize them by a bar chart, and list total number of salary from high to low order. | SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(SALARY) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1064,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1351,
2472,
1271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1064,
11078,
62,
4475,
290,
262,
2160,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
290,
1351,
2472,
1271,... |
what was the last value of a glucose laboratory testing of patient 11823? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11823) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') ORDER BY labevents.charttime DESC LIMIT 1 | [
10919,
373,
262,
938,
1988,
286,
257,
15701,
14010,
4856,
286,
5827,
19035,
1954,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
938,
1988,
286,
257,
15701,
14010,
4856,
286,
5827,
19035,
1954,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
... |
What was the lowest Crowd Size for the Home Team of North Melbourne? | SELECT MIN("Crowd") FROM table_11947 WHERE "Home team" = 'north melbourne' | [
2061,
373,
262,
9016,
29452,
12849,
329,
262,
5995,
4816,
286,
2258,
14819,
30,
46506,
20625,
7203,
34,
3986,
4943,
16034,
3084,
62,
16315,
2857,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
9016,
29452,
12849,
329,
262,
5995,
4816,
286,
2258,
14819,
30,
46506,
20625,
7203,
34,
3986,
4943,
16034,
3084,
62,
16315,
2857,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
In the final against Ashley Harkleroad what was the score? | SELECT "Score" FROM table_66202 WHERE "Opponent in the final" = 'ashley harkleroad' | [
818,
262,
2457,
1028,
20899,
367,
668,
1754,
1170,
644,
373,
262,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
19004,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
1077,
1636,
289,
668,
1754,
1170,
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
] | [
818,
262,
2457,
1028,
20899,
367,
668,
1754,
1170,
644,
373,
262,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2791,
19004,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
1077,
1636,
289,
668,
1754,
1170,
6
] |
what is average age of patients whose gender is m and ethnicity is black/cape verdean? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.ethnicity = "BLACK/CAPE VERDEAN" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
5279,
318,
285,
290,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
38546,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
2479,
286,
3871,
3025,
5279,
318,
285,
290,
26289,
318,
2042,
14,
36435,
3326,
2934,
272,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
38546,
... |
What is the College with a Round # that is 290? | SELECT "College" FROM table_75862 WHERE "Round #" = '290' | [
2061,
318,
262,
5535,
351,
257,
10485,
1303,
326,
318,
26481,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
2425,
4521,
17,
33411,
366,
22685,
1303,
1,
796,
705,
24369,
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
] | [
2061,
318,
262,
5535,
351,
257,
10485,
1303,
326,
318,
26481,
30,
46506,
366,
38951,
1,
16034,
3084,
62,
2425,
4521,
17,
33411,
366,
22685,
1303,
1,
796,
705,
24369,
6
] |
how many patients are diagnosed with short title chr blood loss anemia and hvae po route of drug administration? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Chr blood loss anemia" AND prescriptions.route = "PO" | [
4919,
867,
3871,
389,
14641,
351,
1790,
3670,
442,
81,
2910,
2994,
281,
22859,
290,
289,
33353,
745,
6339,
286,
2563,
3662,
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,
3871,
389,
14641,
351,
1790,
3670,
442,
81,
2910,
2994,
281,
22859,
290,
289,
33353,
745,
6339,
286,
2563,
3662,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
what two peaks are taller than dumlong ? | SELECT "peak name" FROM table_203_808 WHERE "elevation" > (SELECT "elevation" FROM table_203_808 WHERE "peak name" = 'dumlong') | [
10919,
734,
25740,
389,
25242,
621,
288,
388,
6511,
5633,
46506,
366,
36729,
1438,
1,
16034,
3084,
62,
22416,
62,
28362,
33411,
366,
68,
2768,
341,
1,
1875,
357,
46506,
366,
68,
2768,
341,
1,
16034,
3084,
62,
22416,
62,
28362,
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
] | [
10919,
734,
25740,
389,
25242,
621,
288,
388,
6511,
5633,
46506,
366,
36729,
1438,
1,
16034,
3084,
62,
22416,
62,
28362,
33411,
366,
68,
2768,
341,
1,
1875,
357,
46506,
366,
68,
2768,
341,
1,
16034,
3084,
62,
22416,
62,
28362,
33411,
... |
Are there any classes Dr. Stefan Cieply has taught before ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course_offering.semester < (SELECT SEMESTERalias0.semester_id FROM semester AS SEMESTERalias0 WHERE SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2016) AND course.course_id = cour... | [
8491,
612,
597,
6097,
1583,
13,
28842,
327,
494,
2145,
468,
7817,
878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
612,
597,
6097,
1583,
13,
28842,
327,
494,
2145,
468,
7817,
878,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
6... |
Show the ids and names of festivals that have at least two nominations for artworks. Plot them as bar chart. | SELECT T3.Festival_Name, T1.Festival_ID FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID | [
15307,
262,
220,
2340,
290,
3891,
286,
25575,
326,
423,
379,
1551,
734,
30994,
329,
1242,
5225,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
309,
18,
13,
37,
6743,
62,
5376,
11,
309,
16,
13,
37,
6743,
62,
2389,
16034,
11872,
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... | [
15307,
262,
220,
2340,
290,
3891,
286,
25575,
326,
423,
379,
1551,
734,
30994,
329,
1242,
5225,
13,
28114,
606,
355,
2318,
8262,
13,
46506,
309,
18,
13,
37,
6743,
62,
5376,
11,
309,
16,
13,
37,
6743,
62,
2389,
16034,
11872,
7054,
... |
what's the position where player is williams, bernie bernie williams | SELECT position FROM table_11734041_20 WHERE player = "Williams, Bernie Bernie Williams" | [
10919,
338,
262,
2292,
810,
2137,
318,
481,
1789,
82,
11,
275,
1142,
494,
275,
1142,
494,
481,
1789,
82,
46506,
2292,
16034,
3084,
62,
1157,
4790,
1821,
3901,
62,
1238,
33411,
2137,
796,
366,
27869,
11,
10477,
10477,
6484,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
810,
2137,
318,
481,
1789,
82,
11,
275,
1142,
494,
275,
1142,
494,
481,
1789,
82,
46506,
2292,
16034,
3084,
62,
1157,
4790,
1821,
3901,
62,
1238,
33411,
2137,
796,
366,
27869,
11,
10477,
10477,
6484,
1
] |
during their last hospital visit what was the marital status of patient 19981? | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 19981 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
42122,
511,
938,
4436,
3187,
644,
373,
262,
29555,
3722,
286,
5827,
1594,
6659,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1594,
6659,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
42122,
511,
938,
4436,
3187,
644,
373,
262,
29555,
3722,
286,
5827,
1594,
6659,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1594,
6659,
5357,
5626,
25349,
13,
6381,
354,
2435,
3180,
... |
What is the max pressure for the 468ft lbf (634 j) muzzle energy? | SELECT max_pressure FROM table_name_99 WHERE muzzle_energy = "468ft•lbf (634 j)" | [
2061,
318,
262,
3509,
3833,
329,
262,
604,
3104,
701,
18360,
69,
357,
21,
2682,
474,
8,
31746,
2568,
30,
46506,
3509,
62,
36151,
16034,
3084,
62,
3672,
62,
2079,
33411,
31746,
62,
22554,
796,
366,
38472,
701,
3581,
75,
19881,
357,
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
] | [
2061,
318,
262,
3509,
3833,
329,
262,
604,
3104,
701,
18360,
69,
357,
21,
2682,
474,
8,
31746,
2568,
30,
46506,
3509,
62,
36151,
16034,
3084,
62,
3672,
62,
2079,
33411,
31746,
62,
22554,
796,
366,
38472,
701,
3581,
75,
19881,
357,
2... |
Stack bar chart of how many home team vs Away_team based on home team, and order names in ascending order. | SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Away_team, Home_team ORDER BY Home_team | [
25896,
2318,
8262,
286,
703,
867,
1363,
1074,
3691,
21986,
62,
15097,
1912,
319,
1363,
1074,
11,
290,
1502,
3891,
287,
41988,
1502,
13,
46506,
5995,
62,
15097,
11,
327,
28270,
7,
16060,
62,
15097,
8,
16034,
983,
44441,
11050,
21986,
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,
1
] | [
25896,
2318,
8262,
286,
703,
867,
1363,
1074,
3691,
21986,
62,
15097,
1912,
319,
1363,
1074,
11,
290,
1502,
3891,
287,
41988,
1502,
13,
46506,
5995,
62,
15097,
11,
327,
28270,
7,
16060,
62,
15097,
8,
16034,
983,
44441,
11050,
21986,
6... |
what total made has a percent made greater than 0.166 and a 3pm-a of 3-5 | SELECT MAX("Total Made") FROM table_47113 WHERE "Percent Made" > '0.166' AND "3PM-A" = '3-5' | [
10919,
2472,
925,
468,
257,
1411,
925,
3744,
621,
657,
13,
23055,
290,
257,
513,
4426,
12,
64,
286,
513,
12,
20,
46506,
25882,
7203,
14957,
14446,
4943,
16034,
3084,
62,
2857,
16616,
33411,
366,
31905,
14446,
1,
1875,
705,
15,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
2472,
925,
468,
257,
1411,
925,
3744,
621,
657,
13,
23055,
290,
257,
513,
4426,
12,
64,
286,
513,
12,
20,
46506,
25882,
7203,
14957,
14446,
4943,
16034,
3084,
62,
2857,
16616,
33411,
366,
31905,
14446,
1,
1875,
705,
15,
13,
2... |
who placed first in round 8 ? | SELECT "winning driver" FROM table_203_408 WHERE "rd." = 8 | [
8727,
4624,
717,
287,
2835,
807,
5633,
46506,
366,
14463,
4639,
1,
16034,
3084,
62,
22416,
62,
26200,
33411,
366,
4372,
526,
796,
807
] | [
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,
4624,
717,
287,
2835,
807,
5633,
46506,
366,
14463,
4639,
1,
16034,
3084,
62,
22416,
62,
26200,
33411,
366,
4372,
526,
796,
807
] |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of manufacturer , and group by attribute name, and rank by the bars in desc. | 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.Name DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
290,
4279,
416,
262,
9210,
287,
1715,
13,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
11554,
837,
290,
1448,
416,
11688,
1438,
11,
290,
4279,
416,
262,
9210,
287,
1715,
13,
46506,
... |
Linux Distribution Popularity (By tag). Questions per month for the top 10 distro tags on Serverfault. Does not count BSD or other non-Linux OSes. Probably not so useful on other SE sites where the tags may differ. | SELECT DATEADD(month, DATEDIFF(month, 0, CreationDate), 0) AS m, TagName, COUNT(*) FROM PostTags AS pt JOIN Posts AS q ON q.Id = pt.PostId JOIN Tags AS t ON t.Id = pt.TagId WHERE TagName IN ('arch-linux', 'centos', 'debian', 'fedora', 'gentoo', 'kali-linux', 'linux-mint', 'opensuse', 'rhel', 'ubuntu') AND q.CreationDat... | [
19314,
27484,
22623,
414,
357,
3886,
7621,
737,
20396,
583,
1227,
329,
262,
1353,
838,
1233,
305,
15940,
319,
9652,
69,
1721,
13,
8314,
407,
954,
347,
10305,
393,
584,
1729,
12,
19314,
7294,
274,
13,
18578,
407,
523,
4465,
319,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19314,
27484,
22623,
414,
357,
3886,
7621,
737,
20396,
583,
1227,
329,
262,
1353,
838,
1233,
305,
15940,
319,
9652,
69,
1721,
13,
8314,
407,
954,
347,
10305,
393,
584,
1729,
12,
19314,
7294,
274,
13,
18578,
407,
523,
4465,
319,
584,
... |
What sport was played between the years of 2008-2010? | SELECT sport FROM table_name_26 WHERE played = "2008-2010" | [
2061,
6332,
373,
2826,
1022,
262,
812,
286,
3648,
12,
10333,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
2075,
33411,
2826,
796,
366,
11528,
12,
10333,
1
] | [
1,
1,
1,
1,
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,
6332,
373,
2826,
1022,
262,
812,
286,
3648,
12,
10333,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
2075,
33411,
2826,
796,
366,
11528,
12,
10333,
1
] |
what is the maximum number that entered when the eliminator was Triple H? | SELECT MAX("Entered") FROM table_27027 WHERE "Eliminated by" = 'Triple H' | [
10919,
318,
262,
5415,
1271,
326,
5982,
618,
262,
5687,
20900,
373,
19817,
367,
30,
46506,
25882,
7203,
14539,
1068,
4943,
16034,
3084,
62,
20233,
1983,
33411,
366,
36,
2475,
3898,
416,
1,
796,
705,
14824,
1154,
367,
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
] | [
10919,
318,
262,
5415,
1271,
326,
5982,
618,
262,
5687,
20900,
373,
19817,
367,
30,
46506,
25882,
7203,
14539,
1068,
4943,
16034,
3084,
62,
20233,
1983,
33411,
366,
36,
2475,
3898,
416,
1,
796,
705,
14824,
1154,
367,
6
] |
What number from the total number of episodes is the episode written by Julian Unthank? | SELECT series_number FROM table_14330096_3 WHERE writer = "Julian Unthank" | [
2061,
1271,
422,
262,
2472,
1271,
286,
8640,
318,
262,
4471,
3194,
416,
18322,
791,
40716,
30,
46506,
2168,
62,
17618,
16034,
3084,
62,
1415,
2091,
405,
4846,
62,
18,
33411,
6260,
796,
366,
16980,
666,
791,
40716,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1271,
422,
262,
2472,
1271,
286,
8640,
318,
262,
4471,
3194,
416,
18322,
791,
40716,
30,
46506,
2168,
62,
17618,
16034,
3084,
62,
1415,
2091,
405,
4846,
62,
18,
33411,
6260,
796,
366,
16980,
666,
791,
40716,
1
] |
How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0? | SELECT MIN("Original amendments cosponsored") FROM table_37163 WHERE "All bills sponsored" < '64' AND "Bill support withdrawn" < '0' | [
2437,
867,
2656,
9024,
17835,
269,
35952,
1850,
2793,
621,
5598,
11,
4480,
262,
2855,
1104,
23019,
2793,
621,
657,
30,
46506,
20625,
7203,
20556,
17835,
269,
35952,
1850,
4943,
16034,
3084,
62,
2718,
24136,
33411,
366,
3237,
9024,
15901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2656,
9024,
17835,
269,
35952,
1850,
2793,
621,
5598,
11,
4480,
262,
2855,
1104,
23019,
2793,
621,
657,
30,
46506,
20625,
7203,
20556,
17835,
269,
35952,
1850,
4943,
16034,
3084,
62,
2718,
24136,
33411,
366,
3237,
9024,
15901,
... |
what type of aircraft is used flying from ATLANTA to DENVER before 1200 | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time < 1200 AND flight.t... | [
10919,
2099,
286,
6215,
318,
973,
7348,
422,
5161,
25697,
5603,
284,
37692,
5959,
878,
24938,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
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,
2099,
286,
6215,
318,
973,
7348,
422,
5161,
25697,
5603,
284,
37692,
5959,
878,
24938,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
... |
Return the names and ids of customers who have TN in their address by a bar chart, show by the customer_id in descending please. | SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE "%TN%" ORDER BY customer_id DESC | [
13615,
262,
3891,
290,
220,
2340,
286,
4297,
508,
423,
29025,
287,
511,
2209,
416,
257,
2318,
8262,
11,
905,
416,
262,
6491,
62,
312,
287,
31491,
3387,
13,
46506,
6491,
62,
3672,
11,
6491,
62,
312,
16034,
36707,
33411,
6491,
62,
219... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3891,
290,
220,
2340,
286,
4297,
508,
423,
29025,
287,
511,
2209,
416,
257,
2318,
8262,
11,
905,
416,
262,
6491,
62,
312,
287,
31491,
3387,
13,
46506,
6491,
62,
3672,
11,
6491,
62,
312,
16034,
36707,
33411,
6491,
62,
219... |
who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 l6, the chassis is talbot-lago t26c and the entrant is ecurie belge? | SELECT constructor FROM table_name_75 WHERE tyre = "d" AND engine = "talbot 23cv 4.5 l6" AND chassis = "talbot-lago t26c" AND entrant = "ecurie belge" | [
8727,
318,
262,
23772,
618,
262,
48216,
318,
288,
11,
262,
3113,
318,
3305,
13645,
2242,
33967,
604,
13,
20,
300,
21,
11,
262,
24587,
318,
3305,
13645,
12,
75,
3839,
256,
2075,
66,
290,
262,
920,
5250,
318,
9940,
333,
494,
894,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
23772,
618,
262,
48216,
318,
288,
11,
262,
3113,
318,
3305,
13645,
2242,
33967,
604,
13,
20,
300,
21,
11,
262,
24587,
318,
3305,
13645,
12,
75,
3839,
256,
2075,
66,
290,
262,
920,
5250,
318,
9940,
333,
494,
894,
46... |
when did patient 3516 last have a minimum arterial bp mean on the last icu visit? | SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3516) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.itemid ... | [
12518,
750,
5827,
3439,
1433,
938,
423,
257,
5288,
30675,
498,
275,
79,
1612,
319,
262,
938,
14158,
84,
3187,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3439,
1433,
938,
423,
257,
5288,
30675,
498,
275,
79,
1612,
319,
262,
938,
14158,
84,
3187,
30,
46506,
8262,
31534,
13,
40926,
2435,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
4650... |
Find the first names of professors who are teaching more than one class. | SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING COUNT(*) > 1 | [
16742,
262,
717,
3891,
286,
20339,
508,
389,
7743,
517,
621,
530,
1398,
13,
46506,
309,
17,
13,
45787,
62,
69,
3672,
16034,
42715,
7054,
309,
16,
32357,
1268,
6538,
7054,
309,
17,
6177,
309,
16,
13,
5577,
62,
22510,
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,
1,
1,
1,
1,
1,
1... | [
16742,
262,
717,
3891,
286,
20339,
508,
389,
7743,
517,
621,
530,
1398,
13,
46506,
309,
17,
13,
45787,
62,
69,
3672,
16034,
42715,
7054,
309,
16,
32357,
1268,
6538,
7054,
309,
17,
6177,
309,
16,
13,
5577,
62,
22510,
796,
309,
17,
... |
what is the price of a drug named folic acid 1 mg tab? | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'folic acid 1 mg tab') | [
10919,
318,
262,
2756,
286,
257,
2563,
3706,
277,
4160,
7408,
352,
10527,
7400,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
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,
2756,
286,
257,
2563,
3706,
277,
4160,
7408,
352,
10527,
7400,
30,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
4906,
796,
705,
1150,
3299,
6,
5357,
1575,
13,
15596,
312,
3268,
3... |
What is the area of Cromwell Primary school, which has a state authority? | SELECT "Area" FROM table_68113 WHERE "Authority" = 'state' AND "Name" = 'cromwell primary school' | [
2061,
318,
262,
1989,
286,
39131,
4053,
21087,
1524,
11,
543,
468,
257,
1181,
4934,
30,
46506,
366,
30547,
1,
16034,
3084,
62,
3104,
16616,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
5376,
1,
796,
705,
66,
398,
4053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1989,
286,
39131,
4053,
21087,
1524,
11,
543,
468,
257,
1181,
4934,
30,
46506,
366,
30547,
1,
16034,
3084,
62,
3104,
16616,
33411,
366,
13838,
414,
1,
796,
705,
5219,
6,
5357,
366,
5376,
1,
796,
705,
66,
398,
4053,
... |
Which Lead Pitch/mm has a Body Width/mm larger than 10.16? | SELECT SUM(lead_pitch_mm) FROM table_name_28 WHERE body_width_mm > 10.16 | [
13828,
20116,
33517,
14,
3020,
468,
257,
12290,
38807,
14,
3020,
4025,
621,
838,
13,
1433,
30,
46506,
35683,
7,
28230,
62,
79,
2007,
62,
3020,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1767,
62,
10394,
62,
3020,
1875,
838,
13,
1433... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20116,
33517,
14,
3020,
468,
257,
12290,
38807,
14,
3020,
4025,
621,
838,
13,
1433,
30,
46506,
35683,
7,
28230,
62,
79,
2007,
62,
3020,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
1767,
62,
10394,
62,
3020,
1875,
838,
13,
1433... |
did patient 025-44495 have any results from the microbiology of the sputum, tracheal specimen this month? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND microlab.culturesite = 'sputum, tracheal specimen' AND DATETIME(m... | [
20839,
5827,
657,
1495,
12,
2598,
33781,
423,
597,
2482,
422,
262,
24559,
1435,
286,
262,
599,
315,
388,
11,
491,
4891,
282,
31674,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20839,
5827,
657,
1495,
12,
2598,
33781,
423,
597,
2482,
422,
262,
24559,
1435,
286,
262,
599,
315,
388,
11,
491,
4891,
282,
31674,
428,
1227,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
... |
What is the highest decile value with a roll greater than 301 in Hauraki? | SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki" | [
2061,
318,
262,
4511,
875,
576,
1988,
351,
257,
4836,
3744,
621,
25643,
287,
367,
2899,
8182,
30,
46506,
25882,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
4836,
1875,
25643,
5357,
1989,
796,
366,
71,
2899,
8182,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
875,
576,
1988,
351,
257,
4836,
3744,
621,
25643,
287,
367,
2899,
8182,
30,
46506,
25882,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
3510,
33411,
4836,
1875,
25643,
5357,
1989,
796,
366,
71,
2899,
8182,
1
] |
What episode had 10.14 million viewers (U.S.)? | SELECT MIN("#") FROM table_73323 WHERE "U.S. viewers (million)" = '10.14' | [
2061,
4471,
550,
838,
13,
1415,
1510,
10209,
357,
52,
13,
50,
2014,
30,
46506,
20625,
7203,
2,
4943,
16034,
3084,
62,
49995,
1954,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
940,
13,
1415,
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,
4471,
550,
838,
13,
1415,
1510,
10209,
357,
52,
13,
50,
2014,
30,
46506,
20625,
7203,
2,
4943,
16034,
3084,
62,
49995,
1954,
33411,
366,
52,
13,
50,
13,
10209,
357,
14100,
16725,
796,
705,
940,
13,
1415,
6
] |
List the positions of players whose average number of points scored by that position is larger than 20, compare the number of positions, and I want to rank from low to high by the X. | SELECT Position, COUNT(Position) FROM player GROUP BY Position HAVING AVG(Points) >= 20 ORDER BY Position | [
8053,
262,
6116,
286,
1938,
3025,
2811,
1271,
286,
2173,
7781,
416,
326,
2292,
318,
4025,
621,
1160,
11,
8996,
262,
1271,
286,
6116,
11,
290,
314,
765,
284,
4279,
422,
1877,
284,
1029,
416,
262,
1395,
13,
46506,
23158,
11,
327,
2827... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
6116,
286,
1938,
3025,
2811,
1271,
286,
2173,
7781,
416,
326,
2292,
318,
4025,
621,
1160,
11,
8996,
262,
1271,
286,
6116,
11,
290,
314,
765,
284,
4279,
422,
1877,
284,
1029,
416,
262,
1395,
13,
46506,
23158,
11,
327,
2827... |
what was the first year that grazer ak won a performance ? | SELECT "winning years" FROM table_203_125 WHERE "club" = 'grazer ak' ORDER BY "winning years" LIMIT 1 | [
10919,
373,
262,
717,
614,
326,
32703,
263,
47594,
1839,
257,
2854,
5633,
46506,
366,
14463,
812,
1,
16034,
3084,
62,
22416,
62,
11623,
33411,
366,
18664,
1,
796,
705,
70,
3247,
263,
47594,
6,
38678,
11050,
366,
14463,
812,
1,
27564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
717,
614,
326,
32703,
263,
47594,
1839,
257,
2854,
5633,
46506,
366,
14463,
812,
1,
16034,
3084,
62,
22416,
62,
11623,
33411,
366,
18664,
1,
796,
705,
70,
3247,
263,
47594,
6,
38678,
11050,
366,
14463,
812,
1,
27564,
... |
provide the number of patients whose lab test name is wbc, other fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC, Other Fluid" | [
15234,
485,
262,
1271,
286,
3871,
3025,
2248,
1332,
1438,
318,
266,
15630,
11,
584,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
2248,
1332,
1438,
318,
266,
15630,
11,
584,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18... |
Count the number of patients with gangrene as their primary disease who were admitted in hospital for more than 20 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GANGRENE" AND demographic.days_stay > "20" | [
12332,
262,
1271,
286,
3871,
351,
7706,
25924,
355,
511,
4165,
4369,
508,
547,
6848,
287,
4436,
329,
517,
621,
1160,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
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,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
3871,
351,
7706,
25924,
355,
511,
4165,
4369,
508,
547,
6848,
287,
4436,
329,
517,
621,
1160,
1528,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
... |
provide the number of patients whose diagnoses short title is tobacco use disorder and procedure long title is closed biopsy of skin and subcutaneous tissue? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE diagnoses.short_title = "Tobacco use disorder" AND procedures.long_title = "Closed biopsy of skin and subcutaneous tissue... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
11219,
779,
8967,
290,
8771,
890,
3670,
318,
4838,
3182,
44522,
286,
4168,
290,
850,
8968,
11655,
10712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
11219,
779,
8967,
290,
8771,
890,
3670,
318,
4838,
3182,
44522,
286,
4168,
290,
850,
8968,
11655,
10712,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
... |
For each file format, return the number of artists who released songs in that format Show bar chart, and show by the X in asc. | SELECT formats, COUNT(*) FROM files GROUP BY formats ORDER BY formats | [
1890,
1123,
2393,
5794,
11,
1441,
262,
1271,
286,
7912,
508,
2716,
7259,
287,
326,
5794,
5438,
2318,
8262,
11,
290,
905,
416,
262,
1395,
287,
10570,
13,
46506,
17519,
11,
327,
28270,
7,
28104,
16034,
3696,
44441,
11050,
17519,
38678,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
2393,
5794,
11,
1441,
262,
1271,
286,
7912,
508,
2716,
7259,
287,
326,
5794,
5438,
2318,
8262,
11,
290,
905,
416,
262,
1395,
287,
10570,
13,
46506,
17519,
11,
327,
28270,
7,
28104,
16034,
3696,
44441,
11050,
17519,
38678,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of code , and group by attribute headquarter, and list in asc by the y-axis. | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code | [
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,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1351,
287,
10570,
416,
262,
331,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2438,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
1351,
287,
10570,
416,
262,
331,
... |
how many patients whose ethnicity is white - russian and diagnoses short title is chr tot occlus cor artry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND diagnoses.short_title = "Chr tot occlus cor artry" | [
4919,
867,
3871,
3025,
26289,
318,
2330,
532,
374,
31562,
290,
40567,
1790,
3670,
318,
442,
81,
2006,
1609,
41790,
1162,
1242,
563,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
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... | [
4919,
867,
3871,
3025,
26289,
318,
2330,
532,
374,
31562,
290,
40567,
1790,
3670,
318,
442,
81,
2006,
1609,
41790,
1162,
1242,
563,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
Top Stack Overflow Users in New York. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%new york%' OR LOWER(Location) LIKE 'ny' OR UPPER(Location) LIKE 'NY%' ORDER BY Reputation DESC | [
9126,
23881,
3827,
11125,
18987,
287,
968,
1971,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
23881,
3827,
11125,
18987,
287,
968,
1971,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
1432,
7094,
16034,
18987,
... |
how many female patients were admitted to the hospital before year 2200? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admityear < "2200" | [
4919,
867,
4048,
3871,
547,
6848,
284,
262,
4436,
878,
614,
362,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
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
] | [
4919,
867,
4048,
3871,
547,
6848,
284,
262,
4436,
878,
614,
362,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
76,
... |
number of answers per day. | SELECT CAST(TIME_TO_STR(CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(10)) AS date, COUNT(1) FROM Posts WHERE PostTypeId = 2 GROUP BY CAST(TIME_TO_STR(CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(10)) ORDER BY date | [
17618,
286,
7429,
583,
1110,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
11537,
7054,
40383,
7,
940,
4008,
7054,
3128,
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... | [
17618,
286,
7429,
583,
1110,
13,
46506,
327,
11262,
7,
34694,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
56,
12,
4,
76,
12,
4,
67,
4064,
39,
25,
4,
44,
25,
4,
50,
11537,
7054,
40383,
7,
940,
4008,
7054,
3128,
11,
... |
Which lab is used for testing for prodict AP? | SELECT lab FROM resultsdata15 WHERE commod = "AP" | [
13828,
2248,
318,
973,
329,
4856,
329,
386,
11600,
3486,
30,
46506,
2248,
16034,
2482,
7890,
1314,
33411,
13088,
796,
366,
2969,
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,
2248,
318,
973,
329,
4856,
329,
386,
11600,
3486,
30,
46506,
2248,
16034,
2482,
7890,
1314,
33411,
13088,
796,
366,
2969,
1
] |
When Does Martijn Pieters Sleep?. | SELECT TIME_TO_STR(CreationDate, '%I') AS "hour", COUNT(*) AS "frequency" FROM Posts WHERE OwnerUserId = '##UserID##' GROUP BY TIME_TO_STR(CreationDate, '%I') | [
2215,
8314,
3981,
48848,
36548,
364,
17376,
30,
13,
46506,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
40,
11537,
7054,
366,
9769,
1600,
327,
28270,
7,
28104,
7054,
366,
35324,
1,
16034,
12043,
33411,
23853,
12982,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8314,
3981,
48848,
36548,
364,
17376,
30,
13,
46506,
20460,
62,
10468,
62,
18601,
7,
12443,
341,
10430,
11,
705,
4,
40,
11537,
7054,
366,
9769,
1600,
327,
28270,
7,
28104,
7054,
366,
35324,
1,
16034,
12043,
33411,
23853,
12982,
... |
Which venue had a match played on August 16, 2006? | SELECT "Venue" FROM table_4675 WHERE "Date" = 'august 16, 2006' | [
13828,
14359,
550,
257,
2872,
2826,
319,
2932,
1467,
11,
4793,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3510,
2425,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1467,
11,
4793,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
14359,
550,
257,
2872,
2826,
319,
2932,
1467,
11,
4793,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3510,
2425,
33411,
366,
10430,
1,
796,
705,
7493,
436,
1467,
11,
4793,
6
] |
What were the total number of Events, when the Top-5 was less than 2, and when the Top-25 was less than 3? | SELECT COUNT(events) FROM table_name_23 WHERE top_5 < 2 AND top_25 < 3 | [
2061,
547,
262,
2472,
1271,
286,
18715,
11,
618,
262,
5849,
12,
20,
373,
1342,
621,
362,
11,
290,
618,
262,
5849,
12,
1495,
373,
1342,
621,
513,
30,
46506,
327,
28270,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1353,
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
] | [
2061,
547,
262,
2472,
1271,
286,
18715,
11,
618,
262,
5849,
12,
20,
373,
1342,
621,
362,
11,
290,
618,
262,
5849,
12,
1495,
373,
1342,
621,
513,
30,
46506,
327,
28270,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
1954,
33411,
1353,
62,... |
what is the maximum cost of a hospital bill that includes a drug called dorzolamide 2%/timolol 0.5% ophth. since 2105? | SELECT MAX(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 = 'dorzolamide 2%/timolol 0.5% ophth.') AND STRFTIME('%y', cost.chargetime) >= '2105' GROUP BY cost.hadm_id) AS t1 | [
10919,
318,
262,
5415,
1575,
286,
257,
4436,
2855,
326,
3407,
257,
2563,
1444,
288,
273,
89,
349,
37905,
362,
4,
14,
16514,
349,
349,
657,
13,
20,
4,
267,
746,
400,
13,
1201,
362,
13348,
30,
46506,
25882,
7,
83,
16,
13,
66,
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,
5415,
1575,
286,
257,
4436,
2855,
326,
3407,
257,
2563,
1444,
288,
273,
89,
349,
37905,
362,
4,
14,
16514,
349,
349,
657,
13,
20,
4,
267,
746,
400,
13,
1201,
362,
13348,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
... |
Count the number of patients less than 59 years who had a sodium whole blood lab test. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "59" AND lab.label = "Sodium, Whole Blood" | [
12332,
262,
1271,
286,
3871,
1342,
621,
7863,
812,
508,
550,
257,
21072,
2187,
2910,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
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... | [
12332,
262,
1271,
286,
3871,
1342,
621,
7863,
812,
508,
550,
257,
21072,
2187,
2910,
2248,
1332,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
... |
what is the schedule of ground transportation from WASHINGTON airport into downtown | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city AS CITY_0, city AS CITY_1, ground_service WHERE airport.airport_code = airport_service.airport_code AND CITY_0.city_code = airport_service.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_name = 'WASHINGTON' AND ground_servic... | [
10919,
318,
262,
7269,
286,
2323,
9358,
422,
370,
19436,
9003,
656,
9436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7269,
286,
2323,
9358,
422,
370,
19436,
9003,
656,
9436,
46506,
360,
8808,
1268,
4177,
2323,
62,
15271,
13,
7645,
634,
62,
4906,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
... |
Show the most common nationality of hosts. | SELECT nationality FROM host GROUP BY nationality ORDER BY COUNT(*) DESC LIMIT 1 | [
15307,
262,
749,
2219,
29835,
286,
11453,
13,
46506,
29835,
16034,
2583,
44441,
11050,
29835,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
15307,
262,
749,
2219,
29835,
286,
11453,
13,
46506,
29835,
16034,
2583,
44441,
11050,
29835,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
List top papers for semantic segmentation | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM cite, keyphrase, paper, paperkeyphrase WHERE keyphrase.keyphrasename = 'semantic segmentation' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = cite.citedpaperid AND paper.paperid = paperkeyphrase.paperid GROUP BY cite.citedpaper... | [
8053,
1353,
9473,
329,
37865,
10618,
341,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
21729,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
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,
1... | [
8053,
1353,
9473,
329,
37865,
10618,
341,
46506,
360,
8808,
1268,
4177,
21729,
13,
66,
863,
20189,
312,
11,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
21729,
11,
1994,
34675,
11,
3348,
11,
3348,
2539,
34675,
33411,
1... |
What was the maximum speed of the car with 1.556 cc capacity? | SELECT "Vmax" FROM table_45299 WHERE "Capacity" = '1.556 cc' | [
2061,
373,
262,
5415,
2866,
286,
262,
1097,
351,
352,
13,
37864,
36624,
5339,
30,
46506,
366,
53,
9806,
1,
16034,
3084,
62,
2231,
22579,
33411,
366,
15610,
4355,
1,
796,
705,
16,
13,
37864,
36624,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
5415,
2866,
286,
262,
1097,
351,
352,
13,
37864,
36624,
5339,
30,
46506,
366,
53,
9806,
1,
16034,
3084,
62,
2231,
22579,
33411,
366,
15610,
4355,
1,
796,
705,
16,
13,
37864,
36624,
6
] |
Which Run has an Opponent of Canterbury? | SELECT "Runs" FROM table_75132 WHERE "Opponent" = 'canterbury' | [
13828,
5660,
468,
281,
9385,
3471,
286,
43581,
30,
46506,
366,
10987,
82,
1,
16034,
3084,
62,
2425,
19924,
33411,
366,
27524,
3471,
1,
796,
705,
5171,
353,
10711,
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,
5660,
468,
281,
9385,
3471,
286,
43581,
30,
46506,
366,
10987,
82,
1,
16034,
3084,
62,
2425,
19924,
33411,
366,
27524,
3471,
1,
796,
705,
5171,
353,
10711,
6
] |
is BREAKFAST served on flight UA 343 from BOSTON to DENVER coach class | SELECT DISTINCT food_service.compartment, food_service.meal_code, food_service.meal_number FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, food_service WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flig... | [
271,
29377,
10206,
37,
11262,
4983,
319,
5474,
46164,
37290,
422,
347,
10892,
1340,
284,
37692,
5959,
3985,
1398,
46506,
360,
8808,
1268,
4177,
2057,
62,
15271,
13,
5589,
1823,
11,
2057,
62,
15271,
13,
28208,
62,
8189,
11,
2057,
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,
1... | [
271,
29377,
10206,
37,
11262,
4983,
319,
5474,
46164,
37290,
422,
347,
10892,
1340,
284,
37692,
5959,
3985,
1398,
46506,
360,
8808,
1268,
4177,
2057,
62,
15271,
13,
5589,
1823,
11,
2057,
62,
15271,
13,
28208,
62,
8189,
11,
2057,
62,
1... |
i want to fly from BOSTON at 838 and arrive in DENVER at 1110 in the morning | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE ((flight.arrival_time = 1110 AND flight.departure_time = 838) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.to_ai... | [
72,
765,
284,
6129,
422,
347,
10892,
1340,
379,
807,
2548,
290,
9240,
287,
37692,
5959,
379,
1367,
940,
287,
262,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
765,
284,
6129,
422,
347,
10892,
1340,
379,
807,
2548,
290,
9240,
287,
37692,
5959,
379,
1367,
940,
287,
262,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
273... |
In the game on or before week 9, who was the opponent when the attendance was 61,626? | SELECT "Opponent" FROM table_76064 WHERE "Week" < '9' AND "Attendance" = '61,626' | [
818,
262,
983,
319,
393,
878,
1285,
860,
11,
508,
373,
262,
6125,
618,
262,
14858,
373,
8454,
11,
45191,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
40761,
2414,
33411,
366,
20916,
1,
1279,
705,
24,
6,
5357,
366,
8086,
437,
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
] | [
818,
262,
983,
319,
393,
878,
1285,
860,
11,
508,
373,
262,
6125,
618,
262,
14858,
373,
8454,
11,
45191,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
40761,
2414,
33411,
366,
20916,
1,
1279,
705,
24,
6,
5357,
366,
8086,
437,
5... |
How many patients do each physician take care of? List their names and number of patients they take care of Show bar chart, and order Y in asc order. | SELECT T1.Name, COUNT(*) FROM Physician AS T1 JOIN Patient AS T2 ON T1.EmployeeID = T2.PCP GROUP BY T1.EmployeeID ORDER BY COUNT(*) | [
2437,
867,
3871,
466,
1123,
14325,
1011,
1337,
286,
30,
7343,
511,
3891,
290,
1271,
286,
3871,
484,
1011,
1337,
286,
5438,
2318,
8262,
11,
290,
1502,
575,
287,
10570,
1502,
13,
46506,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3871,
466,
1123,
14325,
1011,
1337,
286,
30,
7343,
511,
3891,
290,
1271,
286,
3871,
484,
1011,
1337,
286,
5438,
2318,
8262,
11,
290,
1502,
575,
287,
10570,
1502,
13,
46506,
309,
16,
13,
5376,
11,
327,
28270,
7,
28104,
160... |
what was the first height of patient 19428 since 07/2105. | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht'... | [
10919,
373,
262,
717,
6001,
286,
5827,
30483,
2078,
1201,
8753,
14,
17,
13348,
13,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
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... | [
10919,
373,
262,
717,
6001,
286,
5827,
30483,
2078,
1201,
8753,
14,
17,
13348,
13,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.