instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what's patient 021-35326's maximum value of anion gap until 04/2104? | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-35326')) AND lab.labname = 'anion gap' AND STRFTIME('%y-%m', lab.labresulttime... | [
10919,
338,
5827,
657,
2481,
12,
33319,
2075,
338,
5415,
1988,
286,
281,
295,
7625,
1566,
8702,
14,
17,
13464,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
338,
5827,
657,
2481,
12,
33319,
2075,
338,
5415,
1988,
286,
281,
295,
7625,
1566,
8702,
14,
17,
13464,
30,
46506,
25882,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
... |
A bar chart shows the distribution of family_name and author_id . | SELECT family_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name | [
32,
2318,
8262,
2523,
262,
6082,
286,
1641,
62,
3672,
290,
1772,
62,
312,
764,
46506,
1641,
62,
3672,
11,
1772,
62,
312,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
1641,
62,
3672,
290,
1772,
62,
312,
764,
46506,
1641,
62,
3672,
11,
1772,
62,
312,
16034,
20537,
62,
30515,
669,
62,
392,
62,
51,
315,
669,
38678,
11050,
2614,
62,
3672
] |
What is the Result of the dance Choreographed by Kelly Aykers? | SELECT results FROM table_name_44 WHERE choreographer = "kelly aykers" | [
2061,
318,
262,
25414,
286,
262,
9280,
609,
382,
39620,
416,
9077,
13709,
15949,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
2598,
33411,
30569,
18539,
796,
366,
365,
12810,
38762,
15949,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25414,
286,
262,
9280,
609,
382,
39620,
416,
9077,
13709,
15949,
30,
46506,
2482,
16034,
3084,
62,
3672,
62,
2598,
33411,
30569,
18539,
796,
366,
365,
12810,
38762,
15949,
1
] |
Find first question for query. | SELECT MIN(OwnerUserId), MIN(Id) AS QuestionId FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId | [
16742,
717,
1808,
329,
12405,
13,
46506,
20625,
7,
42419,
12982,
7390,
828,
20625,
7,
7390,
8,
7054,
18233,
7390,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
44441,
11050,
23853,
12982,
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
] | [
16742,
717,
1808,
329,
12405,
13,
46506,
20625,
7,
42419,
12982,
7390,
828,
20625,
7,
7390,
8,
7054,
18233,
7390,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
44441,
11050,
23853,
12982,
7390
] |
how many state has an average under 8.5 ? | SELECT COUNT("state") FROM table_204_757 WHERE "average" < 8.5 | [
4919,
867,
1181,
468,
281,
2811,
739,
807,
13,
20,
5633,
46506,
327,
28270,
7203,
5219,
4943,
16034,
3084,
62,
18638,
62,
39251,
33411,
366,
23913,
1,
1279,
807,
13,
20
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
1181,
468,
281,
2811,
739,
807,
13,
20,
5633,
46506,
327,
28270,
7203,
5219,
4943,
16034,
3084,
62,
18638,
62,
39251,
33411,
366,
23913,
1,
1279,
807,
13,
20
] |
what is the number of delegates under the judiciary committee ? | SELECT COUNT("delegate") FROM table_203_247 WHERE "committee" = 'judiciary' | [
10919,
318,
262,
1271,
286,
15265,
739,
262,
30461,
5583,
5633,
46506,
327,
28270,
7203,
2934,
34637,
4943,
16034,
3084,
62,
22416,
62,
23753,
33411,
366,
26799,
1,
796,
705,
10456,
13556,
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
] | [
10919,
318,
262,
1271,
286,
15265,
739,
262,
30461,
5583,
5633,
46506,
327,
28270,
7203,
2934,
34637,
4943,
16034,
3084,
62,
22416,
62,
23753,
33411,
366,
26799,
1,
796,
705,
10456,
13556,
6
] |
What is the result in oakland? | SELECT "Result" FROM table_77834 WHERE "Venue" = 'oakland' | [
2061,
318,
262,
1255,
287,
26210,
1044,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
39761,
2682,
33411,
366,
37522,
518,
1,
796,
705,
15877,
1044,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
287,
26210,
1044,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
39761,
2682,
33411,
366,
37522,
518,
1,
796,
705,
15877,
1044,
6
] |
how many times does patient 030-28944 get a analgesic other (volume) intake since 1118 days ago? | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-28944')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.ce... | [
4919,
867,
1661,
857,
5827,
657,
1270,
12,
27693,
2598,
651,
257,
48895,
291,
584,
357,
29048,
8,
10337,
1201,
13374,
23,
1528,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
857,
5827,
657,
1270,
12,
27693,
2598,
651,
257,
48895,
291,
584,
357,
29048,
8,
10337,
1201,
13374,
23,
1528,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
31... |
What is the most silver won by the country with more than 1 gold, 3 bronze, ranked 1, and less than 12 as the total? | SELECT MAX("Silver") FROM table_63715 WHERE "Gold" > '1' AND "Bronze" = '3' AND "Rank" = '1' AND "Total" < '12' | [
2061,
318,
262,
749,
8465,
1839,
416,
262,
1499,
351,
517,
621,
352,
3869,
11,
513,
22101,
11,
10307,
352,
11,
290,
1342,
621,
1105,
355,
262,
2472,
30,
46506,
25882,
7203,
26766,
4943,
16034,
3084,
62,
21,
2718,
1314,
33411,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
749,
8465,
1839,
416,
262,
1499,
351,
517,
621,
352,
3869,
11,
513,
22101,
11,
10307,
352,
11,
290,
1342,
621,
1105,
355,
262,
2472,
30,
46506,
25882,
7203,
26766,
4943,
16034,
3084,
62,
21,
2718,
1314,
33411,
366,
1... |
What is the Lane of the swimmer with a Rank of 8? | SELECT MAX("Lane") FROM table_64465 WHERE "Rank" = '8' | [
2061,
318,
262,
15016,
286,
262,
9422,
647,
351,
257,
10916,
286,
807,
30,
46506,
25882,
7203,
43,
1531,
4943,
16034,
3084,
62,
29173,
2996,
33411,
366,
27520,
1,
796,
705,
23,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15016,
286,
262,
9422,
647,
351,
257,
10916,
286,
807,
30,
46506,
25882,
7203,
43,
1531,
4943,
16034,
3084,
62,
29173,
2996,
33411,
366,
27520,
1,
796,
705,
23,
6
] |
Who was the host team when the Miami Dolphins were the visiting team? | SELECT "Host team" FROM table_14567 WHERE "Visiting team" = 'miami dolphins' | [
8241,
373,
262,
2583,
1074,
618,
262,
8437,
21668,
547,
262,
10013,
1074,
30,
46506,
366,
17932,
1074,
1,
16034,
3084,
62,
18781,
3134,
33411,
366,
15854,
1780,
1074,
1,
796,
705,
76,
7871,
36798,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
2583,
1074,
618,
262,
8437,
21668,
547,
262,
10013,
1074,
30,
46506,
366,
17932,
1074,
1,
16034,
3084,
62,
18781,
3134,
33411,
366,
15854,
1780,
1074,
1,
796,
705,
76,
7871,
36798,
6
] |
For those employees who was hired before 2002-06-21, find hire_date and the average of salary bin hire_date by weekday, and visualize them by a bar chart, list y axis from low to high order. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(SALARY) | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
1351,
331,
16488,
422,
1877,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1064,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
28269,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
1351,
331,
16488,
422,
1877,
284... |
Bar chart x axis sportname y axis the total number | SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName | [
10374,
8262,
2124,
16488,
6332,
3672,
331,
16488,
262,
2472,
1271,
46506,
12771,
5376,
11,
327,
28270,
7,
28104,
16034,
7092,
12360,
44441,
11050,
12771,
5376
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
6332,
3672,
331,
16488,
262,
2472,
1271,
46506,
12771,
5376,
11,
327,
28270,
7,
28104,
16034,
7092,
12360,
44441,
11050,
12771,
5376
] |
provide the number of patients whose diagnoses short title is malig neo ascend colon? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Malig neo ascend colon" | [
15234,
485,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
6428,
328,
19102,
34800,
7633,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6428,
328,
19102,
34800,
7633,
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,... |
Who's the incumbent of Florida 12 district? | SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 12" | [
8241,
338,
262,
23526,
286,
4744,
1105,
4783,
30,
46506,
23526,
16034,
3084,
62,
19880,
1415,
1954,
62,
24,
33411,
4783,
796,
366,
31135,
1105,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
338,
262,
23526,
286,
4744,
1105,
4783,
30,
46506,
23526,
16034,
3084,
62,
19880,
1415,
1954,
62,
24,
33411,
4783,
796,
366,
31135,
1105,
1
] |
Present me all Professional Biophysics courses of 6 credits . | SELECT DISTINCT department, name, number FROM course WHERE (description LIKE '%Professional Biophysics%' OR name LIKE '%Professional Biophysics%') AND credits = 6 | [
34695,
502,
477,
18612,
8436,
2522,
23154,
10902,
286,
718,
10824,
764,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
49138,
8436,
2522,
23154,
4,
6,
6375,
1438,
34178,
705,
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
] | [
34695,
502,
477,
18612,
8436,
2522,
23154,
10902,
286,
718,
10824,
764,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
357,
11213,
34178,
705,
4,
49138,
8436,
2522,
23154,
4,
6,
6375,
1438,
34178,
705,
4,
... |
A scatter chart shows the correlation between Team_ID and All_Games_Percent , and group by attribute All_Home. | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Home | [
32,
41058,
8262,
2523,
262,
16096,
1022,
4816,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
41058,
8262,
2523,
262,
16096,
1022,
4816,
62,
2389,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
13,
46506,
4816,
62,
2389,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,
14... |
List the minimum impressions for sammy traor | SELECT MIN(appearances¹) FROM table_24565004_21 WHERE name = "Sammy Traoré" | [
8053,
262,
5288,
25885,
329,
6072,
1820,
1291,
273,
46506,
20625,
7,
1324,
35630,
126,
117,
8,
16034,
3084,
62,
22995,
2996,
22914,
62,
2481,
33411,
1438,
796,
366,
16305,
1820,
4759,
273,
2634,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5288,
25885,
329,
6072,
1820,
1291,
273,
46506,
20625,
7,
1324,
35630,
126,
117,
8,
16034,
3084,
62,
22995,
2996,
22914,
62,
2481,
33411,
1438,
796,
366,
16305,
1820,
4759,
273,
2634,
1
] |
what is the allergy that patient 025-44495 has had this month? | SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND DATETIME(allergy.allergytime, 'start of month') = DATETI... | [
10919,
318,
262,
36197,
326,
5827,
657,
1495,
12,
2598,
33781,
468,
550,
428,
1227,
30,
46506,
36197,
13,
439,
26079,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
36197,
326,
5827,
657,
1495,
12,
2598,
33781,
468,
550,
428,
1227,
30,
46506,
36197,
13,
439,
26079,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
... |
What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? | SELECT SUM("Division") FROM table_70489 WHERE "Country" = 'serbia and montenegro' AND "Apps" < '12' AND "Goals" > '0' | [
2061,
318,
262,
2472,
286,
262,
4777,
1653,
326,
318,
422,
262,
1499,
27229,
290,
50008,
305,
351,
6725,
4833,
621,
1105,
351,
517,
4661,
621,
657,
30,
46506,
35683,
7203,
24095,
1166,
4943,
16034,
3084,
62,
2154,
35890,
33411,
366,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
286,
262,
4777,
1653,
326,
318,
422,
262,
1499,
27229,
290,
50008,
305,
351,
6725,
4833,
621,
1105,
351,
517,
4661,
621,
657,
30,
46506,
35683,
7203,
24095,
1166,
4943,
16034,
3084,
62,
2154,
35890,
33411,
366,
3... |
has patient 7533 excreted any urine out foley until 05/2104. | SELECT COUNT(*) > 0 FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7533)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'urine out foley... | [
10134,
5827,
5441,
2091,
2859,
1186,
276,
597,
18922,
503,
11511,
1636,
1566,
8870,
14,
17,
13464,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
5441,
2091,
2859,
1186,
276,
597,
18922,
503,
11511,
1636,
1566,
8870,
14,
17,
13464,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,... |
What position does the player Todd Wise play in? | SELECT position FROM table_26847237_2 WHERE player = "Todd Wise" | [
2061,
2292,
857,
262,
2137,
14377,
28908,
711,
287,
30,
46506,
2292,
16034,
3084,
62,
25022,
2857,
24693,
62,
17,
33411,
2137,
796,
366,
42817,
28908,
1
] | [
1,
1,
1,
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,
2292,
857,
262,
2137,
14377,
28908,
711,
287,
30,
46506,
2292,
16034,
3084,
62,
25022,
2857,
24693,
62,
17,
33411,
2137,
796,
366,
42817,
28908,
1
] |
What are the draws when the losses are less than 1? | SELECT SUM(draws) FROM table_name_30 WHERE losses < 1 | [
2061,
389,
262,
14293,
618,
262,
9089,
389,
1342,
621,
352,
30,
46506,
35683,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
9089,
1279,
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
] | [
2061,
389,
262,
14293,
618,
262,
9089,
389,
1342,
621,
352,
30,
46506,
35683,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
1270,
33411,
9089,
1279,
352
] |
Which Genre has a Game of tony hawk's pro skater 2? | SELECT "Genre" FROM table_79585 WHERE "Game" = 'tony hawk''s pro skater 2' | [
13828,
5215,
260,
468,
257,
3776,
286,
256,
1647,
48710,
338,
386,
1341,
729,
362,
30,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
3720,
38905,
33411,
366,
8777,
1,
796,
705,
1122,
88,
48710,
7061,
82,
386,
1341,
729,
362,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5215,
260,
468,
257,
3776,
286,
256,
1647,
48710,
338,
386,
1341,
729,
362,
30,
46506,
366,
13746,
260,
1,
16034,
3084,
62,
3720,
38905,
33411,
366,
8777,
1,
796,
705,
1122,
88,
48710,
7061,
82,
386,
1341,
729,
362,
6
] |
What is the rank of the person with a time of 1:44.757? | SELECT MAX(rank) FROM table_name_62 WHERE time = "1:44.757" | [
2061,
318,
262,
4279,
286,
262,
1048,
351,
257,
640,
286,
352,
25,
2598,
13,
39251,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
640,
796,
366,
16,
25,
2598,
13,
39251,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
286,
262,
1048,
351,
257,
640,
286,
352,
25,
2598,
13,
39251,
30,
46506,
25882,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
640,
796,
366,
16,
25,
2598,
13,
39251,
1
] |
What home team played at the western oval? | SELECT "Home team" FROM table_32739 WHERE "Venue" = 'western oval' | [
2061,
1363,
1074,
2826,
379,
262,
8830,
41186,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
34159,
2670,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1363,
1074,
2826,
379,
262,
8830,
41186,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
34159,
2670,
33411,
366,
37522,
518,
1,
796,
705,
14197,
41186,
6
] |
provide the number of patients whose admission type is emergency and diagnoses long title is unspecified disease of sebaceous glands? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Unspecified disease of sebaceous glands" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
29547,
4369,
286,
384,
65,
37797,
42093,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
318,
6334,
290,
40567,
890,
3670,
318,
29547,
4369,
286,
384,
65,
37797,
42093,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
What are the terminals for line 2? | SELECT "Terminals" FROM table_20513 WHERE "Line" = 'Line 2' | [
2061,
389,
262,
30237,
329,
1627,
362,
30,
46506,
366,
44798,
874,
1,
16034,
3084,
62,
21261,
1485,
33411,
366,
13949,
1,
796,
705,
13949,
362,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
30237,
329,
1627,
362,
30,
46506,
366,
44798,
874,
1,
16034,
3084,
62,
21261,
1485,
33411,
366,
13949,
1,
796,
705,
13949,
362,
6
] |
Which name was in a position less than 4 with 2 losses? | SELECT name FROM table_name_78 WHERE position < 4 AND lost = 2 | [
13828,
1438,
373,
287,
257,
2292,
1342,
621,
604,
351,
362,
9089,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3695,
33411,
2292,
1279,
604,
5357,
2626,
796,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1438,
373,
287,
257,
2292,
1342,
621,
604,
351,
362,
9089,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3695,
33411,
2292,
1279,
604,
5357,
2626,
796,
362
] |
How many departments are in each school Show bar chart, could you sort by the total number in descending? | SELECT SCHOOL_CODE, COUNT(DISTINCT DEPT_NAME) FROM DEPARTMENT ORDER BY COUNT(DISTINCT DEPT_NAME) DESC | [
2437,
867,
13346,
389,
287,
1123,
1524,
5438,
2318,
8262,
11,
714,
345,
3297,
416,
262,
2472,
1271,
287,
31491,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
5550,
11571,
62,
20608,
8,
16034,
5550,
30709,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13346,
389,
287,
1123,
1524,
5438,
2318,
8262,
11,
714,
345,
3297,
416,
262,
2472,
1271,
287,
31491,
30,
46506,
35883,
62,
34,
16820,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
5550,
11571,
62,
20608,
8,
16034,
5550,
30709,
... |
what was the number of patients that were tested in 2105 for direct antigen test for herpes simplex virus types 1 & 2 microbiology? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'direct antigen test for herpes simplex virus types 1 & 2' AND STRFTIME('%y', microbiologyevents.charttime) = '2105') | [
10919,
373,
262,
1271,
286,
3871,
326,
547,
6789,
287,
362,
13348,
329,
1277,
50059,
1332,
329,
45287,
2829,
87,
9471,
3858,
352,
1222,
362,
24559,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1271,
286,
3871,
326,
547,
6789,
287,
362,
13348,
329,
1277,
50059,
1332,
329,
45287,
2829,
87,
9471,
3858,
352,
1222,
362,
24559,
1435,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
... |
How many DVD volumes was identified by Skippy Johnson? | SELECT dvd_volume FROM table_name_36 WHERE identity_ies_ = "skippy johnson" | [
2437,
867,
12490,
15343,
373,
5174,
416,
3661,
41214,
5030,
30,
46506,
288,
20306,
62,
29048,
16034,
3084,
62,
3672,
62,
2623,
33411,
5369,
62,
444,
62,
796,
366,
8135,
41214,
45610,
1559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12490,
15343,
373,
5174,
416,
3661,
41214,
5030,
30,
46506,
288,
20306,
62,
29048,
16034,
3084,
62,
3672,
62,
2623,
33411,
5369,
62,
444,
62,
796,
366,
8135,
41214,
45610,
1559,
1
] |
Find the names of songs whose genre is modern or language is English. | SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english" | [
16742,
262,
3891,
286,
7259,
3025,
12121,
318,
3660,
393,
3303,
318,
3594,
13,
46506,
3496,
62,
3672,
16034,
3496,
33411,
12121,
62,
271,
796,
366,
23922,
1,
6375,
8950,
796,
366,
39126,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7259,
3025,
12121,
318,
3660,
393,
3303,
318,
3594,
13,
46506,
3496,
62,
3672,
16034,
3496,
33411,
12121,
62,
271,
796,
366,
23922,
1,
6375,
8950,
796,
366,
39126,
1
] |
What is the average number of students in East Lansing, MI? | SELECT AVG(founded) FROM table_name_70 WHERE location = "east lansing, mi" | [
2061,
318,
262,
2811,
1271,
286,
2444,
287,
3687,
49860,
11,
15789,
30,
46506,
35224,
7,
27060,
8,
16034,
3084,
62,
3672,
62,
2154,
33411,
4067,
796,
366,
23316,
300,
504,
278,
11,
21504,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
2444,
287,
3687,
49860,
11,
15789,
30,
46506,
35224,
7,
27060,
8,
16034,
3084,
62,
3672,
62,
2154,
33411,
4067,
796,
366,
23316,
300,
504,
278,
11,
21504,
1
] |
find the number of medicaid patients who are diagnosed with acute on chronic systolic heart failure. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Acute on chronic systolic heart failure" | [
19796,
262,
1271,
286,
6924,
1698,
3871,
508,
389,
14641,
351,
14352,
319,
10726,
827,
301,
4160,
2612,
5287,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
19796,
262,
1271,
286,
6924,
1698,
3871,
508,
389,
14641,
351,
14352,
319,
10726,
827,
301,
4160,
2612,
5287,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... |
What nominees had a net vote of 34.46%? | SELECT "Nominee" FROM table_19870 WHERE "Net vote" = '34.46%' | [
2061,
26456,
550,
257,
2010,
3015,
286,
4974,
13,
3510,
4,
30,
46506,
366,
45,
296,
500,
68,
1,
16034,
3084,
62,
22337,
2154,
33411,
366,
7934,
3015,
1,
796,
705,
2682,
13,
3510,
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
] | [
2061,
26456,
550,
257,
2010,
3015,
286,
4974,
13,
3510,
4,
30,
46506,
366,
45,
296,
500,
68,
1,
16034,
3084,
62,
22337,
2154,
33411,
366,
7934,
3015,
1,
796,
705,
2682,
13,
3510,
4,
6
] |
What time was the game with a record of 7-3? | SELECT "Game time" FROM table_39693 WHERE "Record" = '7-3' | [
2061,
640,
373,
262,
983,
351,
257,
1700,
286,
767,
12,
18,
30,
46506,
366,
8777,
640,
1,
16034,
3084,
62,
2670,
48528,
33411,
366,
23739,
1,
796,
705,
22,
12,
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
] | [
2061,
640,
373,
262,
983,
351,
257,
1700,
286,
767,
12,
18,
30,
46506,
366,
8777,
640,
1,
16034,
3084,
62,
2670,
48528,
33411,
366,
23739,
1,
796,
705,
22,
12,
18,
6
] |
What inclination has a semimajor axis of 20 au? | SELECT inclination FROM table_name_16 WHERE semimajor_axis___au__ = "20 au" | [
2061,
36793,
468,
257,
5026,
320,
1518,
16488,
286,
1160,
35851,
30,
46506,
36793,
16034,
3084,
62,
3672,
62,
1433,
33411,
5026,
320,
1518,
62,
22704,
17569,
559,
834,
796,
366,
1238,
35851,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
36793,
468,
257,
5026,
320,
1518,
16488,
286,
1160,
35851,
30,
46506,
36793,
16034,
3084,
62,
3672,
62,
1433,
33411,
5026,
320,
1518,
62,
22704,
17569,
559,
834,
796,
366,
1238,
35851,
1
] |
How many total draws was played less than 18 with 11 losts? | SELECT SUM("Draw") FROM table_13533 WHERE "Lost" = '11' AND "Played" < '18' | [
2437,
867,
2472,
14293,
373,
2826,
1342,
621,
1248,
351,
1367,
2626,
82,
30,
46506,
35683,
7203,
25302,
4943,
16034,
3084,
62,
17059,
2091,
33411,
366,
31042,
1,
796,
705,
1157,
6,
5357,
366,
11002,
276,
1,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2472,
14293,
373,
2826,
1342,
621,
1248,
351,
1367,
2626,
82,
30,
46506,
35683,
7203,
25302,
4943,
16034,
3084,
62,
17059,
2091,
33411,
366,
31042,
1,
796,
705,
1157,
6,
5357,
366,
11002,
276,
1,
1279,
705,
1507,
6
] |
how many verbs have the yo form as sienta? | SELECT COUNT(verbs) FROM table_1977630_2 WHERE yo = "sienta" | [
4919,
867,
41781,
423,
262,
27406,
1296,
355,
264,
1153,
64,
30,
46506,
327,
28270,
7,
46211,
8,
16034,
3084,
62,
37781,
30005,
62,
17,
33411,
27406,
796,
366,
82,
1153,
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
] | [
4919,
867,
41781,
423,
262,
27406,
1296,
355,
264,
1153,
64,
30,
46506,
327,
28270,
7,
46211,
8,
16034,
3084,
62,
37781,
30005,
62,
17,
33411,
27406,
796,
366,
82,
1153,
64,
1
] |
Who is the studio host for the year 2006-07? | SELECT "Studio host" FROM table_72591 WHERE "Year" = '2006-07' | [
8241,
318,
262,
8034,
2583,
329,
262,
614,
4793,
12,
2998,
30,
46506,
366,
41501,
2583,
1,
16034,
3084,
62,
45151,
6420,
33411,
366,
17688,
1,
796,
705,
13330,
12,
2998,
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
] | [
8241,
318,
262,
8034,
2583,
329,
262,
614,
4793,
12,
2998,
30,
46506,
366,
41501,
2583,
1,
16034,
3084,
62,
45151,
6420,
33411,
366,
17688,
1,
796,
705,
13330,
12,
2998,
6
] |
What is score of the game that was at a paace of t4, and had the player Butch Baird? | SELECT score FROM table_name_36 WHERE place = "t4" AND player = "butch baird" | [
2061,
318,
4776,
286,
262,
983,
326,
373,
379,
257,
14187,
558,
286,
256,
19,
11,
290,
550,
262,
2137,
887,
354,
48503,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2623,
33411,
1295,
796,
366,
83,
19,
1,
5357,
2137,
796,
366,
4360... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4776,
286,
262,
983,
326,
373,
379,
257,
14187,
558,
286,
256,
19,
11,
290,
550,
262,
2137,
887,
354,
48503,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2623,
33411,
1295,
796,
366,
83,
19,
1,
5357,
2137,
796,
366,
4360... |
when has patient 59275 first had the minimum value of rdw until 40 months ago? | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59275) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'rdw') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-40 month'... | [
12518,
468,
5827,
7863,
23195,
717,
550,
262,
5288,
1988,
286,
374,
67,
86,
1566,
2319,
1933,
2084,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
468,
5827,
7863,
23195,
717,
550,
262,
5288,
1988,
286,
374,
67,
86,
1566,
2319,
1933,
2084,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
... |
how many seasons are there ? | SELECT COUNT("season") FROM table_204_186 | [
4919,
867,
7028,
389,
612,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
25096
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
7028,
389,
612,
5633,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
18638,
62,
25096
] |
On how many dates did the Michigan International Speedway hold a round? | SELECT COUNT("Date") FROM table_16287 WHERE "Circuit" = 'Michigan International Speedway' | [
2202,
703,
867,
9667,
750,
262,
7055,
4037,
46000,
1745,
257,
2835,
30,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
1433,
27800,
33411,
366,
31560,
5013,
1,
796,
705,
40610,
4037,
46000,
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
] | [
2202,
703,
867,
9667,
750,
262,
7055,
4037,
46000,
1745,
257,
2835,
30,
46506,
327,
28270,
7203,
10430,
4943,
16034,
3084,
62,
1433,
27800,
33411,
366,
31560,
5013,
1,
796,
705,
40610,
4037,
46000,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the sum of employee_id bin hire_date by weekday, rank by the y-axis in asc. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
2826... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
2826... |
what is the number of patients whose days of hospital stay is greater than 20 and diagnoses short title is hx of breast malignancy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "20" AND diagnoses.short_title = "Hx of breast malignancy" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1160,
290,
40567,
1790,
3670,
318,
289,
87,
286,
9296,
6428,
570,
3883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
1160,
290,
40567,
1790,
3670,
318,
289,
87,
286,
9296,
6428,
570,
3883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
160... |
What is the sum of the earnings for rank 3? | SELECT SUM("Earnings( $ )") FROM table_42288 WHERE "Rank" = '3' | [
2061,
318,
262,
2160,
286,
262,
12042,
329,
4279,
513,
30,
46506,
35683,
7203,
49725,
654,
7,
720,
1267,
4943,
16034,
3084,
62,
44361,
3459,
33411,
366,
27520,
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
] | [
2061,
318,
262,
2160,
286,
262,
12042,
329,
4279,
513,
30,
46506,
35683,
7203,
49725,
654,
7,
720,
1267,
4943,
16034,
3084,
62,
44361,
3459,
33411,
366,
27520,
1,
796,
705,
18,
6
] |
For each competition, count the number of matches. Visualize by pie chart. | SELECT Competition, COUNT(*) FROM match GROUP BY Competition | [
1890,
1123,
5449,
11,
954,
262,
1271,
286,
7466,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
27348,
11,
327,
28270,
7,
28104,
16034,
2872,
44441,
11050,
27348
] | [
1,
1,
1,
1,
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,
5449,
11,
954,
262,
1271,
286,
7466,
13,
15612,
1096,
416,
2508,
8262,
13,
46506,
27348,
11,
327,
28270,
7,
28104,
16034,
2872,
44441,
11050,
27348
] |
Who is the opponent in 1992? | SELECT "Opponent" FROM table_68868 WHERE "Year" = '1992' | [
8241,
318,
262,
6125,
287,
9768,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
34427,
3104,
33411,
366,
17688,
1,
796,
705,
23847,
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
] | [
8241,
318,
262,
6125,
287,
9768,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
34427,
3104,
33411,
366,
17688,
1,
796,
705,
23847,
6
] |
What Nation has a Gold entry that is greater than 0, a Total that is greater than 2, a Silver entry that is larger than 1, and 0 Bronze? | SELECT "Nation" FROM table_79401 WHERE "Gold" > '0' AND "Total" > '2' AND "Bronze" = '0' AND "Silver" > '1' | [
2061,
8741,
468,
257,
3561,
5726,
326,
318,
3744,
621,
657,
11,
257,
7472,
326,
318,
3744,
621,
362,
11,
257,
7698,
5726,
326,
318,
4025,
621,
352,
11,
290,
657,
19461,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
3720,
21844,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
8741,
468,
257,
3561,
5726,
326,
318,
3744,
621,
657,
11,
257,
7472,
326,
318,
3744,
621,
362,
11,
257,
7698,
5726,
326,
318,
4025,
621,
352,
11,
290,
657,
19461,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
3720,
21844,
33411,
... |
What venue did group g play at on Mar 8, 1998? | SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998" | [
2061,
14359,
750,
1448,
308,
711,
379,
319,
1526,
807,
11,
7795,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3682,
33411,
3800,
796,
366,
8094,
308,
1,
5357,
3128,
796,
366,
3876,
807,
11,
7795,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1448,
308,
711,
379,
319,
1526,
807,
11,
7795,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
3682,
33411,
3800,
796,
366,
8094,
308,
1,
5357,
3128,
796,
366,
3876,
807,
11,
7795,
1
] |
count the number of patients whose admission location is transfer from hosp/extram and procedure icd9 code is 3891? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.icd9_code = "3891" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
4351,
422,
10496,
14,
2302,
859,
290,
8771,
14158,
67,
24,
2438,
318,
4353,
6420,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
4351,
422,
10496,
14,
2302,
859,
290,
8771,
14158,
67,
24,
2438,
318,
4353,
6420,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
For all storms with at least 1 death, show me the name and the total number of deaths with a bar chart, and order by the x-axis from low to high please. | SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 ORDER BY Name | [
1890,
477,
20228,
351,
379,
1551,
352,
1918,
11,
905,
502,
262,
1438,
290,
262,
2472,
1271,
286,
7040,
351,
257,
2318,
8262,
11,
290,
1502,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
3387,
13,
46506,
6530,
11,
7913,
62,
20148,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20228,
351,
379,
1551,
352,
1918,
11,
905,
502,
262,
1438,
290,
262,
2472,
1271,
286,
7040,
351,
257,
2318,
8262,
11,
290,
1502,
416,
262,
2124,
12,
22704,
422,
1877,
284,
1029,
3387,
13,
46506,
6530,
11,
7913,
62,
20148,... |
Name the result for james lent (j) 52.3% silas wood (aj) 47.7% | SELECT "Result" FROM table_28854 WHERE "Candidates" = 'James Lent (J) 52.3% Silas Wood (AJ) 47.7%' | [
5376,
262,
1255,
329,
474,
1047,
26269,
357,
73,
8,
6740,
13,
18,
4,
3313,
292,
4898,
357,
1228,
8,
6298,
13,
22,
4,
46506,
366,
23004,
1,
16034,
3084,
62,
25270,
4051,
33411,
366,
41572,
37051,
1,
796,
705,
14731,
43751,
357,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1255,
329,
474,
1047,
26269,
357,
73,
8,
6740,
13,
18,
4,
3313,
292,
4898,
357,
1228,
8,
6298,
13,
22,
4,
46506,
366,
23004,
1,
16034,
3084,
62,
25270,
4051,
33411,
366,
41572,
37051,
1,
796,
705,
14731,
43751,
357,
41,... |
What is the lab test abnormal status of Paul Edwards? | SELECT lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Paul Edwards" | [
2061,
318,
262,
2248,
1332,
18801,
3722,
286,
3362,
17381,
30,
46506,
2248,
13,
32109,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
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
] | [
2061,
318,
262,
2248,
1332,
18801,
3722,
286,
3362,
17381,
30,
46506,
2248,
13,
32109,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
796,
... |
What team has a home city of Velika? | SELECT team FROM table_name_74 WHERE home_city = "velika" | [
2061,
1074,
468,
257,
1363,
1748,
286,
17378,
9232,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4524,
33411,
1363,
62,
19205,
796,
366,
626,
9232,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
468,
257,
1363,
1748,
286,
17378,
9232,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4524,
33411,
1363,
62,
19205,
796,
366,
626,
9232,
1
] |
Name the date for attendance 9372 | SELECT "Date" FROM table_2308 WHERE "Attendance" = '9372' | [
5376,
262,
3128,
329,
14858,
860,
36720,
46506,
366,
10430,
1,
16034,
3084,
62,
19214,
23,
33411,
366,
8086,
437,
590,
1,
796,
705,
24,
36720,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3128,
329,
14858,
860,
36720,
46506,
366,
10430,
1,
16034,
3084,
62,
19214,
23,
33411,
366,
8086,
437,
590,
1,
796,
705,
24,
36720,
6
] |
which companies released on 2010-11-04 4 november 2010 | SELECT "Company" FROM table_23581 WHERE "Release Date" = '2010-11-04 4 November 2010' | [
4758,
2706,
2716,
319,
3050,
12,
1157,
12,
3023,
604,
645,
303,
1916,
3050,
46506,
366,
39154,
1,
16034,
3084,
62,
1954,
48630,
33411,
366,
26362,
7536,
1,
796,
705,
10333,
12,
1157,
12,
3023,
604,
3389,
3050,
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
] | [
4758,
2706,
2716,
319,
3050,
12,
1157,
12,
3023,
604,
645,
303,
1916,
3050,
46506,
366,
39154,
1,
16034,
3084,
62,
1954,
48630,
33411,
366,
26362,
7536,
1,
796,
705,
10333,
12,
1157,
12,
3023,
604,
3389,
3050,
6
] |
how many of the male patients were diagnosed with malig neo tongue nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.short_title = "Malig neo tongue NEC" | [
4919,
867,
286,
262,
4257,
3871,
547,
14641,
351,
6428,
328,
19102,
11880,
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,
286,
262,
4257,
3871,
547,
14641,
351,
6428,
328,
19102,
11880,
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,
... |
What's listed for the Elevated with a Cardinalatial title of Priest of S. Eusebio and Archbishop of Benevento? | SELECT elevated FROM table_name_25 WHERE cardinalatial_title = "priest of s. eusebio and archbishop of benevento" | [
2061,
338,
5610,
329,
262,
37881,
515,
351,
257,
25564,
34961,
3670,
286,
20876,
286,
311,
13,
412,
1904,
65,
952,
290,
36746,
286,
36585,
1151,
78,
30,
46506,
15321,
16034,
3084,
62,
3672,
62,
1495,
33411,
38691,
34961,
62,
7839,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
5610,
329,
262,
37881,
515,
351,
257,
25564,
34961,
3670,
286,
20876,
286,
311,
13,
412,
1904,
65,
952,
290,
36746,
286,
36585,
1151,
78,
30,
46506,
15321,
16034,
3084,
62,
3672,
62,
1495,
33411,
38691,
34961,
62,
7839,
796... |
what is the admission type and diagnoses long title of subject id 3343? | SELECT demographic.admission_type, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "3343" | [
10919,
318,
262,
13938,
2099,
290,
40567,
890,
3670,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
13938,
2099,
290,
40567,
890,
3670,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
40567,
13,
6511,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
... |
Who directed Dulcinea? | SELECT "Director" FROM table_16305 WHERE "Original title" = 'Dulcinea' | [
8241,
7924,
42148,
66,
18343,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1433,
22515,
33411,
366,
20556,
3670,
1,
796,
705,
35,
377,
66,
18343,
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,
7924,
42148,
66,
18343,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1433,
22515,
33411,
366,
20556,
3670,
1,
796,
705,
35,
377,
66,
18343,
6
] |
how many prilosec otc prescriptions was there this year? | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'prilosec otc' AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
4919,
867,
778,
346,
577,
66,
267,
23047,
34092,
373,
612,
428,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
30349,
796,
705,
1050,
346,
577,
66,
267,
23047,
6,
5357,
360,
1404,
2767,
12789,
7,
18302,
24370,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
778,
346,
577,
66,
267,
23047,
34092,
373,
612,
428,
614,
30,
46506,
327,
28270,
7,
28104,
16034,
34092,
33411,
34092,
13,
30349,
796,
705,
1050,
346,
577,
66,
267,
23047,
6,
5357,
360,
1404,
2767,
12789,
7,
18302,
24370,
... |
how much is the maximum hospital bill that includes subtrochanteric fx-close? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'subtrochanteric fx-close')) GROUP BY cost.hadm_id) AS t1 | [
4919,
881,
318,
262,
5415,
4436,
2855,
326,
3407,
13284,
305,
3147,
353,
291,
277,
87,
12,
19836,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
881,
318,
262,
5415,
4436,
2855,
326,
3407,
13284,
305,
3147,
353,
291,
277,
87,
12,
19836,
30,
46506,
25882,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
157... |
Show all payment method codes and the number of orders for each code. | SELECT payment_method_code, COUNT(*) FROM invoices GROUP BY payment_method_code | [
15307,
477,
6074,
2446,
12416,
290,
262,
1271,
286,
6266,
329,
1123,
2438,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
44441,
11050,
6074,
62,
24396,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6074,
2446,
12416,
290,
262,
1271,
286,
6266,
329,
1123,
2438,
13,
46506,
6074,
62,
24396,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
800,
78,
1063,
44441,
11050,
6074,
62,
24396,
62,
8189
] |
What is the height of player James Stanton? | SELECT height FROM table_name_63 WHERE name = "james stanton" | [
2061,
318,
262,
6001,
286,
2137,
3700,
36442,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
5066,
33411,
1438,
796,
366,
73,
1047,
336,
23026,
1
] | [
1,
1,
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,
6001,
286,
2137,
3700,
36442,
30,
46506,
6001,
16034,
3084,
62,
3672,
62,
5066,
33411,
1438,
796,
366,
73,
1047,
336,
23026,
1
] |
What number of credits is EECS 634 ? | SELECT DISTINCT credits FROM course WHERE department = 'EECS' AND number = 634 | [
2061,
1271,
286,
10824,
318,
412,
2943,
50,
718,
2682,
5633,
46506,
360,
8808,
1268,
4177,
10824,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
718,
2682
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
10824,
318,
412,
2943,
50,
718,
2682,
5633,
46506,
360,
8808,
1268,
4177,
10824,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
718,
2682
] |
what medication was prescribed for the last time in 11/2103 to patient 27739? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27739) AND STRFTIME('%y-%m', prescriptions.startdate) = '2103-11' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
10919,
14103,
373,
14798,
329,
262,
938,
640,
287,
1367,
14,
17,
15197,
284,
5827,
38703,
2670,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
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,
14103,
373,
14798,
329,
262,
938,
640,
287,
1367,
14,
17,
15197,
284,
5827,
38703,
2670,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
2... |
how many patients with iv drip route of drug administration have diagnosis icd9 code v4281? | 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.icd9_code = "V4281" AND prescriptions.route = "IV DRIP" | [
4919,
867,
3871,
351,
21628,
36296,
6339,
286,
2563,
3662,
423,
13669,
14158,
67,
24,
2438,
410,
19,
30368,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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... | [
4919,
867,
3871,
351,
21628,
36296,
6339,
286,
2563,
3662,
423,
13669,
14158,
67,
24,
2438,
410,
19,
30368,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6... |
what is the production code of the episode viewed by 5.36 million u.s. people? | SELECT "Production code" FROM table_28674 WHERE "U.S. viewers (millions)" = '5.36' | [
10919,
318,
262,
3227,
2438,
286,
262,
4471,
9569,
416,
642,
13,
2623,
1510,
334,
13,
82,
13,
661,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
2078,
45385,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
3227,
2438,
286,
262,
4471,
9569,
416,
642,
13,
2623,
1510,
334,
13,
82,
13,
661,
30,
46506,
366,
35027,
2438,
1,
16034,
3084,
62,
2078,
45385,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
... |
what is the listing date for nuckolls county? | SELECT "Listed" FROM table_49332 WHERE "County" = 'nuckolls' | [
10919,
318,
262,
13487,
3128,
329,
299,
1347,
33421,
7968,
30,
46506,
366,
43,
6347,
1,
16034,
3084,
62,
2920,
32148,
33411,
366,
12332,
88,
1,
796,
705,
77,
1347,
33421,
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
] | [
10919,
318,
262,
13487,
3128,
329,
299,
1347,
33421,
7968,
30,
46506,
366,
43,
6347,
1,
16034,
3084,
62,
2920,
32148,
33411,
366,
12332,
88,
1,
796,
705,
77,
1347,
33421,
6
] |
which shop has happy hour most frequently? List its id and number of happy hours. | SELECT shop_id, COUNT(*) FROM happy_hour GROUP BY shop_id ORDER BY COUNT(*) DESC LIMIT 1 | [
4758,
6128,
468,
3772,
1711,
749,
6777,
30,
7343,
663,
4686,
290,
1271,
286,
3772,
2250,
13,
46506,
6128,
62,
312,
11,
327,
28270,
7,
28104,
16034,
3772,
62,
9769,
44441,
11050,
6128,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
22196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6128,
468,
3772,
1711,
749,
6777,
30,
7343,
663,
4686,
290,
1271,
286,
3772,
2250,
13,
46506,
6128,
62,
312,
11,
327,
28270,
7,
28104,
16034,
3772,
62,
9769,
44441,
11050,
6128,
62,
312,
38678,
11050,
327,
28270,
7,
28104,
22196... |
Which Hometown/School has a Team of atlanta braves? | SELECT hometown_school FROM table_name_74 WHERE team = "atlanta braves" | [
13828,
367,
19191,
14,
26130,
468,
257,
4816,
286,
379,
75,
4910,
8290,
1158,
30,
46506,
20994,
62,
14347,
16034,
3084,
62,
3672,
62,
4524,
33411,
1074,
796,
366,
25864,
4910,
8290,
1158,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
367,
19191,
14,
26130,
468,
257,
4816,
286,
379,
75,
4910,
8290,
1158,
30,
46506,
20994,
62,
14347,
16034,
3084,
62,
3672,
62,
4524,
33411,
1074,
796,
366,
25864,
4910,
8290,
1158,
1
] |
Name the 012 club which has of norbert hosny nszky category:articles with hcards? | SELECT "2012 club" FROM table_61568 WHERE "Name" = 'norbert hosnyánszky category:articles with hcards' | [
5376,
262,
5534,
17,
3430,
543,
468,
286,
4249,
4835,
289,
418,
3281,
36545,
89,
2584,
6536,
25,
26845,
351,
289,
27761,
30,
46506,
366,
6999,
3430,
1,
16034,
3084,
62,
47007,
3104,
33411,
366,
5376,
1,
796,
705,
13099,
4835,
289,
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
] | [
5376,
262,
5534,
17,
3430,
543,
468,
286,
4249,
4835,
289,
418,
3281,
36545,
89,
2584,
6536,
25,
26845,
351,
289,
27761,
30,
46506,
366,
6999,
3430,
1,
16034,
3084,
62,
47007,
3104,
33411,
366,
5376,
1,
796,
705,
13099,
4835,
289,
4... |
In what place did the golfer that scored 66-74=140 finish? | SELECT "Place" FROM table_59418 WHERE "Score" = '66-74=140' | [
818,
644,
1295,
750,
262,
43791,
2232,
326,
7781,
7930,
12,
4524,
28,
15187,
5461,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3270,
39667,
33411,
366,
26595,
1,
796,
705,
2791,
12,
4524,
28,
15187,
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
] | [
818,
644,
1295,
750,
262,
43791,
2232,
326,
7781,
7930,
12,
4524,
28,
15187,
5461,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3270,
39667,
33411,
366,
26595,
1,
796,
705,
2791,
12,
4524,
28,
15187,
6
] |
Which apartments have bookings with status code 'Confirmed'? Return their apartment numbers. | SELECT DISTINCT T2.apt_number FROM apartment_bookings AS T1 JOIN apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T1.booking_status_code = "Confirmed" | [
13828,
19592,
423,
1492,
654,
351,
3722,
2438,
705,
18546,
15491,
30960,
8229,
511,
7962,
3146,
13,
46506,
360,
8808,
1268,
4177,
309,
17,
13,
2373,
62,
17618,
16034,
7962,
62,
2070,
654,
7054,
309,
16,
32357,
1268,
19592,
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... | [
13828,
19592,
423,
1492,
654,
351,
3722,
2438,
705,
18546,
15491,
30960,
8229,
511,
7962,
3146,
13,
46506,
360,
8808,
1268,
4177,
309,
17,
13,
2373,
62,
17618,
16034,
7962,
62,
2070,
654,
7054,
309,
16,
32357,
1268,
19592,
7054,
309,
... |
Who was the conference player of the year when Alabama State was the tournament winner? | SELECT "Conference Player of the Year" FROM table_30824 WHERE "Tournament Winner" = 'Alabama State' | [
8241,
373,
262,
4495,
2137,
286,
262,
614,
618,
9266,
1812,
373,
262,
7756,
8464,
30,
46506,
366,
3103,
4288,
7853,
286,
262,
6280,
1,
16034,
3084,
62,
21495,
1731,
33411,
366,
51,
5138,
25358,
1,
796,
705,
49177,
1812,
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
] | [
8241,
373,
262,
4495,
2137,
286,
262,
614,
618,
9266,
1812,
373,
262,
7756,
8464,
30,
46506,
366,
3103,
4288,
7853,
286,
262,
6280,
1,
16034,
3084,
62,
21495,
1731,
33411,
366,
51,
5138,
25358,
1,
796,
705,
49177,
1812,
6
] |
In what area is Morven School? | SELECT "Area" FROM table_14499 WHERE "Name" = 'morven school' | [
818,
644,
1989,
318,
3461,
574,
3961,
30,
46506,
366,
30547,
1,
16034,
3084,
62,
18444,
2079,
33411,
366,
5376,
1,
796,
705,
4491,
574,
1524,
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
] | [
818,
644,
1989,
318,
3461,
574,
3961,
30,
46506,
366,
30547,
1,
16034,
3084,
62,
18444,
2079,
33411,
366,
5376,
1,
796,
705,
4491,
574,
1524,
6
] |
What date was 53-75 recorded? | SELECT date FROM table_name_16 WHERE record = "53-75" | [
2061,
3128,
373,
7192,
12,
2425,
6264,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
1700,
796,
366,
4310,
12,
2425,
1
] | [
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,
3128,
373,
7192,
12,
2425,
6264,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
1700,
796,
366,
4310,
12,
2425,
1
] |
Which home team played against the away team Carlton? | SELECT "Home team" FROM table_56902 WHERE "Away team" = 'carlton' | [
13828,
1363,
1074,
2826,
1028,
262,
1497,
1074,
44348,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
20,
3388,
2999,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
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
] | [
13828,
1363,
1074,
2826,
1028,
262,
1497,
1074,
44348,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
20,
3388,
2999,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
What was the result on 8 October 1961? | SELECT result FROM table_name_26 WHERE date = "8 october 1961" | [
2061,
373,
262,
1255,
319,
807,
3267,
20510,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
796,
366,
23,
19318,
2023,
20510,
1
] | [
1,
1,
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,
319,
807,
3267,
20510,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
796,
366,
23,
19318,
2023,
20510,
1
] |
Who is everyone on the men's doubles when men's singles is Ma Wenge? | SELECT "Mens Doubles" FROM table_30404 WHERE "Mens Singles" = 'Ma Wenge' | [
8241,
318,
2506,
319,
262,
1450,
338,
21938,
618,
1450,
338,
25287,
318,
6669,
370,
3540,
30,
46506,
366,
44,
641,
5728,
7689,
1,
16034,
3084,
62,
1270,
26429,
33411,
366,
44,
641,
5573,
829,
1,
796,
705,
21467,
370,
3540,
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
] | [
8241,
318,
2506,
319,
262,
1450,
338,
21938,
618,
1450,
338,
25287,
318,
6669,
370,
3540,
30,
46506,
366,
44,
641,
5728,
7689,
1,
16034,
3084,
62,
1270,
26429,
33411,
366,
44,
641,
5573,
829,
1,
796,
705,
21467,
370,
3540,
6
] |
How many cosponsors have a Date introduced of may 22, 2008? | SELECT COUNT(_number_of_cosponsors) FROM table_name_15 WHERE date_introduced = "may 22, 2008" | [
2437,
867,
269,
39500,
423,
257,
7536,
5495,
286,
743,
2534,
11,
3648,
30,
46506,
327,
28270,
28264,
17618,
62,
1659,
62,
66,
39500,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
3128,
62,
27427,
771,
796,
366,
11261,
2534,
11,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
269,
39500,
423,
257,
7536,
5495,
286,
743,
2534,
11,
3648,
30,
46506,
327,
28270,
28264,
17618,
62,
1659,
62,
66,
39500,
8,
16034,
3084,
62,
3672,
62,
1314,
33411,
3128,
62,
27427,
771,
796,
366,
11261,
2534,
11,
3648,
1... |
What was the loss for June 2? | SELECT loss FROM table_name_79 WHERE date = "june 2" | [
2061,
373,
262,
2994,
329,
2795,
362,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
73,
1726,
362,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2994,
329,
2795,
362,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
3720,
33411,
3128,
796,
366,
73,
1726,
362,
1
] |
Player of dan federman, and a Pick larger than 114 involves which highest round? | SELECT MAX(round) FROM table_name_59 WHERE player = "dan federman" AND pick > 114 | [
14140,
286,
46078,
11672,
2224,
11,
290,
257,
12346,
4025,
621,
17342,
9018,
543,
4511,
2835,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
2137,
796,
366,
25604,
11672,
2224,
1,
5357,
2298,
1875,
17342
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
14140,
286,
46078,
11672,
2224,
11,
290,
257,
12346,
4025,
621,
17342,
9018,
543,
4511,
2835,
30,
46506,
25882,
7,
744,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
2137,
796,
366,
25604,
11672,
2224,
1,
5357,
2298,
1875,
17342
] |
what is the address of history department? | SELECT dept_address FROM department WHERE dept_name = 'History' | [
10919,
318,
262,
2209,
286,
2106,
5011,
30,
46506,
390,
457,
62,
21975,
16034,
5011,
33411,
390,
457,
62,
3672,
796,
705,
18122,
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
] | [
10919,
318,
262,
2209,
286,
2106,
5011,
30,
46506,
390,
457,
62,
21975,
16034,
5011,
33411,
390,
457,
62,
3672,
796,
705,
18122,
6
] |
What tournament took place after 1986 and had a final score of 7 6, 3 6, 6 2? | SELECT tournament FROM table_name_26 WHERE date > 1986 AND score_in_the_final = "7–6, 3–6, 6–2" | [
2061,
7756,
1718,
1295,
706,
12113,
290,
550,
257,
2457,
4776,
286,
767,
718,
11,
513,
718,
11,
718,
362,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
1875,
12113,
5357,
4776,
62,
259,
62,
1169,
62,
20311,
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
] | [
2061,
7756,
1718,
1295,
706,
12113,
290,
550,
257,
2457,
4776,
286,
767,
718,
11,
513,
718,
11,
718,
362,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
2075,
33411,
3128,
1875,
12113,
5357,
4776,
62,
259,
62,
1169,
62,
20311,
796,
366... |
what was the last intake of patient 15794 for the patient during a day before? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid 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 = 15794)) AND DATETIME(inputevents_cv.... | [
10919,
373,
262,
938,
10337,
286,
5827,
1315,
50242,
329,
262,
5827,
1141,
257,
1110,
878,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
287,
79,
1133,
85,
658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10337,
286,
5827,
1315,
50242,
329,
262,
5827,
1141,
257,
1110,
878,
30,
46506,
288,
62,
23814,
13,
18242,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
9186,
312,
3268,
357,
46506,
287,
79,
1133,
85,
658,
... |
How similar is the genus/species sus scrofa? | SELECT similarity FROM table_15417439_1 WHERE genus_species = "Sus scrofa" | [
2437,
2092,
318,
262,
34306,
14,
35448,
2341,
629,
305,
13331,
30,
46506,
26789,
16034,
3084,
62,
21526,
22985,
2670,
62,
16,
33411,
34306,
62,
35448,
796,
366,
30746,
629,
305,
13331,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2092,
318,
262,
34306,
14,
35448,
2341,
629,
305,
13331,
30,
46506,
26789,
16034,
3084,
62,
21526,
22985,
2670,
62,
16,
33411,
34306,
62,
35448,
796,
366,
30746,
629,
305,
13331,
1
] |
List all country and league names. | SELECT T1.name, T2.name FROM Country AS T1 JOIN League AS T2 ON T1.id = T2.country_id | [
8053,
477,
1499,
290,
4652,
3891,
13,
46506,
309,
16,
13,
3672,
11,
309,
17,
13,
3672,
16034,
12946,
7054,
309,
16,
32357,
1268,
4041,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
309,
17,
13,
19315,
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
] | [
8053,
477,
1499,
290,
4652,
3891,
13,
46506,
309,
16,
13,
3672,
11,
309,
17,
13,
3672,
16034,
12946,
7054,
309,
16,
32357,
1268,
4041,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
309,
17,
13,
19315,
62,
312
] |
What is the number of titles written by Charleen Easton? | SELECT COUNT(title) FROM table_2623498_5 WHERE written_by = "Charleen Easton" | [
2061,
318,
262,
1271,
286,
8714,
3194,
416,
3178,
20042,
3687,
261,
30,
46506,
327,
28270,
7,
7839,
8,
16034,
3084,
62,
2075,
1954,
36260,
62,
20,
33411,
3194,
62,
1525,
796,
366,
12441,
20042,
3687,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
8714,
3194,
416,
3178,
20042,
3687,
261,
30,
46506,
327,
28270,
7,
7839,
8,
16034,
3084,
62,
2075,
1954,
36260,
62,
20,
33411,
3194,
62,
1525,
796,
366,
12441,
20042,
3687,
261,
1
] |
Which Competition was 1st Position with 57.03 in Notes? | SELECT "Competition" FROM table_41795 WHERE "Position" = '1st' AND "Notes" = '57.03' | [
13828,
27348,
373,
352,
301,
23158,
351,
7632,
13,
3070,
287,
11822,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
38547,
3865,
33411,
366,
26545,
1,
796,
705,
16,
301,
6,
5357,
366,
16130,
1,
796,
705,
3553,
13,
3070,
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
] | [
13828,
27348,
373,
352,
301,
23158,
351,
7632,
13,
3070,
287,
11822,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
38547,
3865,
33411,
366,
26545,
1,
796,
705,
16,
301,
6,
5357,
366,
16130,
1,
796,
705,
3553,
13,
3070,
6
] |
What was the record when the method of resolution was KO? | SELECT "Record" FROM table_76621 WHERE "Method" = 'ko' | [
2061,
373,
262,
1700,
618,
262,
2446,
286,
6323,
373,
21054,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
22,
2791,
2481,
33411,
366,
17410,
1,
796,
705,
7204,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1700,
618,
262,
2446,
286,
6323,
373,
21054,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
22,
2791,
2481,
33411,
366,
17410,
1,
796,
705,
7204,
6
] |
What successful defenses has 126 days held and a Reigns of 3? | SELECT successful_defenses FROM table_name_89 WHERE days_held = 126 AND reigns = "3" | [
2061,
4388,
18370,
468,
19710,
1528,
2714,
290,
257,
29297,
82,
286,
513,
30,
46506,
4388,
62,
4299,
4541,
16034,
3084,
62,
3672,
62,
4531,
33411,
1528,
62,
10217,
796,
19710,
5357,
13580,
82,
796,
366,
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
] | [
2061,
4388,
18370,
468,
19710,
1528,
2714,
290,
257,
29297,
82,
286,
513,
30,
46506,
4388,
62,
4299,
4541,
16034,
3084,
62,
3672,
62,
4531,
33411,
1528,
62,
10217,
796,
19710,
5357,
13580,
82,
796,
366,
18,
1
] |
select tags from posts where id = 18326836. | SELECT Tags FROM Posts WHERE Id = 18326836 | [
19738,
15940,
422,
6851,
810,
4686,
796,
28551,
25022,
2623,
13,
46506,
44789,
16034,
12043,
33411,
5121,
796,
28551,
25022,
2623
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
15940,
422,
6851,
810,
4686,
796,
28551,
25022,
2623,
13,
46506,
44789,
16034,
12043,
33411,
5121,
796,
28551,
25022,
2623
] |
How many positions have round 3? | SELECT COUNT(position) FROM table_20872722_1 WHERE round = 3 | [
2437,
867,
6116,
423,
2835,
513,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1238,
5774,
1983,
1828,
62,
16,
33411,
2835,
796,
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
] | [
2437,
867,
6116,
423,
2835,
513,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1238,
5774,
1983,
1828,
62,
16,
33411,
2835,
796,
513
] |
Show the type of school and the number of buses for each type. | SELECT T2.type, COUNT(*) FROM school_bus AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T2.type | [
15307,
262,
2099,
286,
1524,
290,
262,
1271,
286,
16893,
329,
1123,
2099,
13,
46506,
309,
17,
13,
4906,
11,
327,
28270,
7,
28104,
16034,
1524,
62,
10885,
7054,
309,
16,
32357,
1268,
1524,
7054,
309,
17,
6177,
309,
16,
13,
14347,
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
] | [
15307,
262,
2099,
286,
1524,
290,
262,
1271,
286,
16893,
329,
1123,
2099,
13,
46506,
309,
17,
13,
4906,
11,
327,
28270,
7,
28104,
16034,
1524,
62,
10885,
7054,
309,
16,
32357,
1268,
1524,
7054,
309,
17,
6177,
309,
16,
13,
14347,
62,... |
A bar chart for finding the number of the enrollment date for all the tests that have 'Pass' result, and sort by the Y from low to high please. | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment) | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
20753,
3128,
329,
477,
262,
5254,
326,
423,
705,
14478,
6,
1255,
11,
290,
3297,
416,
262,
575,
422,
1877,
284,
1029,
3387,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
4917,
262,
1271,
286,
262,
20753,
3128,
329,
477,
262,
5254,
326,
423,
705,
14478,
6,
1255,
11,
290,
3297,
416,
262,
575,
422,
1877,
284,
1029,
3387,
13,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
282... |
List the number of areas of all appellations in the bar chart, rank by the total number from high to low. | SELECT Area, COUNT(Area) FROM appellations GROUP BY Area ORDER BY COUNT(Area) DESC | [
8053,
262,
1271,
286,
3006,
286,
477,
24781,
602,
287,
262,
2318,
8262,
11,
4279,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
13,
46506,
9498,
11,
327,
28270,
7,
30547,
8,
16034,
24781,
602,
44441,
11050,
9498,
38678,
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
] | [
8053,
262,
1271,
286,
3006,
286,
477,
24781,
602,
287,
262,
2318,
8262,
11,
4279,
416,
262,
2472,
1271,
422,
1029,
284,
1877,
13,
46506,
9498,
11,
327,
28270,
7,
30547,
8,
16034,
24781,
602,
44441,
11050,
9498,
38678,
11050,
327,
2827... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.