instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
what was the name of the drug prescribed to patient 20801, two times until 09/2105? | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20801) AND STRFTIME('%y-%m', prescriptions.startdate) <= '2105-09' GROUP BY prescriptions.drug) AS t1 WHERE t1.c... | [
10919,
373,
262,
1438,
286,
262,
2563,
14798,
284,
5827,
27121,
486,
11,
734,
1661,
1566,
7769,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
2563,
14798,
284,
5827,
27121,
486,
11,
734,
1661,
1566,
7769,
14,
17,
13348,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
327,
28270,
7,
18302,
24370,
13,
9688,
4475,
8,
7... |
does patient 15760 have a male or female gender? | SELECT patients.gender FROM patients WHERE patients.subject_id = 15760 | [
22437,
5827,
23313,
1899,
423,
257,
4257,
393,
4048,
5279,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
23313,
1899
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22437,
5827,
23313,
1899,
423,
257,
4257,
393,
4048,
5279,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
23313,
1899
] |
Return a bar chart about the distribution of ACC_Road and the sum of School_ID , and group by attribute ACC_Road, display in asc by the total number of school id. | SELECT ACC_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(School_ID) | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
3359,
287,
10570,
416,
262,
2472,
1271,
286,
1524,
4686,
13,
46506,
15859,
62,
29197... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2160,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
3359,
287,
10570,
416,
262,
2472,
1271,
286,
1524,
4686,
13,
46506,
15859,
62,
29197... |
Which week's game was attended by 33,057 people? | SELECT "Week" FROM table_51484 WHERE "Attendance" = '33,057' | [
13828,
1285,
338,
983,
373,
9141,
416,
4747,
11,
43526,
661,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
47396,
5705,
33411,
366,
8086,
437,
590,
1,
796,
705,
2091,
11,
43526,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1285,
338,
983,
373,
9141,
416,
4747,
11,
43526,
661,
30,
46506,
366,
20916,
1,
16034,
3084,
62,
47396,
5705,
33411,
366,
8086,
437,
590,
1,
796,
705,
2091,
11,
43526,
6
] |
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? | SELECT "1995" FROM table_62770 WHERE "1997" = 'lq' AND "1989" = '1r' | [
2061,
318,
8735,
5675,
30382,
9595,
611,
8309,
318,
406,
48,
290,
11104,
318,
352,
49,
30,
46506,
366,
21908,
1,
16034,
3084,
62,
49856,
2154,
33411,
366,
21498,
1,
796,
705,
75,
80,
6,
5357,
366,
25475,
1,
796,
705,
16,
81,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
8735,
5675,
30382,
9595,
611,
8309,
318,
406,
48,
290,
11104,
318,
352,
49,
30,
46506,
366,
21908,
1,
16034,
3084,
62,
49856,
2154,
33411,
366,
21498,
1,
796,
705,
75,
80,
6,
5357,
366,
25475,
1,
796,
705,
16,
81,
6
] |
how many wins are there in total ? | SELECT COUNT(*) FROM table_204_53 WHERE "result" = 'win' | [
4919,
867,
7864,
389,
612,
287,
2472,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
4310,
33411,
366,
20274,
1,
796,
705,
5404,
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
] | [
4919,
867,
7864,
389,
612,
287,
2472,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
4310,
33411,
366,
20274,
1,
796,
705,
5404,
6
] |
Which Score has a Couple of cristi n & cheryl, and a Style of cha-cha-cha? | SELECT "Score" FROM table_38754 WHERE "Couple" = 'cristián & cheryl' AND "Style" = 'cha-cha-cha' | [
13828,
15178,
468,
257,
15062,
1154,
286,
1067,
396,
72,
299,
1222,
21382,
2645,
11,
290,
257,
17738,
286,
17792,
12,
11693,
12,
11693,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2548,
41874,
33411,
366,
34,
43846,
1,
796,
705,
66,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
468,
257,
15062,
1154,
286,
1067,
396,
72,
299,
1222,
21382,
2645,
11,
290,
257,
17738,
286,
17792,
12,
11693,
12,
11693,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2548,
41874,
33411,
366,
34,
43846,
1,
796,
705,
66,
... |
Who was the winner against Lindsay Davenport? | SELECT winner FROM table_name_42 WHERE finalist = "lindsay davenport" | [
8241,
373,
262,
8464,
1028,
33127,
360,
4005,
634,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
3682,
33411,
2457,
396,
796,
366,
75,
521,
16706,
288,
4005,
634,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
8464,
1028,
33127,
360,
4005,
634,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
3682,
33411,
2457,
396,
796,
366,
75,
521,
16706,
288,
4005,
634,
1
] |
calculate the total amount of input patient 3273 receives on the last icu visit. | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3273) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) | [
9948,
3129,
378,
262,
2472,
2033,
286,
5128,
5827,
513,
27367,
11583,
319,
262,
938,
14158,
84,
3187,
13,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
2472,
2033,
286,
5128,
5827,
513,
27367,
11583,
319,
262,
938,
14158,
84,
3187,
13,
46506,
35683,
7,
259,
79,
1133,
85,
658,
62,
33967,
13,
17287,
8,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
... |
Show the locations that have at least two performances. | SELECT location FROM performance GROUP BY location HAVING COUNT(*) >= 2 | [
15307,
262,
7064,
326,
423,
379,
1551,
734,
13289,
13,
46506,
4067,
16034,
2854,
44441,
11050,
4067,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
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
] | [
15307,
262,
7064,
326,
423,
379,
1551,
734,
13289,
13,
46506,
4067,
16034,
2854,
44441,
11050,
4067,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362
] |
what is the date when the score is 115-93? | SELECT "Date" FROM table_49109 WHERE "Score" = '115-93' | [
10919,
318,
262,
3128,
618,
262,
4776,
318,
12279,
12,
6052,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2920,
14454,
33411,
366,
26595,
1,
796,
705,
15363,
12,
6052,
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
] | [
10919,
318,
262,
3128,
618,
262,
4776,
318,
12279,
12,
6052,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2920,
14454,
33411,
366,
26595,
1,
796,
705,
15363,
12,
6052,
6
] |
Tell me the opponent for attendance of 68,264 | SELECT "Opponent" FROM table_31766 WHERE "Attendance" = '68,264' | [
24446,
502,
262,
6125,
329,
14858,
286,
8257,
11,
18897,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
34125,
2791,
33411,
366,
8086,
437,
590,
1,
796,
705,
3104,
11,
18897,
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
] | [
24446,
502,
262,
6125,
329,
14858,
286,
8257,
11,
18897,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
34125,
2791,
33411,
366,
8086,
437,
590,
1,
796,
705,
3104,
11,
18897,
6
] |
When jordan fa cup is the tournament how many draws? | SELECT COUNT(draws) FROM table_2985714_2 WHERE tournament = "Jordan FA Cup" | [
2215,
474,
7350,
24685,
6508,
318,
262,
7756,
703,
867,
14293,
30,
46506,
327,
28270,
7,
19334,
82,
8,
16034,
3084,
62,
27728,
3553,
1415,
62,
17,
33411,
7756,
796,
366,
34522,
9677,
5454,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
7350,
24685,
6508,
318,
262,
7756,
703,
867,
14293,
30,
46506,
327,
28270,
7,
19334,
82,
8,
16034,
3084,
62,
27728,
3553,
1415,
62,
17,
33411,
7756,
796,
366,
34522,
9677,
5454,
1
] |
who is the the place with per capita income being $14,793 | SELECT "Place" FROM table_18765 WHERE "Per Capita Income" = '$14,793' | [
8727,
318,
262,
262,
1295,
351,
583,
21344,
3739,
852,
720,
1415,
11,
44750,
46506,
366,
27271,
1,
16034,
3084,
62,
23451,
2996,
33411,
366,
5990,
4476,
5350,
19003,
1,
796,
705,
3,
1415,
11,
44750,
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
] | [
8727,
318,
262,
262,
1295,
351,
583,
21344,
3739,
852,
720,
1415,
11,
44750,
46506,
366,
27271,
1,
16034,
3084,
62,
23451,
2996,
33411,
366,
5990,
4476,
5350,
19003,
1,
796,
705,
3,
1415,
11,
44750,
6
] |
how many people attended the last game ? | SELECT "attendance" FROM table_204_197 ORDER BY "date" DESC LIMIT 1 | [
4919,
867,
661,
9141,
262,
938,
983,
5633,
46506,
366,
1078,
437,
590,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
4475,
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
] | [
4919,
867,
661,
9141,
262,
938,
983,
5633,
46506,
366,
1078,
437,
590,
1,
16034,
3084,
62,
18638,
62,
24991,
38678,
11050,
366,
4475,
1,
22196,
34,
27564,
2043,
352
] |
what was the total amount of po oral intake that patient 029-27704 had on 05/27/2105? | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '029-27704')) AND intakeoutput.celllabel = 'po or... | [
10919,
373,
262,
2472,
2033,
286,
745,
12886,
10337,
326,
5827,
657,
1959,
12,
1983,
32869,
550,
319,
8870,
14,
1983,
14,
17,
13348,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2472,
2033,
286,
745,
12886,
10337,
326,
5827,
657,
1959,
12,
1983,
32869,
550,
319,
8870,
14,
1983,
14,
17,
13348,
30,
46506,
35683,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411,
... |
What is the total that South Africa had a par greater than 14 | SELECT SUM(total) FROM table_name_25 WHERE country = "south africa" AND to_par > 14 | [
2061,
318,
262,
2472,
326,
2520,
5478,
550,
257,
1582,
3744,
621,
1478,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1499,
796,
366,
35782,
6580,
30997,
1,
5357,
284,
62,
1845,
1875,
1478
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
326,
2520,
5478,
550,
257,
1582,
3744,
621,
1478,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1499,
796,
366,
35782,
6580,
30997,
1,
5357,
284,
62,
1845,
1875,
1478
] |
What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes? | SELECT AVG("Launches") FROM table_35717 WHERE "Failures" = '0' AND "Rocket" = 'soyuz' AND "Successes" < '12' | [
2061,
389,
2811,
18617,
351,
657,
15536,
11,
10701,
286,
30022,
10277,
11,
290,
1342,
621,
1105,
23682,
30,
46506,
35224,
7203,
46182,
2052,
4943,
16034,
3084,
62,
27277,
1558,
33411,
366,
39044,
942,
1,
796,
705,
15,
6,
5357,
366,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
18617,
351,
657,
15536,
11,
10701,
286,
30022,
10277,
11,
290,
1342,
621,
1105,
23682,
30,
46506,
35224,
7203,
46182,
2052,
4943,
16034,
3084,
62,
27277,
1558,
33411,
366,
39044,
942,
1,
796,
705,
15,
6,
5357,
366,
50... |
Who directed the episode with a production code of 4WAB05? | SELECT directedby FROM table_20726262_5 WHERE production_code = "4WAB05" | [
8241,
7924,
262,
4471,
351,
257,
3227,
2438,
286,
604,
54,
6242,
2713,
30,
46506,
7924,
1525,
16034,
3084,
62,
22745,
2075,
29119,
62,
20,
33411,
3227,
62,
8189,
796,
366,
19,
54,
6242,
2713,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
7924,
262,
4471,
351,
257,
3227,
2438,
286,
604,
54,
6242,
2713,
30,
46506,
7924,
1525,
16034,
3084,
62,
22745,
2075,
29119,
62,
20,
33411,
3227,
62,
8189,
796,
366,
19,
54,
6242,
2713,
1
] |
What episode number is the episode 'bringing back the doctor'? | SELECT "Episode #" FROM table_20886 WHERE "Episode title" = 'Bringing Back the Doctor' | [
2061,
4471,
1271,
318,
262,
4471,
705,
35749,
736,
262,
6253,
30960,
46506,
366,
23758,
1303,
1,
16034,
3084,
62,
1238,
44980,
33411,
366,
23758,
3670,
1,
796,
705,
31416,
278,
5157,
262,
9356,
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,
4471,
1271,
318,
262,
4471,
705,
35749,
736,
262,
6253,
30960,
46506,
366,
23758,
1303,
1,
16034,
3084,
62,
1238,
44980,
33411,
366,
23758,
3670,
1,
796,
705,
31416,
278,
5157,
262,
9356,
6
] |
Bin the hire date into the day of week interval, and then calculate the average salary of employees in each day for a bar chart, note that just select those employees without the letter M in their first name. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' | [
33,
259,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
11,
290,
788,
15284,
262,
2811,
9588,
286,
4409,
287,
1123,
1110,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33,
259,
262,
11078,
3128,
656,
262,
1110,
286,
1285,
16654,
11,
290,
788,
15284,
262,
2811,
9588,
286,
4409,
287,
1123,
1110,
329,
257,
2318,
8262,
11,
3465,
326,
655,
2922,
883,
4409,
1231,
262,
3850,
337,
287,
511,
717,
1438,
13,... |
How many weeks has the opponent been san francisco 49ers? | SELECT COUNT(week) FROM table_name_65 WHERE opponent = "san francisco 49ers" | [
2437,
867,
2745,
468,
262,
6125,
587,
5336,
46754,
4861,
5125,
364,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
6125,
796,
366,
12807,
46754,
4861,
5125,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2745,
468,
262,
6125,
587,
5336,
46754,
4861,
5125,
364,
30,
46506,
327,
28270,
7,
10464,
8,
16034,
3084,
62,
3672,
62,
2996,
33411,
6125,
796,
366,
12807,
46754,
4861,
5125,
364,
1
] |
when was the first time for a medication prescribed to patient 70950 since 56 months ago? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 70950) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-56 month') ORDER BY prescriptions.startdate LIMIT 1 | [
12518,
373,
262,
717,
640,
329,
257,
14103,
14798,
284,
5827,
767,
2931,
1120,
1201,
7265,
1933,
2084,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
717,
640,
329,
257,
14103,
14798,
284,
5827,
767,
2931,
1120,
1201,
7265,
1933,
2084,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
3... |
What is the length of the highway with the route name sh 2? | SELECT length FROM table_name_57 WHERE route_name = "sh 2" | [
2061,
318,
262,
4129,
286,
262,
12763,
351,
262,
6339,
1438,
427,
362,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
3553,
33411,
6339,
62,
3672,
796,
366,
1477,
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
] | [
2061,
318,
262,
4129,
286,
262,
12763,
351,
262,
6339,
1438,
427,
362,
30,
46506,
4129,
16034,
3084,
62,
3672,
62,
3553,
33411,
6339,
62,
3672,
796,
366,
1477,
362,
1
] |
All Votes by Tag for a User. | WITH tagBadge AS (SELECT Name, COUNT(Id) AS badge_count FROM Badges GROUP BY Name), metrics AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(Tags.Id) DESC) AS rank, TagName, COUNT(Tags.Id) AS UpVotes, badge_count FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId ... | [
3237,
39584,
416,
17467,
329,
257,
11787,
13,
54,
10554,
7621,
22069,
469,
7054,
357,
46506,
6530,
11,
327,
28270,
7,
7390,
8,
7054,
23009,
62,
9127,
16034,
7772,
3212,
44441,
11050,
6530,
828,
20731,
7054,
357,
46506,
371,
3913,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3237,
39584,
416,
17467,
329,
257,
11787,
13,
54,
10554,
7621,
22069,
469,
7054,
357,
46506,
6530,
11,
327,
28270,
7,
7390,
8,
7054,
23009,
62,
9127,
16034,
7772,
3212,
44441,
11050,
6530,
828,
20731,
7054,
357,
46506,
371,
3913,
62,
... |
The candidate who received 133 votes in the Bronx won what percentage overall? | SELECT "%" FROM table_135 WHERE "The Bronx" = '133' | [
464,
4540,
508,
2722,
22169,
5690,
287,
262,
32486,
1839,
644,
5873,
4045,
30,
46506,
36521,
1,
16034,
3084,
62,
17059,
33411,
366,
464,
32486,
1,
796,
705,
16945,
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
] | [
464,
4540,
508,
2722,
22169,
5690,
287,
262,
32486,
1839,
644,
5873,
4045,
30,
46506,
36521,
1,
16034,
3084,
62,
17059,
33411,
366,
464,
32486,
1,
796,
705,
16945,
6
] |
What is the number of total offense when the opponentis Penn State? | SELECT MAX(total_offense) FROM table_28697228_4 WHERE opponent = "Penn State" | [
2061,
318,
262,
1271,
286,
2472,
6907,
618,
262,
6125,
271,
6595,
1812,
30,
46506,
25882,
7,
23350,
62,
2364,
1072,
8,
16034,
3084,
62,
2078,
40035,
23815,
62,
19,
33411,
6125,
796,
366,
39899,
1812,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1271,
286,
2472,
6907,
618,
262,
6125,
271,
6595,
1812,
30,
46506,
25882,
7,
23350,
62,
2364,
1072,
8,
16034,
3084,
62,
2078,
40035,
23815,
62,
19,
33411,
6125,
796,
366,
39899,
1812,
1
] |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, and show Y from low to high order. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
905,
575,
422,
1877,
284,
1029,
1502,
13,
46506,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
905,
575,
422,
1877,
284,
1029,
1502,
13,
46506,
30... |
Name where bethany college is | SELECT "Location" FROM table_28468 WHERE "Institution" = 'Bethany College' | [
5376,
810,
307,
400,
1092,
4152,
318,
46506,
366,
14749,
1,
16034,
3084,
62,
30336,
3104,
33411,
366,
6310,
2738,
1,
796,
705,
33,
2788,
1092,
5535,
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,
810,
307,
400,
1092,
4152,
318,
46506,
366,
14749,
1,
16034,
3084,
62,
30336,
3104,
33411,
366,
6310,
2738,
1,
796,
705,
33,
2788,
1092,
5535,
6
] |
what is procedure icd9 code and procedure short title of subject id 4333? | SELECT procedures.icd9_code, procedures.short_title FROM procedures WHERE procedures.subject_id = "4333" | [
10919,
318,
8771,
14158,
67,
24,
2438,
290,
8771,
1790,
3670,
286,
2426,
4686,
604,
20370,
30,
46506,
9021,
13,
291,
67,
24,
62,
8189,
11,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
19,
20370,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
8771,
14158,
67,
24,
2438,
290,
8771,
1790,
3670,
286,
2426,
4686,
604,
20370,
30,
46506,
9021,
13,
291,
67,
24,
62,
8189,
11,
9021,
13,
19509,
62,
7839,
16034,
9021,
33411,
9021,
13,
32796,
62,
312,
796,
366,
19,
20370,... |
With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks? | SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = "1.97 million" AND finale > 33 | [
3152,
352,
13,
5607,
1510,
31440,
10209,
290,
257,
19523,
517,
621,
4747,
11,
644,
373,
262,
2472,
1271,
286,
25740,
30,
46506,
327,
28270,
7,
36729,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
289,
74,
62,
1177,
364,
796,
366,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
352,
13,
5607,
1510,
31440,
10209,
290,
257,
19523,
517,
621,
4747,
11,
644,
373,
262,
2472,
1271,
286,
25740,
30,
46506,
327,
28270,
7,
36729,
8,
16034,
3084,
62,
3672,
62,
1433,
33411,
289,
74,
62,
1177,
364,
796,
366,
16,
... |
Which opponent led to a record of 10-6? | SELECT "Opponent" FROM table_39779 WHERE "Record" = '10-6' | [
13828,
6125,
2957,
284,
257,
1700,
286,
838,
12,
21,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2670,
40393,
33411,
366,
23739,
1,
796,
705,
940,
12,
21,
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,
6125,
2957,
284,
257,
1700,
286,
838,
12,
21,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
2670,
40393,
33411,
366,
23739,
1,
796,
705,
940,
12,
21,
6
] |
what is the date of birth and admission time of subject name jerry deberry? | SELECT demographic.dob, demographic.admittime FROM demographic WHERE demographic.name = "Jerry Deberry" | [
10919,
318,
262,
3128,
286,
4082,
290,
13938,
640,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
286,
4082,
290,
13938,
640,
286,
2426,
1438,
474,
6996,
390,
8396,
30,
46506,
16728,
13,
67,
672,
11,
16728,
13,
324,
20124,
524,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
43462,
1024,
8396,
1
] |
What was the attendance for week 2? | SELECT "Attendance" FROM table_76803 WHERE "Week" = '2' | [
2061,
373,
262,
14858,
329,
1285,
362,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
4304,
43564,
33411,
366,
20916,
1,
796,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14858,
329,
1285,
362,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
4304,
43564,
33411,
366,
20916,
1,
796,
705,
17,
6
] |
What are the number of the dates that have an average sea level pressure between 303 and 31?, I want to rank y-axis in asc order please. | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 ORDER BY COUNT(date) | [
2061,
389,
262,
1271,
286,
262,
9667,
326,
423,
281,
2811,
5417,
1241,
3833,
1022,
30727,
290,
3261,
21747,
314,
765,
284,
4279,
331,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
1271,
286,
262,
9667,
326,
423,
281,
2811,
5417,
1241,
3833,
1022,
30727,
290,
3261,
21747,
314,
765,
284,
4279,
331,
12,
22704,
287,
10570,
1502,
3387,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
33411,
... |
What is the total population in 2010 for the township located in Mountrail which has land less than 34.424 sq miles and a GEO ID less than 3806159940? | SELECT SUM("Pop. (2010)") FROM table_63856 WHERE "Land ( sqmi )" < '34.424' AND "County" = 'mountrail' AND "GEO ID" < '3806159940' | [
2061,
318,
262,
2472,
3265,
287,
3050,
329,
262,
42823,
5140,
287,
5628,
30224,
543,
468,
1956,
1342,
621,
4974,
13,
40090,
19862,
4608,
290,
257,
402,
4720,
4522,
1342,
621,
29101,
47007,
2079,
1821,
30,
46506,
35683,
7203,
16979,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2472,
3265,
287,
3050,
329,
262,
42823,
5140,
287,
5628,
30224,
543,
468,
1956,
1342,
621,
4974,
13,
40090,
19862,
4608,
290,
257,
402,
4720,
4522,
1342,
621,
29101,
47007,
2079,
1821,
30,
46506,
35683,
7203,
16979,
13,
... |
What is the sum of rounds that has a pick of 9 and is named jim pyburn? | SELECT SUM(round) FROM table_name_62 WHERE pick = 9 AND name = "jim pyburn" | [
2061,
318,
262,
2160,
286,
9196,
326,
468,
257,
2298,
286,
860,
290,
318,
3706,
474,
320,
12972,
10899,
30,
46506,
35683,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2298,
796,
860,
5357,
1438,
796,
366,
73,
320,
12972,
10899... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9196,
326,
468,
257,
2298,
286,
860,
290,
318,
3706,
474,
320,
12972,
10899,
30,
46506,
35683,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
2298,
796,
860,
5357,
1438,
796,
366,
73,
320,
12972,
10899... |
mention the drug name of the drug code digo25? | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "DIGO25" | [
434,
295,
262,
2563,
1438,
286,
262,
2563,
2438,
3100,
78,
1495,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
35,
3528,
46,
1495,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
434,
295,
262,
2563,
1438,
286,
262,
2563,
2438,
3100,
78,
1495,
30,
46506,
34092,
13,
30349,
16034,
34092,
33411,
34092,
13,
687,
377,
560,
62,
30349,
62,
10210,
796,
366,
35,
3528,
46,
1495,
1
] |
What were the investment earnings in a year when total revenue was $21,779,618? | SELECT "Investment Earnings" FROM table_51367 WHERE "Total Revenue" = '21,779,618' | [
2061,
547,
262,
4896,
12042,
287,
257,
614,
618,
2472,
6426,
373,
720,
2481,
11,
40393,
11,
47448,
30,
46506,
366,
19070,
434,
22535,
654,
1,
16034,
3084,
62,
48645,
3134,
33411,
366,
14957,
20197,
1,
796,
705,
2481,
11,
40393,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
4896,
12042,
287,
257,
614,
618,
2472,
6426,
373,
720,
2481,
11,
40393,
11,
47448,
30,
46506,
366,
19070,
434,
22535,
654,
1,
16034,
3084,
62,
48645,
3134,
33411,
366,
14957,
20197,
1,
796,
705,
2481,
11,
40393,
11,
... |
Name the Theaters that has a Rank larger than 7? | SELECT MAX("Theaters") FROM table_44938 WHERE "Rank" > '7' | [
5376,
262,
383,
8605,
326,
468,
257,
10916,
4025,
621,
767,
30,
46506,
25882,
7203,
464,
8605,
4943,
16034,
3084,
62,
31911,
2548,
33411,
366,
27520,
1,
1875,
705,
22,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
383,
8605,
326,
468,
257,
10916,
4025,
621,
767,
30,
46506,
25882,
7203,
464,
8605,
4943,
16034,
3084,
62,
31911,
2548,
33411,
366,
27520,
1,
1875,
705,
22,
6
] |
What is the minimum of t20 matches? | SELECT MIN("T20 matches") FROM table_17175 | [
2061,
318,
262,
5288,
286,
256,
1238,
7466,
30,
46506,
20625,
7203,
51,
1238,
7466,
4943,
16034,
3084,
62,
1558,
17430
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5288,
286,
256,
1238,
7466,
30,
46506,
20625,
7203,
51,
1238,
7466,
4943,
16034,
3084,
62,
1558,
17430
] |
which Construction is named heng-hai? | SELECT "Construction" FROM table_64821 WHERE "Name (Wade Giles)" = 'heng-hai' | [
4758,
20395,
318,
3706,
339,
782,
12,
44488,
30,
46506,
366,
36687,
1,
16034,
3084,
62,
34287,
2481,
33411,
366,
5376,
357,
54,
671,
37538,
16725,
796,
705,
31753,
12,
44488,
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
] | [
4758,
20395,
318,
3706,
339,
782,
12,
44488,
30,
46506,
366,
36687,
1,
16034,
3084,
62,
34287,
2481,
33411,
366,
5376,
357,
54,
671,
37538,
16725,
796,
705,
31753,
12,
44488,
6
] |
has any microbiology test been performed on patient 031-23724 the last year? | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-23724')) AND DATETIME(microlab.culturetakentime, 'start of year') = DATETI... | [
10134,
597,
24559,
1435,
1332,
587,
6157,
319,
5827,
657,
3132,
12,
24693,
1731,
262,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
597,
24559,
1435,
1332,
587,
6157,
319,
5827,
657,
3132,
12,
24693,
1731,
262,
938,
614,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13... |
What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins? | SELECT MIN(against) FROM table_name_33 WHERE wins < 16 AND wimmera_fl = "warrack eagles" | [
2061,
318,
262,
9016,
1028,
286,
262,
266,
10957,
64,
781,
32207,
441,
304,
37803,
11,
543,
423,
1342,
621,
1467,
7864,
30,
46506,
20625,
7,
32826,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
7864,
1279,
1467,
5357,
266,
10957,
64,
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
] | [
2061,
318,
262,
9016,
1028,
286,
262,
266,
10957,
64,
781,
32207,
441,
304,
37803,
11,
543,
423,
1342,
621,
1467,
7864,
30,
46506,
20625,
7,
32826,
8,
16034,
3084,
62,
3672,
62,
2091,
33411,
7864,
1279,
1467,
5357,
266,
10957,
64,
6... |
What is the award type for all Lowe awards? | SELECT award FROM table_name_1 WHERE name = "lowe" | [
2061,
318,
262,
5764,
2099,
329,
477,
34241,
13304,
30,
46506,
5764,
16034,
3084,
62,
3672,
62,
16,
33411,
1438,
796,
366,
9319,
68,
1
] | [
1,
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,
5764,
2099,
329,
477,
34241,
13304,
30,
46506,
5764,
16034,
3084,
62,
3672,
62,
16,
33411,
1438,
796,
366,
9319,
68,
1
] |
what are the four year survival rates of patients who had been prescribed potassium chloride inj 2 meq/ml vial after having been diagnosed with acute respiratory distress? | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid... | [
10919,
389,
262,
1440,
614,
9441,
3965,
286,
3871,
508,
550,
587,
14798,
33156,
44921,
2529,
362,
502,
80,
14,
4029,
410,
498,
706,
1719,
587,
14641,
351,
14352,
22949,
17087,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
9441,
3965,
286,
3871,
508,
550,
587,
14798,
33156,
44921,
2529,
362,
502,
80,
14,
4029,
410,
498,
706,
1719,
587,
14641,
351,
14352,
22949,
17087,
30,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
63... |
what builder launched 20 jun 1953? | SELECT "Builder" FROM table_34150 WHERE "Launched" = '20 jun 1953' | [
10919,
27098,
5611,
1160,
10891,
24217,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2682,
8628,
33411,
366,
46182,
1740,
1,
796,
705,
1238,
10891,
24217,
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
] | [
10919,
27098,
5611,
1160,
10891,
24217,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
2682,
8628,
33411,
366,
46182,
1740,
1,
796,
705,
1238,
10891,
24217,
6
] |
In which week was the game played on October 12, 1975 and the crowd was larger than 44,043? | SELECT COUNT("Week") FROM table_51003 WHERE "Date" = 'october 12, 1975' AND "Attendance" > '44,043' | [
818,
543,
1285,
373,
262,
983,
2826,
319,
3267,
1105,
11,
15231,
290,
262,
4315,
373,
4025,
621,
5846,
11,
48768,
30,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
20,
3064,
18,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
543,
1285,
373,
262,
983,
2826,
319,
3267,
1105,
11,
15231,
290,
262,
4315,
373,
4025,
621,
5846,
11,
48768,
30,
46506,
327,
28270,
7203,
20916,
4943,
16034,
3084,
62,
20,
3064,
18,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
... |
What's the Date of Issue for Design of Katalin Kovats? | SELECT "Date of Issue" FROM table_54130 WHERE "Design" = 'katalin kovats' | [
2061,
338,
262,
7536,
286,
18232,
329,
8495,
286,
8595,
14414,
43326,
1381,
30,
46506,
366,
10430,
286,
18232,
1,
16034,
3084,
62,
20,
3901,
1270,
33411,
366,
23067,
1,
796,
705,
74,
10254,
259,
479,
709,
1381,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
7536,
286,
18232,
329,
8495,
286,
8595,
14414,
43326,
1381,
30,
46506,
366,
10430,
286,
18232,
1,
16034,
3084,
62,
20,
3901,
1270,
33411,
366,
23067,
1,
796,
705,
74,
10254,
259,
479,
709,
1381,
6
] |
Which runner-up placed in a year prior to 2006 and whose Champion was Elon? | SELECT runner_up FROM table_name_66 WHERE year < 2006 AND champion = "elon" | [
13828,
17490,
12,
929,
4624,
287,
257,
614,
3161,
284,
4793,
290,
3025,
15869,
373,
32451,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
2791,
33411,
614,
1279,
4793,
5357,
8783,
796,
366,
417,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
17490,
12,
929,
4624,
287,
257,
614,
3161,
284,
4793,
290,
3025,
15869,
373,
32451,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
2791,
33411,
614,
1279,
4793,
5357,
8783,
796,
366,
417,
261,
1
] |
Which year is the lowest for genre of action-adventure? | SELECT MIN("Year") FROM table_65244 WHERE "Genre" = 'action-adventure' | [
13828,
614,
318,
262,
9016,
329,
12121,
286,
2223,
12,
324,
5388,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2996,
25707,
33411,
366,
13746,
260,
1,
796,
705,
2673,
12,
324,
5388,
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,
614,
318,
262,
9016,
329,
12121,
286,
2223,
12,
324,
5388,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2996,
25707,
33411,
366,
13746,
260,
1,
796,
705,
2673,
12,
324,
5388,
6
] |
What is the call sign for 90.9 FM which is in Florida? | SELECT "Call sign" FROM table_77344 WHERE "State" = 'florida' AND "Frequency" = '90.9 fm' | [
2061,
318,
262,
869,
1051,
329,
4101,
13,
24,
18695,
543,
318,
287,
4744,
30,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
3324,
33535,
33411,
366,
9012,
1,
796,
705,
2704,
273,
3755,
6,
5357,
366,
37,
28707,
1,
796,
705,
3829,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
869,
1051,
329,
4101,
13,
24,
18695,
543,
318,
287,
4744,
30,
46506,
366,
14134,
1051,
1,
16034,
3084,
62,
3324,
33535,
33411,
366,
9012,
1,
796,
705,
2704,
273,
3755,
6,
5357,
366,
37,
28707,
1,
796,
705,
3829,
13... |
Who was the constructor when the grid was 11? | SELECT constructor FROM table_name_74 WHERE grid = 11 | [
8241,
373,
262,
23772,
618,
262,
10706,
373,
1367,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
4524,
33411,
10706,
796,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
23772,
618,
262,
10706,
373,
1367,
30,
46506,
23772,
16034,
3084,
62,
3672,
62,
4524,
33411,
10706,
796,
1367
] |
What is the average wins has Top-25 less than 0? | SELECT AVG("Wins") FROM table_41863 WHERE "Top-25" < '0' | [
2061,
318,
262,
2811,
7864,
468,
5849,
12,
1495,
1342,
621,
657,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
39667,
5066,
33411,
366,
9126,
12,
1495,
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,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
7864,
468,
5849,
12,
1495,
1342,
621,
657,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
39667,
5066,
33411,
366,
9126,
12,
1495,
1,
1279,
705,
15,
6
] |
What is the total quantity of populace (2010) where location (km ) is 134.51 | SELECT COUNT("Population (2010)") FROM table_73802 WHERE "Area (km\u00b2)" = '134.51' | [
2061,
318,
262,
2472,
12040,
286,
39003,
357,
10333,
8,
810,
4067,
357,
13276,
1267,
318,
22352,
13,
4349,
46506,
327,
28270,
7203,
45251,
357,
10333,
8,
4943,
16034,
3084,
62,
4790,
30863,
33411,
366,
30547,
357,
13276,
59,
84,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
12040,
286,
39003,
357,
10333,
8,
810,
4067,
357,
13276,
1267,
318,
22352,
13,
4349,
46506,
327,
28270,
7203,
45251,
357,
10333,
8,
4943,
16034,
3084,
62,
4790,
30863,
33411,
366,
30547,
357,
13276,
59,
84,
405,
... |
Tell me the number of patients who had elective hospital admissions and other body fluid lab tests. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.fluid = "Other Body Fluid" | [
24446,
502,
262,
1271,
286,
3871,
508,
550,
1742,
425,
4436,
25349,
290,
584,
1767,
11711,
2248,
5254,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
24446,
502,
262,
1271,
286,
3871,
508,
550,
1742,
425,
4436,
25349,
290,
584,
1767,
11711,
2248,
5254,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177,
1... |
On what Date is the match played on Clay Surface with a Score in the final of 6 2, 7 5? | SELECT "Date" FROM table_59150 WHERE "Surface" = 'clay' AND "Score in the final" = '6–2, 7–5' | [
2202,
644,
7536,
318,
262,
2872,
2826,
319,
15551,
20321,
351,
257,
15178,
287,
262,
2457,
286,
718,
362,
11,
767,
642,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3270,
8628,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
7536,
318,
262,
2872,
2826,
319,
15551,
20321,
351,
257,
15178,
287,
262,
2457,
286,
718,
362,
11,
767,
642,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3270,
8628,
33411,
366,
14214,
2550,
1,
796,
705,
565,
323,
6,
5357,
... |
How many stores are there? | SELECT COUNT(*) FROM store | [
2437,
867,
7000,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
3650
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
7000,
389,
612,
30,
46506,
327,
28270,
7,
28104,
16034,
3650
] |
what was the name of the medicine that was prescribed to patient 025-53538 during the previous month for the last time? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-53538')) AND DATETIME(medication.drugstarttime, 'start of month... | [
10919,
373,
262,
1438,
286,
262,
9007,
326,
373,
14798,
284,
5827,
657,
1495,
12,
44465,
2548,
1141,
262,
2180,
1227,
329,
262,
938,
640,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
9007,
326,
373,
14798,
284,
5827,
657,
1495,
12,
44465,
2548,
1141,
262,
2180,
1227,
329,
262,
938,
640,
30,
46506,
14103,
13,
30349,
3672,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,... |
Visualize a bar chart for simply displaying the email address of the employee and the corresponding salary, sort total number in asc order. | SELECT EMAIL, SALARY FROM employees ORDER BY SALARY | [
36259,
1096,
257,
2318,
8262,
329,
2391,
19407,
262,
3053,
2209,
286,
262,
6538,
290,
262,
11188,
9588,
11,
3297,
2472,
1271,
287,
10570,
1502,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
42475,
13153
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3297,
2472,
1271,
287,
10570,
1502,
13,
46506,
412,
5673,
4146,
11,
42475,
13153,
16034,
4409,
38678,
11050,
42475,
13153
] |
What is the top goal for the result of 2 3? | SELECT MAX("Goal") FROM table_33138 WHERE "Result" = '2–3' | [
2061,
318,
262,
1353,
3061,
329,
262,
1255,
286,
362,
513,
30,
46506,
25882,
7203,
49045,
4943,
16034,
3084,
62,
2091,
20107,
33411,
366,
23004,
1,
796,
705,
17,
1906,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1353,
3061,
329,
262,
1255,
286,
362,
513,
30,
46506,
25882,
7203,
49045,
4943,
16034,
3084,
62,
2091,
20107,
33411,
366,
23004,
1,
796,
705,
17,
1906,
18,
6
] |
In the Fall which upper level SW classes will there be ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'SW' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Fall' AN... | [
818,
262,
7218,
543,
6727,
1241,
12672,
6097,
481,
612,
307,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
11,
24878,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
818,
262,
7218,
543,
6727,
1241,
12672,
6097,
481,
612,
307,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
11,
24878,
... |
what is the monthly average amount of cortisol patient 017-66654 has since 6 years ago? | SELECT AVG(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '017-66654')) AND lab.labname = 'cortisol' AND DATETIME(lab.labresulttime) >= DATET... | [
10919,
318,
262,
9651,
2811,
2033,
286,
41547,
5827,
5534,
22,
12,
2791,
39111,
468,
1201,
718,
812,
2084,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9651,
2811,
2033,
286,
41547,
5827,
5534,
22,
12,
2791,
39111,
468,
1201,
718,
812,
2084,
30,
46506,
35224,
7,
23912,
13,
23912,
20274,
8,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... |
how many athletes earned more than 1,100 points in the riding competition ? | SELECT COUNT("athlete") FROM table_204_731 WHERE "riding\npenalties (pts)" > 1100 | [
4919,
867,
10856,
7366,
517,
621,
352,
11,
3064,
2173,
287,
262,
10311,
5449,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
22,
3132,
33411,
366,
81,
2530,
59,
77,
3617,
10355,
357,
457,
82,
16725,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10856,
7366,
517,
621,
352,
11,
3064,
2173,
287,
262,
10311,
5449,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
22,
3132,
33411,
366,
81,
2530,
59,
77,
3617,
10355,
357,
457,
82,
16725,
1875,
... |
Count the number of urgent hospital admission patients who have unspecified myelodysplastic syndrome diagnoses. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.short_title = "Myelodysplastic synd NOS" | [
12332,
262,
1271,
286,
18039,
4436,
13938,
3871,
508,
423,
29547,
616,
417,
375,
893,
489,
3477,
14027,
40567,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12332,
262,
1271,
286,
18039,
4436,
13938,
3871,
508,
423,
29547,
616,
417,
375,
893,
489,
3477,
14027,
40567,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... |
indicate the daily maximum amount of heart rate for patient 12367 during their last hospital encounter. | SELECT MAX(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 = 12367 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND chart... | [
521,
5344,
262,
4445,
5415,
2033,
286,
2612,
2494,
329,
5827,
1105,
27824,
1141,
511,
938,
4436,
8791,
13,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
521,
5344,
262,
4445,
5415,
2033,
286,
2612,
2494,
329,
5827,
1105,
27824,
1141,
511,
938,
4436,
8791,
13,
46506,
25882,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268... |
male 35 _ 70 years old | SELECT * FROM table_train_227 WHERE gender = 'male' AND age >= 35 AND age <= 70 | [
22606,
3439,
4808,
4317,
812,
1468,
46506,
1635,
16034,
3084,
62,
27432,
62,
24403,
33411,
5279,
796,
705,
22606,
6,
5357,
2479,
18189,
3439,
5357,
2479,
19841,
4317
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22606,
3439,
4808,
4317,
812,
1468,
46506,
1635,
16034,
3084,
62,
27432,
62,
24403,
33411,
5279,
796,
705,
22606,
6,
5357,
2479,
18189,
3439,
5357,
2479,
19841,
4317
] |
What is the firefox value with a 1.8% opera on 30 July 2007? | SELECT "Firefox" FROM table_79525 WHERE "Opera" = '1.8%' AND "Date" = '30 july 2007' | [
2061,
318,
262,
2046,
12792,
1988,
351,
257,
352,
13,
23,
4,
27296,
319,
1542,
2901,
4343,
30,
46506,
366,
13543,
12792,
1,
16034,
3084,
62,
3720,
39088,
33411,
366,
18843,
64,
1,
796,
705,
16,
13,
23,
4,
6,
5357,
366,
10430,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2046,
12792,
1988,
351,
257,
352,
13,
23,
4,
27296,
319,
1542,
2901,
4343,
30,
46506,
366,
13543,
12792,
1,
16034,
3084,
62,
3720,
39088,
33411,
366,
18843,
64,
1,
796,
705,
16,
13,
23,
4,
6,
5357,
366,
10430,
1,
... |
Show the average of population from each status | SELECT Status, AVG(Population) FROM city GROUP BY Status | [
15307,
262,
2811,
286,
3265,
422,
1123,
3722,
46506,
12678,
11,
35224,
7,
45251,
8,
16034,
1748,
44441,
11050,
12678
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
2811,
286,
3265,
422,
1123,
3722,
46506,
12678,
11,
35224,
7,
45251,
8,
16034,
1748,
44441,
11050,
12678
] |
During which round was the first defensive end with an overall rank larger than 186 drafted? | SELECT MIN("Round") FROM table_4873 WHERE "Overall" > '186' AND "Position" = 'defensive end' | [
7191,
543,
2835,
373,
262,
717,
6110,
886,
351,
281,
4045,
4279,
4025,
621,
28481,
15937,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2780,
4790,
33411,
366,
16350,
1,
1875,
705,
25096,
6,
5357,
366,
26545,
1,
796,
705,
4299... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
543,
2835,
373,
262,
717,
6110,
886,
351,
281,
4045,
4279,
4025,
621,
28481,
15937,
30,
46506,
20625,
7203,
22685,
4943,
16034,
3084,
62,
2780,
4790,
33411,
366,
16350,
1,
1875,
705,
25096,
6,
5357,
366,
26545,
1,
796,
705,
4299... |
What is the population in millions for 2011 where the HDI for 2011 is 0.453 (low)? | SELECT "Population (millions, 2011)" FROM table_24457 WHERE "HDI (2011)" = '0.453 (low)' | [
2061,
318,
262,
3265,
287,
5242,
329,
2813,
810,
262,
5572,
40,
329,
2813,
318,
657,
13,
36625,
357,
9319,
19427,
46506,
366,
45251,
357,
17805,
507,
11,
2813,
16725,
16034,
3084,
62,
1731,
33032,
33411,
366,
10227,
40,
357,
9804,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3265,
287,
5242,
329,
2813,
810,
262,
5572,
40,
329,
2813,
318,
657,
13,
36625,
357,
9319,
19427,
46506,
366,
45251,
357,
17805,
507,
11,
2813,
16725,
16034,
3084,
62,
1731,
33032,
33411,
366,
10227,
40,
357,
9804,
167... |
what is the date when the score is 115-93? | SELECT date FROM table_name_68 WHERE score = "115-93" | [
10919,
318,
262,
3128,
618,
262,
4776,
318,
12279,
12,
6052,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
4776,
796,
366,
15363,
12,
6052,
1
] | [
1,
1,
1,
1,
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,
3128,
618,
262,
4776,
318,
12279,
12,
6052,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3104,
33411,
4776,
796,
366,
15363,
12,
6052,
1
] |
Bar chart x axis location y axis how many location, and order by the Y-axis from low to high. | SELECT Location, COUNT(Location) FROM performance GROUP BY Location ORDER BY COUNT(Location) | [
10374,
8262,
2124,
16488,
4067,
331,
16488,
703,
867,
4067,
11,
290,
1502,
416,
262,
575,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
2854,
44441,
11050,
13397,
38678,
11050,
327,
28270,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
4067,
331,
16488,
703,
867,
4067,
11,
290,
1502,
416,
262,
575,
12,
22704,
422,
1877,
284,
1029,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
2854,
44441,
11050,
13397,
38678,
11050,
327,
28270,
7,
1... |
give me the number of patients whose days of hospital stay is greater than 2 and lab test fluid is urine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "2" AND lab.fluid = "Urine" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
290,
2248,
1332,
11711,
318,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
290,
2248,
1332,
11711,
318,
18922,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... |
Which Athletes have a Run 2 of 2:21.82? | SELECT athletes FROM table_name_39 WHERE run_2 = "2:21.82" | [
13828,
18093,
274,
423,
257,
5660,
362,
286,
362,
25,
2481,
13,
6469,
30,
46506,
10856,
16034,
3084,
62,
3672,
62,
2670,
33411,
1057,
62,
17,
796,
366,
17,
25,
2481,
13,
6469,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18093,
274,
423,
257,
5660,
362,
286,
362,
25,
2481,
13,
6469,
30,
46506,
10856,
16034,
3084,
62,
3672,
62,
2670,
33411,
1057,
62,
17,
796,
366,
17,
25,
2481,
13,
6469,
1
] |
In what Round is John Parco a Center? | SELECT round FROM table_name_70 WHERE position = "center" AND player = "john parco" | [
818,
644,
10485,
318,
1757,
2547,
1073,
257,
3337,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2154,
33411,
2292,
796,
366,
16159,
1,
5357,
2137,
796,
366,
30686,
1582,
1073,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
10485,
318,
1757,
2547,
1073,
257,
3337,
30,
46506,
2835,
16034,
3084,
62,
3672,
62,
2154,
33411,
2292,
796,
366,
16159,
1,
5357,
2137,
796,
366,
30686,
1582,
1073,
1
] |
Potentially conflicting edits in last N Days. | SELECT (SELECT COUNT(*) FROM PostHistory AS PH2 JOIN (SELECT Id, PostId, CreationDate FROM PostHistory AS PH1 WHERE PH1.PostHistoryTypeId IN (4, 5, 6) AND PH1.CreationDate > DATEADD('day', -'##LastNDays?90##', GETDATE())) AS PH ON PH2.Id != PH.Id AND PH2.PostId = PH.PostId WHERE ABS(DATEDIFF('second', PH2.CreationDate,... | [
25396,
3746,
24916,
31671,
287,
938,
399,
12579,
13,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
2947,
18122,
7054,
9370,
17,
32357,
1268,
357,
46506,
5121,
11,
2947,
7390,
11,
21582,
10430,
16034,
2947,
18122,
7054,
9370,
16,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
25396,
3746,
24916,
31671,
287,
938,
399,
12579,
13,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
2947,
18122,
7054,
9370,
17,
32357,
1268,
357,
46506,
5121,
11,
2947,
7390,
11,
21582,
10430,
16034,
2947,
18122,
7054,
9370,
16,
33411,
... |
What were the goals for the player whose years at club were 1908 1911, 1913 1919? | SELECT goals FROM table_name_90 WHERE years_at_club = "1908–1911, 1913–1919" | [
2061,
547,
262,
4661,
329,
262,
2137,
3025,
812,
379,
3430,
547,
40417,
32216,
11,
35145,
30992,
30,
46506,
4661,
16034,
3084,
62,
3672,
62,
3829,
33411,
812,
62,
265,
62,
18664,
796,
366,
1129,
2919,
1906,
1129,
1157,
11,
35145,
1906... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4661,
329,
262,
2137,
3025,
812,
379,
3430,
547,
40417,
32216,
11,
35145,
30992,
30,
46506,
4661,
16034,
3084,
62,
3672,
62,
3829,
33411,
812,
62,
265,
62,
18664,
796,
366,
1129,
2919,
1906,
1129,
1157,
11,
35145,
1906... |
For those employees who did not have any job in the past, return a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2811,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62... |
how many patients below 61 years have been tested for prostate specific antigen? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "61" AND lab.label = "Prostate Specific Antigen" | [
4919,
867,
3871,
2174,
8454,
812,
423,
587,
6789,
329,
26711,
2176,
50059,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
2174,
8454,
812,
423,
587,
6789,
329,
26711,
2176,
50059,
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... |
For all employees who have the letters D or S in their first name, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart, and sort total number in desc order. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(EMPLOYEE_ID) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
290,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
905,
502,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2811,
286,
6538,
62,
312,
9874,
11078,
62,
4475,
416,
28269,
287,
257,
2318,
8262,
11,
290,
32... |
which party or parties received less than five percent of the votes ? | SELECT "party" FROM table_203_494 WHERE "%" < 5 | [
4758,
2151,
393,
4671,
2722,
1342,
621,
1936,
1411,
286,
262,
5690,
5633,
46506,
366,
10608,
1,
16034,
3084,
62,
22416,
62,
39449,
33411,
36521,
1,
1279,
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
] | [
4758,
2151,
393,
4671,
2722,
1342,
621,
1936,
1411,
286,
262,
5690,
5633,
46506,
366,
10608,
1,
16034,
3084,
62,
22416,
62,
39449,
33411,
36521,
1,
1279,
642
] |
How many rebounds occurred in a rank 4 game? | SELECT "Rebounds" FROM table_52201 WHERE "Rank" = '4' | [
2437,
867,
18841,
5091,
287,
257,
4279,
604,
983,
30,
46506,
366,
28951,
3733,
1,
16034,
3084,
62,
4309,
1264,
33411,
366,
27520,
1,
796,
705,
19,
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
] | [
2437,
867,
18841,
5091,
287,
257,
4279,
604,
983,
30,
46506,
366,
28951,
3733,
1,
16034,
3084,
62,
4309,
1264,
33411,
366,
27520,
1,
796,
705,
19,
6
] |
What was the away teams score when they played Carlton? | SELECT away_team AS score FROM table_name_19 WHERE home_team = "carlton" | [
2061,
373,
262,
1497,
3466,
4776,
618,
484,
2826,
44348,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1129,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1497,
3466,
4776,
618,
484,
2826,
44348,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1129,
33411,
1363,
62,
15097,
796,
366,
66,
7063,
1122,
1
] |
What is the population density (per km) that has -6.7 as the change (%)? | SELECT population_density__per_km²_ FROM table_name_8 WHERE change___percentage_ = "-6.7" | [
2061,
318,
262,
3265,
12109,
357,
525,
10571,
8,
326,
468,
532,
21,
13,
22,
355,
262,
1487,
11509,
30,
46506,
3265,
62,
43337,
834,
525,
62,
13276,
31185,
62,
16034,
3084,
62,
3672,
62,
23,
33411,
1487,
17569,
25067,
496,
62,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3265,
12109,
357,
525,
10571,
8,
326,
468,
532,
21,
13,
22,
355,
262,
1487,
11509,
30,
46506,
3265,
62,
43337,
834,
525,
62,
13276,
31185,
62,
16034,
3084,
62,
3672,
62,
23,
33411,
1487,
17569,
25067,
496,
62,
796,
... |
For those products with a price between 60 and 120, visualize the relationship between price and manufacturer . | SELECT Price, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 | [
1890,
883,
3186,
351,
257,
2756,
1022,
3126,
290,
7982,
11,
38350,
262,
2776,
1022,
2756,
290,
11554,
764,
46506,
7886,
11,
40218,
16034,
18675,
33411,
7886,
38651,
8845,
1677,
3126,
5357,
7982
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3186,
351,
257,
2756,
1022,
3126,
290,
7982,
11,
38350,
262,
2776,
1022,
2756,
290,
11554,
764,
46506,
7886,
11,
40218,
16034,
18675,
33411,
7886,
38651,
8845,
1677,
3126,
5357,
7982
] |
What is the sum of 1872(s), when 1866 is greater than 856, when 1861 is greater than 1906, and when 1876 is greater than 1990? | SELECT SUM("1872") FROM table_42565 WHERE "1866" > '856' AND "1861" > '1906' AND "1876" > '1990' | [
2061,
318,
262,
2160,
286,
1248,
4761,
7,
82,
828,
618,
1248,
2791,
318,
3744,
621,
807,
3980,
11,
618,
45278,
318,
3744,
621,
40538,
11,
290,
618,
1248,
4304,
318,
3744,
621,
6303,
30,
46506,
35683,
7203,
1507,
4761,
4943,
16034,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2160,
286,
1248,
4761,
7,
82,
828,
618,
1248,
2791,
318,
3744,
621,
807,
3980,
11,
618,
45278,
318,
3744,
621,
40538,
11,
290,
618,
1248,
4304,
318,
3744,
621,
6303,
30,
46506,
35683,
7203,
1507,
4761,
4943,
16034,
3... |
Which team had fewer than 167 points in the 250cc class? | SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc" | [
13828,
1074,
550,
7380,
621,
26118,
2173,
287,
262,
8646,
535,
1398,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4761,
33411,
2173,
1279,
26118,
5357,
1398,
796,
366,
9031,
535,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
550,
7380,
621,
26118,
2173,
287,
262,
8646,
535,
1398,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
4761,
33411,
2173,
1279,
26118,
5357,
1398,
796,
366,
9031,
535,
1
] |
What was the first broadcast date of episode 4x03? | SELECT first_broadcast FROM table_23292220_4 WHERE episode = "4x03" | [
2061,
373,
262,
717,
7025,
3128,
286,
4471,
604,
87,
3070,
30,
46506,
717,
62,
36654,
2701,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
19,
33411,
4471,
796,
366,
19,
87,
3070,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
7025,
3128,
286,
4471,
604,
87,
3070,
30,
46506,
717,
62,
36654,
2701,
16034,
3084,
62,
1954,
1959,
1828,
1238,
62,
19,
33411,
4471,
796,
366,
19,
87,
3070,
1
] |
Before I take SOC 311 what other courses would be useful to have ? | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'SOC' AND number = 311 | [
8421,
314,
1011,
31430,
35592,
644,
584,
10902,
561,
307,
4465,
284,
423,
5633,
46506,
360,
8808,
1268,
4177,
20852,
62,
8897,
24615,
16034,
1781,
33411,
5011,
796,
705,
50,
4503,
6,
5357,
1271,
796,
35592
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8421,
314,
1011,
31430,
35592,
644,
584,
10902,
561,
307,
4465,
284,
423,
5633,
46506,
360,
8808,
1268,
4177,
20852,
62,
8897,
24615,
16034,
1781,
33411,
5011,
796,
705,
50,
4503,
6,
5357,
1271,
796,
35592
] |
Name who wrote the episode that aired april 9, 1989 | SELECT "Written by" FROM table_24869 WHERE "Original air date" = 'April 9, 1989' | [
5376,
508,
2630,
262,
4471,
326,
18530,
46593,
346,
860,
11,
11104,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
23045,
3388,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
16784,
860,
11,
11104,
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
] | [
5376,
508,
2630,
262,
4471,
326,
18530,
46593,
346,
860,
11,
11104,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
23045,
3388,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
16784,
860,
11,
11104,
6
] |
What was the rank of operator whose technology is CDMA EVDO? | SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO" | [
2061,
373,
262,
4279,
286,
10088,
3025,
3037,
318,
6458,
5673,
8696,
18227,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
23721,
29326,
2481,
62,
16,
33411,
3037,
796,
366,
8610,
5673,
8696,
18227,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4279,
286,
10088,
3025,
3037,
318,
6458,
5673,
8696,
18227,
30,
46506,
20625,
7,
43027,
8,
16034,
3084,
62,
23721,
29326,
2481,
62,
16,
33411,
3037,
796,
366,
8610,
5673,
8696,
18227,
1
] |
count the number of patients whose drug code is cina30 and lab test fluid is pleural? | 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 = "CINA30" AND lab.fluid = "Pleural" | [
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
269,
1437,
1270,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
2563,
2438,
318,
269,
1437,
1270,
290,
2248,
1332,
11711,
318,
3339,
1523,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
... |
What is Surface, when Opponents, when Final is 'Gigi Fern ndez Robin White'? | SELECT "Surface" FROM table_8739 WHERE "Opponents in final" = 'gigi fernández robin white' | [
2061,
318,
20321,
11,
618,
9385,
3906,
11,
618,
8125,
318,
705,
38,
25754,
38982,
299,
2934,
89,
12325,
2635,
30960,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
5774,
2670,
33411,
366,
27524,
3906,
287,
2457,
1,
796,
705,
70,
25754,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20321,
11,
618,
9385,
3906,
11,
618,
8125,
318,
705,
38,
25754,
38982,
299,
2934,
89,
12325,
2635,
30960,
46506,
366,
14214,
2550,
1,
16034,
3084,
62,
5774,
2670,
33411,
366,
27524,
3906,
287,
2457,
1,
796,
705,
70,
25754,
... |
How many values are displayed under pick for Vlastimil Kroupa? | SELECT COUNT(pick) FROM table_2781227_2 WHERE player = "Vlastimil Kroupa" | [
2437,
867,
3815,
389,
9066,
739,
2298,
329,
569,
12957,
26641,
509,
3233,
64,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
25870,
1065,
1983,
62,
17,
33411,
2137,
796,
366,
53,
12957,
26641,
509,
3233,
64,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3815,
389,
9066,
739,
2298,
329,
569,
12957,
26641,
509,
3233,
64,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
25870,
1065,
1983,
62,
17,
33411,
2137,
796,
366,
53,
12957,
26641,
509,
3233,
64,
1
] |
Who was the builder of Nor? | SELECT "Builder" FROM table_65526 WHERE "Ship" = 'nor' | [
8241,
373,
262,
27098,
286,
5414,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
35916,
2075,
33411,
366,
25586,
1,
796,
705,
13099,
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
] | [
8241,
373,
262,
27098,
286,
5414,
30,
46506,
366,
32875,
1,
16034,
3084,
62,
35916,
2075,
33411,
366,
25586,
1,
796,
705,
13099,
6
] |
Using a Ducati 999 F06 Bike, how many Laps with a Grid greater than 11 and Time of +53.488? | SELECT COUNT("Laps") FROM table_38884 WHERE "Bike" = 'ducati 999 f06' AND "Time" = '+53.488' AND "Grid" > '11' | [
12814,
257,
24165,
7246,
36006,
376,
3312,
26397,
11,
703,
867,
406,
1686,
351,
257,
24846,
3744,
621,
1367,
290,
3862,
286,
1343,
4310,
13,
33646,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
2548,
40353,
33411,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12814,
257,
24165,
7246,
36006,
376,
3312,
26397,
11,
703,
867,
406,
1686,
351,
257,
24846,
3744,
621,
1367,
290,
3862,
286,
1343,
4310,
13,
33646,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
2548,
40353,
33411,
366,
... |
What is the highest number any of the players were picked at? | SELECT MAX("Pick #") FROM table_24279 | [
2061,
318,
262,
4511,
1271,
597,
286,
262,
1938,
547,
6497,
379,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1731,
26050
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
1271,
597,
286,
262,
1938,
547,
6497,
379,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
1731,
26050
] |
how much does it cost to fly EA from ATLANTA to BOSTON | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit... | [
4919,
881,
857,
340,
1575,
284,
6129,
19814,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
881,
857,
340,
1575,
284,
6129,
19814,
422,
5161,
25697,
5603,
284,
347,
10892,
1340,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
how many schools are vacant ? | SELECT COUNT("school name") FROM table_203_40 WHERE "building status" = 'vacant' | [
4919,
867,
4266,
389,
23957,
5633,
46506,
327,
28270,
7203,
14347,
1438,
4943,
16034,
3084,
62,
22416,
62,
1821,
33411,
366,
16894,
3722,
1,
796,
705,
85,
330,
415,
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
] | [
4919,
867,
4266,
389,
23957,
5633,
46506,
327,
28270,
7203,
14347,
1438,
4943,
16034,
3084,
62,
22416,
62,
1821,
33411,
366,
16894,
3722,
1,
796,
705,
85,
330,
415,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.