instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
How many climbers are there? | SELECT COUNT(*) FROM climber | [
2437,
867,
39311,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
5424,
527
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
39311,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
5424,
527
] |
What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has? | SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10 | [
2061,
318,
262,
2472,
31902,
19805,
4347,
14685,
11,
4744,
11,
543,
468,
281,
13793,
47,
370,
4025,
621,
838,
11,
468,
30,
46506,
327,
28270,
7,
35324,
62,
76,
32179,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
1748,
62,
1659,
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
] | [
2061,
318,
262,
2472,
31902,
19805,
4347,
14685,
11,
4744,
11,
543,
468,
281,
13793,
47,
370,
4025,
621,
838,
11,
468,
30,
46506,
327,
28270,
7,
35324,
62,
76,
32179,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
1748,
62,
1659,
62,
... |
What is the result of the match that went to round 1 and only for 2:48? | SELECT "Res." FROM table_46316 WHERE "Round" = '1' AND "Time" = '2:48' | [
2061,
318,
262,
1255,
286,
262,
2872,
326,
1816,
284,
2835,
352,
290,
691,
329,
362,
25,
2780,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
3510,
33400,
33411,
366,
22685,
1,
796,
705,
16,
6,
5357,
366,
7575,
1,
796,
705,
17,
25,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2872,
326,
1816,
284,
2835,
352,
290,
691,
329,
362,
25,
2780,
30,
46506,
366,
4965,
526,
16034,
3084,
62,
3510,
33400,
33411,
366,
22685,
1,
796,
705,
16,
6,
5357,
366,
7575,
1,
796,
705,
17,
25,
... |
Scatter plot to show max(stu gpa) on x axis and minimal stu gpa on y axis. | SELECT MAX(STU_GPA), MIN(STU_GPA) FROM STUDENT | [
3351,
1436,
7110,
284,
905,
3509,
7,
301,
84,
308,
8957,
8,
319,
2124,
16488,
290,
10926,
336,
84,
308,
8957,
319,
331,
16488,
13,
46506,
25882,
7,
2257,
52,
62,
38,
4537,
828,
20625,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3351,
1436,
7110,
284,
905,
3509,
7,
301,
84,
308,
8957,
8,
319,
2124,
16488,
290,
10926,
336,
84,
308,
8957,
319,
331,
16488,
13,
46506,
25882,
7,
2257,
52,
62,
38,
4537,
828,
20625,
7,
2257,
52,
62,
38,
4537,
8,
16034,
49348,
... |
Which tournament in 2013 had a 2010 finish of 1R? | SELECT 2013 FROM table_name_44 WHERE 2006 = "a" AND 2010 = "1r" | [
13828,
7756,
287,
2211,
550,
257,
3050,
5461,
286,
352,
49,
30,
46506,
2211,
16034,
3084,
62,
3672,
62,
2598,
33411,
4793,
796,
366,
64,
1,
5357,
3050,
796,
366,
16,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7756,
287,
2211,
550,
257,
3050,
5461,
286,
352,
49,
30,
46506,
2211,
16034,
3084,
62,
3672,
62,
2598,
33411,
4793,
796,
366,
64,
1,
5357,
3050,
796,
366,
16,
81,
1
] |
In Limerick County, what is the Rank with a Total larger than 12 and Tipperary as the Opposition? | SELECT AVG("Rank") FROM table_69896 WHERE "Opposition" = 'tipperary' AND "County" = 'limerick' AND "Total" > '12' | [
818,
7576,
41556,
3418,
11,
644,
318,
262,
10916,
351,
257,
7472,
4025,
621,
1105,
290,
309,
14710,
560,
355,
262,
29560,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
3388,
48712,
33411,
366,
27524,
3507,
1,
796,
705,
83,
147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7576,
41556,
3418,
11,
644,
318,
262,
10916,
351,
257,
7472,
4025,
621,
1105,
290,
309,
14710,
560,
355,
262,
29560,
30,
46506,
35224,
7203,
27520,
4943,
16034,
3084,
62,
3388,
48712,
33411,
366,
27524,
3507,
1,
796,
705,
83,
147... |
Name the average events for miller barber | SELECT AVG("Events") FROM table_58157 WHERE "Player" = 'miller barber' | [
5376,
262,
2811,
2995,
329,
3939,
263,
2318,
527,
46506,
35224,
7203,
37103,
4943,
16034,
3084,
62,
3365,
18458,
33411,
366,
14140,
1,
796,
705,
76,
4665,
2318,
527,
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
] | [
5376,
262,
2811,
2995,
329,
3939,
263,
2318,
527,
46506,
35224,
7203,
37103,
4943,
16034,
3084,
62,
3365,
18458,
33411,
366,
14140,
1,
796,
705,
76,
4665,
2318,
527,
6
] |
Show my answers to R tag. Show my answers to R tag | SELECT a.Score, a.Body, q.Tags, q.Title FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId AND a.PostTypeId = 2 AND q.PostTypeId = 1 WHERE a.CommunityOwnedDate IS NULL AND a.OwnerUserId = '##UserId##' AND q.Tags LIKE '%<r>%' ORDER BY a.Score DESC | [
15307,
616,
7429,
284,
371,
7621,
13,
5438,
616,
7429,
284,
371,
7621,
46506,
257,
13,
26595,
11,
257,
13,
25842,
11,
10662,
13,
36142,
11,
10662,
13,
19160,
16034,
12043,
7054,
10662,
3268,
21479,
32357,
1268,
12043,
7054,
257,
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... | [
15307,
616,
7429,
284,
371,
7621,
13,
5438,
616,
7429,
284,
371,
7621,
46506,
257,
13,
26595,
11,
257,
13,
25842,
11,
10662,
13,
36142,
11,
10662,
13,
19160,
16034,
12043,
7054,
10662,
3268,
21479,
32357,
1268,
12043,
7054,
257,
6177,
... |
Which nation has the America 3 Foundation syndicate and the jayhawk yacht? | SELECT "Nation" FROM table_54699 WHERE "Syndicate" = 'america 3 foundation' AND "Yacht" = 'jayhawk' | [
13828,
3277,
468,
262,
2253,
513,
5693,
11150,
5344,
290,
262,
474,
323,
40624,
43207,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
49489,
2079,
33411,
366,
13940,
358,
5344,
1,
796,
705,
2382,
3970,
513,
8489,
6,
5357,
366,
56,
19725,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3277,
468,
262,
2253,
513,
5693,
11150,
5344,
290,
262,
474,
323,
40624,
43207,
30,
46506,
366,
46108,
1,
16034,
3084,
62,
49489,
2079,
33411,
366,
13940,
358,
5344,
1,
796,
705,
2382,
3970,
513,
8489,
6,
5357,
366,
56,
19725,
... |
Which Distance has a Time of men's speed skating? | SELECT distance FROM table_name_46 WHERE time = "men's speed skating" | [
13828,
34600,
468,
257,
3862,
286,
1450,
338,
2866,
33051,
30,
46506,
5253,
16034,
3084,
62,
3672,
62,
3510,
33411,
640,
796,
366,
3653,
338,
2866,
33051,
1
] | [
1,
1,
1,
1,
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,
34600,
468,
257,
3862,
286,
1450,
338,
2866,
33051,
30,
46506,
5253,
16034,
3084,
62,
3672,
62,
3510,
33411,
640,
796,
366,
3653,
338,
2866,
33051,
1
] |
What is United States total in the year(s) won of 2000 , 2005 , 2006? | SELECT MIN(total) FROM table_name_1 WHERE country = "united states" AND year_s__won = "2000 , 2005 , 2006" | [
2061,
318,
1578,
1829,
2472,
287,
262,
614,
7,
82,
8,
1839,
286,
4751,
837,
5075,
837,
4793,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
614,
62,
82,
834,
26502,
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
] | [
2061,
318,
1578,
1829,
2472,
287,
262,
614,
7,
82,
8,
1839,
286,
4751,
837,
5075,
837,
4793,
30,
46506,
20625,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
1499,
796,
366,
41187,
2585,
1,
5357,
614,
62,
82,
834,
26502,
796,
... |
What team replaced their manager on 9 December 2008? | SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 2008" | [
2061,
1074,
6928,
511,
4706,
319,
860,
3426,
3648,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3324,
33411,
3128,
62,
1659,
62,
85,
330,
3883,
796,
366,
24,
390,
3273,
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
] | [
2061,
1074,
6928,
511,
4706,
319,
860,
3426,
3648,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3324,
33411,
3128,
62,
1659,
62,
85,
330,
3883,
796,
366,
24,
390,
3273,
3648,
1
] |
specify the procedural and diagnosis icd9 codes for patient id 16438 | SELECT diagnoses.short_title, procedures.short_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "16438" | [
16684,
1958,
262,
27931,
290,
13669,
14158,
67,
24,
12416,
329,
5827,
4686,
25307,
2548,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
18108,
76,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16684,
1958,
262,
27931,
290,
13669,
14158,
67,
24,
12416,
329,
5827,
4686,
25307,
2548,
46506,
40567,
13,
19509,
62,
7839,
11,
9021,
13,
19509,
62,
7839,
16034,
40567,
3268,
21479,
32357,
1268,
9021,
6177,
40567,
13,
18108,
76,
62,
312... |
On which date was the score 0 - 0? | SELECT "Date" FROM table_75946 WHERE "Score" = '0 - 0' | [
2202,
543,
3128,
373,
262,
4776,
657,
532,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38314,
3510,
33411,
366,
26595,
1,
796,
705,
15,
532,
657,
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
] | [
2202,
543,
3128,
373,
262,
4776,
657,
532,
657,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38314,
3510,
33411,
366,
26595,
1,
796,
705,
15,
532,
657,
6
] |
what is the number of patients whose primary disease is brain mass;intracranial hemorrhage and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.flag = "abnormal" | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
3632,
2347,
26,
600,
11510,
2596,
498,
42203,
496,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
3632,
2347,
26,
600,
11510,
2596,
498,
42203,
496,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,... |
Show the number of documents created in each day and bin document date by year interval and group by document type description with a group line chart. | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Description | [
15307,
262,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
614,
16654,
290,
1448,
416,
3188,
2099,
6764,
351,
257,
1448,
1627,
8262,
13,
46506,
16854,
62,
10430,
11,
327,
28270,
7,
24941,
62,
10430,
8,
16034,
6524... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
4963,
2727,
287,
1123,
1110,
290,
9874,
3188,
3128,
416,
614,
16654,
290,
1448,
416,
3188,
2099,
6764,
351,
257,
1448,
1627,
8262,
13,
46506,
16854,
62,
10430,
11,
327,
28270,
7,
24941,
62,
10430,
8,
16034,
6524... |
What is the sum of Rank that when the Singapore Cup is 0 (1), and the Name is masrezwan masturi? | SELECT SUM(rank) FROM table_name_80 WHERE singapore_cup = "0 (1)" AND name = "masrezwan masturi" | [
2061,
318,
262,
2160,
286,
10916,
326,
618,
262,
12551,
5454,
318,
657,
357,
16,
828,
290,
262,
6530,
318,
12422,
21107,
8149,
17288,
9900,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
1702,
11656,
62,
25244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10916,
326,
618,
262,
12551,
5454,
318,
657,
357,
16,
828,
290,
262,
6530,
318,
12422,
21107,
8149,
17288,
9900,
30,
46506,
35683,
7,
43027,
8,
16034,
3084,
62,
3672,
62,
1795,
33411,
1702,
11656,
62,
25244,... |
Name the opened for spain | SELECT opened FROM table_name_59 WHERE country = "spain" | [
5376,
262,
4721,
329,
599,
391,
46506,
4721,
16034,
3084,
62,
3672,
62,
3270,
33411,
1499,
796,
366,
2777,
391,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
4721,
329,
599,
391,
46506,
4721,
16034,
3084,
62,
3672,
62,
3270,
33411,
1499,
796,
366,
2777,
391,
1
] |
What car number had a race time of +0.3844? | SELECT car_no FROM table_name_43 WHERE time_retired = "+0.3844" | [
2061,
1097,
1271,
550,
257,
3234,
640,
286,
1343,
15,
13,
2548,
2598,
30,
46506,
1097,
62,
3919,
16034,
3084,
62,
3672,
62,
3559,
33411,
640,
62,
1186,
1202,
796,
43825,
15,
13,
2548,
2598,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1097,
1271,
550,
257,
3234,
640,
286,
1343,
15,
13,
2548,
2598,
30,
46506,
1097,
62,
3919,
16034,
3084,
62,
3672,
62,
3559,
33411,
640,
62,
1186,
1202,
796,
43825,
15,
13,
2548,
2598,
1
] |
What are the distinct ids of customers who made an order after any order that was Cancelled? | SELECT DISTINCT customer_id FROM customer_orders WHERE order_date > (SELECT MIN(order_date) FROM customer_orders WHERE order_status_code = "Cancelled") | [
2061,
389,
262,
7310,
220,
2340,
286,
4297,
508,
925,
281,
1502,
706,
597,
1502,
326,
373,
43780,
3353,
30,
46506,
360,
8808,
1268,
4177,
6491,
62,
312,
16034,
6491,
62,
6361,
33411,
1502,
62,
4475,
1875,
357,
46506,
20625,
7,
2875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7310,
220,
2340,
286,
4297,
508,
925,
281,
1502,
706,
597,
1502,
326,
373,
43780,
3353,
30,
46506,
360,
8808,
1268,
4177,
6491,
62,
312,
16034,
6491,
62,
6361,
33411,
1502,
62,
4475,
1875,
357,
46506,
20625,
7,
2875,
... |
What is the episode series number of 'St. Joan'? | SELECT "Series #" FROM table_30813 WHERE "Title" = 'St. Joan' | [
2061,
318,
262,
4471,
2168,
1271,
286,
705,
1273,
13,
26640,
30960,
46506,
366,
27996,
1303,
1,
16034,
3084,
62,
21495,
1485,
33411,
366,
19160,
1,
796,
705,
1273,
13,
26640,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4471,
2168,
1271,
286,
705,
1273,
13,
26640,
30960,
46506,
366,
27996,
1303,
1,
16034,
3084,
62,
21495,
1485,
33411,
366,
19160,
1,
796,
705,
1273,
13,
26640,
6
] |
what is minimum age of patients whose primary disease is coronary artery disease and admission year is greater than or equal to 2129? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE" AND demographic.admityear >= "2129" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
4165,
4369,
318,
37151,
37646,
4369,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
18741,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
5288,
2479,
286,
3871,
3025,
4165,
4369,
318,
37151,
37646,
4369,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
18741,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
... |
What Score has a Tournament of tanjung selor, indonesia? | SELECT score FROM table_name_76 WHERE tournament = "tanjung selor, indonesia" | [
2061,
15178,
468,
257,
9595,
286,
25706,
73,
2150,
384,
4685,
11,
773,
1952,
544,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4304,
33411,
7756,
796,
366,
38006,
73,
2150,
384,
4685,
11,
773,
1952,
544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
468,
257,
9595,
286,
25706,
73,
2150,
384,
4685,
11,
773,
1952,
544,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4304,
33411,
7756,
796,
366,
38006,
73,
2150,
384,
4685,
11,
773,
1952,
544,
1
] |
What is the name of every city that has at least 15 stations and how many stations does it have Visualize by bar chart, and display by the names from high to low. | SELECT city, COUNT(*) FROM station GROUP BY city ORDER BY city DESC | [
2061,
318,
262,
1438,
286,
790,
1748,
326,
468,
379,
1551,
1315,
8985,
290,
703,
867,
8985,
857,
340,
423,
15612,
1096,
416,
2318,
8262,
11,
290,
3359,
416,
262,
3891,
422,
1029,
284,
1877,
13,
46506,
1748,
11,
327,
28270,
7,
28104,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
790,
1748,
326,
468,
379,
1551,
1315,
8985,
290,
703,
867,
8985,
857,
340,
423,
15612,
1096,
416,
2318,
8262,
11,
290,
3359,
416,
262,
3891,
422,
1029,
284,
1877,
13,
46506,
1748,
11,
327,
28270,
7,
28104,... |
Bar graph to show age from different name, and display from low to high by the y-axis please. | SELECT Name, Age FROM driver ORDER BY Age | [
10374,
4823,
284,
905,
2479,
422,
1180,
1438,
11,
290,
3359,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
3387,
13,
46506,
6530,
11,
7129,
16034,
4639,
38678,
11050,
7129
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4823,
284,
905,
2479,
422,
1180,
1438,
11,
290,
3359,
422,
1877,
284,
1029,
416,
262,
331,
12,
22704,
3387,
13,
46506,
6530,
11,
7129,
16034,
4639,
38678,
11050,
7129
] |
Which date has a Race Title of dhl turkish grand prix? | SELECT date FROM table_name_40 WHERE race_title = "dhl turkish grand prix" | [
13828,
3128,
468,
257,
12588,
11851,
286,
288,
18519,
7858,
31501,
4490,
1293,
87,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1821,
33411,
3234,
62,
7839,
796,
366,
67,
18519,
7858,
31501,
4490,
1293,
87,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
468,
257,
12588,
11851,
286,
288,
18519,
7858,
31501,
4490,
1293,
87,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1821,
33411,
3234,
62,
7839,
796,
366,
67,
18519,
7858,
31501,
4490,
1293,
87,
1
] |
Which Tournament has a 2009 of q1, and a 2008 of 1r? | SELECT "Tournament" FROM table_6697 WHERE "2009" = 'q1' AND "2008" = '1r' | [
13828,
9595,
468,
257,
3717,
286,
10662,
16,
11,
290,
257,
3648,
286,
352,
81,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2791,
5607,
33411,
366,
10531,
1,
796,
705,
80,
16,
6,
5357,
366,
11528,
1,
796,
705,
16,
81,
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
] | [
13828,
9595,
468,
257,
3717,
286,
10662,
16,
11,
290,
257,
3648,
286,
352,
81,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
2791,
5607,
33411,
366,
10531,
1,
796,
705,
80,
16,
6,
5357,
366,
11528,
1,
796,
705,
16,
81,
6
] |
how many times is the venue located in brazil ? | SELECT COUNT(*) FROM table_204_130 WHERE "venue" = 'brazil' | [
4919,
867,
1661,
318,
262,
14359,
5140,
287,
275,
7098,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
12952,
33411,
366,
4080,
1,
796,
705,
65,
7098,
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
] | [
4919,
867,
1661,
318,
262,
14359,
5140,
287,
275,
7098,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
12952,
33411,
366,
4080,
1,
796,
705,
65,
7098,
6
] |
How many points does the year after 1986 with a AGS JH23B chassis have? | SELECT "Points" FROM table_70566 WHERE "Year" > '1986' AND "Chassis" = 'ags jh23b' | [
2437,
867,
2173,
857,
262,
614,
706,
12113,
351,
257,
13077,
50,
449,
39,
1954,
33,
24587,
423,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
34801,
2791,
33411,
366,
17688,
1,
1875,
705,
28054,
6,
5357,
366,
1925,
20297,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2173,
857,
262,
614,
706,
12113,
351,
257,
13077,
50,
449,
39,
1954,
33,
24587,
423,
30,
46506,
366,
40710,
1,
16034,
3084,
62,
34801,
2791,
33411,
366,
17688,
1,
1875,
705,
28054,
6,
5357,
366,
1925,
20297,
1,
796,
705,
... |
Which is the biggest pick for Naperville Central High School? | SELECT MAX(pick) FROM table_name_29 WHERE school = "naperville central high school" | [
13828,
318,
262,
4094,
2298,
329,
14332,
33487,
5694,
3334,
3961,
30,
46506,
25882,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
1524,
796,
366,
77,
499,
33487,
4318,
1029,
1524,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
4094,
2298,
329,
14332,
33487,
5694,
3334,
3961,
30,
46506,
25882,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
1959,
33411,
1524,
796,
366,
77,
499,
33487,
4318,
1029,
1524,
1
] |
Compare the average of maximum price of wines each year, bin the year into the weekday interval, and I want to display in asc by the y axis. | SELECT Year, AVG(MAX(Price)) FROM wine ORDER BY AVG(MAX(Price)) | [
41488,
262,
2811,
286,
5415,
2756,
286,
30680,
1123,
614,
11,
9874,
262,
614,
656,
262,
28269,
16654,
11,
290,
314,
765,
284,
3359,
287,
10570,
416,
262,
331,
16488,
13,
46506,
6280,
11,
35224,
7,
22921,
7,
18124,
4008,
16034,
8237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
41488,
262,
2811,
286,
5415,
2756,
286,
30680,
1123,
614,
11,
9874,
262,
614,
656,
262,
28269,
16654,
11,
290,
314,
765,
284,
3359,
287,
10570,
416,
262,
331,
16488,
13,
46506,
6280,
11,
35224,
7,
22921,
7,
18124,
4008,
16034,
8237,
... |
What is the highest game with a 1-0 record, and the Hornets scored more than 100? | SELECT MAX("Game") FROM table_61088 WHERE "Record" = '1-0' AND "Hornets score" > '100' | [
2061,
318,
262,
4511,
983,
351,
257,
352,
12,
15,
1700,
11,
290,
262,
38602,
7781,
517,
621,
1802,
30,
46506,
25882,
7203,
8777,
4943,
16034,
3084,
62,
39132,
3459,
33411,
366,
23739,
1,
796,
705,
16,
12,
15,
6,
5357,
366,
39,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
983,
351,
257,
352,
12,
15,
1700,
11,
290,
262,
38602,
7781,
517,
621,
1802,
30,
46506,
25882,
7203,
8777,
4943,
16034,
3084,
62,
39132,
3459,
33411,
366,
23739,
1,
796,
705,
16,
12,
15,
6,
5357,
366,
39,
121... |
give me the number of patients whose diagnoses short title is fall nos and lab test abnormal status is abnormal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Fall NOS" AND lab.flag = "abnormal" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
2121,
43630,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
2121,
43630,
290,
2248,
1332,
18801,
3722,
318,
18801,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
What is the average crowd for Carlton? | SELECT AVG(crowd) FROM table_name_59 WHERE away_team = "carlton" | [
2061,
318,
262,
2811,
4315,
329,
44348,
30,
46506,
35224,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1497,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
4315,
329,
44348,
30,
46506,
35224,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
1497,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
Create a bar chart showing the total number across denomination, rank in desc by the Y-axis. | SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
47491,
11,
4279,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
5601,
27744,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
5601,
27744,
38678,
11050,
327,
28270,
7,
28104,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16447,
257,
2318,
8262,
4478,
262,
2472,
1271,
1973,
47491,
11,
4279,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
5601,
27744,
11,
327,
28270,
7,
28104,
16034,
1524,
44441,
11050,
5601,
27744,
38678,
11050,
327,
28270,
7,
28104,
221... |
What is the most top-10 of the team with 8 cuts made and less than 11 events? | SELECT MAX(top_10) FROM table_name_40 WHERE cuts_made = 8 AND events < 11 | [
2061,
318,
262,
749,
1353,
12,
940,
286,
262,
1074,
351,
807,
6630,
925,
290,
1342,
621,
1367,
2995,
30,
46506,
25882,
7,
4852,
62,
940,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
6630,
62,
9727,
796,
807,
5357,
2995,
1279,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
749,
1353,
12,
940,
286,
262,
1074,
351,
807,
6630,
925,
290,
1342,
621,
1367,
2995,
30,
46506,
25882,
7,
4852,
62,
940,
8,
16034,
3084,
62,
3672,
62,
1821,
33411,
6630,
62,
9727,
796,
807,
5357,
2995,
1279,
1367
] |
what is the number of patients whose ethnicity is black/haitian and year of birth is less than 2175? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.dob_year < "2175" | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
614,
286,
4082,
318,
1342,
621,
362,
17430,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
614,
286,
4082,
318,
1342,
621,
362,
17430,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
... |
Which Source has Terry McAuliffe of 36% | SELECT "Source" FROM table_80321 WHERE "Terry McAuliffe" = '36%' | [
13828,
8090,
468,
14286,
48044,
286,
4570,
4,
46506,
366,
7416,
1,
16034,
3084,
62,
1795,
36453,
33411,
366,
50241,
48044,
1,
796,
705,
2623,
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
] | [
13828,
8090,
468,
14286,
48044,
286,
4570,
4,
46506,
366,
7416,
1,
16034,
3084,
62,
1795,
36453,
33411,
366,
50241,
48044,
1,
796,
705,
2623,
4,
6
] |
Who wrote the episode with production code 1ANJ01? | SELECT written_by FROM table_13426649_1 WHERE production_code = "1ANJ01" | [
8241,
2630,
262,
4471,
351,
3227,
2438,
352,
1565,
41,
486,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
19880,
2075,
33300,
62,
16,
33411,
3227,
62,
8189,
796,
366,
16,
1565,
41,
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
] | [
8241,
2630,
262,
4471,
351,
3227,
2438,
352,
1565,
41,
486,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
19880,
2075,
33300,
62,
16,
33411,
3227,
62,
8189,
796,
366,
16,
1565,
41,
486,
1
] |
Which Date has a Record of 0-2? | SELECT date FROM table_name_14 WHERE record = "0-2" | [
13828,
7536,
468,
257,
13266,
286,
657,
12,
17,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1415,
33411,
1700,
796,
366,
15,
12,
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
] | [
13828,
7536,
468,
257,
13266,
286,
657,
12,
17,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1415,
33411,
1700,
796,
366,
15,
12,
17,
1
] |
list DL flights from SEATTLE to SALT LAKE CITY | 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 = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name =... | [
4868,
23641,
13956,
422,
7946,
35455,
284,
311,
31429,
9131,
7336,
27993,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
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... | [
4868,
23641,
13956,
422,
7946,
35455,
284,
311,
31429,
9131,
7336,
27993,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15... |
Which country uses pound sterling with a value higher than 1.33 USD? | SELECT "Country" FROM table_33222 WHERE "Value in USD" > '1.33' AND "Currency" = 'pound sterling' | [
13828,
1499,
3544,
14896,
46499,
351,
257,
1988,
2440,
621,
352,
13,
2091,
11403,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2091,
23148,
33411,
366,
11395,
287,
11403,
1,
1875,
705,
16,
13,
2091,
6,
5357,
366,
34,
13382,
1,
796,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
3544,
14896,
46499,
351,
257,
1988,
2440,
621,
352,
13,
2091,
11403,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2091,
23148,
33411,
366,
11395,
287,
11403,
1,
1875,
705,
16,
13,
2091,
6,
5357,
366,
34,
13382,
1,
796,
70... |
What is the highest population (2008) created earlier than 1857, and the county was Sinoe? | SELECT MAX("Population (2008)") FROM table_60426 WHERE "Created" < '1857' AND "County" = 'sinoe' | [
2061,
318,
262,
4511,
3265,
357,
11528,
8,
2727,
2961,
621,
1248,
3553,
11,
290,
262,
7968,
373,
10884,
2577,
30,
46506,
25882,
7203,
45251,
357,
11528,
8,
4943,
16034,
3084,
62,
31916,
2075,
33411,
366,
41972,
1,
1279,
705,
1507,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
357,
11528,
8,
2727,
2961,
621,
1248,
3553,
11,
290,
262,
7968,
373,
10884,
2577,
30,
46506,
25882,
7203,
45251,
357,
11528,
8,
4943,
16034,
3084,
62,
31916,
2075,
33411,
366,
41972,
1,
1279,
705,
1507,
355... |
What is the Location Attendance with a Record that is 1-4? | SELECT location_attendance FROM table_name_31 WHERE record = "1-4" | [
2061,
318,
262,
13397,
46502,
590,
351,
257,
13266,
326,
318,
352,
12,
19,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
3132,
33411,
1700,
796,
366,
16,
12,
19,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
13397,
46502,
590,
351,
257,
13266,
326,
318,
352,
12,
19,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
3132,
33411,
1700,
796,
366,
16,
12,
19,
1
] |
Top 100 Last Two Months Related Tags of Single Tag. | SELECT t2.TagName AS "Related Tag", COUNT(t2.TagName) AS "Count" FROM PostTags AS pt1 INNER JOIN Tags AS t1 ON pt1.TagId = t1.Id INNER JOIN PostTags AS pt2 ON pt1.PostId = pt2.PostId AND pt1.TagId != pt2.TagId INNER JOIN Tags AS t2 ON pt2.TagId = t2.Id INNER JOIN Posts AS A ON pt2.PostId = A.Id WHERE t1.TagName = 'ibm-... | [
9126,
1802,
4586,
4930,
37461,
19809,
44789,
286,
14206,
17467,
13,
46506,
256,
17,
13,
24835,
5376,
7054,
366,
9819,
17467,
1600,
327,
28270,
7,
83,
17,
13,
24835,
5376,
8,
7054,
366,
12332,
1,
16034,
2947,
36142,
7054,
42975,
16,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1802,
4586,
4930,
37461,
19809,
44789,
286,
14206,
17467,
13,
46506,
256,
17,
13,
24835,
5376,
7054,
366,
9819,
17467,
1600,
327,
28270,
7,
83,
17,
13,
24835,
5376,
8,
7054,
366,
12332,
1,
16034,
2947,
36142,
7054,
42975,
16,
32... |
what is the difference between the number of goals scored from the highest scoring team and the lowest scoring team ? | SELECT MAX("goals\nscored") - MIN("goals\nscored") FROM table_203_67 | [
10919,
318,
262,
3580,
1022,
262,
1271,
286,
4661,
7781,
422,
262,
4511,
9689,
1074,
290,
262,
9016,
9689,
1074,
5633,
46506,
25882,
7203,
2188,
874,
59,
77,
1416,
1850,
4943,
532,
20625,
7203,
2188,
874,
59,
77,
1416,
1850,
4943,
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
] | [
10919,
318,
262,
3580,
1022,
262,
1271,
286,
4661,
7781,
422,
262,
4511,
9689,
1074,
290,
262,
9016,
9689,
1074,
5633,
46506,
25882,
7203,
2188,
874,
59,
77,
1416,
1850,
4943,
532,
20625,
7203,
2188,
874,
59,
77,
1416,
1850,
4943,
160... |
What is the 0 100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)? | SELECT 0 AS _100km_h__62mph_ FROM table_name_68 WHERE top_speed = "208km/h (129mph)" | [
2061,
318,
262,
657,
1802,
13276,
14,
71,
357,
5237,
23335,
8,
20309,
286,
262,
2746,
351,
257,
1353,
2866,
286,
27121,
13276,
14,
71,
357,
18741,
23335,
19427,
46506,
657,
7054,
4808,
3064,
13276,
62,
71,
834,
5237,
23335,
62,
16034,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
657,
1802,
13276,
14,
71,
357,
5237,
23335,
8,
20309,
286,
262,
2746,
351,
257,
1353,
2866,
286,
27121,
13276,
14,
71,
357,
18741,
23335,
19427,
46506,
657,
7054,
4808,
3064,
13276,
62,
71,
834,
5237,
23335,
62,
16034,... |
Which formula has a refractive index 589.3 at 1.97? | SELECT formula FROM table_name_63 WHERE refractive_index_es__5893nm = "1.97" | [
13828,
10451,
468,
257,
1006,
35587,
6376,
642,
4531,
13,
18,
379,
352,
13,
5607,
30,
46506,
10451,
16034,
3084,
62,
3672,
62,
5066,
33411,
1006,
35587,
62,
9630,
62,
274,
834,
3365,
6052,
21533,
796,
366,
16,
13,
5607,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10451,
468,
257,
1006,
35587,
6376,
642,
4531,
13,
18,
379,
352,
13,
5607,
30,
46506,
10451,
16034,
3084,
62,
3672,
62,
5066,
33411,
1006,
35587,
62,
9630,
62,
274,
834,
3365,
6052,
21533,
796,
366,
16,
13,
5607,
1
] |
who did lukas podolski 's team face after thailand in december 21 , 2004 ? | SELECT "opponent" FROM table_203_138 WHERE id = (SELECT id FROM table_203_138 WHERE "date" = '21 december 2004' AND "opponent" = 'thailand' ORDER BY id DESC LIMIT 1) + 1 | [
8727,
750,
300,
2724,
292,
24573,
10220,
4106,
705,
82,
1074,
1986,
706,
294,
16188,
287,
390,
3273,
2310,
837,
5472,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
20107,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
300,
2724,
292,
24573,
10220,
4106,
705,
82,
1074,
1986,
706,
294,
16188,
287,
390,
3273,
2310,
837,
5472,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
20107,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
... |
Name the party for the pennsylvania 25 | SELECT "Party" FROM table_18490 WHERE "District" = 'Pennsylvania 25' | [
5376,
262,
2151,
329,
262,
22429,
9270,
1679,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
31503,
33411,
366,
44857,
1,
796,
705,
39899,
9270,
1679,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2151,
329,
262,
22429,
9270,
1679,
46506,
366,
33553,
1,
16034,
3084,
62,
1507,
31503,
33411,
366,
44857,
1,
796,
705,
39899,
9270,
1679,
6
] |
Who is moving during winter from wal? | SELECT "Moving from" FROM table_69350 WHERE "Transfer window" = 'winter' AND "Country" = 'wal' | [
8241,
318,
3867,
1141,
7374,
422,
6514,
30,
46506,
366,
33622,
422,
1,
16034,
3084,
62,
3388,
14877,
33411,
366,
43260,
4324,
1,
796,
705,
40078,
6,
5357,
366,
33921,
1,
796,
705,
16783,
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
] | [
8241,
318,
3867,
1141,
7374,
422,
6514,
30,
46506,
366,
33622,
422,
1,
16034,
3084,
62,
3388,
14877,
33411,
366,
43260,
4324,
1,
796,
705,
40078,
6,
5357,
366,
33921,
1,
796,
705,
16783,
6
] |
Tell me a few easy 300 -level courses . | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload | [
24446,
502,
257,
1178,
2562,
5867,
532,
5715,
10902,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24446,
502,
257,
1178,
2562,
5867,
532,
5715,
10902,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
1781,
11,
1430,
62,
17319,
33411,
1781,
13,
10378,
1823,
796,
705... |
Do you know if 800 has a lab ? | SELECT COUNT(*) > 0 FROM course WHERE department = 'EECS' AND has_lab = 'Y' AND number = 800 | [
5211,
345,
760,
611,
10460,
468,
257,
2248,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
468,
62,
23912,
796,
705,
56,
6,
5357,
1271,
796,
10460
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5211,
345,
760,
611,
10460,
468,
257,
2248,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
468,
62,
23912,
796,
705,
56,
6,
5357,
1271,
796,
10460
] |
Draw a bar chart of destination versus the total number, I want to display in desc by the names. | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY destination DESC | [
25302,
257,
2318,
8262,
286,
10965,
9051,
262,
2472,
1271,
11,
314,
765,
284,
3359,
287,
1715,
416,
262,
3891,
13,
46506,
10965,
11,
327,
28270,
7,
28104,
16034,
5474,
44441,
11050,
10965,
38678,
11050,
10965,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
10965,
9051,
262,
2472,
1271,
11,
314,
765,
284,
3359,
287,
1715,
416,
262,
3891,
13,
46506,
10965,
11,
327,
28270,
7,
28104,
16034,
5474,
44441,
11050,
10965,
38678,
11050,
10965,
22196,
34
] |
In episode 7 what was the highest amount of money requested by Jerry Mantalvanos & Paul Merker ? | SELECT MAX(money_requested__) AS £_ FROM table_name_24 WHERE episode = "episode 7" AND entrepreneur_s_ = "jerry mantalvanos & paul merker" | [
818,
4471,
767,
644,
373,
262,
4511,
2033,
286,
1637,
9167,
416,
13075,
36987,
282,
10438,
418,
1222,
3362,
4638,
6122,
5633,
46506,
25882,
7,
26316,
62,
25927,
276,
834,
8,
7054,
4248,
62,
16034,
3084,
62,
3672,
62,
1731,
33411,
4471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
767,
644,
373,
262,
4511,
2033,
286,
1637,
9167,
416,
13075,
36987,
282,
10438,
418,
1222,
3362,
4638,
6122,
5633,
46506,
25882,
7,
26316,
62,
25927,
276,
834,
8,
7054,
4248,
62,
16034,
3084,
62,
3672,
62,
1731,
33411,
4471... |
How many matches had 360 goals? | SELECT matches FROM table_name_31 WHERE goals = 360 | [
2437,
867,
7466,
550,
11470,
4661,
30,
46506,
7466,
16034,
3084,
62,
3672,
62,
3132,
33411,
4661,
796,
11470
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
7466,
550,
11470,
4661,
30,
46506,
7466,
16034,
3084,
62,
3672,
62,
3132,
33411,
4661,
796,
11470
] |
Find the actor with most number of films | SELECT actor.name FROM actor, cast, movie WHERE cast.aid = actor.aid AND movie.mid = cast.msid ORDER BY COUNT(DISTINCT (movie.title)) DESC LIMIT 1 | [
16742,
262,
8674,
351,
749,
1271,
286,
7328,
46506,
8674,
13,
3672,
16034,
8674,
11,
3350,
11,
3807,
33411,
3350,
13,
1698,
796,
8674,
13,
1698,
5357,
3807,
13,
13602,
796,
3350,
13,
907,
312,
38678,
11050,
327,
28270,
7,
35,
8808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
8674,
351,
749,
1271,
286,
7328,
46506,
8674,
13,
3672,
16034,
8674,
11,
3350,
11,
3807,
33411,
3350,
13,
1698,
796,
8674,
13,
1698,
5357,
3807,
13,
13602,
796,
3350,
13,
907,
312,
38678,
11050,
327,
28270,
7,
35,
8808,
... |
What message has hd 186408 as a designation HD? | SELECT message FROM table_name_75 WHERE designation_hd = "hd 186408" | [
2061,
3275,
468,
289,
67,
28481,
26200,
355,
257,
22566,
5572,
30,
46506,
3275,
16034,
3084,
62,
3672,
62,
2425,
33411,
22566,
62,
31298,
796,
366,
31298,
28481,
26200,
1
] | [
1,
1,
1,
1,
1,
1,
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,
3275,
468,
289,
67,
28481,
26200,
355,
257,
22566,
5572,
30,
46506,
3275,
16034,
3084,
62,
3672,
62,
2425,
33411,
22566,
62,
31298,
796,
366,
31298,
28481,
26200,
1
] |
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, give me the comparison about the average of salary over the hire_date bin hire_date by weekday. | SELECT HIRE_DATE, AVG(SALARY) 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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
9588,
625,
262,
11078,
62,
4475,
987... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
9588,
625,
262,
11078,
62,
4475,
987... |
Which District is Constituency number 22? | SELECT district FROM table_name_43 WHERE constituency_number = "22" | [
13828,
5665,
318,
4757,
34272,
1387,
1271,
2534,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
3559,
33411,
28280,
62,
17618,
796,
366,
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
] | [
13828,
5665,
318,
4757,
34272,
1387,
1271,
2534,
30,
46506,
4783,
16034,
3084,
62,
3672,
62,
3559,
33411,
28280,
62,
17618,
796,
366,
1828,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
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... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
3197,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
9588,
9874,
11078,
62,
4475,
416,
640,
13,... |
Where was a 0-5 game played? | SELECT "Venue" FROM table_63251 WHERE "Result" = '0-5' | [
8496,
373,
257,
657,
12,
20,
983,
2826,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
5066,
28072,
33411,
366,
23004,
1,
796,
705,
15,
12,
20,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
257,
657,
12,
20,
983,
2826,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
5066,
28072,
33411,
366,
23004,
1,
796,
705,
15,
12,
20,
6
] |
Give me a histogram for which parts have more than 2 faults? Show the part name and id, and display from high to low by the part_id. | SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id ORDER BY T1.part_id DESC | [
23318,
502,
257,
1554,
21857,
329,
543,
3354,
423,
517,
621,
362,
31025,
30,
5438,
262,
636,
1438,
290,
4686,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
636,
62,
312,
13,
46506,
309,
16,
13,
3911,
62,
3672,
11,
309,
16,
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... | [
23318,
502,
257,
1554,
21857,
329,
543,
3354,
423,
517,
621,
362,
31025,
30,
5438,
262,
636,
1438,
290,
4686,
11,
290,
3359,
422,
1029,
284,
1877,
416,
262,
636,
62,
312,
13,
46506,
309,
16,
13,
3911,
62,
3672,
11,
309,
16,
13,
... |
Name the total episode for runtime of 24:11 | SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = "24:11" | [
5376,
262,
2472,
4471,
329,
19124,
286,
1987,
25,
1157,
46506,
327,
28270,
7,
38668,
8,
16034,
3084,
62,
21536,
3553,
2481,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1731,
25,
1157,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
4471,
329,
19124,
286,
1987,
25,
1157,
46506,
327,
28270,
7,
38668,
8,
16034,
3084,
62,
21536,
3553,
2481,
62,
16,
33411,
1057,
62,
2435,
796,
366,
1731,
25,
1157,
1
] |
For all employees who have the letters D or S in their first name, give me the comparison about the average of salary over the job_id , and group by attribute job_id by a bar chart, I want to rank names from high to low order please. | SELECT JOB_ID, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_ID DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
9588,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
11,
314,
765,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1577,
502,
262,
7208,
546,
262,
2811,
286,
9588,
625,
262,
1693,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
416,
257,
2318,
8262,
11,
314,
765,... |
how many patients whose drug code is vori200? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "VORI200" | [
4919,
867,
3871,
3025,
2563,
2438,
318,
410,
10145,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
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
] | [
4919,
867,
3871,
3025,
2563,
2438,
318,
410,
10145,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13... |
What is the Proto-Oceanic verb for the verb to sew? | SELECT proto_oceanic FROM table_name_43 WHERE verb = "to sew" | [
2061,
318,
262,
45783,
12,
46607,
291,
15942,
329,
262,
15942,
284,
34249,
30,
46506,
44876,
62,
78,
5829,
291,
16034,
3084,
62,
3672,
62,
3559,
33411,
15942,
796,
366,
1462,
34249,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45783,
12,
46607,
291,
15942,
329,
262,
15942,
284,
34249,
30,
46506,
44876,
62,
78,
5829,
291,
16034,
3084,
62,
3672,
62,
3559,
33411,
15942,
796,
366,
1462,
34249,
1
] |
how much does a drug called atazanavir cost. | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'prescriptions' AND cost.event_id IN (SELECT prescriptions.row_id FROM prescriptions WHERE prescriptions.drug = 'atazanavir') | [
4919,
881,
857,
257,
2563,
1444,
379,
1031,
272,
615,
343,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
18302,
24370,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
881,
857,
257,
2563,
1444,
379,
1031,
272,
615,
343,
1575,
13,
46506,
360,
8808,
1268,
4177,
1575,
13,
15805,
16034,
1575,
33411,
1575,
13,
15596,
62,
4906,
796,
705,
18302,
24370,
6,
5357,
1575,
13,
15596,
62,
312,
3268,
357,
... |
What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22? | SELECT COUNT("1957") FROM table_65969 WHERE "1955" < '0.63' AND "1952" > '0.22' | [
2061,
318,
262,
25177,
1271,
618,
262,
25325,
318,
4833,
621,
657,
13,
5066,
11,
290,
26352,
318,
4025,
621,
657,
13,
1828,
30,
46506,
327,
28270,
7203,
1129,
3553,
4943,
16034,
3084,
62,
36445,
3388,
33411,
366,
1129,
2816,
1,
1279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
25177,
1271,
618,
262,
25325,
318,
4833,
621,
657,
13,
5066,
11,
290,
26352,
318,
4025,
621,
657,
13,
1828,
30,
46506,
327,
28270,
7203,
1129,
3553,
4943,
16034,
3084,
62,
36445,
3388,
33411,
366,
1129,
2816,
1,
1279,
... |
count the number of patients whose days of hospital stay is greater than 4 and procedure short title is other phototherapy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "4" AND procedures.short_title = "Other phototherapy" | [
9127,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
8771,
1790,
3670,
318,
584,
2825,
18952,
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... | [
9127,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
8771,
1790,
3670,
318,
584,
2825,
18952,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
What was the date when the crowd was larger than 30,495? | SELECT "Date" FROM table_53444 WHERE "Crowd" > '30,495' | [
2061,
373,
262,
3128,
618,
262,
4315,
373,
4025,
621,
1542,
11,
33781,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
4310,
30272,
33411,
366,
34,
3986,
1,
1875,
705,
1270,
11,
33781,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
618,
262,
4315,
373,
4025,
621,
1542,
11,
33781,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
4310,
30272,
33411,
366,
34,
3986,
1,
1875,
705,
1270,
11,
33781,
6
] |
what is the number of patients whose diagnoses short title is encephalopathy nos and drug type is additive? | 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 = "Encephalopathy NOS" AND prescriptions.drug_type = "ADDITIVE" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
551,
43996,
27189,
43630,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
551,
43996,
27189,
43630,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
What is the most draws when less than 154 goals were conceded, and less than 36 games played? | SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 36 | [
2061,
318,
262,
749,
14293,
618,
1342,
621,
24235,
4661,
547,
24684,
11,
290,
1342,
621,
4570,
1830,
2826,
30,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
4661,
62,
1102,
771,
276,
1279,
24235,
5357,
1830,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14293,
618,
1342,
621,
24235,
4661,
547,
24684,
11,
290,
1342,
621,
4570,
1830,
2826,
30,
46506,
25882,
7,
19334,
82,
8,
16034,
3084,
62,
3672,
62,
4524,
33411,
4661,
62,
1102,
771,
276,
1279,
24235,
5357,
1830,
... |
What was the population of a county in 2040 that had a population less than 108,172 in 2000 and less than 107,589 in 1960? | SELECT COUNT("Population (2040)") FROM table_74649 WHERE "Population (1960)" < '108,172' AND "Population (2000)" < '107,589' | [
2061,
373,
262,
3265,
286,
257,
7968,
287,
1160,
1821,
326,
550,
257,
3265,
1342,
621,
15495,
11,
23628,
287,
4751,
290,
1342,
621,
16226,
11,
44169,
287,
9507,
30,
46506,
327,
28270,
7203,
45251,
357,
1238,
1821,
8,
4943,
16034,
3084... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3265,
286,
257,
7968,
287,
1160,
1821,
326,
550,
257,
3265,
1342,
621,
15495,
11,
23628,
287,
4751,
290,
1342,
621,
16226,
11,
44169,
287,
9507,
30,
46506,
327,
28270,
7203,
45251,
357,
1238,
1821,
8,
4943,
16034,
3084... |
Show me the frequency of the weekdays (binning year into weekdays interval) that the team Boston Red Stockings won in the postseasons with a bar chart. | SELECT year, COUNT(year) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' | [
15307,
502,
262,
8373,
286,
262,
1285,
12545,
357,
8800,
768,
614,
656,
1285,
12545,
16654,
8,
326,
262,
1074,
6182,
2297,
10500,
654,
1839,
287,
262,
1281,
325,
2812,
351,
257,
2318,
8262,
13,
46506,
614,
11,
327,
28270,
7,
1941,
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... | [
15307,
502,
262,
8373,
286,
262,
1285,
12545,
357,
8800,
768,
614,
656,
1285,
12545,
16654,
8,
326,
262,
1074,
6182,
2297,
10500,
654,
1839,
287,
262,
1281,
325,
2812,
351,
257,
2318,
8262,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8... |
What venue hosted the 2003 event? | SELECT "Venue" FROM table_14529 WHERE "Year" = '2003' | [
2061,
14359,
12007,
262,
5816,
1785,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
18781,
1959,
33411,
366,
17688,
1,
796,
705,
16088,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
14359,
12007,
262,
5816,
1785,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
18781,
1959,
33411,
366,
17688,
1,
796,
705,
16088,
6
] |
What is the description when the reserve is Half Moon Caye? | SELECT description FROM table_name_40 WHERE reserve = "half moon caye" | [
2061,
318,
262,
6764,
618,
262,
11515,
318,
13139,
6869,
28335,
68,
30,
46506,
6764,
16034,
3084,
62,
3672,
62,
1821,
33411,
11515,
796,
366,
13959,
8824,
269,
48822,
1
] | [
1,
1,
1,
1,
1,
1,
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,
6764,
618,
262,
11515,
318,
13139,
6869,
28335,
68,
30,
46506,
6764,
16034,
3084,
62,
3672,
62,
1821,
33411,
11515,
796,
366,
13959,
8824,
269,
48822,
1
] |
what is the total number of patients who had a lab test for urobilinogen and got discharged for home healthcare? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "HOME HEALTH CARE" AND lab.label = "Urobilinogen" | [
10919,
318,
262,
2472,
1271,
286,
3871,
508,
550,
257,
2248,
1332,
329,
334,
22609,
346,
259,
6644,
290,
1392,
26476,
329,
1363,
11409,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2472,
1271,
286,
3871,
508,
550,
257,
2248,
1332,
329,
334,
22609,
346,
259,
6644,
290,
1392,
26476,
329,
1363,
11409,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
... |
What town has the Welford Road Stadium? | SELECT "City/Town" FROM table_63126 WHERE "Stadium" = 'welford road' | [
2061,
3240,
468,
262,
22268,
3841,
5567,
10499,
30,
46506,
366,
14941,
14,
38097,
1,
16034,
3084,
62,
5066,
19420,
33411,
366,
1273,
6271,
1,
796,
705,
86,
417,
3841,
2975,
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,
3240,
468,
262,
22268,
3841,
5567,
10499,
30,
46506,
366,
14941,
14,
38097,
1,
16034,
3084,
62,
5066,
19420,
33411,
366,
1273,
6271,
1,
796,
705,
86,
417,
3841,
2975,
6
] |
When was the appointment date for the manager replaced by Lucien Favre? | SELECT "Date of Appointment" FROM table_78310 WHERE "Replaced by" = 'lucien favre' | [
2215,
373,
262,
12557,
3128,
329,
262,
4706,
6928,
416,
6026,
979,
268,
34395,
260,
30,
46506,
366,
10430,
286,
2034,
49805,
1,
16034,
3084,
62,
3695,
26717,
33411,
366,
3041,
21820,
416,
1,
796,
705,
2290,
979,
268,
2090,
260,
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
] | [
2215,
373,
262,
12557,
3128,
329,
262,
4706,
6928,
416,
6026,
979,
268,
34395,
260,
30,
46506,
366,
10430,
286,
2034,
49805,
1,
16034,
3084,
62,
3695,
26717,
33411,
366,
3041,
21820,
416,
1,
796,
705,
2290,
979,
268,
2090,
260,
6
] |
What are the numbers for any players from Washington? | SELECT "No.(s)" FROM table_51689 WHERE "School/Club Team/Country" = 'washington' | [
2061,
389,
262,
3146,
329,
597,
1938,
422,
2669,
30,
46506,
366,
2949,
12195,
82,
16725,
16034,
3084,
62,
47493,
4531,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
86,
2542,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
3146,
329,
597,
1938,
422,
2669,
30,
46506,
366,
2949,
12195,
82,
16725,
16034,
3084,
62,
47493,
4531,
33411,
366,
26130,
14,
42350,
4816,
14,
33921,
1,
796,
705,
86,
2542,
6
] |
count the number of patients whose primary disease is s/p fall and year of death is less than or equal to 2164? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "S/P FALL" AND demographic.dod_year <= "2164.0" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
14,
79,
2121,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
23237,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
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... | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
264,
14,
79,
2121,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
23237,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411... |
What is the Irish name for the 1 fraction of 1/240? | SELECT "Irish name" FROM table_21128 WHERE "\u00a31 Fraction" = '1/240' | [
2061,
318,
262,
8685,
1438,
329,
262,
352,
13390,
286,
352,
14,
16102,
30,
46506,
366,
43293,
1438,
1,
16034,
3084,
62,
2481,
12762,
33411,
37082,
84,
405,
64,
3132,
376,
7861,
1,
796,
705,
16,
14,
16102,
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
] | [
2061,
318,
262,
8685,
1438,
329,
262,
352,
13390,
286,
352,
14,
16102,
30,
46506,
366,
43293,
1438,
1,
16034,
3084,
62,
2481,
12762,
33411,
37082,
84,
405,
64,
3132,
376,
7861,
1,
796,
705,
16,
14,
16102,
6
] |
What was the opponent on october 28? | SELECT "Opponent" FROM table_75153 WHERE "Date" = 'october 28' | [
2061,
373,
262,
6125,
319,
19318,
2023,
2579,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2425,
21395,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
2579,
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,
373,
262,
6125,
319,
19318,
2023,
2579,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2425,
21395,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
2579,
6
] |
When did the Visiting San Antonio Spurs score 97-113? | SELECT "Date" FROM table_7834 WHERE "Visitor" = 'san antonio spurs' AND "Score" = '97-113' | [
2215,
750,
262,
6911,
1780,
2986,
11366,
18353,
4776,
10111,
12,
16616,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3695,
2682,
33411,
366,
15854,
2072,
1,
796,
705,
12807,
281,
1122,
952,
599,
1834,
6,
5357,
366,
26595,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
262,
6911,
1780,
2986,
11366,
18353,
4776,
10111,
12,
16616,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3695,
2682,
33411,
366,
15854,
2072,
1,
796,
705,
12807,
281,
1122,
952,
599,
1834,
6,
5357,
366,
26595,
1,
796,
705,
... |
what is the number of patients whose marital status is married and admission year is less than 2200? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear < "2200" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
13938,
614,
318,
1342,
621,
362,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
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,
1271,
286,
3871,
3025,
29555,
3722,
318,
6405,
290,
13938,
614,
318,
1342,
621,
362,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
... |
have acetaminophen, 50 ml vial : dextrose 50 % iv soln, or acetaminophen (tylenol) tablet 650 mg been ordered for patient 022-89058 during the first hospital encounter? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-89058' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.... | [
14150,
25174,
5669,
47806,
11,
2026,
25962,
410,
498,
1058,
390,
742,
13698,
2026,
4064,
21628,
1540,
77,
11,
393,
25174,
5669,
47806,
357,
774,
11925,
349,
8,
14147,
22626,
10527,
587,
6149,
329,
5827,
657,
1828,
12,
4531,
2713,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
25174,
5669,
47806,
11,
2026,
25962,
410,
498,
1058,
390,
742,
13698,
2026,
4064,
21628,
1540,
77,
11,
393,
25174,
5669,
47806,
357,
774,
11925,
349,
8,
14147,
22626,
10527,
587,
6149,
329,
5827,
657,
1828,
12,
4531,
2713,
23,
... |
What was the 2009 ranking for Webometrics? | SELECT 2009 FROM table_name_40 WHERE ranking = "webometrics" | [
2061,
373,
262,
3717,
12759,
329,
5313,
908,
10466,
30,
46506,
3717,
16034,
3084,
62,
3672,
62,
1821,
33411,
12759,
796,
366,
12384,
908,
10466,
1
] | [
1,
1,
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,
3717,
12759,
329,
5313,
908,
10466,
30,
46506,
3717,
16034,
3084,
62,
3672,
62,
1821,
33411,
12759,
796,
366,
12384,
908,
10466,
1
] |
Candiates Charles Fisher (DR) 65.1% W. Jones (F) 34.9% had what result? | SELECT result FROM table_2668336_17 WHERE candidates = "Charles Fisher (DR) 65.1% W. Jones (F) 34.9%" | [
34,
26800,
689,
7516,
14388,
357,
7707,
8,
6135,
13,
16,
4,
370,
13,
5437,
357,
37,
8,
4974,
13,
24,
4,
550,
644,
1255,
30,
46506,
1255,
16034,
3084,
62,
2075,
3104,
29211,
62,
1558,
33411,
5871,
796,
366,
28711,
14388,
357,
7707,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
34,
26800,
689,
7516,
14388,
357,
7707,
8,
6135,
13,
16,
4,
370,
13,
5437,
357,
37,
8,
4974,
13,
24,
4,
550,
644,
1255,
30,
46506,
1255,
16034,
3084,
62,
2075,
3104,
29211,
62,
1558,
33411,
5871,
796,
366,
28711,
14388,
357,
7707,... |
How many events did nigel mansell drive the fastest and a mclaren - honda win? | SELECT COUNT(grand_prix) FROM table_1139087_2 WHERE constructor = "McLaren - Honda" AND fastest_lap = "Nigel Mansell" | [
2437,
867,
2995,
750,
44873,
417,
582,
7255,
3708,
262,
14162,
290,
257,
285,
565,
5757,
532,
289,
13533,
1592,
30,
46506,
327,
28270,
7,
23936,
62,
3448,
87,
8,
16034,
3084,
62,
1157,
2670,
2919,
22,
62,
17,
33411,
23772,
796,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2995,
750,
44873,
417,
582,
7255,
3708,
262,
14162,
290,
257,
285,
565,
5757,
532,
289,
13533,
1592,
30,
46506,
327,
28270,
7,
23936,
62,
3448,
87,
8,
16034,
3084,
62,
1157,
2670,
2919,
22,
62,
17,
33411,
23772,
796,
366,... |
what is the number of patients whose days of hospital stay is greater than 27 and diagnoses icd9 code is 430? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "27" AND diagnoses.icd9_code = "430" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
2681,
290,
40567,
14158,
67,
24,
2438,
318,
35090,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2681,
290,
40567,
14158,
67,
24,
2438,
318,
35090,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,... |
What are the payment dates for any payments that have an amount greater than 10 or were handled by a staff member with the first name Elsa, and count them by a line chart, and order in ascending by the X. | SELECT payment_date, COUNT(payment_date) FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' GROUP BY payment_date ORDER BY payment_date | [
2061,
389,
262,
6074,
9667,
329,
597,
7524,
326,
423,
281,
2033,
3744,
621,
838,
393,
547,
12118,
416,
257,
3085,
2888,
351,
262,
717,
1438,
19226,
11,
290,
954,
606,
416,
257,
1627,
8262,
11,
290,
1502,
287,
41988,
416,
262,
1395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6074,
9667,
329,
597,
7524,
326,
423,
281,
2033,
3744,
621,
838,
393,
547,
12118,
416,
257,
3085,
2888,
351,
262,
717,
1438,
19226,
11,
290,
954,
606,
416,
257,
1627,
8262,
11,
290,
1502,
287,
41988,
416,
262,
1395,
... |
Wat episode number had 5.46 million viewers? | SELECT episode__number FROM table_27846651_1 WHERE viewers__millions_ = "5.46" | [
54,
265,
4471,
1271,
550,
642,
13,
3510,
1510,
10209,
30,
46506,
4471,
834,
17618,
16034,
3084,
62,
1983,
5705,
2791,
4349,
62,
16,
33411,
10209,
834,
17805,
507,
62,
796,
366,
20,
13,
3510,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
54,
265,
4471,
1271,
550,
642,
13,
3510,
1510,
10209,
30,
46506,
4471,
834,
17618,
16034,
3084,
62,
1983,
5705,
2791,
4349,
62,
16,
33411,
10209,
834,
17805,
507,
62,
796,
366,
20,
13,
3510,
1
] |
Which player scored 71? | SELECT "Player" FROM table_51033 WHERE "Score" = '71' | [
13828,
2137,
7781,
9166,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33690,
2091,
33411,
366,
26595,
1,
796,
705,
4869,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
2137,
7781,
9166,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33690,
2091,
33411,
366,
26595,
1,
796,
705,
4869,
6
] |
What is total amount of points for the 2007 season? | SELECT SUM(points) FROM table_name_69 WHERE season = 2007 | [
2061,
318,
2472,
2033,
286,
2173,
329,
262,
4343,
1622,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
1622,
796,
4343
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
2472,
2033,
286,
2173,
329,
262,
4343,
1622,
30,
46506,
35683,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
3388,
33411,
1622,
796,
4343
] |
Which school's round was 24? | SELECT school FROM table_name_41 WHERE round = "24" | [
13828,
1524,
338,
2835,
373,
1987,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3901,
33411,
2835,
796,
366,
1731,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1524,
338,
2835,
373,
1987,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
3901,
33411,
2835,
796,
366,
1731,
1
] |
how many episodes aired in may 1995 ? | SELECT COUNT("ep#") FROM table_204_981 WHERE "broadcast date" = 5 AND "broadcast date" = 1995 | [
4919,
867,
8640,
18530,
287,
743,
8735,
5633,
46506,
327,
28270,
7203,
538,
2,
4943,
16034,
3084,
62,
18638,
62,
4089,
16,
33411,
366,
36654,
2701,
3128,
1,
796,
642,
5357,
366,
36654,
2701,
3128,
1,
796,
8735
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8640,
18530,
287,
743,
8735,
5633,
46506,
327,
28270,
7203,
538,
2,
4943,
16034,
3084,
62,
18638,
62,
4089,
16,
33411,
366,
36654,
2701,
3128,
1,
796,
642,
5357,
366,
36654,
2701,
3128,
1,
796,
8735
] |
Show the names and heights of buildings with at least two institutions founded after 1880 Plot them as bar chart, and list by the Y in ascending. | SELECT Name, Height_feet FROM building AS T1 JOIN Institution AS T2 ON T1.building_id = T2.building_id WHERE T2.Founded > 1880 ORDER BY Height_feet | [
15307,
262,
3891,
290,
23245,
286,
6832,
351,
379,
1551,
734,
6712,
9393,
706,
34865,
28114,
606,
355,
2318,
8262,
11,
290,
1351,
416,
262,
575,
287,
41988,
13,
46506,
6530,
11,
27280,
62,
39690,
16034,
2615,
7054,
309,
16,
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... | [
15307,
262,
3891,
290,
23245,
286,
6832,
351,
379,
1551,
734,
6712,
9393,
706,
34865,
28114,
606,
355,
2318,
8262,
11,
290,
1351,
416,
262,
575,
287,
41988,
13,
46506,
6530,
11,
27280,
62,
39690,
16034,
2615,
7054,
309,
16,
32357,
126... |
Name the nation where jeff barker is from | SELECT "Nation" FROM table_23199 WHERE "Name" = 'Jeff Barker' | [
5376,
262,
3277,
810,
11223,
487,
21405,
263,
318,
422,
46506,
366,
46108,
1,
16034,
3084,
62,
1954,
19104,
33411,
366,
5376,
1,
796,
705,
19139,
36933,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3277,
810,
11223,
487,
21405,
263,
318,
422,
46506,
366,
46108,
1,
16034,
3084,
62,
1954,
19104,
33411,
366,
5376,
1,
796,
705,
19139,
36933,
6
] |
How many citations does fahad pervaiz have ? | SELECT DISTINCT COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'fahad pervaiz' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2437,
867,
33499,
857,
277,
993,
324,
583,
6862,
528,
423,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
33499,
857,
277,
993,
324,
583,
6862,
528,
423,
5633,
46506,
360,
8808,
1268,
4177,
327,
28270,
7,
66,
578,
13,
66,
863,
20189,
312,
8,
16034,
1772,
11,
21729,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.