instruction
stringlengths 0
1.06k
| response
stringlengths 2
3.61k
| input_ids
list | attention_mask
list | labels
list |
---|---|---|---|---|
What is the duration for nickolas grace as the actor?
|
SELECT duration FROM table_name_36 WHERE actor = "nickolas grace"
|
[
2061,
318,
262,
9478,
329,
14428,
12456,
11542,
355,
262,
8674,
30,
46506,
9478,
16034,
3084,
62,
3672,
62,
2623,
33411,
8674,
796,
366,
17172,
12456,
11542,
1
] |
[
1,
1,
1,
1,
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,
9478,
329,
14428,
12456,
11542,
355,
262,
8674,
30,
46506,
9478,
16034,
3084,
62,
3672,
62,
2623,
33411,
8674,
796,
366,
17172,
12456,
11542,
1
] |
Whose Visitor has a Record of 10 11 5?
|
SELECT visitor FROM table_name_82 WHERE record = "10–11–5"
|
[
1199,
577,
6911,
2072,
468,
257,
13266,
286,
838,
1367,
642,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
6469,
33411,
1700,
796,
366,
940,
1906,
1157,
1906,
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
] |
[
1199,
577,
6911,
2072,
468,
257,
13266,
286,
838,
1367,
642,
30,
46506,
21493,
16034,
3084,
62,
3672,
62,
6469,
33411,
1700,
796,
366,
940,
1906,
1157,
1906,
20,
1
] |
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
|
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935
|
[
2061,
318,
262,
2472,
1271,
351,
5267,
2321,
351,
257,
7653,
2211,
4025,
621,
642,
3682,
11,
290,
257,
2447,
2813,
517,
621,
860,
2327,
30,
46506,
327,
28270,
7,
37302,
62,
6999,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
10891,
62,
6390,
1875,
642,
3682,
5357,
16339,
62,
9804,
1875,
860,
2327
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2472,
1271,
351,
5267,
2321,
351,
257,
7653,
2211,
4025,
621,
642,
3682,
11,
290,
257,
2447,
2813,
517,
621,
860,
2327,
30,
46506,
327,
28270,
7,
37302,
62,
6999,
8,
16034,
3084,
62,
3672,
62,
1129,
33411,
10891,
62,
6390,
1875,
642,
3682,
5357,
16339,
62,
9804,
1875,
860,
2327
] |
What tournament has 1r as the 2011?
|
SELECT tournament FROM table_name_12 WHERE 2011 = "1r"
|
[
2061,
7756,
468,
352,
81,
355,
262,
2813,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1065,
33411,
2813,
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
] |
[
2061,
7756,
468,
352,
81,
355,
262,
2813,
30,
46506,
7756,
16034,
3084,
62,
3672,
62,
1065,
33411,
2813,
796,
366,
16,
81,
1
] |
Amount of questions closed after 3 leading close votes in the Close Vote review queue. Amount of posts closed (and not closed) after 'n' leading close votes in the Close Vote review queue (counts/consider the vote/flag which triggered the review activity) AND with
at least 5 close/do not close votes in total (this is to minimize the effect of binding votes cast by moderators or by tag gold badge holders). The default setup in query measures 3 leading close votes, but it can be tweaked for counting 2 and 4 leading close votes as well. Just comment and/or uncomment the INNER JOIN clauses in the 'qualified_posts' CTE (see comments' instructions there).
|
SELECT p.Id AS "post_link", pf.PostId, vt.Name, pf.CreationDate FROM Posts AS p INNER JOIN PostFeedback AS pf ON pf.PostId = p.Id INNER JOIN VoteTypes AS vt ON vt.Id = pf.VoteTypeId WHERE NOT p.ClosedDate IS NULL AND pf.PostId = 3923221 ORDER BY pf.PostId, pf.CreationDate DESC LIMIT 50
|
[
31264,
286,
2683,
4838,
706,
513,
3756,
1969,
5690,
287,
262,
13872,
19175,
2423,
16834,
13,
26308,
286,
6851,
4838,
357,
392,
407,
4838,
8,
706,
705,
77,
6,
3756,
1969,
5690,
287,
262,
13872,
19175,
2423,
16834,
357,
9127,
82,
14,
44353,
262,
3015,
14,
32109,
543,
13973,
262,
2423,
3842,
8,
5357,
351,
220,
201,
198,
265,
1551,
642,
1969,
14,
4598,
407,
1969,
5690,
287,
2472,
357,
5661,
318,
284,
17775,
262,
1245,
286,
12765,
5690,
3350,
416,
37265,
393,
416,
7621,
3869,
23009,
16392,
737,
383,
4277,
9058,
287,
12405,
5260,
513,
3756,
1969,
5690,
11,
475,
340,
460,
307,
38304,
329,
14143,
362,
290,
604,
3756,
1969,
5690,
355,
880,
13,
2329,
2912,
290,
14,
273,
8820,
434,
262,
3268,
21479,
32357,
1268,
31485,
287,
262,
705,
22557,
62,
24875,
6,
327,
9328,
357,
3826,
3651,
6,
7729,
612,
737,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
69,
13,
6307,
7390,
11,
410,
83,
13,
5376,
11,
279,
69,
13,
12443,
341,
10430,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
2947,
18332,
1891,
7054,
279,
69,
6177,
279,
69,
13,
6307,
7390,
796,
279,
13,
7390,
3268,
21479,
32357,
1268,
19175,
31431,
7054,
410,
83,
6177,
410,
83,
13,
7390,
796,
279,
69,
13,
37394,
6030,
7390,
33411,
5626,
279,
13,
2601,
1335,
10430,
3180,
15697,
5357,
279,
69,
13,
6307,
7390,
796,
5014,
1954,
26115,
38678,
11050,
279,
69,
13,
6307,
7390,
11,
279,
69,
13,
12443,
341,
10430,
22196,
34,
27564,
2043,
2026
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
31264,
286,
2683,
4838,
706,
513,
3756,
1969,
5690,
287,
262,
13872,
19175,
2423,
16834,
13,
26308,
286,
6851,
4838,
357,
392,
407,
4838,
8,
706,
705,
77,
6,
3756,
1969,
5690,
287,
262,
13872,
19175,
2423,
16834,
357,
9127,
82,
14,
44353,
262,
3015,
14,
32109,
543,
13973,
262,
2423,
3842,
8,
5357,
351,
220,
201,
198,
265,
1551,
642,
1969,
14,
4598,
407,
1969,
5690,
287,
2472,
357,
5661,
318,
284,
17775,
262,
1245,
286,
12765,
5690,
3350,
416,
37265,
393,
416,
7621,
3869,
23009,
16392,
737,
383,
4277,
9058,
287,
12405,
5260,
513,
3756,
1969,
5690,
11,
475,
340,
460,
307,
38304,
329,
14143,
362,
290,
604,
3756,
1969,
5690,
355,
880,
13,
2329,
2912,
290,
14,
273,
8820,
434,
262,
3268,
21479,
32357,
1268,
31485,
287,
262,
705,
22557,
62,
24875,
6,
327,
9328,
357,
3826,
3651,
6,
7729,
612,
737,
46506,
279,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
279,
69,
13,
6307,
7390,
11,
410,
83,
13,
5376,
11,
279,
69,
13,
12443,
341,
10430,
16034,
12043,
7054,
279,
3268,
21479,
32357,
1268,
2947,
18332,
1891,
7054,
279,
69,
6177,
279,
69,
13,
6307,
7390,
796,
279,
13,
7390,
3268,
21479,
32357,
1268,
19175,
31431,
7054,
410,
83,
6177,
410,
83,
13,
7390,
796,
279,
69,
13,
37394,
6030,
7390,
33411,
5626,
279,
13,
2601,
1335,
10430,
3180,
15697,
5357,
279,
69,
13,
6307,
7390,
796,
5014,
1954,
26115,
38678,
11050,
279,
69,
13,
6307,
7390,
11,
279,
69,
13,
12443,
341,
10430,
22196,
34,
27564,
2043,
2026
] |
Show each author and the number of workshops they submitted to. Show bar chart.
|
SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID
|
[
15307,
1123,
1772,
290,
262,
1271,
286,
25982,
484,
8948,
284,
13,
5438,
2318,
8262,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
23044,
8548,
62,
2389,
8,
16034,
21699,
590,
7054,
309,
16,
32357,
1268,
14498,
7054,
309,
17,
6177,
309,
16,
13,
7004,
3411,
62,
2389,
796,
309,
17,
13,
7004,
3411,
62,
2389
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1123,
1772,
290,
262,
1271,
286,
25982,
484,
8948,
284,
13,
5438,
2318,
8262,
13,
46506,
6434,
11,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
23044,
8548,
62,
2389,
8,
16034,
21699,
590,
7054,
309,
16,
32357,
1268,
14498,
7054,
309,
17,
6177,
309,
16,
13,
7004,
3411,
62,
2389,
796,
309,
17,
13,
7004,
3411,
62,
2389
] |
How many of the patients admitted to emergency had bowel obstruction as their primary disease?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "BOWEL OBSTRUCTION"
|
[
2437,
867,
286,
262,
3871,
6848,
284,
6334,
550,
35711,
28118,
355,
511,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
13,
47356,
5958,
796,
366,
33,
3913,
3698,
25334,
46126,
2849,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
3871,
6848,
284,
6334,
550,
35711,
28118,
355,
511,
4165,
4369,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
3620,
49837,
45155,
1,
5357,
16728,
13,
47356,
5958,
796,
366,
33,
3913,
3698,
25334,
46126,
2849,
1
] |
Which Throws have a Position of 3b/rhp?
|
SELECT throws FROM table_name_1 WHERE position = "3b/rhp"
|
[
13828,
536,
8516,
423,
257,
23158,
286,
513,
65,
14,
17179,
79,
30,
46506,
12542,
16034,
3084,
62,
3672,
62,
16,
33411,
2292,
796,
366,
18,
65,
14,
17179,
79,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
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,
536,
8516,
423,
257,
23158,
286,
513,
65,
14,
17179,
79,
30,
46506,
12542,
16034,
3084,
62,
3672,
62,
16,
33411,
2292,
796,
366,
18,
65,
14,
17179,
79,
1
] |
show me all flights from PITTSBURGH to SAN FRANCISCO
|
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 = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
|
[
12860,
502,
477,
13956,
422,
49040,
4694,
38926,
17511,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694,
38926,
17511,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12860,
502,
477,
13956,
422,
49040,
4694,
38926,
17511,
284,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694,
38926,
17511,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] |
What was the report of the Belgian Grand Prix?
|
SELECT "Report" FROM table_72172 WHERE "Grand Prix" = 'Belgian Grand Prix'
|
[
2061,
373,
262,
989,
286,
262,
21402,
5675,
23832,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
4761,
23628,
33411,
366,
23581,
23832,
1,
796,
705,
12193,
18299,
5675,
23832,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
373,
262,
989,
286,
262,
21402,
5675,
23832,
30,
46506,
366,
19100,
1,
16034,
3084,
62,
4761,
23628,
33411,
366,
23581,
23832,
1,
796,
705,
12193,
18299,
5675,
23832,
6
] |
what is the difference between the points juan martin del potro won defending and his new points ?
|
SELECT ABS("points defending" - "new points") FROM table_204_188 WHERE "player" = 'juan martin del potro'
|
[
10919,
318,
262,
3580,
1022,
262,
2173,
474,
7258,
11277,
259,
1619,
1787,
305,
1839,
11749,
290,
465,
649,
2173,
5633,
46506,
29950,
7203,
13033,
11749,
1,
532,
366,
3605,
2173,
4943,
16034,
3084,
62,
18638,
62,
20356,
33411,
366,
7829,
1,
796,
705,
73,
7258,
11277,
259,
1619,
1787,
305,
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
] |
[
10919,
318,
262,
3580,
1022,
262,
2173,
474,
7258,
11277,
259,
1619,
1787,
305,
1839,
11749,
290,
465,
649,
2173,
5633,
46506,
29950,
7203,
13033,
11749,
1,
532,
366,
3605,
2173,
4943,
16034,
3084,
62,
18638,
62,
20356,
33411,
366,
7829,
1,
796,
705,
73,
7258,
11277,
259,
1619,
1787,
305,
6
] |
how many hours has it been since the last time patient 016-22566 stayed in their current hospital visit in the ward 628?
|
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '016-22566' AND patient.wardid = 628 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1
|
[
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
5827,
5534,
21,
12,
18182,
2791,
9658,
287,
511,
1459,
4436,
3187,
287,
262,
15305,
718,
2078,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
324,
20124,
524,
4008,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
27037,
12,
18182,
2791,
6,
5357,
5827,
13,
904,
312,
796,
718,
2078,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
20850,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4919,
867,
2250,
468,
340,
587,
1201,
262,
938,
640,
5827,
5534,
21,
12,
18182,
2791,
9658,
287,
511,
1459,
4436,
3187,
287,
262,
15305,
718,
2078,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
62,
34694,
28955,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
324,
20124,
524,
4008,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
27037,
12,
18182,
2791,
6,
5357,
5827,
13,
904,
312,
796,
718,
2078,
5357,
5827,
13,
49257,
6381,
354,
7641,
524,
3180,
15697,
38678,
11050,
5827,
13,
20850,
324,
20124,
524,
22196,
34,
27564,
2043,
352
] |
Which driver won the Phillip Island Grand Prix Circuit?
|
SELECT "Winner" FROM table_78253 WHERE "Circuit" = 'phillip island grand prix circuit'
|
[
13828,
4639,
1839,
262,
29470,
5451,
5675,
23832,
13588,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
3695,
28592,
33411,
366,
31560,
5013,
1,
796,
705,
746,
359,
541,
7022,
4490,
1293,
87,
10349,
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
] |
[
13828,
4639,
1839,
262,
29470,
5451,
5675,
23832,
13588,
30,
46506,
366,
48056,
1,
16034,
3084,
62,
3695,
28592,
33411,
366,
31560,
5013,
1,
796,
705,
746,
359,
541,
7022,
4490,
1293,
87,
10349,
6
] |
What is the frame size that was nicknamed Grand Central?
|
SELECT "FRAMED SIZE" FROM table_39449 WHERE "NICKNAME" = 'grand central'
|
[
2061,
318,
262,
5739,
2546,
326,
373,
35786,
5675,
5694,
30,
46506,
366,
10913,
2390,
1961,
311,
35400,
1,
16034,
3084,
62,
2670,
31911,
33411,
366,
45,
11860,
20608,
1,
796,
705,
23936,
4318,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
5739,
2546,
326,
373,
35786,
5675,
5694,
30,
46506,
366,
10913,
2390,
1961,
311,
35400,
1,
16034,
3084,
62,
2670,
31911,
33411,
366,
45,
11860,
20608,
1,
796,
705,
23936,
4318,
6
] |
What song was performed when Barbara Windsor was the guest host?
|
SELECT "Musical Guest (Song performed)" FROM table_20428 WHERE "Guest Host" = 'Barbara Windsor'
|
[
2061,
3496,
373,
6157,
618,
16685,
31561,
373,
262,
8319,
2583,
30,
46506,
366,
10694,
605,
22358,
357,
44241,
6157,
16725,
16034,
3084,
62,
18638,
2078,
33411,
366,
42481,
14504,
1,
796,
705,
10374,
39389,
31561,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
3496,
373,
6157,
618,
16685,
31561,
373,
262,
8319,
2583,
30,
46506,
366,
10694,
605,
22358,
357,
44241,
6157,
16725,
16034,
3084,
62,
18638,
2078,
33411,
366,
42481,
14504,
1,
796,
705,
10374,
39389,
31561,
6
] |
What was the winning score for runnerup Greg Norman
|
SELECT winning_score FROM table_name_5 WHERE runner_s__up = "greg norman"
|
[
2061,
373,
262,
5442,
4776,
329,
17490,
929,
8547,
19636,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
20,
33411,
17490,
62,
82,
834,
929,
796,
366,
9903,
2593,
272,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
373,
262,
5442,
4776,
329,
17490,
929,
8547,
19636,
46506,
5442,
62,
26675,
16034,
3084,
62,
3672,
62,
20,
33411,
17490,
62,
82,
834,
929,
796,
366,
9903,
2593,
272,
1
] |
give me the number of patients taking drug via nebulizer who have never been hospitalized.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "0" AND prescriptions.route = "NEB"
|
[
26535,
502,
262,
1271,
286,
3871,
2263,
2563,
2884,
497,
15065,
7509,
508,
423,
1239,
587,
31736,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
12545,
62,
31712,
1875,
366,
15,
1,
5357,
34092,
13,
38629,
796,
366,
12161,
33,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2263,
2563,
2884,
497,
15065,
7509,
508,
423,
1239,
587,
31736,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
33411,
16728,
13,
12545,
62,
31712,
1875,
366,
15,
1,
5357,
34092,
13,
38629,
796,
366,
12161,
33,
1
] |
what are the five most common lab tests that happened in a year before?
|
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5
|
[
10919,
389,
262,
1936,
749,
2219,
2248,
5254,
326,
3022,
287,
257,
614,
878,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
2248,
33411,
360,
1404,
2767,
12789,
7,
23912,
13,
23912,
20274,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
44441,
11050,
2248,
13,
23912,
3672,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
642
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
389,
262,
1936,
749,
2219,
2248,
5254,
326,
3022,
287,
257,
614,
878,
30,
46506,
256,
16,
13,
23912,
3672,
16034,
357,
46506,
2248,
13,
23912,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
2248,
33411,
360,
1404,
2767,
12789,
7,
23912,
13,
23912,
20274,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
44441,
11050,
2248,
13,
23912,
3672,
8,
7054,
256,
16,
33411,
256,
16,
13,
66,
16,
19841,
642
] |
provide the number of patients whose gender is f and admission type is urgent?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "URGENT"
|
[
15234,
485,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
13938,
2099,
318,
18039,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5279,
318,
277,
290,
13938,
2099,
318,
18039,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1
] |
Which Opponents in the final have a Partner of daniella dominikovic?
|
SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic"
|
[
13828,
9385,
3906,
287,
262,
2457,
423,
257,
35532,
286,
288,
34166,
8466,
7462,
1134,
17215,
30,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
6420,
33411,
5212,
796,
366,
25604,
494,
8466,
7462,
1134,
17215,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9385,
3906,
287,
262,
2457,
423,
257,
35532,
286,
288,
34166,
8466,
7462,
1134,
17215,
30,
46506,
7691,
62,
259,
62,
1169,
62,
20311,
16034,
3084,
62,
3672,
62,
6420,
33411,
5212,
796,
366,
25604,
494,
8466,
7462,
1134,
17215,
1
] |
when does patient 10425 have received a urine microbiology test for the first time in 09/last year?
|
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10425) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microbiologyevents.charttime) = '09' ORDER BY microbiologyevents.charttime LIMIT 1
|
[
12518,
857,
5827,
14436,
1495,
423,
2722,
257,
18922,
24559,
1435,
1332,
329,
262,
717,
640,
287,
7769,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
14436,
1495,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
333,
500,
6,
5357,
360,
1404,
2767,
12789,
7,
24055,
43592,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
796,
705,
2931,
6,
38678,
11050,
24559,
1435,
31534,
13,
40926,
2435,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
857,
5827,
14436,
1495,
423,
2722,
257,
18922,
24559,
1435,
1332,
329,
262,
717,
640,
287,
7769,
14,
12957,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
14436,
1495,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
333,
500,
6,
5357,
360,
1404,
2767,
12789,
7,
24055,
43592,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
16,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
796,
705,
2931,
6,
38678,
11050,
24559,
1435,
31534,
13,
40926,
2435,
27564,
2043,
352
] |
Find the name of customers who do not have an saving account.
|
SELECT cust_name FROM customer EXCEPT SELECT cust_name FROM customer WHERE acc_type = 'saving'
|
[
16742,
262,
1438,
286,
4297,
508,
466,
407,
423,
281,
8914,
1848,
13,
46506,
9378,
62,
3672,
16034,
6491,
7788,
42006,
33493,
9378,
62,
3672,
16034,
6491,
33411,
697,
62,
4906,
796,
705,
29336,
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
] |
[
16742,
262,
1438,
286,
4297,
508,
466,
407,
423,
281,
8914,
1848,
13,
46506,
9378,
62,
3672,
16034,
6491,
7788,
42006,
33493,
9378,
62,
3672,
16034,
6491,
33411,
697,
62,
4906,
796,
705,
29336,
6
] |
give me the number of patients whose year of death is less than or equal to 2174 and diagnoses icd9 code is 2984?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2174.0" AND diagnoses.icd9_code = "2984"
|
[
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
22985,
290,
40567,
14158,
67,
24,
2438,
318,
2808,
5705,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
1959,
5705,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
22985,
290,
40567,
14158,
67,
24,
2438,
318,
2808,
5705,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
22985,
13,
15,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
1959,
5705,
1
] |
give me the number of patients whose admission type is urgent and drug route is both eyes?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.route = "BOTH EYES"
|
[
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
18039,
290,
2563,
6339,
318,
1111,
2951,
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,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1,
5357,
34092,
13,
38629,
796,
366,
33,
26946,
412,
43335,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
2099,
318,
18039,
290,
2563,
6339,
318,
1111,
2951,
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,
18108,
76,
62,
312,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1,
5357,
34092,
13,
38629,
796,
366,
33,
26946,
412,
43335,
1
] |
give me the number of patients whose marital status is single and diagnoses icd9 code is 70724?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "SINGLE" AND diagnoses.icd9_code = "70724"
|
[
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
2060,
290,
40567,
14158,
67,
24,
2438,
318,
767,
2998,
1731,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
24038,
1731,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
318,
2060,
290,
40567,
14158,
67,
24,
2438,
318,
767,
2998,
1731,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
50,
2751,
2538,
1,
5357,
40567,
13,
291,
67,
24,
62,
8189,
796,
366,
24038,
1731,
1
] |
What is the sum of the prominence in m of slovakia?
|
SELECT SUM("Prominence (m)") FROM table_65940 WHERE "Country" = 'slovakia'
|
[
2061,
318,
262,
2160,
286,
262,
31198,
287,
285,
286,
1017,
709,
21897,
30,
46506,
35683,
7203,
24129,
18386,
357,
76,
8,
4943,
16034,
3084,
62,
36445,
1821,
33411,
366,
33921,
1,
796,
705,
6649,
709,
21897,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2160,
286,
262,
31198,
287,
285,
286,
1017,
709,
21897,
30,
46506,
35683,
7203,
24129,
18386,
357,
76,
8,
4943,
16034,
3084,
62,
36445,
1821,
33411,
366,
33921,
1,
796,
705,
6649,
709,
21897,
6
] |
What is the PAL M for the NTSC M 4.5mhz?
|
SELECT pal_m FROM table_name_54 WHERE ntsc_m = "4.5mhz"
|
[
2061,
318,
262,
40795,
337,
329,
262,
43754,
34,
337,
604,
13,
20,
76,
32179,
30,
46506,
6340,
62,
76,
16034,
3084,
62,
3672,
62,
4051,
33411,
299,
912,
66,
62,
76,
796,
366,
19,
13,
20,
76,
32179,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40795,
337,
329,
262,
43754,
34,
337,
604,
13,
20,
76,
32179,
30,
46506,
6340,
62,
76,
16034,
3084,
62,
3672,
62,
4051,
33411,
299,
912,
66,
62,
76,
796,
366,
19,
13,
20,
76,
32179,
1
] |
How many years have a longitude measure of 20.0e?
|
SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E"
|
[
2437,
867,
812,
423,
257,
890,
3984,
3953,
286,
1160,
13,
15,
68,
30,
46506,
327,
28270,
7,
1941,
62,
13190,
8,
16034,
3084,
62,
21940,
2079,
37688,
62,
24,
33411,
890,
3984,
796,
366,
1238,
13,
15,
36,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2437,
867,
812,
423,
257,
890,
3984,
3953,
286,
1160,
13,
15,
68,
30,
46506,
327,
28270,
7,
1941,
62,
13190,
8,
16034,
3084,
62,
21940,
2079,
37688,
62,
24,
33411,
890,
3984,
796,
366,
1238,
13,
15,
36,
1
] |
Which Round has a NHL team of edmonton oilers and a Player of vyacheslav trukhno?
|
SELECT AVG("Round") FROM table_35296 WHERE "NHL team" = 'edmonton oilers' AND "Player" = 'vyacheslav trukhno'
|
[
13828,
10485,
468,
257,
9481,
1074,
286,
1225,
19729,
3056,
364,
290,
257,
7853,
286,
410,
88,
3694,
18809,
491,
2724,
71,
3919,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
2327,
27137,
33411,
366,
45,
6581,
1074,
1,
796,
705,
276,
19729,
3056,
364,
6,
5357,
366,
14140,
1,
796,
705,
7670,
3694,
18809,
491,
2724,
71,
3919,
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
] |
[
13828,
10485,
468,
257,
9481,
1074,
286,
1225,
19729,
3056,
364,
290,
257,
7853,
286,
410,
88,
3694,
18809,
491,
2724,
71,
3919,
30,
46506,
35224,
7203,
22685,
4943,
16034,
3084,
62,
2327,
27137,
33411,
366,
45,
6581,
1074,
1,
796,
705,
276,
19729,
3056,
364,
6,
5357,
366,
14140,
1,
796,
705,
7670,
3694,
18809,
491,
2724,
71,
3919,
6
] |
Find the number of different products that are produced by companies at different headquarter cities.
|
SELECT COUNT(DISTINCT T1.name), T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter
|
[
16742,
262,
1271,
286,
1180,
3186,
326,
389,
4635,
416,
2706,
379,
1180,
1182,
24385,
4736,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
3672,
828,
309,
17,
13,
13847,
24385,
16034,
3186,
7054,
309,
16,
32357,
1268,
11372,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
8189,
44441,
11050,
309,
17,
13,
13847,
24385
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
1180,
3186,
326,
389,
4635,
416,
2706,
379,
1180,
1182,
24385,
4736,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
309,
16,
13,
3672,
828,
309,
17,
13,
13847,
24385,
16034,
3186,
7054,
309,
16,
32357,
1268,
11372,
7054,
309,
17,
6177,
309,
16,
13,
44445,
15051,
796,
309,
17,
13,
8189,
44441,
11050,
309,
17,
13,
13847,
24385
] |
Competition of u.s championships, and a Event of all around has what average year?
|
SELECT AVG(year) FROM table_name_61 WHERE competition = "u.s championships" AND event = "all around"
|
[
7293,
15620,
286,
334,
13,
82,
27459,
11,
290,
257,
8558,
286,
477,
1088,
468,
644,
2811,
614,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
5449,
796,
366,
84,
13,
82,
27459,
1,
5357,
1785,
796,
366,
439,
1088,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
7293,
15620,
286,
334,
13,
82,
27459,
11,
290,
257,
8558,
286,
477,
1088,
468,
644,
2811,
614,
30,
46506,
35224,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5333,
33411,
5449,
796,
366,
84,
13,
82,
27459,
1,
5357,
1785,
796,
366,
439,
1088,
1
] |
What is the Total of the Player with a To par of 13?
|
SELECT SUM(total) FROM table_name_24 WHERE to_par = "–13"
|
[
2061,
318,
262,
7472,
286,
262,
7853,
351,
257,
1675,
1582,
286,
1511,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
284,
62,
1845,
796,
366,
1906,
1485,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
286,
262,
7853,
351,
257,
1675,
1582,
286,
1511,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1731,
33411,
284,
62,
1845,
796,
366,
1906,
1485,
1
] |
Where did the away team have round 2?
|
SELECT "Venue" FROM table_37861 WHERE "Away team" = 'round 2'
|
[
8496,
750,
262,
1497,
1074,
423,
2835,
362,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2718,
4521,
16,
33411,
366,
32,
1014,
1074,
1,
796,
705,
744,
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
] |
[
8496,
750,
262,
1497,
1074,
423,
2835,
362,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2718,
4521,
16,
33411,
366,
32,
1014,
1074,
1,
796,
705,
744,
362,
6
] |
what is the number of patients whose lab test name is wbc, pleural?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC, Pleural"
|
[
10919,
318,
262,
1271,
286,
3871,
3025,
2248,
1332,
1438,
318,
266,
15630,
11,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
2248,
13,
18242,
796,
366,
54,
2749,
11,
18063,
1523,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
1438,
318,
266,
15630,
11,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
2248,
13,
18242,
796,
366,
54,
2749,
11,
18063,
1523,
1
] |
What is the least amount of wins when against is 1314?
|
SELECT MIN("Wins") FROM table_65701 WHERE "Against" = '1314'
|
[
2061,
318,
262,
1551,
2033,
286,
7864,
618,
1028,
318,
1511,
1415,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
37680,
486,
33411,
366,
39276,
1,
796,
705,
1485,
1415,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
1551,
2033,
286,
7864,
618,
1028,
318,
1511,
1415,
30,
46506,
20625,
7203,
54,
1040,
4943,
16034,
3084,
62,
37680,
486,
33411,
366,
39276,
1,
796,
705,
1485,
1415,
6
] |
Get me the number of patients who have drug code bume2 and hematology as lab test category.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.formulary_drug_cd = "BUME2" AND lab."CATEGORY" = "Hematology"
|
[
3855,
502,
262,
1271,
286,
3871,
508,
423,
2563,
2438,
275,
2454,
17,
290,
339,
6759,
1435,
355,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
33,
38340,
17,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
39,
368,
265,
1435,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
3855,
502,
262,
1271,
286,
3871,
508,
423,
2563,
2438,
275,
2454,
17,
290,
339,
6759,
1435,
355,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
34092,
13,
18108,
76,
62,
312,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
33,
38340,
17,
1,
5357,
2248,
526,
34,
6158,
38,
15513,
1,
796,
366,
39,
368,
265,
1435,
1
] |
Visualize a bar chart for simply displaying the email address of the employee and the corresponding salary, and order in desc by the X please.
|
SELECT EMAIL, SALARY FROM employees ORDER BY EMAIL DESC
|
[
36259,
1096,
257,
2318,
8262,
329,
2391,
19407,
262,
3053,
2209,
286,
262,
6538,
290,
262,
11188,
9588,
11,
290,
1502,
287,
1715,
416,
262,
1395,
3387,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
412,
5673,
4146,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
36259,
1096,
257,
2318,
8262,
329,
2391,
19407,
262,
3053,
2209,
286,
262,
6538,
290,
262,
11188,
9588,
11,
290,
1502,
287,
1715,
416,
262,
1395,
3387,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
412,
5673,
4146,
22196,
34
] |
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
|
SELECT "English title (Chinese title)" FROM table_52124 WHERE "Genre" = 'modern drama' AND "Number of episodes" = '20' AND "Airing date" = '26 sep- 21 oct'
|
[
2061,
318,
262,
46932,
3670,
286,
262,
3660,
10512,
11,
4471,
1160,
11,
326,
37112,
319,
2608,
41767,
12,
2310,
19318,
30,
46506,
366,
15823,
3670,
357,
23604,
3670,
16725,
16034,
3084,
62,
4309,
17464,
33411,
366,
13746,
260,
1,
796,
705,
23922,
10512,
6,
5357,
366,
15057,
286,
8640,
1,
796,
705,
1238,
6,
5357,
366,
32,
3428,
3128,
1,
796,
705,
2075,
41767,
12,
2310,
19318,
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,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
46932,
3670,
286,
262,
3660,
10512,
11,
4471,
1160,
11,
326,
37112,
319,
2608,
41767,
12,
2310,
19318,
30,
46506,
366,
15823,
3670,
357,
23604,
3670,
16725,
16034,
3084,
62,
4309,
17464,
33411,
366,
13746,
260,
1,
796,
705,
23922,
10512,
6,
5357,
366,
15057,
286,
8640,
1,
796,
705,
1238,
6,
5357,
366,
32,
3428,
3128,
1,
796,
705,
2075,
41767,
12,
2310,
19318,
6
] |
What were the original teams for the season that was won at-home by Mark Pinkhasovich?
|
SELECT "Original teams" FROM table_11868 WHERE "At-Home Winner" = 'mark pinkhasovich'
|
[
2061,
547,
262,
2656,
3466,
329,
262,
1622,
326,
373,
1839,
379,
12,
11195,
416,
2940,
14657,
10134,
18198,
30,
46506,
366,
20556,
3466,
1,
16034,
3084,
62,
16817,
3104,
33411,
366,
2953,
12,
16060,
25358,
1,
796,
705,
4102,
11398,
10134,
18198,
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
] |
[
2061,
547,
262,
2656,
3466,
329,
262,
1622,
326,
373,
1839,
379,
12,
11195,
416,
2940,
14657,
10134,
18198,
30,
46506,
366,
20556,
3466,
1,
16034,
3084,
62,
16817,
3104,
33411,
366,
2953,
12,
16060,
25358,
1,
796,
705,
4102,
11398,
10134,
18198,
6
] |
What is the outcome of the match with a score of 6 4, 6 1?
|
SELECT outcome FROM table_name_39 WHERE score = "6–4, 6–1"
|
[
2061,
318,
262,
8055,
286,
262,
2872,
351,
257,
4776,
286,
718,
604,
11,
718,
352,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
2670,
33411,
4776,
796,
366,
21,
1906,
19,
11,
718,
1906,
16,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
8055,
286,
262,
2872,
351,
257,
4776,
286,
718,
604,
11,
718,
352,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
2670,
33411,
4776,
796,
366,
21,
1906,
19,
11,
718,
1906,
16,
1
] |
Which home team played the Away team from Richmond?
|
SELECT "Home team" FROM table_77600 WHERE "Away team" = 'richmond'
|
[
13828,
1363,
1074,
2826,
262,
21986,
1074,
422,
16940,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3324,
8054,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
13828,
1363,
1074,
2826,
262,
21986,
1074,
422,
16940,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3324,
8054,
33411,
366,
32,
1014,
1074,
1,
796,
705,
7527,
6327,
6
] |
Name the wins for tournaments played being 14
|
SELECT "Wins" FROM table_1567 WHERE "Tournaments played" = '14'
|
[
5376,
262,
7864,
329,
18130,
2826,
852,
1478,
46506,
366,
54,
1040,
1,
16034,
3084,
62,
1314,
3134,
33411,
366,
51,
16950,
2826,
1,
796,
705,
1415,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
5376,
262,
7864,
329,
18130,
2826,
852,
1478,
46506,
366,
54,
1040,
1,
16034,
3084,
62,
1314,
3134,
33411,
366,
51,
16950,
2826,
1,
796,
705,
1415,
6
] |
Users by reputation range (15K-75K). Users by reputation range (15K-75K)
|
SELECT Id AS "user_link", DisplayName, Reputation, Location FROM Users WHERE (Reputation >= 15000) AND (Reputation <= 75000) ORDER BY Reputation DESC
|
[
14490,
416,
8507,
2837,
357,
1314,
42,
12,
2425,
42,
737,
18987,
416,
8507,
2837,
357,
1314,
42,
12,
2425,
42,
8,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
16531,
5376,
11,
1432,
7094,
11,
13397,
16034,
18987,
33411,
357,
6207,
7094,
18189,
1315,
830,
8,
5357,
357,
6207,
7094,
19841,
5441,
830,
8,
38678,
11050,
1432,
7094,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
14490,
416,
8507,
2837,
357,
1314,
42,
12,
2425,
42,
737,
18987,
416,
8507,
2837,
357,
1314,
42,
12,
2425,
42,
8,
46506,
5121,
7054,
366,
7220,
62,
8726,
1600,
16531,
5376,
11,
1432,
7094,
11,
13397,
16034,
18987,
33411,
357,
6207,
7094,
18189,
1315,
830,
8,
5357,
357,
6207,
7094,
19841,
5441,
830,
8,
38678,
11050,
1432,
7094,
22196,
34
] |
what are the four most commonly ordered procedures for patients who have received vitamin k during the same hospital visit previously since 2100?
|
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'vitamin k' AND STRFTIME('%y', treatment.treatmenttime) >= '2100') AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmentname, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', treatment.treatmenttime) >= '2100') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.treatmenttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.treatmentname) AS t3 WHERE t3.c1 <= 4
|
[
10919,
389,
262,
1440,
749,
8811,
6149,
9021,
329,
3871,
508,
423,
2722,
14411,
479,
1141,
262,
976,
4436,
3187,
4271,
1201,
38123,
30,
46506,
256,
18,
13,
42487,
3672,
16034,
357,
46506,
256,
17,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
2435,
11,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
3513,
13,
42487,
3672,
796,
705,
85,
40746,
479,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
18189,
705,
2481,
405,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
3672,
11,
3513,
13,
42487,
2435,
11,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
18189,
705,
2481,
405,
11537,
7054,
256,
17,
6177,
256,
16,
13,
403,
1557,
538,
312,
796,
256,
17,
13,
403,
1557,
538,
312,
33411,
256,
16,
13,
42487,
2435,
1279,
256,
17,
13,
42487,
2435,
5357,
256,
16,
13,
26029,
13948,
10057,
31712,
312,
796,
256,
17,
13,
26029,
13948,
10057,
31712,
312,
44441,
11050,
256,
17,
13,
42487,
3672,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
604
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
389,
262,
1440,
749,
8811,
6149,
9021,
329,
3871,
508,
423,
2722,
14411,
479,
1141,
262,
976,
4436,
3187,
4271,
1201,
38123,
30,
46506,
256,
18,
13,
42487,
3672,
16034,
357,
46506,
256,
17,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
28104,
22196,
34,
8,
7054,
269,
16,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
2435,
11,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
3513,
13,
42487,
3672,
796,
705,
85,
40746,
479,
6,
5357,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
18189,
705,
2481,
405,
11537,
7054,
256,
16,
32357,
1268,
357,
46506,
5827,
13,
403,
1557,
538,
312,
11,
3513,
13,
42487,
3672,
11,
3513,
13,
42487,
2435,
11,
5827,
13,
26029,
13948,
10057,
31712,
312,
16034,
3513,
32357,
1268,
5827,
6177,
3513,
13,
26029,
20850,
31712,
312,
796,
5827,
13,
26029,
20850,
31712,
312,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
3513,
13,
42487,
2435,
8,
18189,
705,
2481,
405,
11537,
7054,
256,
17,
6177,
256,
16,
13,
403,
1557,
538,
312,
796,
256,
17,
13,
403,
1557,
538,
312,
33411,
256,
16,
13,
42487,
2435,
1279,
256,
17,
13,
42487,
2435,
5357,
256,
16,
13,
26029,
13948,
10057,
31712,
312,
796,
256,
17,
13,
26029,
13948,
10057,
31712,
312,
44441,
11050,
256,
17,
13,
42487,
3672,
8,
7054,
256,
18,
33411,
256,
18,
13,
66,
16,
19841,
604
] |
Name the singer for 1.45m
|
SELECT singer_s_ FROM table_29135051_2 WHERE ratings = "1.45m"
|
[
5376,
262,
14015,
329,
352,
13,
2231,
76,
46506,
14015,
62,
82,
62,
16034,
3084,
62,
1959,
1485,
1120,
4349,
62,
17,
33411,
10109,
796,
366,
16,
13,
2231,
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
] |
[
5376,
262,
14015,
329,
352,
13,
2231,
76,
46506,
14015,
62,
82,
62,
16034,
3084,
62,
1959,
1485,
1120,
4349,
62,
17,
33411,
10109,
796,
366,
16,
13,
2231,
76,
1
] |
Draw a bar chart of affiliation versus sum enrollment
|
SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation
|
[
25302,
257,
2318,
8262,
286,
26218,
9051,
2160,
20753,
46506,
6708,
15547,
11,
35683,
7,
4834,
48108,
8,
16034,
6403,
44441,
11050,
6708,
15547
] |
[
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,
26218,
9051,
2160,
20753,
46506,
6708,
15547,
11,
35683,
7,
4834,
48108,
8,
16034,
6403,
44441,
11050,
6708,
15547
] |
what position has a handicap of 10-2?
|
SELECT position FROM table_25429986_1 WHERE handicap = "10-2"
|
[
10919,
2292,
468,
257,
29103,
499,
286,
838,
12,
17,
30,
46506,
2292,
16034,
3084,
62,
1495,
11785,
49087,
62,
16,
33411,
29103,
499,
796,
366,
940,
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,
1,
1,
1,
1
] |
[
10919,
2292,
468,
257,
29103,
499,
286,
838,
12,
17,
30,
46506,
2292,
16034,
3084,
62,
1495,
11785,
49087,
62,
16,
33411,
29103,
499,
796,
366,
940,
12,
17,
1
] |
In how many locations was the game against Barcelona Dragons played?
|
SELECT COUNT("Game site") FROM table_22990 WHERE "Opponent" = 'Barcelona Dragons'
|
[
818,
703,
867,
7064,
373,
262,
983,
1028,
15142,
19075,
2826,
30,
46506,
327,
28270,
7203,
8777,
2524,
4943,
16034,
3084,
62,
1828,
34155,
33411,
366,
27524,
3471,
1,
796,
705,
10374,
14308,
19075,
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
] |
[
818,
703,
867,
7064,
373,
262,
983,
1028,
15142,
19075,
2826,
30,
46506,
327,
28270,
7203,
8777,
2524,
4943,
16034,
3084,
62,
1828,
34155,
33411,
366,
27524,
3471,
1,
796,
705,
10374,
14308,
19075,
6
] |
On what day did joe gibbs racing record a time of 1:53:26?
|
SELECT "Date" FROM table_30359 WHERE "Team" = 'Joe Gibbs Racing' AND "Race Time" = '1:53:26'
|
[
2202,
644,
1110,
750,
2525,
68,
46795,
1443,
11717,
1700,
257,
640,
286,
352,
25,
4310,
25,
2075,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1270,
30743,
33411,
366,
15592,
1,
796,
705,
19585,
41071,
14954,
6,
5357,
366,
35157,
3862,
1,
796,
705,
16,
25,
4310,
25,
2075,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2202,
644,
1110,
750,
2525,
68,
46795,
1443,
11717,
1700,
257,
640,
286,
352,
25,
4310,
25,
2075,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
1270,
30743,
33411,
366,
15592,
1,
796,
705,
19585,
41071,
14954,
6,
5357,
366,
35157,
3862,
1,
796,
705,
16,
25,
4310,
25,
2075,
6
] |
What school year is vaucluse public school?
|
SELECT years FROM table_name_10 WHERE school = "vaucluse public school"
|
[
2061,
1524,
614,
318,
410,
559,
565,
1904,
1171,
1524,
30,
46506,
812,
16034,
3084,
62,
3672,
62,
940,
33411,
1524,
796,
366,
85,
559,
565,
1904,
1171,
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
] |
[
2061,
1524,
614,
318,
410,
559,
565,
1904,
1171,
1524,
30,
46506,
812,
16034,
3084,
62,
3672,
62,
940,
33411,
1524,
796,
366,
85,
559,
565,
1904,
1171,
1524,
1
] |
Name the record for w 101 93 (ot)
|
SELECT "Record" FROM table_29839 WHERE "Score" = 'W 101–93 (OT)'
|
[
5376,
262,
1700,
329,
266,
8949,
10261,
357,
313,
8,
46506,
366,
23739,
1,
16034,
3084,
62,
27728,
2670,
33411,
366,
26595,
1,
796,
705,
54,
8949,
1906,
6052,
357,
2394,
33047
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
5376,
262,
1700,
329,
266,
8949,
10261,
357,
313,
8,
46506,
366,
23739,
1,
16034,
3084,
62,
27728,
2670,
33411,
366,
26595,
1,
796,
705,
54,
8949,
1906,
6052,
357,
2394,
33047
] |
What is the event result for athlete Ali Ekranpour?
|
SELECT event FROM table_name_71 WHERE athlete = "ali ekranpour"
|
[
2061,
318,
262,
1785,
1255,
329,
16076,
12104,
31873,
2596,
48681,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
4869,
33411,
16076,
796,
366,
7344,
304,
74,
2596,
48681,
1
] |
[
1,
1,
1,
1,
1,
1,
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,
1785,
1255,
329,
16076,
12104,
31873,
2596,
48681,
30,
46506,
1785,
16034,
3084,
62,
3672,
62,
4869,
33411,
16076,
796,
366,
7344,
304,
74,
2596,
48681,
1
] |
What was the Home team when Farnborough Town was the Away team?
|
SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
|
[
2061,
373,
262,
5995,
1074,
618,
49230,
17913,
8329,
373,
262,
21986,
1074,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3829,
33411,
1497,
62,
15097,
796,
366,
69,
1501,
17913,
3240,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
618,
49230,
17913,
8329,
373,
262,
21986,
1074,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
3829,
33411,
1497,
62,
15097,
796,
366,
69,
1501,
17913,
3240,
1
] |
Which Pos has a Team of germian racing?
|
SELECT pos FROM table_name_68 WHERE team = "germian racing"
|
[
13828,
18574,
468,
257,
4816,
286,
41171,
666,
11717,
30,
46506,
1426,
16034,
3084,
62,
3672,
62,
3104,
33411,
1074,
796,
366,
1362,
76,
666,
11717,
1
] |
[
1,
1,
1,
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,
18574,
468,
257,
4816,
286,
41171,
666,
11717,
30,
46506,
1426,
16034,
3084,
62,
3672,
62,
3104,
33411,
1074,
796,
366,
1362,
76,
666,
11717,
1
] |
What is the average word count with crs and subframes lesser than 2?
|
SELECT AVG(word__number) FROM table_name_9 WHERE name = "crs" AND subframe__number < 2
|
[
2061,
318,
262,
2811,
1573,
954,
351,
1067,
82,
290,
850,
37805,
14494,
621,
362,
30,
46506,
35224,
7,
4775,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1438,
796,
366,
66,
3808,
1,
5357,
850,
14535,
834,
17618,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
2811,
1573,
954,
351,
1067,
82,
290,
850,
37805,
14494,
621,
362,
30,
46506,
35224,
7,
4775,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
24,
33411,
1438,
796,
366,
66,
3808,
1,
5357,
850,
14535,
834,
17618,
1279,
362
] |
What year had Kim Gevaert as the female winner and Xavier de Baerdemaeker as the male talent?
|
SELECT "Year" FROM table_42475 WHERE "Winner (Female)" = 'kim gevaert' AND "Talent (Male)" = 'xavier de baerdemaeker'
|
[
2061,
614,
550,
6502,
402,
48855,
861,
355,
262,
4048,
8464,
290,
30825,
390,
8999,
263,
9536,
64,
28233,
355,
262,
4257,
7401,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
40090,
2425,
33411,
366,
48056,
357,
27273,
16725,
796,
705,
74,
320,
308,
48855,
861,
6,
5357,
366,
31466,
298,
357,
25486,
16725,
796,
705,
87,
19492,
390,
275,
25534,
9536,
64,
28233,
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,
1
] |
[
2061,
614,
550,
6502,
402,
48855,
861,
355,
262,
4048,
8464,
290,
30825,
390,
8999,
263,
9536,
64,
28233,
355,
262,
4257,
7401,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
40090,
2425,
33411,
366,
48056,
357,
27273,
16725,
796,
705,
74,
320,
308,
48855,
861,
6,
5357,
366,
31466,
298,
357,
25486,
16725,
796,
705,
87,
19492,
390,
275,
25534,
9536,
64,
28233,
6
] |
What town has the population of 777?
|
SELECT "Cyrillic Name Other Names" FROM table_73826 WHERE "Population (2011)" = '777'
|
[
2061,
3240,
468,
262,
3265,
286,
35534,
30,
46506,
366,
34,
2417,
359,
291,
6530,
3819,
28531,
1,
16034,
3084,
62,
22,
2548,
2075,
33411,
366,
45251,
357,
9804,
16725,
796,
705,
29331,
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,
3240,
468,
262,
3265,
286,
35534,
30,
46506,
366,
34,
2417,
359,
291,
6530,
3819,
28531,
1,
16034,
3084,
62,
22,
2548,
2075,
33411,
366,
45251,
357,
9804,
16725,
796,
705,
29331,
6
] |
What artist had a mintage of 41,828 before year 2002?
|
SELECT "Artist" FROM table_52214 WHERE "Year" < '2002' AND "Mintage" = '41,828'
|
[
2061,
6802,
550,
257,
285,
14630,
286,
6073,
11,
23,
2078,
878,
614,
6244,
30,
46506,
366,
43020,
1,
16034,
3084,
62,
49542,
1415,
33411,
366,
17688,
1,
1279,
705,
16942,
6,
5357,
366,
44,
14630,
1,
796,
705,
3901,
11,
23,
2078,
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
] |
[
2061,
6802,
550,
257,
285,
14630,
286,
6073,
11,
23,
2078,
878,
614,
6244,
30,
46506,
366,
43020,
1,
16034,
3084,
62,
49542,
1415,
33411,
366,
17688,
1,
1279,
705,
16942,
6,
5357,
366,
44,
14630,
1,
796,
705,
3901,
11,
23,
2078,
6
] |
Out of total number of white russian patients, calculate the minimum age of male patients
|
SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.ethnicity = "WHITE - RUSSIAN"
|
[
7975,
286,
2472,
1271,
286,
2330,
374,
31562,
3871,
11,
15284,
262,
5288,
2479,
286,
4257,
3871,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
532,
371,
2937,
11584,
1565,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
7975,
286,
2472,
1271,
286,
2330,
374,
31562,
3871,
11,
15284,
262,
5288,
2479,
286,
4257,
3871,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
44,
1,
5357,
16728,
13,
38546,
414,
796,
366,
12418,
12709,
532,
371,
2937,
11584,
1565,
1
] |
What is Score, when Date is February 5?
|
SELECT score FROM table_name_85 WHERE date = "february 5"
|
[
2061,
318,
15178,
11,
618,
7536,
318,
3945,
642,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5332,
33411,
3128,
796,
366,
69,
1765,
3728,
642,
1
] |
[
1,
1,
1,
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,
15178,
11,
618,
7536,
318,
3945,
642,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
5332,
33411,
3128,
796,
366,
69,
1765,
3728,
642,
1
] |
What was the score for the game in which the Edmonton Oilers were visitors?
|
SELECT "Score" FROM table_49442 WHERE "Visitor" = 'edmonton oilers'
|
[
2061,
373,
262,
4776,
329,
262,
983,
287,
543,
262,
21165,
35004,
547,
9692,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2920,
39506,
33411,
366,
15854,
2072,
1,
796,
705,
276,
19729,
3056,
364,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
373,
262,
4776,
329,
262,
983,
287,
543,
262,
21165,
35004,
547,
9692,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2920,
39506,
33411,
366,
15854,
2072,
1,
796,
705,
276,
19729,
3056,
364,
6
] |
What team is travelling to play Hawthorn?
|
SELECT "Away team" FROM table_32887 WHERE "Home team" = 'hawthorn'
|
[
2061,
1074,
318,
16574,
284,
711,
41457,
1211,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
34256,
5774,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
1074,
318,
16574,
284,
711,
41457,
1211,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
34256,
5774,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
What was the rating of the episode Wonder Drug?
|
SELECT "Ratings (5 capital cities)" FROM table_59629 WHERE "Episode No." = 'wonder drug'
|
[
2061,
373,
262,
7955,
286,
262,
4471,
12902,
11095,
30,
46506,
366,
29665,
654,
357,
20,
3139,
4736,
16725,
16034,
3084,
62,
45734,
1959,
33411,
366,
23758,
1400,
526,
796,
705,
86,
8623,
2563,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
373,
262,
7955,
286,
262,
4471,
12902,
11095,
30,
46506,
366,
29665,
654,
357,
20,
3139,
4736,
16725,
16034,
3084,
62,
45734,
1959,
33411,
366,
23758,
1400,
526,
796,
705,
86,
8623,
2563,
6
] |
what are the times that you have planes leaving from SAN FRANCISCO going to PITTSBURGH on 7 7
|
SELECT DISTINCT flight.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 7 AND date_day.month_number = 7 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
|
[
10919,
389,
262,
1661,
326,
345,
423,
13016,
4305,
422,
37376,
8782,
20940,
1797,
8220,
1016,
284,
49040,
4694,
38926,
17511,
319,
767,
767,
46506,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694,
38926,
17511,
6,
5357,
3128,
62,
820,
13,
820,
62,
17618,
796,
767,
5357,
3128,
62,
820,
13,
8424,
62,
17618,
796,
767,
5357,
3128,
62,
820,
13,
1941,
796,
10249,
5357,
1528,
13,
820,
62,
3672,
796,
3128,
62,
820,
13,
820,
62,
3672,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
389,
262,
1661,
326,
345,
423,
13016,
4305,
422,
37376,
8782,
20940,
1797,
8220,
1016,
284,
49040,
4694,
38926,
17511,
319,
767,
767,
46506,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
3128,
62,
820,
11,
1528,
11,
5474,
33411,
357,
34,
9050,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
47,
2043,
4694,
38926,
17511,
6,
5357,
3128,
62,
820,
13,
820,
62,
17618,
796,
767,
5357,
3128,
62,
820,
13,
8424,
62,
17618,
796,
767,
5357,
3128,
62,
820,
13,
1941,
796,
10249,
5357,
1528,
13,
820,
62,
3672,
796,
3128,
62,
820,
13,
820,
62,
3672,
5357,
5474,
13,
22560,
62,
12545,
796,
1528,
13,
12545,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189,
8,
5357,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
36753,
8782,
20940,
1797,
8220,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189
] |
What Payload to GTO has CCBs larger than 1, and a Payload to LEO of 29,400kg?
|
SELECT payload_to_gto FROM table_name_95 WHERE ccbs > 1 AND payload_to_leo = "29,400kg"
|
[
2061,
7119,
2220,
284,
7963,
46,
468,
12624,
37000,
4025,
621,
352,
11,
290,
257,
7119,
2220,
284,
406,
4720,
286,
2808,
11,
7029,
10025,
30,
46506,
21437,
62,
1462,
62,
70,
1462,
16034,
3084,
62,
3672,
62,
3865,
33411,
36624,
1443,
1875,
352,
5357,
21437,
62,
1462,
62,
293,
78,
796,
366,
1959,
11,
7029,
10025,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7119,
2220,
284,
7963,
46,
468,
12624,
37000,
4025,
621,
352,
11,
290,
257,
7119,
2220,
284,
406,
4720,
286,
2808,
11,
7029,
10025,
30,
46506,
21437,
62,
1462,
62,
70,
1462,
16034,
3084,
62,
3672,
62,
3865,
33411,
36624,
1443,
1875,
352,
5357,
21437,
62,
1462,
62,
293,
78,
796,
366,
1959,
11,
7029,
10025,
1
] |
What is Country, when Class is 'club'?
|
SELECT country FROM table_name_51 WHERE class = "club"
|
[
2061,
318,
12946,
11,
618,
5016,
318,
705,
18664,
30960,
46506,
1499,
16034,
3084,
62,
3672,
62,
4349,
33411,
1398,
796,
366,
18664,
1
] |
[
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,
12946,
11,
618,
5016,
318,
705,
18664,
30960,
46506,
1499,
16034,
3084,
62,
3672,
62,
4349,
33411,
1398,
796,
366,
18664,
1
] |
when did patient 92788 get a immunology (cmv) microbiology test last time in 12/this year?
|
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 92788) AND microbiologyevents.spec_type_desc = 'immunology (cmv)' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', microbiologyevents.charttime) = '12' ORDER BY microbiologyevents.charttime DESC LIMIT 1
|
[
12518,
750,
5827,
860,
1983,
3459,
651,
257,
16217,
1435,
357,
11215,
85,
8,
24559,
1435,
1332,
938,
640,
287,
1105,
14,
5661,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
860,
1983,
3459,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
320,
6199,
1435,
357,
11215,
85,
33047,
5357,
360,
1404,
2767,
12789,
7,
24055,
43592,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
796,
705,
1065,
6,
38678,
11050,
24559,
1435,
31534,
13,
40926,
2435,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12518,
750,
5827,
860,
1983,
3459,
651,
257,
16217,
1435,
357,
11215,
85,
8,
24559,
1435,
1332,
938,
640,
287,
1105,
14,
5661,
614,
30,
46506,
24559,
1435,
31534,
13,
40926,
2435,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
860,
1983,
3459,
8,
5357,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
796,
705,
320,
6199,
1435,
357,
11215,
85,
33047,
5357,
360,
1404,
2767,
12789,
7,
24055,
43592,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
24559,
1435,
31534,
13,
40926,
2435,
8,
796,
705,
1065,
6,
38678,
11050,
24559,
1435,
31534,
13,
40926,
2435,
22196,
34,
27564,
2043,
352
] |
Which intergiro classification is there for team Polti at stage 14?
|
SELECT intergiro_classification FROM table_name_53 WHERE trofeo_fast_team = "team polti" AND stage = "14"
|
[
13828,
987,
70,
7058,
17923,
318,
612,
329,
1074,
2165,
20259,
379,
3800,
1478,
30,
46506,
987,
70,
7058,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
4310,
33411,
4161,
5036,
78,
62,
7217,
62,
15097,
796,
366,
15097,
755,
20259,
1,
5357,
3800,
796,
366,
1415,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
70,
7058,
17923,
318,
612,
329,
1074,
2165,
20259,
379,
3800,
1478,
30,
46506,
987,
70,
7058,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
4310,
33411,
4161,
5036,
78,
62,
7217,
62,
15097,
796,
366,
15097,
755,
20259,
1,
5357,
3800,
796,
366,
1415,
1
] |
Name the most district wide for 1639 other programs
|
SELECT MAX("District-wide") FROM table_26253 WHERE "Other programs & adjustments" = '1639'
|
[
5376,
262,
749,
4783,
3094,
329,
1467,
2670,
584,
4056,
46506,
25882,
7203,
44857,
12,
4421,
4943,
16034,
3084,
62,
2075,
28592,
33411,
366,
6395,
4056,
1222,
16895,
1,
796,
705,
1433,
2670,
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
] |
[
5376,
262,
749,
4783,
3094,
329,
1467,
2670,
584,
4056,
46506,
25882,
7203,
44857,
12,
4421,
4943,
16034,
3084,
62,
2075,
28592,
33411,
366,
6395,
4056,
1222,
16895,
1,
796,
705,
1433,
2670,
6
] |
LogScale reputation distribution, 1% bin precision.
|
SELECT POWER(1.02, bin) AS approx_rep, COUNT(*) AS n FROM (SELECT FLOOR(LN(Reputation) / LN(1.02) + 0.5) AS bin FROM Users WHERE Reputation < 1000 AND Reputation > 101) AS temp GROUP BY bin ORDER BY bin
|
[
11187,
29990,
8507,
6082,
11,
352,
4,
9874,
15440,
13,
46506,
40295,
7,
16,
13,
2999,
11,
9874,
8,
7054,
5561,
62,
7856,
11,
327,
28270,
7,
28104,
7054,
299,
16034,
357,
46506,
9977,
46,
1581,
7,
43,
45,
7,
6207,
7094,
8,
1220,
406,
45,
7,
16,
13,
2999,
8,
1343,
657,
13,
20,
8,
7054,
9874,
16034,
18987,
33411,
1432,
7094,
1279,
8576,
5357,
1432,
7094,
1875,
8949,
8,
7054,
20218,
44441,
11050,
9874,
38678,
11050,
9874
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
11187,
29990,
8507,
6082,
11,
352,
4,
9874,
15440,
13,
46506,
40295,
7,
16,
13,
2999,
11,
9874,
8,
7054,
5561,
62,
7856,
11,
327,
28270,
7,
28104,
7054,
299,
16034,
357,
46506,
9977,
46,
1581,
7,
43,
45,
7,
6207,
7094,
8,
1220,
406,
45,
7,
16,
13,
2999,
8,
1343,
657,
13,
20,
8,
7054,
9874,
16034,
18987,
33411,
1432,
7094,
1279,
8576,
5357,
1432,
7094,
1875,
8949,
8,
7054,
20218,
44441,
11050,
9874,
38678,
11050,
9874
] |
During the championship where the winning score was 9 (66-69-73-71=279)?, who was the runner-up?
|
SELECT runner_s__up FROM table_name_32 WHERE winning_score = −9(66 - 69 - 73 - 71 = 279)
|
[
7191,
262,
12184,
810,
262,
5442,
4776,
373,
860,
357,
2791,
12,
3388,
12,
4790,
12,
4869,
28,
26050,
19427,
11,
508,
373,
262,
17490,
12,
929,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2624,
33411,
5442,
62,
26675,
796,
9746,
24,
7,
2791,
532,
8644,
532,
8854,
532,
9166,
796,
39466,
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
] |
[
7191,
262,
12184,
810,
262,
5442,
4776,
373,
860,
357,
2791,
12,
3388,
12,
4790,
12,
4869,
28,
26050,
19427,
11,
508,
373,
262,
17490,
12,
929,
30,
46506,
17490,
62,
82,
834,
929,
16034,
3084,
62,
3672,
62,
2624,
33411,
5442,
62,
26675,
796,
9746,
24,
7,
2791,
532,
8644,
532,
8854,
532,
9166,
796,
39466,
8
] |
show me the flights between HOUSTON and ORLANDO
|
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 = 'HOUSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'ORLANDO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
|
[
12860,
502,
262,
13956,
1022,
29068,
41924,
290,
6375,
28182,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
46685,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
1581,
28182,
46,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
12860,
502,
262,
13956,
1022,
29068,
41924,
290,
6375,
28182,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
16,
11,
1748,
7054,
27993,
62,
15,
11,
1748,
7054,
27993,
62,
16,
11,
5474,
33411,
27993,
62,
15,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
19205,
62,
8189,
5357,
27993,
62,
15,
13,
19205,
62,
3672,
796,
705,
46685,
41924,
6,
5357,
27993,
62,
16,
13,
19205,
62,
8189,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
19205,
62,
8189,
5357,
27993,
62,
16,
13,
19205,
62,
3672,
796,
705,
1581,
28182,
46,
6,
5357,
5474,
13,
6738,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
15,
13,
958,
634,
62,
8189,
5357,
5474,
13,
1462,
62,
958,
634,
796,
31600,
15490,
62,
35009,
27389,
62,
16,
13,
958,
634,
62,
8189
] |
what is the number of patients whose primary disease is st-segment elevation myocardial infarction\cardiac cath and drug route is iv bolus?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" AND prescriptions.route = "IV BOLUS"
|
[
10919,
318,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
336,
12,
325,
5154,
22910,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
2563,
6339,
318,
21628,
11572,
385,
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,
18108,
76,
62,
312,
33411,
16728,
13,
47356,
5958,
796,
366,
2257,
12,
5188,
38,
10979,
40342,
53,
6234,
17615,
4503,
9795,
12576,
45594,
1503,
4177,
2849,
59,
34,
9795,
40,
2246,
327,
12599,
1,
5357,
34092,
13,
38629,
796,
366,
3824,
347,
3535,
2937,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
12,
325,
5154,
22910,
616,
44412,
498,
1167,
283,
596,
59,
9517,
9607,
32171,
290,
2563,
6339,
318,
21628,
11572,
385,
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,
18108,
76,
62,
312,
33411,
16728,
13,
47356,
5958,
796,
366,
2257,
12,
5188,
38,
10979,
40342,
53,
6234,
17615,
4503,
9795,
12576,
45594,
1503,
4177,
2849,
59,
34,
9795,
40,
2246,
327,
12599,
1,
5357,
34092,
13,
38629,
796,
366,
3824,
347,
3535,
2937,
1
] |
How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?
|
SELECT COUNT("Model") FROM table_25835 WHERE "Max. power output" = '162kW (220 PS) at 6,300 rpm'
|
[
2437,
867,
4981,
423,
5415,
1176,
5072,
318,
25090,
46265,
357,
17572,
26692,
8,
379,
718,
11,
6200,
37542,
30,
46506,
327,
28270,
7203,
17633,
4943,
16034,
3084,
62,
25600,
2327,
33411,
366,
11518,
13,
1176,
5072,
1,
796,
705,
25061,
74,
54,
357,
17572,
6599,
8,
379,
718,
11,
6200,
37542,
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
] |
[
2437,
867,
4981,
423,
5415,
1176,
5072,
318,
25090,
46265,
357,
17572,
26692,
8,
379,
718,
11,
6200,
37542,
30,
46506,
327,
28270,
7203,
17633,
4943,
16034,
3084,
62,
25600,
2327,
33411,
366,
11518,
13,
1176,
5072,
1,
796,
705,
25061,
74,
54,
357,
17572,
6599,
8,
379,
718,
11,
6200,
37542,
6
] |
Find the names of customers who either have an deputy policy or uniformed policy.
|
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy" OR t1.policy_type_code = "Uniform"
|
[
16742,
262,
3891,
286,
4297,
508,
2035,
423,
281,
10636,
2450,
393,
8187,
276,
2450,
13,
46506,
360,
8808,
1268,
4177,
256,
17,
13,
23144,
263,
62,
36604,
16034,
4788,
7054,
256,
16,
32357,
1268,
4297,
7054,
256,
17,
6177,
256,
16,
13,
23144,
263,
62,
312,
796,
256,
17,
13,
23144,
263,
62,
312,
33411,
256,
16,
13,
30586,
62,
4906,
62,
8189,
796,
366,
12156,
3935,
1,
6375,
256,
16,
13,
30586,
62,
4906,
62,
8189,
796,
366,
3118,
6933,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4297,
508,
2035,
423,
281,
10636,
2450,
393,
8187,
276,
2450,
13,
46506,
360,
8808,
1268,
4177,
256,
17,
13,
23144,
263,
62,
36604,
16034,
4788,
7054,
256,
16,
32357,
1268,
4297,
7054,
256,
17,
6177,
256,
16,
13,
23144,
263,
62,
312,
796,
256,
17,
13,
23144,
263,
62,
312,
33411,
256,
16,
13,
30586,
62,
4906,
62,
8189,
796,
366,
12156,
3935,
1,
6375,
256,
16,
13,
30586,
62,
4906,
62,
8189,
796,
366,
3118,
6933,
1
] |
Which engine received 0 points in 1988?
|
SELECT engine_s_ FROM table_name_44 WHERE points = 0 AND year = 1988
|
[
13828,
3113,
2722,
657,
2173,
287,
12122,
30,
46506,
3113,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2598,
33411,
2173,
796,
657,
5357,
614,
796,
12122
] |
[
1,
1,
1,
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,
3113,
2722,
657,
2173,
287,
12122,
30,
46506,
3113,
62,
82,
62,
16034,
3084,
62,
3672,
62,
2598,
33411,
2173,
796,
657,
5357,
614,
796,
12122
] |
Which league did not qualify for the Playoffs, and had a Year larger than 2008?
|
SELECT league FROM table_name_59 WHERE playoffs = "did not qualify" AND the_year > 2008
|
[
13828,
4652,
750,
407,
12780,
329,
262,
42361,
11,
290,
550,
257,
6280,
4025,
621,
3648,
30,
46506,
4652,
16034,
3084,
62,
3672,
62,
3270,
33411,
12980,
796,
366,
20839,
407,
12780,
1,
5357,
262,
62,
1941,
1875,
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
] |
[
13828,
4652,
750,
407,
12780,
329,
262,
42361,
11,
290,
550,
257,
6280,
4025,
621,
3648,
30,
46506,
4652,
16034,
3084,
62,
3672,
62,
3270,
33411,
12980,
796,
366,
20839,
407,
12780,
1,
5357,
262,
62,
1941,
1875,
3648
] |
Show the names and total passengers for all train stations not in London Visualize by bar chart, and show by the X-axis from high to low.
|
SELECT Name, Total_Passengers FROM station WHERE Location <> 'London' ORDER BY Name DESC
|
[
15307,
262,
3891,
290,
2472,
10405,
329,
477,
4512,
8985,
407,
287,
3576,
15612,
1096,
416,
2318,
8262,
11,
290,
905,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
6530,
11,
7472,
62,
14478,
9302,
16034,
4429,
33411,
13397,
1279,
29,
705,
23421,
6,
38678,
11050,
6530,
22196,
34
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
15307,
262,
3891,
290,
2472,
10405,
329,
477,
4512,
8985,
407,
287,
3576,
15612,
1096,
416,
2318,
8262,
11,
290,
905,
416,
262,
1395,
12,
22704,
422,
1029,
284,
1877,
13,
46506,
6530,
11,
7472,
62,
14478,
9302,
16034,
4429,
33411,
13397,
1279,
29,
705,
23421,
6,
38678,
11050,
6530,
22196,
34
] |
What were the drawn with points against at 416?
|
SELECT drawn FROM table_12828723_5 WHERE points_against = "416"
|
[
2061,
547,
262,
7428,
351,
2173,
1028,
379,
38158,
30,
46506,
7428,
16034,
3084,
62,
12762,
27800,
1954,
62,
20,
33411,
2173,
62,
32826,
796,
366,
35218,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
547,
262,
7428,
351,
2173,
1028,
379,
38158,
30,
46506,
7428,
16034,
3084,
62,
12762,
27800,
1954,
62,
20,
33411,
2173,
62,
32826,
796,
366,
35218,
1
] |
hemoglobin < 10 g / dl or clinical evidence of active bleeding during the study period.
|
SELECT * FROM table_test_3 WHERE hemoglobin_a1c_hba1c < 10 OR clinical_evidence_of_active_bleeding = 1
|
[
4411,
49835,
1279,
838,
308,
1220,
288,
75,
393,
8668,
2370,
286,
4075,
16832,
1141,
262,
2050,
2278,
13,
46506,
1635,
16034,
3084,
62,
9288,
62,
18,
33411,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
838,
6375,
8668,
62,
46817,
62,
1659,
62,
5275,
62,
903,
8228,
796,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
4411,
49835,
1279,
838,
308,
1220,
288,
75,
393,
8668,
2370,
286,
4075,
16832,
1141,
262,
2050,
2278,
13,
46506,
1635,
16034,
3084,
62,
9288,
62,
18,
33411,
16869,
49835,
62,
64,
16,
66,
62,
71,
7012,
16,
66,
1279,
838,
6375,
8668,
62,
46817,
62,
1659,
62,
5275,
62,
903,
8228,
796,
352
] |
what is the highest rank with a total less than 1?
|
SELECT MAX("Rank") FROM table_10566 WHERE "Total" < '1'
|
[
10919,
318,
262,
4511,
4279,
351,
257,
2472,
1342,
621,
352,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
13348,
2791,
33411,
366,
14957,
1,
1279,
705,
16,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
10919,
318,
262,
4511,
4279,
351,
257,
2472,
1342,
621,
352,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
13348,
2791,
33411,
366,
14957,
1,
1279,
705,
16,
6
] |
Votes on post by users.
|
SELECT PostId AS "post_link", t.Name, UserId AS "user_link", CreationDate FROM Votes LEFT JOIN VoteTypes AS t ON Votes.VoteTypeId = t.Id WHERE PostId = @PostId
|
[
53,
6421,
319,
1281,
416,
2985,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
256,
13,
5376,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
39584,
12509,
9792,
32357,
1268,
19175,
31431,
7054,
256,
6177,
39584,
13,
37394,
6030,
7390,
796,
256,
13,
7390,
33411,
2947,
7390,
796,
2488,
6307,
7390
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
53,
6421,
319,
1281,
416,
2985,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
256,
13,
5376,
11,
11787,
7390,
7054,
366,
7220,
62,
8726,
1600,
21582,
10430,
16034,
39584,
12509,
9792,
32357,
1268,
19175,
31431,
7054,
256,
6177,
39584,
13,
37394,
6030,
7390,
796,
256,
13,
7390,
33411,
2947,
7390,
796,
2488,
6307,
7390
] |
What was the highest attendance at Junction Oval?
|
SELECT MAX(crowd) FROM table_name_90 WHERE venue = "junction oval"
|
[
2061,
373,
262,
4511,
14858,
379,
44410,
25165,
30,
46506,
25882,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
14359,
796,
366,
73,
4575,
41186,
1
] |
[
1,
1,
1,
1,
1,
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,
4511,
14858,
379,
44410,
25165,
30,
46506,
25882,
7,
66,
3986,
8,
16034,
3084,
62,
3672,
62,
3829,
33411,
14359,
796,
366,
73,
4575,
41186,
1
] |
who was the last player in the top 10 ?
|
SELECT "player" FROM table_203_864 ORDER BY "place" DESC LIMIT 1
|
[
8727,
373,
262,
938,
2137,
287,
262,
1353,
838,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
39570,
38678,
11050,
366,
5372,
1,
22196,
34,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8727,
373,
262,
938,
2137,
287,
262,
1353,
838,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
39570,
38678,
11050,
366,
5372,
1,
22196,
34,
27564,
2043,
352
] |
What is the total when the Yugoslavia number of silver won is more than 1?
|
SELECT MAX("Total") FROM table_66615 WHERE "Silver" > '1' AND "Nation" = 'yugoslavia'
|
[
2061,
318,
262,
2472,
618,
262,
37777,
1271,
286,
8465,
1839,
318,
517,
621,
352,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
27310,
1314,
33411,
366,
26766,
1,
1875,
705,
16,
6,
5357,
366,
46108,
1,
796,
705,
88,
1018,
26388,
544,
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
] |
[
2061,
318,
262,
2472,
618,
262,
37777,
1271,
286,
8465,
1839,
318,
517,
621,
352,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
27310,
1314,
33411,
366,
26766,
1,
1875,
705,
16,
6,
5357,
366,
46108,
1,
796,
705,
88,
1018,
26388,
544,
6
] |
What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
|
SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
[
2061,
389,
262,
3891,
286,
2706,
351,
6426,
1342,
621,
262,
9016,
6426,
286,
597,
11554,
287,
9533,
30,
46506,
1438,
16034,
11372,
33411,
6426,
1279,
357,
46506,
20625,
7,
260,
4080,
8,
16034,
11372,
33411,
1182,
24385,
796,
705,
40245,
11537
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
389,
262,
3891,
286,
2706,
351,
6426,
1342,
621,
262,
9016,
6426,
286,
597,
11554,
287,
9533,
30,
46506,
1438,
16034,
11372,
33411,
6426,
1279,
357,
46506,
20625,
7,
260,
4080,
8,
16034,
11372,
33411,
1182,
24385,
796,
705,
40245,
11537
] |
what is the number of patients whose ethnicity is black/haitian and lab test name is plasma cells?
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND lab.label = "Plasma Cells"
|
[
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
2248,
1332,
1438,
318,
16074,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
9148,
8120,
14,
7801,
2043,
16868,
1,
5357,
2248,
13,
18242,
796,
366,
3646,
11797,
39794,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2248,
1332,
1438,
318,
16074,
4778,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
16728,
13,
18108,
76,
62,
312,
796,
2248,
13,
18108,
76,
62,
312,
33411,
16728,
13,
38546,
414,
796,
366,
9148,
8120,
14,
7801,
2043,
16868,
1,
5357,
2248,
13,
18242,
796,
366,
3646,
11797,
39794,
1
] |
What is the home team at princes park?
|
SELECT home_team FROM table_name_54 WHERE venue = "princes park"
|
[
2061,
318,
262,
1363,
1074,
379,
42676,
3952,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4051,
33411,
14359,
796,
366,
1050,
17386,
3952,
1
] |
[
1,
1,
1,
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,
1363,
1074,
379,
42676,
3952,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4051,
33411,
14359,
796,
366,
1050,
17386,
3952,
1
] |
What is the first track where the production credit is margret arranged by e. mergency?
|
SELECT MIN(track) FROM table_name_98 WHERE production_credits = "margret arranged by e. mergency"
|
[
2061,
318,
262,
717,
2610,
810,
262,
3227,
3884,
318,
6145,
1186,
14921,
416,
304,
13,
4017,
4949,
30,
46506,
20625,
7,
11659,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
3227,
62,
66,
20696,
796,
366,
30887,
1186,
14921,
416,
304,
13,
4017,
4949,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
2610,
810,
262,
3227,
3884,
318,
6145,
1186,
14921,
416,
304,
13,
4017,
4949,
30,
46506,
20625,
7,
11659,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
3227,
62,
66,
20696,
796,
366,
30887,
1186,
14921,
416,
304,
13,
4017,
4949,
1
] |
When was the game with a record of 9-3?
|
SELECT date FROM table_name_65 WHERE record = "9-3"
|
[
2215,
373,
262,
983,
351,
257,
1700,
286,
860,
12,
18,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
1700,
796,
366,
24,
12,
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
] |
[
2215,
373,
262,
983,
351,
257,
1700,
286,
860,
12,
18,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2996,
33411,
1700,
796,
366,
24,
12,
18,
1
] |
what was the title of the only single to not receive top 20 on the uk singles chart ?
|
SELECT "title" FROM table_204_672 WHERE "uk singles chart" > 20
|
[
10919,
373,
262,
3670,
286,
262,
691,
2060,
284,
407,
3328,
1353,
1160,
319,
262,
334,
74,
25287,
8262,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
43864,
33411,
366,
2724,
25287,
8262,
1,
1875,
1160
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
286,
262,
691,
2060,
284,
407,
3328,
1353,
1160,
319,
262,
334,
74,
25287,
8262,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
43864,
33411,
366,
2724,
25287,
8262,
1,
1875,
1160
] |
what was patient 11362 first height in 11/this year?
|
SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11362)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') AND STRFTIME('%m', chartevents.charttime) = '11' ORDER BY chartevents.charttime LIMIT 1
|
[
10919,
373,
5827,
1367,
35667,
717,
6001,
287,
1367,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1367,
35667,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
289,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
5357,
360,
1404,
2767,
12789,
7,
40926,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
8262,
31534,
13,
40926,
2435,
8,
796,
705,
1157,
6,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
1367,
35667,
717,
6001,
287,
1367,
14,
5661,
614,
30,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436,
323,
62,
312,
16034,
14158,
436,
592,
33411,
14158,
436,
592,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1367,
35667,
4008,
5357,
8262,
31534,
13,
9186,
312,
3268,
357,
46506,
288,
62,
23814,
13,
9186,
312,
16034,
288,
62,
23814,
33411,
288,
62,
23814,
13,
18242,
796,
705,
324,
2781,
289,
83,
6,
5357,
288,
62,
23814,
13,
8726,
301,
78,
796,
705,
40926,
31534,
11537,
5357,
360,
1404,
2767,
12789,
7,
40926,
31534,
13,
40926,
2435,
11,
705,
9688,
286,
614,
11537,
796,
360,
1404,
2767,
12789,
7,
34,
39237,
62,
34694,
22784,
705,
9688,
286,
614,
3256,
705,
12,
15,
614,
11537,
5357,
19269,
9792,
12789,
10786,
4,
76,
3256,
8262,
31534,
13,
40926,
2435,
8,
796,
705,
1157,
6,
38678,
11050,
8262,
31534,
13,
40926,
2435,
27564,
2043,
352
] |
What home team played against Richmond?
|
SELECT home_team FROM table_name_73 WHERE away_team = "richmond"
|
[
2061,
1363,
1074,
2826,
1028,
16940,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4790,
33411,
1497,
62,
15097,
796,
366,
7527,
6327,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
1363,
1074,
2826,
1028,
16940,
30,
46506,
1363,
62,
15097,
16034,
3084,
62,
3672,
62,
4790,
33411,
1497,
62,
15097,
796,
366,
7527,
6327,
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 email and salary , and display from low to high by the x-axis.
|
SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL
|
[
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,
3053,
290,
9588,
837,
290,
3359,
422,
1877,
284,
1029,
416,
262,
2124,
12,
22704,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
8,
38678,
11050,
412,
5673,
4146
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3053,
290,
9588,
837,
290,
3359,
422,
1877,
284,
1029,
416,
262,
2124,
12,
22704,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
33411,
5626,
5550,
30709,
10979,
62,
2389,
3268,
357,
46506,
5550,
30709,
10979,
62,
2389,
16034,
13346,
33411,
17254,
4760,
1137,
62,
2389,
38651,
8845,
1677,
1802,
5357,
939,
8,
38678,
11050,
412,
5673,
4146
] |
How many Points have a Drawn smaller than 0?
|
SELECT COUNT("Points") FROM table_5104 WHERE "Drawn" < '0'
|
[
2437,
867,
11045,
423,
257,
50061,
4833,
621,
657,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
20,
13464,
33411,
366,
35,
5791,
1,
1279,
705,
15,
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
] |
[
2437,
867,
11045,
423,
257,
50061,
4833,
621,
657,
30,
46506,
327,
28270,
7203,
40710,
4943,
16034,
3084,
62,
20,
13464,
33411,
366,
35,
5791,
1,
1279,
705,
15,
6
] |
What year was the player pick number 15 picked?
|
SELECT year FROM table_name_23 WHERE pick = "15"
|
[
2061,
614,
373,
262,
2137,
2298,
1271,
1315,
6497,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
1954,
33411,
2298,
796,
366,
1314,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
614,
373,
262,
2137,
2298,
1271,
1315,
6497,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
1954,
33411,
2298,
796,
366,
1314,
1
] |
What is shown for fri 26 aug when mon 22 aug is no time?
|
SELECT fri_26_aug FROM table_30058355_2 WHERE mon_22_aug = "—— No Time"
|
[
2061,
318,
3402,
329,
32803,
2608,
16339,
618,
937,
2534,
16339,
318,
645,
640,
30,
46506,
32803,
62,
2075,
62,
7493,
16034,
3084,
62,
6200,
3365,
28567,
62,
17,
33411,
937,
62,
1828,
62,
7493,
796,
366,
4500,
1400,
3862,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3402,
329,
32803,
2608,
16339,
618,
937,
2534,
16339,
318,
645,
640,
30,
46506,
32803,
62,
2075,
62,
7493,
16034,
3084,
62,
6200,
3365,
28567,
62,
17,
33411,
937,
62,
1828,
62,
7493,
796,
366,
4500,
1400,
3862,
1
] |
What is the lowest year for stage 12, category 1?
|
SELECT MIN("Year") FROM table_45760 WHERE "Category" = '1' AND "Stage" = '12'
|
[
2061,
318,
262,
9016,
614,
329,
3800,
1105,
11,
6536,
352,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
33032,
1899,
33411,
366,
27313,
1,
796,
705,
16,
6,
5357,
366,
29391,
1,
796,
705,
1065,
6
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
2061,
318,
262,
9016,
614,
329,
3800,
1105,
11,
6536,
352,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
33032,
1899,
33411,
366,
27313,
1,
796,
705,
16,
6,
5357,
366,
29391,
1,
796,
705,
1065,
6
] |
Are there registration notes on usek.edu.lb?
|
SELECT official_registration_notes FROM table_1160660_1 WHERE website = "usek.edu.lb"
|
[
8491,
612,
9352,
4710,
319,
779,
74,
13,
15532,
13,
23160,
30,
46506,
1743,
62,
2301,
33397,
62,
17815,
16034,
3084,
62,
1157,
33206,
1899,
62,
16,
33411,
3052,
796,
366,
1904,
74,
13,
15532,
13,
23160,
1
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
8491,
612,
9352,
4710,
319,
779,
74,
13,
15532,
13,
23160,
30,
46506,
1743,
62,
2301,
33397,
62,
17815,
16034,
3084,
62,
1157,
33206,
1899,
62,
16,
33411,
3052,
796,
366,
1904,
74,
13,
15532,
13,
23160,
1
] |
How many episodes were watched by 12.72 million U.S. viewers?
|
SELECT COUNT("Written by") FROM table_72317 WHERE "U.S. viewers (millions)" = '12.72'
|
[
2437,
867,
8640,
547,
7342,
416,
1105,
13,
4761,
1510,
471,
13,
50,
13,
10209,
30,
46506,
327,
28270,
7203,
25354,
416,
4943,
16034,
3084,
62,
22,
1954,
1558,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1065,
13,
4761,
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
] |
[
2437,
867,
8640,
547,
7342,
416,
1105,
13,
4761,
1510,
471,
13,
50,
13,
10209,
30,
46506,
327,
28270,
7203,
25354,
416,
4943,
16034,
3084,
62,
22,
1954,
1558,
33411,
366,
52,
13,
50,
13,
10209,
357,
17805,
507,
16725,
796,
705,
1065,
13,
4761,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.