instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What is the highest rank of the movie with an opening week net gross less than 80,87,00,000 before 2011? | SELECT MAX("Rank") FROM table_52396 WHERE "Year" < '2011' AND "Opening Week Nett Gross" < '80,87,00,000' | [
2061,
318,
262,
4511,
4279,
286,
262,
3807,
351,
281,
4756,
1285,
2010,
10319,
1342,
621,
4019,
11,
5774,
11,
405,
11,
830,
878,
2813,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
49803,
4846,
33411,
366,
17688,
1,
1279,
705,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
4279,
286,
262,
3807,
351,
281,
4756,
1285,
2010,
10319,
1342,
621,
4019,
11,
5774,
11,
405,
11,
830,
878,
2813,
30,
46506,
25882,
7203,
27520,
4943,
16034,
3084,
62,
49803,
4846,
33411,
366,
17688,
1,
1279,
705,... |
How many players are from energa czarni? | SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni" | [
2437,
867,
1938,
389,
422,
2400,
4908,
24785,
1501,
72,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1065,
4846,
1983,
4790,
62,
1433,
33411,
1459,
62,
18664,
796,
366,
36,
1008,
4908,
327,
89,
1501,
72,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1938,
389,
422,
2400,
4908,
24785,
1501,
72,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1065,
4846,
1983,
4790,
62,
1433,
33411,
1459,
62,
18664,
796,
366,
36,
1008,
4908,
327,
89,
1501,
72,
1
] |
had patient 9566 ever been given sc 20 fe ng during this hospital encounter? | SELECT COUNT(*) > 0 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 = 9566 AND admissions.dischtime IS NULL)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items... | [
18108,
5827,
6957,
2791,
1683,
587,
1813,
629,
1160,
730,
23370,
1141,
428,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
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... | [
18108,
5827,
6957,
2791,
1683,
587,
1813,
629,
1160,
730,
23370,
1141,
428,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
287,
79,
1133,
85,
658,
62,
33967,
33411,
287,
79,
1133,
85,
658,
62,
33967,
13,
291,
436,
32... |
What was the weight in kg on the day of the race at Ranvet Stakes? | SELECT "Weight (kg)" FROM table_18848 WHERE "Race" = 'Ranvet Stakes' | [
2061,
373,
262,
3463,
287,
14211,
319,
262,
1110,
286,
262,
3234,
379,
23075,
16809,
520,
1124,
30,
46506,
366,
25844,
357,
10025,
16725,
16034,
3084,
62,
20356,
2780,
33411,
366,
35157,
1,
796,
705,
49,
272,
16809,
520,
1124,
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
] | [
2061,
373,
262,
3463,
287,
14211,
319,
262,
1110,
286,
262,
3234,
379,
23075,
16809,
520,
1124,
30,
46506,
366,
25844,
357,
10025,
16725,
16034,
3084,
62,
20356,
2780,
33411,
366,
35157,
1,
796,
705,
49,
272,
16809,
520,
1124,
6
] |
until 55 months ago, what was the yearly maximum dose of norepinephrine of patient 033-12085? | SELECT MAX(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 = '033-12085')) AND intakeoutput.celllabel = 'norep... | [
28446,
5996,
1933,
2084,
11,
644,
373,
262,
24169,
5415,
10742,
286,
299,
382,
23908,
47723,
286,
5827,
657,
2091,
12,
1065,
2919,
20,
30,
46506,
25882,
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... | [
28446,
5996,
1933,
2084,
11,
644,
373,
262,
24169,
5415,
10742,
286,
299,
382,
23908,
47723,
286,
5827,
657,
2091,
12,
1065,
2919,
20,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268,
39223,
8,
16034,
10337,
22915,
33411... |
What is the number of male patients who have an unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at the time of procedure diagnoses? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time ... | [
2061,
318,
262,
1271,
286,
4257,
3871,
508,
423,
281,
29547,
8771,
355,
262,
2728,
286,
18801,
6317,
286,
5827,
11,
393,
286,
1568,
45185,
11,
1231,
3068,
286,
2984,
324,
5388,
379,
262,
640,
286,
8771,
40567,
30,
46506,
327,
28270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4257,
3871,
508,
423,
281,
29547,
8771,
355,
262,
2728,
286,
18801,
6317,
286,
5827,
11,
393,
286,
1568,
45185,
11,
1231,
3068,
286,
2984,
324,
5388,
379,
262,
640,
286,
8771,
40567,
30,
46506,
327,
28270,
... |
how many white patients have the lab test total protein, pleural done? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "WHITE" AND lab.label = "Total Protein, Pleural" | [
4919,
867,
2330,
3871,
423,
262,
2248,
1332,
2472,
7532,
11,
3339,
1523,
1760,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2330,
3871,
423,
262,
2248,
1332,
2472,
7532,
11,
3339,
1523,
1760,
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,... |
How many songs have used the instrument 'drums'? | SELECT COUNT(*) FROM instruments WHERE instrument = "drums" | [
2437,
867,
7259,
423,
973,
262,
8875,
705,
7109,
5700,
30960,
46506,
327,
28270,
7,
28104,
16034,
12834,
33411,
8875,
796,
366,
7109,
5700,
1
] | [
1,
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,
7259,
423,
973,
262,
8875,
705,
7109,
5700,
30960,
46506,
327,
28270,
7,
28104,
16034,
12834,
33411,
8875,
796,
366,
7109,
5700,
1
] |
Name the 1st person pl for | SELECT "1st pers. pl" FROM table_27801 WHERE "2nd pers. sing." = 'тонэ' | [
5376,
262,
352,
301,
1048,
458,
329,
46506,
366,
16,
301,
2774,
13,
458,
1,
16034,
3084,
62,
25870,
486,
33411,
366,
17,
358,
2774,
13,
1702,
526,
796,
705,
20375,
15166,
22177,
141,
235,
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
] | [
5376,
262,
352,
301,
1048,
458,
329,
46506,
366,
16,
301,
2774,
13,
458,
1,
16034,
3084,
62,
25870,
486,
33411,
366,
17,
358,
2774,
13,
1702,
526,
796,
705,
20375,
15166,
22177,
141,
235,
6
] |
When was james chester loaned out until ? | SELECT "Date To" FROM table_62205 WHERE "Name" = 'james chester' | [
2215,
373,
474,
1047,
1125,
1706,
8063,
276,
503,
1566,
5633,
46506,
366,
10430,
1675,
1,
16034,
3084,
62,
5237,
21261,
33411,
366,
5376,
1,
796,
705,
73,
1047,
1125,
1706,
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
] | [
2215,
373,
474,
1047,
1125,
1706,
8063,
276,
503,
1566,
5633,
46506,
366,
10430,
1675,
1,
16034,
3084,
62,
5237,
21261,
33411,
366,
5376,
1,
796,
705,
73,
1047,
1125,
1706,
6
] |
what was the monthly maximum dose of volume (ml) nitroprusside that patient 006-202432 was taking since 09/2102? | SELECT MAX(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 = '006-202432')) AND intakeoutput.celllabel = 'volu... | [
10919,
373,
262,
9651,
5415,
10742,
286,
6115,
357,
4029,
8,
13759,
305,
1050,
1046,
485,
326,
5827,
3571,
21,
12,
1238,
1731,
2624,
373,
2263,
1201,
7769,
14,
17,
15377,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9651,
5415,
10742,
286,
6115,
357,
4029,
8,
13759,
305,
1050,
1046,
485,
326,
5827,
3571,
21,
12,
1238,
1731,
2624,
373,
2263,
1201,
7769,
14,
17,
15377,
30,
46506,
25882,
7,
600,
539,
22915,
13,
3846,
2100,
84,
268... |
Rank for viewers larger than 1.244? | SELECT "Nightly rank" FROM table_51167 WHERE "Viewers (millions)" > '1.244' | [
27520,
329,
10209,
4025,
621,
352,
13,
25707,
30,
46506,
366,
24732,
306,
4279,
1,
16034,
3084,
62,
41647,
3134,
33411,
366,
7680,
364,
357,
17805,
507,
16725,
1875,
705,
16,
13,
25707,
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
] | [
27520,
329,
10209,
4025,
621,
352,
13,
25707,
30,
46506,
366,
24732,
306,
4279,
1,
16034,
3084,
62,
41647,
3134,
33411,
366,
7680,
364,
357,
17805,
507,
16725,
1875,
705,
16,
13,
25707,
6
] |
What solvent has a boiling point of 100 103 c? | SELECT "Solvent" FROM table_44374 WHERE "Boiling point" = '100–103 °c' | [
2061,
43209,
468,
257,
24372,
966,
286,
1802,
15349,
269,
30,
46506,
366,
36949,
1151,
1,
16034,
3084,
62,
2598,
31020,
33411,
366,
16635,
4386,
966,
1,
796,
705,
3064,
1906,
15197,
22074,
66,
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,
43209,
468,
257,
24372,
966,
286,
1802,
15349,
269,
30,
46506,
366,
36949,
1151,
1,
16034,
3084,
62,
2598,
31020,
33411,
366,
16635,
4386,
966,
1,
796,
705,
3064,
1906,
15197,
22074,
66,
6
] |
What is the mascot at Borden? | SELECT mascot FROM table_name_48 WHERE school = "borden" | [
2061,
318,
262,
37358,
379,
48335,
268,
30,
46506,
37358,
16034,
3084,
62,
3672,
62,
2780,
33411,
1524,
796,
366,
65,
585,
268,
1
] | [
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,
37358,
379,
48335,
268,
30,
46506,
37358,
16034,
3084,
62,
3672,
62,
2780,
33411,
1524,
796,
366,
65,
585,
268,
1
] |
What is the total Rank for mit karan when Apps is more than 39 and Rate is more than 0.58? | SELECT SUM("Rank") FROM table_63427 WHERE "Apps" > '39' AND "Player" = 'ümit karan' AND "Rate" > '0.58' | [
2061,
318,
262,
2472,
10916,
329,
10255,
479,
19173,
618,
27710,
318,
517,
621,
5014,
290,
14806,
318,
517,
621,
657,
13,
3365,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
21,
2682,
1983,
33411,
366,
48433,
1,
1875,
705,
267... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10916,
329,
10255,
479,
19173,
618,
27710,
318,
517,
621,
5014,
290,
14806,
318,
517,
621,
657,
13,
3365,
30,
46506,
35683,
7203,
27520,
4943,
16034,
3084,
62,
21,
2682,
1983,
33411,
366,
48433,
1,
1875,
705,
267... |
What school did the rb drafted attend? | SELECT "School" FROM table_26915 WHERE "Position" = 'RB' | [
2061,
1524,
750,
262,
374,
65,
15937,
5262,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
26276,
1314,
33411,
366,
26545,
1,
796,
705,
27912,
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
] | [
2061,
1524,
750,
262,
374,
65,
15937,
5262,
30,
46506,
366,
26130,
1,
16034,
3084,
62,
26276,
1314,
33411,
366,
26545,
1,
796,
705,
27912,
6
] |
What is the average Frequency, when Type is 'Norte o', and when Brand is 'La Cotorra'? | SELECT AVG("Frequency") FROM table_59396 WHERE "Type" = 'norteño' AND "Brand" = 'la cotorra' | [
2061,
318,
262,
2811,
31902,
11,
618,
5994,
318,
705,
45,
419,
68,
267,
3256,
290,
618,
13512,
318,
705,
14772,
327,
20965,
430,
30960,
46506,
35224,
7203,
37,
28707,
4943,
16034,
3084,
62,
3270,
34107,
33411,
366,
6030,
1,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
31902,
11,
618,
5994,
318,
705,
45,
419,
68,
267,
3256,
290,
618,
13512,
318,
705,
14772,
327,
20965,
430,
30960,
46506,
35224,
7203,
37,
28707,
4943,
16034,
3084,
62,
3270,
34107,
33411,
366,
6030,
1,
796,
705,
... |
How many airlines does Russia has? | SELECT COUNT(*) FROM airlines WHERE country = 'Russia' | [
2437,
867,
26225,
857,
3284,
468,
30,
46506,
327,
28270,
7,
28104,
16034,
26225,
33411,
1499,
796,
705,
16347,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
26225,
857,
3284,
468,
30,
46506,
327,
28270,
7,
28104,
16034,
26225,
33411,
1499,
796,
705,
16347,
6
] |
Count those days for each year and in which zip code was the min dew point lower than any day in zip code 94107 using a bar graph. | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) | [
12332,
883,
1528,
329,
1123,
614,
290,
287,
543,
19974,
2438,
373,
262,
949,
390,
86,
966,
2793,
621,
597,
1110,
287,
19974,
2438,
10048,
15982,
1262,
257,
2318,
4823,
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... | [
12332,
883,
1528,
329,
1123,
614,
290,
287,
543,
19974,
2438,
373,
262,
949,
390,
86,
966,
2793,
621,
597,
1110,
287,
19974,
2438,
10048,
15982,
1262,
257,
2318,
4823,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
33411,
... |
Find the name and id of the good with the highest average rank. | SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1 | [
16742,
262,
1438,
290,
4686,
286,
262,
922,
351,
262,
4511,
2811,
4279,
13,
46506,
309,
16,
13,
7839,
11,
309,
16,
13,
72,
62,
312,
16034,
2378,
7054,
309,
16,
32357,
1268,
2423,
7054,
309,
17,
6177,
309,
16,
13,
72,
62,
312,
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... | [
16742,
262,
1438,
290,
4686,
286,
262,
922,
351,
262,
4511,
2811,
4279,
13,
46506,
309,
16,
13,
7839,
11,
309,
16,
13,
72,
62,
312,
16034,
2378,
7054,
309,
16,
32357,
1268,
2423,
7054,
309,
17,
6177,
309,
16,
13,
72,
62,
312,
79... |
The 2nd leg is what for the Atl tico Madrid as Team 1? | SELECT "2nd leg" FROM table_8439 WHERE "Team 1" = 'atlético madrid' | [
464,
362,
358,
1232,
318,
644,
329,
262,
5234,
256,
3713,
14708,
355,
4816,
352,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
5705,
2670,
33411,
366,
15592,
352,
1,
796,
705,
25864,
25125,
3713,
8805,
6058,
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
] | [
464,
362,
358,
1232,
318,
644,
329,
262,
5234,
256,
3713,
14708,
355,
4816,
352,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
5705,
2670,
33411,
366,
15592,
352,
1,
796,
705,
25864,
25125,
3713,
8805,
6058,
6
] |
What are the first names of the teachers who teach grade 1? | SELECT DISTINCT T2.firstname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE grade = 1 | [
2061,
389,
262,
717,
3891,
286,
262,
7799,
508,
4545,
9559,
352,
30,
46506,
360,
8808,
1268,
4177,
309,
17,
13,
11085,
3672,
16034,
1351,
7054,
309,
16,
32357,
1268,
7799,
7054,
309,
17,
6177,
309,
16,
13,
4871,
3823,
796,
309,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
717,
3891,
286,
262,
7799,
508,
4545,
9559,
352,
30,
46506,
360,
8808,
1268,
4177,
309,
17,
13,
11085,
3672,
16034,
1351,
7054,
309,
16,
32357,
1268,
7799,
7054,
309,
17,
6177,
309,
16,
13,
4871,
3823,
796,
309,
17,
... |
Find the name and age of the person who is a friend of Dan or Alice. | SELECT DISTINCT T1.name, T1.age FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' OR T2.friend = 'Alice' | [
16742,
262,
1438,
290,
2479,
286,
262,
1048,
508,
318,
257,
1545,
286,
6035,
393,
14862,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
11,
309,
16,
13,
496,
16034,
1048,
7054,
309,
16,
32357,
1268,
1048,
6726,
7054,
309,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1438,
290,
2479,
286,
262,
1048,
508,
318,
257,
1545,
286,
6035,
393,
14862,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
11,
309,
16,
13,
496,
16034,
1048,
7054,
309,
16,
32357,
1268,
1048,
6726,
7054,
309,
17,
... |
What's the isolation of the mountain peak with an elevation of 2705.793 = 8,875feet 2705m? | SELECT "Isolation" FROM table_23188 WHERE "Elevation" = '2705.793 = 8,875feet 2705m' | [
2061,
338,
262,
15133,
286,
262,
8598,
9103,
351,
281,
22910,
286,
20479,
20,
13,
44750,
796,
807,
11,
31360,
39690,
20479,
20,
76,
30,
46506,
366,
3792,
21417,
1,
16034,
3084,
62,
1954,
20356,
33411,
366,
36,
2768,
341,
1,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
15133,
286,
262,
8598,
9103,
351,
281,
22910,
286,
20479,
20,
13,
44750,
796,
807,
11,
31360,
39690,
20479,
20,
76,
30,
46506,
366,
3792,
21417,
1,
16034,
3084,
62,
1954,
20356,
33411,
366,
36,
2768,
341,
1,
796,
705... |
what did patient 027-154299 first get as intake today? | SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-154299')) AND intakeoutput.cellpath LIKE '%intake%' AND ... | [
10919,
750,
5827,
657,
1983,
12,
1314,
11785,
24,
717,
651,
355,
10337,
1909,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3171... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
5827,
657,
1983,
12,
1314,
11785,
24,
717,
651,
355,
10337,
1909,
30,
46506,
10337,
22915,
13,
3846,
18242,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
3171... |
Who is the owner with a call sign of cjgx? | SELECT "Owner" FROM table_31717 WHERE "Call sign" = 'cjgx' | [
8241,
318,
262,
4870,
351,
257,
869,
1051,
286,
269,
73,
70,
87,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
34125,
1558,
33411,
366,
14134,
1051,
1,
796,
705,
66,
73,
70,
87,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
4870,
351,
257,
869,
1051,
286,
269,
73,
70,
87,
30,
46506,
366,
42419,
1,
16034,
3084,
62,
34125,
1558,
33411,
366,
14134,
1051,
1,
796,
705,
66,
73,
70,
87,
6
] |
On what day was the tournament in Alabama? | SELECT date FROM table_15346009_1 WHERE location = "Alabama" | [
2202,
644,
1110,
373,
262,
7756,
287,
9266,
30,
46506,
3128,
16034,
3084,
62,
1314,
2682,
8054,
24,
62,
16,
33411,
4067,
796,
366,
49177,
1
] | [
1,
1,
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,
373,
262,
7756,
287,
9266,
30,
46506,
3128,
16034,
3084,
62,
1314,
2682,
8054,
24,
62,
16,
33411,
4067,
796,
366,
49177,
1
] |
What is the sum of the serial numbers for narowal city? | SELECT SUM(serial_no) FROM table_name_22 WHERE headquartered_city = "narowal city" | [
2061,
318,
262,
2160,
286,
262,
11389,
3146,
329,
30083,
322,
282,
1748,
30,
46506,
35683,
7,
46911,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
48583,
62,
19205,
796,
366,
23955,
322,
282,
1748,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11389,
3146,
329,
30083,
322,
282,
1748,
30,
46506,
35683,
7,
46911,
62,
3919,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
48583,
62,
19205,
796,
366,
23955,
322,
282,
1748,
1
] |
Which finish had a win percentage that was more than 0.598 and also had less than 53 wins? | SELECT "Finish" FROM table_41440 WHERE "Win%" > '0.598' AND "Wins" < '53' | [
13828,
5461,
550,
257,
1592,
5873,
326,
373,
517,
621,
657,
13,
41292,
290,
635,
550,
1342,
621,
7192,
7864,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
37309,
1821,
33411,
366,
16643,
39658,
1875,
705,
15,
13,
41292,
6,
5357,
366,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5461,
550,
257,
1592,
5873,
326,
373,
517,
621,
657,
13,
41292,
290,
635,
550,
1342,
621,
7192,
7864,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
37309,
1821,
33411,
366,
16643,
39658,
1875,
705,
15,
13,
41292,
6,
5357,
366,
5... |
what is the total number of patients who had received a part gastrec w jej anast procedure the last year? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'part gastrec w jej anast') AND DATETIME(procedures_i... | [
10919,
318,
262,
2472,
1271,
286,
3871,
508,
550,
2722,
257,
636,
21956,
8344,
266,
11223,
73,
281,
459,
8771,
262,
938,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
2472,
1271,
286,
3871,
508,
550,
2722,
257,
636,
21956,
8344,
266,
11223,
73,
281,
459,
8771,
262,
938,
614,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
... |
how many patients whose death status is 1 and primary disease is sternal wound infection? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "STERNAL WOUND INFECTION" | [
4919,
867,
3871,
3025,
1918,
3722,
318,
352,
290,
4165,
4369,
318,
26370,
282,
11699,
10280,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
3025,
1918,
3722,
318,
352,
290,
4165,
4369,
318,
26370,
282,
11699,
10280,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1069,
5111,
62,
32109,
796,
366... |
Top tag-user pairs by upvotes. | SELECT Posts.OwnerUserId AS "user_link", Tags.TagName, COUNT(*) AS "upvotes", Tags.Count AS "posts_with_tag" FROM Tags INNER JOIN PostTags ON Tags.Id = PostTags.TagId INNER JOIN Posts ON PostTags.PostId = Posts.ParentId INNER JOIN Votes ON Posts.Id = Votes.PostId WHERE VoteTypeId = 2 GROUP BY Tags.TagName, Posts.OwnerU... | [
9126,
7621,
12,
7220,
14729,
416,
510,
29307,
13,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
7054,
366,
929,
29307,
1600,
44789,
13,
12332,
7054,
366,
24875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9126,
7621,
12,
7220,
14729,
416,
510,
29307,
13,
46506,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
44789,
13,
24835,
5376,
11,
327,
28270,
7,
28104,
7054,
366,
929,
29307,
1600,
44789,
13,
12332,
7054,
366,
24875,
... |
What is the Margin in 1953 when Patty Berg was Runner(s)-up? | SELECT "Margin" FROM table_33916 WHERE "Runner(s)-up" = 'patty berg' AND "Year" = '1953' | [
2061,
318,
262,
11899,
259,
287,
24217,
618,
42417,
24626,
373,
21529,
7,
82,
13219,
929,
30,
46506,
366,
24428,
259,
1,
16034,
3084,
62,
29626,
1433,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
8071,
774,
275,
6422,
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
] | [
2061,
318,
262,
11899,
259,
287,
24217,
618,
42417,
24626,
373,
21529,
7,
82,
13219,
929,
30,
46506,
366,
24428,
259,
1,
16034,
3084,
62,
29626,
1433,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
8071,
774,
275,
6422,
6,
5357,... |
Show the race class and number of races in each class, and could you sort total number in ascending order? | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY COUNT(*) | [
15307,
262,
3234,
1398,
290,
1271,
286,
9558,
287,
1123,
1398,
11,
290,
714,
345,
3297,
2472,
1271,
287,
41988,
1502,
30,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
327,
28270,
7,
28104
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
3234,
1398,
290,
1271,
286,
9558,
287,
1123,
1398,
11,
290,
714,
345,
3297,
2472,
1271,
287,
41988,
1502,
30,
46506,
5016,
11,
327,
28270,
7,
28104,
16034,
3234,
44441,
11050,
5016,
38678,
11050,
327,
28270,
7,
28104
] |
what are the three most commonly prescribed medications in a year before for patients who were previously diagnosed with oth lymp unsp xtrndl org during the same month? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE ... | [
10919,
389,
262,
1115,
749,
8811,
14798,
17638,
287,
257,
614,
878,
329,
3871,
508,
547,
4271,
14641,
351,
267,
400,
22404,
3149,
555,
2777,
220,
742,
81,
358,
75,
8745,
1141,
262,
976,
1227,
30,
46506,
256,
18,
13,
30349,
16034,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1115,
749,
8811,
14798,
17638,
287,
257,
614,
878,
329,
3871,
508,
547,
4271,
14641,
351,
267,
400,
22404,
3149,
555,
2777,
220,
742,
81,
358,
75,
8745,
1141,
262,
976,
1227,
30,
46506,
256,
18,
13,
30349,
16034,
35... |
What is the title for episode number in series of 28? | SELECT title FROM table_2156758_4 WHERE no_in_series = "28" | [
2061,
318,
262,
3670,
329,
4471,
1271,
287,
2168,
286,
2579,
30,
46506,
3670,
16034,
3084,
62,
17,
21599,
38569,
62,
19,
33411,
645,
62,
259,
62,
25076,
796,
366,
2078,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
329,
4471,
1271,
287,
2168,
286,
2579,
30,
46506,
3670,
16034,
3084,
62,
17,
21599,
38569,
62,
19,
33411,
645,
62,
259,
62,
25076,
796,
366,
2078,
1
] |
Name the No. 8 which has a No. 4 of benjamin, and a No. 3 of liam? | SELECT "No. 8" FROM table_43792 WHERE "No. 4" = 'benjamin' AND "No. 3" = 'liam' | [
5376,
262,
1400,
13,
807,
543,
468,
257,
1400,
13,
604,
286,
1888,
13337,
11,
290,
257,
1400,
13,
513,
286,
300,
1789,
30,
46506,
366,
2949,
13,
807,
1,
16034,
3084,
62,
43284,
5892,
33411,
366,
2949,
13,
604,
1,
796,
705,
11722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1400,
13,
807,
543,
468,
257,
1400,
13,
604,
286,
1888,
13337,
11,
290,
257,
1400,
13,
513,
286,
300,
1789,
30,
46506,
366,
2949,
13,
807,
1,
16034,
3084,
62,
43284,
5892,
33411,
366,
2949,
13,
604,
1,
796,
705,
11722,
... |
When 68-292-68-292 is the ignition timing how many graphicals is it? | SELECT COUNT("Graphical") FROM table_25560 WHERE "Ignition timing" = '68-292-68-292' | [
2215,
8257,
12,
32759,
12,
3104,
12,
32759,
318,
262,
37594,
10576,
703,
867,
4823,
20155,
318,
340,
30,
46506,
327,
28270,
7203,
37065,
605,
4943,
16034,
3084,
62,
13381,
1899,
33411,
366,
32916,
653,
10576,
1,
796,
705,
3104,
12,
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
] | [
2215,
8257,
12,
32759,
12,
3104,
12,
32759,
318,
262,
37594,
10576,
703,
867,
4823,
20155,
318,
340,
30,
46506,
327,
28270,
7203,
37065,
605,
4943,
16034,
3084,
62,
13381,
1899,
33411,
366,
32916,
653,
10576,
1,
796,
705,
3104,
12,
32... |
what is diagnoses short title of subject id 9258? | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "9258" | [
10919,
318,
40567,
1790,
3670,
286,
2426,
4686,
860,
25600,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
24,
25600,
1
] | [
1,
1,
1,
1,
1,
1,
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,
40567,
1790,
3670,
286,
2426,
4686,
860,
25600,
30,
46506,
40567,
13,
19509,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
24,
25600,
1
] |
give the number of patients whose admission location is phys referral/normal deli and lab test item id 51492. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.itemid = "51492" | [
26535,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
2281,
31413,
14,
11265,
1619,
72,
290,
2248,
1332,
2378,
4686,
642,
1415,
5892,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
2281,
31413,
14,
11265,
1619,
72,
290,
2248,
1332,
2378,
4686,
642,
1415,
5892,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
What is the Location when the novelty is gen? | SELECT location FROM table_name_12 WHERE novelty = "gen" | [
2061,
318,
262,
13397,
618,
262,
31650,
318,
2429,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1065,
33411,
31650,
796,
366,
5235,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
13397,
618,
262,
31650,
318,
2429,
30,
46506,
4067,
16034,
3084,
62,
3672,
62,
1065,
33411,
31650,
796,
366,
5235,
1
] |
Which decile features Mayfield School? | SELECT "Decile" FROM table_11938 WHERE "Name" = 'mayfield school' | [
13828,
875,
576,
3033,
1737,
3245,
3961,
30,
46506,
366,
10707,
576,
1,
16034,
3084,
62,
16315,
2548,
33411,
366,
5376,
1,
796,
705,
11261,
3245,
1524,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
875,
576,
3033,
1737,
3245,
3961,
30,
46506,
366,
10707,
576,
1,
16034,
3084,
62,
16315,
2548,
33411,
366,
5376,
1,
796,
705,
11261,
3245,
1524,
6
] |
metion the age and primary disease of gonzalo wasson. | SELECT demographic.age, demographic.diagnosis FROM demographic WHERE demographic.name = "Gonzalo Wasson" | [
4164,
295,
262,
2479,
290,
4165,
4369,
286,
308,
13569,
7335,
373,
1559,
13,
46506,
16728,
13,
496,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
38,
13569,
7335,
32427,
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
] | [
4164,
295,
262,
2479,
290,
4165,
4369,
286,
308,
13569,
7335,
373,
1559,
13,
46506,
16728,
13,
496,
11,
16728,
13,
47356,
5958,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
38,
13569,
7335,
32427,
261,
1
] |
What is the highest ERP W of the translator with a call sign of w284av? | SELECT MAX(erp_w) FROM table_name_94 WHERE call_sign = "w284av" | [
2061,
318,
262,
4511,
13793,
47,
370,
286,
262,
33417,
351,
257,
869,
1051,
286,
266,
30336,
615,
30,
46506,
25882,
7,
263,
79,
62,
86,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
869,
62,
12683,
796,
366,
86,
30336,
615,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13793,
47,
370,
286,
262,
33417,
351,
257,
869,
1051,
286,
266,
30336,
615,
30,
46506,
25882,
7,
263,
79,
62,
86,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
869,
62,
12683,
796,
366,
86,
30336,
615,
1
] |
what was the first time that patient 025-64321 had the maximum sao2 since 08/21/2102? | SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-64321')) AND NOT vitalperiodic.sao2 IS NULL AND... | [
10919,
373,
262,
717,
640,
326,
5827,
657,
1495,
12,
2414,
36453,
550,
262,
5415,
473,
78,
17,
1201,
8487,
14,
2481,
14,
17,
15377,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
717,
640,
326,
5827,
657,
1495,
12,
2414,
36453,
550,
262,
5415,
473,
78,
17,
1201,
8487,
14,
2481,
14,
17,
15377,
30,
46506,
9204,
41007,
291,
13,
672,
3168,
341,
2435,
16034,
9204,
41007,
291,
33411,
9204,
41007,
... |
For episode number 7, what was the numbers of original air dates? | SELECT COUNT(original_air_date) FROM table_19266557_1 WHERE _number = 7 | [
1890,
4471,
1271,
767,
11,
644,
373,
262,
3146,
286,
2656,
1633,
9667,
30,
46506,
327,
28270,
7,
14986,
62,
958,
62,
4475,
8,
16034,
3084,
62,
1129,
25540,
41948,
62,
16,
33411,
4808,
17618,
796,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4471,
1271,
767,
11,
644,
373,
262,
3146,
286,
2656,
1633,
9667,
30,
46506,
327,
28270,
7,
14986,
62,
958,
62,
4475,
8,
16034,
3084,
62,
1129,
25540,
41948,
62,
16,
33411,
4808,
17618,
796,
767
] |
Which Home team score had a Home team of Fitzroy? | SELECT home_team AS score FROM table_name_13 WHERE home_team = "fitzroy" | [
13828,
5995,
1074,
4776,
550,
257,
5995,
1074,
286,
16703,
3287,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1485,
33411,
1363,
62,
15097,
796,
366,
69,
4224,
3287,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5995,
1074,
4776,
550,
257,
5995,
1074,
286,
16703,
3287,
30,
46506,
1363,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
1485,
33411,
1363,
62,
15097,
796,
366,
69,
4224,
3287,
1
] |
had patient 025-51980 in 2105 been admitted to an er? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '025-51980' AND patient.hospitaladmitsource = 'emergency department' AND STRFTIME('%y', patient.unitadmittime) = '2105' | [
18108,
5827,
657,
1495,
12,
20,
23664,
287,
362,
13348,
587,
6848,
284,
281,
1931,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
20,
23664,
6,
5357,
5827,
13,
492... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
657,
1495,
12,
20,
23664,
287,
362,
13348,
587,
6848,
284,
281,
1931,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
36629,
12,
20,
23664,
6,
5357,
5827,
13,
492... |
B.P. of 0, and a Pts Agst smaller than 247 has how many total number of played? | SELECT COUNT("Played") FROM table_70619 WHERE "B.P." = '0' AND "Pts Agst" < '247' | [
33,
13,
47,
13,
286,
657,
11,
290,
257,
350,
912,
2449,
301,
4833,
621,
30179,
468,
703,
867,
2472,
1271,
286,
2826,
30,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
35402,
1129,
33411,
366,
33,
13,
47,
526,
796,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33,
13,
47,
13,
286,
657,
11,
290,
257,
350,
912,
2449,
301,
4833,
621,
30179,
468,
703,
867,
2472,
1271,
286,
2826,
30,
46506,
327,
28270,
7203,
11002,
276,
4943,
16034,
3084,
62,
35402,
1129,
33411,
366,
33,
13,
47,
526,
796,
70... |
Show me a bar chart about the number of races held in each year after 2014, list in descending by the names. | SELECT year, COUNT(year) FROM races AS T1 JOIN results AS T2 ON T1.raceId = T2.raceId WHERE T1.year > 2014 GROUP BY year ORDER BY year DESC | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
9558,
2714,
287,
1123,
614,
706,
1946,
11,
1351,
287,
31491,
416,
262,
3891,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
9558,
7054,
309,
16,
32357,
1268,
2482,
7054,
309,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
502,
257,
2318,
8262,
546,
262,
1271,
286,
9558,
2714,
287,
1123,
614,
706,
1946,
11,
1351,
287,
31491,
416,
262,
3891,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
9558,
7054,
309,
16,
32357,
1268,
2482,
7054,
309,
17,... |
What is the average attendance when Brewers are the opponent with a score of 6 3? | SELECT AVG("Attendance") FROM table_51774 WHERE "Opponent" = 'brewers' AND "Score" = '6–3' | [
2061,
318,
262,
2811,
14858,
618,
35295,
389,
262,
6125,
351,
257,
4776,
286,
718,
513,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
48170,
4524,
33411,
366,
27524,
3471,
1,
796,
705,
11269,
364,
6,
5357,
366,
26595,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14858,
618,
35295,
389,
262,
6125,
351,
257,
4776,
286,
718,
513,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
48170,
4524,
33411,
366,
27524,
3471,
1,
796,
705,
11269,
364,
6,
5357,
366,
26595,... |
who is the actor when the character is dinny byrne? | SELECT "Actor" FROM table_63893 WHERE "Character" = 'dinny byrne' | [
8727,
318,
262,
8674,
618,
262,
2095,
318,
16278,
3281,
416,
81,
710,
30,
46506,
366,
40277,
1,
16034,
3084,
62,
21,
2548,
6052,
33411,
366,
27275,
1,
796,
705,
25194,
3281,
416,
81,
710,
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
] | [
8727,
318,
262,
8674,
618,
262,
2095,
318,
16278,
3281,
416,
81,
710,
30,
46506,
366,
40277,
1,
16034,
3084,
62,
21,
2548,
6052,
33411,
366,
27275,
1,
796,
705,
25194,
3281,
416,
81,
710,
6
] |
What is the Home team at the Blackburn Rovers Away game? | SELECT "Home team" FROM table_60350 WHERE "Away team" = 'blackburn rovers' | [
2061,
318,
262,
5995,
1074,
379,
262,
42603,
5564,
690,
21986,
983,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
1899,
14877,
33411,
366,
32,
1014,
1074,
1,
796,
705,
13424,
10899,
686,
690,
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,
318,
262,
5995,
1074,
379,
262,
42603,
5564,
690,
21986,
983,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
1899,
14877,
33411,
366,
32,
1014,
1074,
1,
796,
705,
13424,
10899,
686,
690,
6
] |
What lost has 528 as the points? | SELECT lost FROM table_name_78 WHERE points_for = "528" | [
2061,
2626,
468,
642,
2078,
355,
262,
2173,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
3695,
33411,
2173,
62,
1640,
796,
366,
49351,
1
] | [
1,
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,
2626,
468,
642,
2078,
355,
262,
2173,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
3695,
33411,
2173,
62,
1640,
796,
366,
49351,
1
] |
give me the number of patients whose admission type is elective and year of death is less than or equal to 2180? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dod_year <= "2180.0" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
15259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
15259,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and revenue , and group by attribute founder. | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
6426,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
3041,
4080,
16034,
18675... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
6426,
837,
290,
1448,
416,
11688,
9119,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
3041,
4080,
16034,
18675... |
What is the average Top-5 for the open championship, and a Top-10 smaller than 2? | SELECT AVG(top_5) FROM table_name_98 WHERE tournament = "the open championship" AND top_10 < 2 | [
2061,
318,
262,
2811,
5849,
12,
20,
329,
262,
1280,
12184,
11,
290,
257,
5849,
12,
940,
4833,
621,
362,
30,
46506,
35224,
7,
4852,
62,
20,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
7756,
796,
366,
1169,
1280,
12184,
1,
5357,
1353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5849,
12,
20,
329,
262,
1280,
12184,
11,
290,
257,
5849,
12,
940,
4833,
621,
362,
30,
46506,
35224,
7,
4852,
62,
20,
8,
16034,
3084,
62,
3672,
62,
4089,
33411,
7756,
796,
366,
1169,
1280,
12184,
1,
5357,
1353... |
What position does the player from arkansas play? | SELECT "Pos." FROM table_78072 WHERE "School/Country" = 'arkansas' | [
2061,
2292,
857,
262,
2137,
422,
610,
74,
6618,
711,
30,
46506,
366,
21604,
526,
16034,
3084,
62,
40873,
4761,
33411,
366,
26130,
14,
33921,
1,
796,
705,
668,
6618,
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,
2292,
857,
262,
2137,
422,
610,
74,
6618,
711,
30,
46506,
366,
21604,
526,
16034,
3084,
62,
40873,
4761,
33411,
366,
26130,
14,
33921,
1,
796,
705,
668,
6618,
6
] |
Most popular tags during a time period. | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS PeriodRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS Questions, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AND ... | [
6943,
2968,
15940,
1141,
257,
640,
2278,
13,
46506,
997,
13,
24835,
5376,
7054,
17467,
11,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
2494,
13,
32184,
22196,
34,
8,
7054,
18581,
27520,
11,
371,
3913,
62,
41359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
6943,
2968,
15940,
1141,
257,
640,
2278,
13,
46506,
997,
13,
24835,
5376,
7054,
17467,
11,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
2494,
13,
32184,
22196,
34,
8,
7054,
18581,
27520,
11,
371,
3913,
62,
41359,
... |
Which Peak Position has a Date of 10 june 1998? | SELECT "Peak Position" FROM table_64998 WHERE "Date" = '10 june 1998' | [
13828,
23974,
23158,
468,
257,
7536,
286,
838,
474,
1726,
7795,
30,
46506,
366,
6435,
461,
23158,
1,
16034,
3084,
62,
2414,
34808,
33411,
366,
10430,
1,
796,
705,
940,
474,
1726,
7795,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
23974,
23158,
468,
257,
7536,
286,
838,
474,
1726,
7795,
30,
46506,
366,
6435,
461,
23158,
1,
16034,
3084,
62,
2414,
34808,
33411,
366,
10430,
1,
796,
705,
940,
474,
1726,
7795,
6
] |
What is the largest total that has a gold less than 0? | SELECT MAX(total) FROM table_name_57 WHERE gold < 0 | [
2061,
318,
262,
4387,
2472,
326,
468,
257,
3869,
1342,
621,
657,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
3869,
1279,
657
] | [
1,
1,
1,
1,
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,
4387,
2472,
326,
468,
257,
3869,
1342,
621,
657,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3553,
33411,
3869,
1279,
657
] |
Next semester which classes are available as PreMajor ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND semester.semester = 'FA' AND semester.semester_id = co... | [
10019,
24878,
543,
6097,
389,
1695,
355,
3771,
24206,
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,
33411,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10019,
24878,
543,
6097,
389,
1695,
355,
3771,
24206,
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,
33411,
17... |
What is the Record of the game on November 24 with a Score of 6 2? | SELECT record FROM table_name_75 WHERE score = "6–2" AND date = "november 24" | [
2061,
318,
262,
13266,
286,
262,
983,
319,
3389,
1987,
351,
257,
15178,
286,
718,
362,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2425,
33411,
4776,
796,
366,
21,
1906,
17,
1,
5357,
3128,
796,
366,
77,
3239,
1987,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13266,
286,
262,
983,
319,
3389,
1987,
351,
257,
15178,
286,
718,
362,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2425,
33411,
4776,
796,
366,
21,
1906,
17,
1,
5357,
3128,
796,
366,
77,
3239,
1987,
1
] |
How many first downs were there when the attendance was 13196? | SELECT MIN(first_downs) FROM table_14877831_2 WHERE attendance = 13196 | [
2437,
867,
717,
21838,
547,
612,
618,
262,
14858,
373,
1511,
25272,
30,
46506,
20625,
7,
11085,
62,
30371,
8,
16034,
3084,
62,
18294,
39761,
3132,
62,
17,
33411,
14858,
796,
1511,
25272
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
717,
21838,
547,
612,
618,
262,
14858,
373,
1511,
25272,
30,
46506,
20625,
7,
11085,
62,
30371,
8,
16034,
3084,
62,
18294,
39761,
3132,
62,
17,
33411,
14858,
796,
1511,
25272
] |
What was the loss of the Mariners game when they had a record of 21-34? | SELECT "Loss" FROM table_55424 WHERE "Record" = '21-34' | [
2061,
373,
262,
2994,
286,
262,
35109,
983,
618,
484,
550,
257,
1700,
286,
2310,
12,
2682,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
2816,
40090,
33411,
366,
23739,
1,
796,
705,
2481,
12,
2682,
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,
373,
262,
2994,
286,
262,
35109,
983,
618,
484,
550,
257,
1700,
286,
2310,
12,
2682,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
2816,
40090,
33411,
366,
23739,
1,
796,
705,
2481,
12,
2682,
6
] |
Who was the Independent Socialist candidate for the office of comptroller? | SELECT "Independent-Socialist ticket" FROM table_34814 WHERE "Office" = 'comptroller' | [
8241,
373,
262,
13362,
21773,
4540,
329,
262,
2607,
286,
401,
44913,
30,
46506,
366,
40566,
12,
20636,
396,
7846,
1,
16034,
3084,
62,
28978,
1415,
33411,
366,
27743,
1,
796,
705,
785,
44913,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
13362,
21773,
4540,
329,
262,
2607,
286,
401,
44913,
30,
46506,
366,
40566,
12,
20636,
396,
7846,
1,
16034,
3084,
62,
28978,
1415,
33411,
366,
27743,
1,
796,
705,
785,
44913,
6
] |
patients with unstable renal function _ serum creatinine greater than 0.5 mg / dl above baseline. | SELECT * FROM table_train_239 WHERE renal_disease = 1 OR serum_creatinine > 0.5 | [
8071,
2334,
351,
21354,
44375,
2163,
4808,
20502,
1827,
259,
500,
3744,
621,
657,
13,
20,
10527,
1220,
288,
75,
2029,
14805,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
23516,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
20502,
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
] | [
8071,
2334,
351,
21354,
44375,
2163,
4808,
20502,
1827,
259,
500,
3744,
621,
657,
13,
20,
10527,
1220,
288,
75,
2029,
14805,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
23516,
33411,
44375,
62,
67,
786,
589,
796,
352,
6375,
20502,
62... |
show me all flights from DALLAS 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 = 'DALLAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | [
12860,
502,
477,
13956,
422,
360,
7036,
1921,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
360,
7036,
1921,
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... |
give me the number of patients whose diagnoses short title is pseudomonas infect nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Pseudomonas infect NOS" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
25038,
16698,
292,
7580,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
25038,
16698,
292,
7580,
43630,
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... |
what is the four most frequent laboratory test that patients had during the same month after they received a lingual thyroid excision procedure in 2105? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
10919,
318,
262,
1440,
749,
10792,
14010,
1332,
326,
3871,
550,
1141,
262,
976,
1227,
706,
484,
2722,
257,
18459,
723,
30523,
2859,
1166,
8771,
287,
362,
13348,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
10792,
14010,
1332,
326,
3871,
550,
1141,
262,
976,
1227,
706,
484,
2722,
257,
18459,
723,
30523,
2859,
1166,
8771,
287,
362,
13348,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
... |
Name the record with attendance of 73,996 | SELECT record FROM table_name_67 WHERE attendance = "73,996" | [
5376,
262,
1700,
351,
14858,
286,
8854,
11,
38565,
46506,
1700,
16034,
3084,
62,
3672,
62,
3134,
33411,
14858,
796,
366,
4790,
11,
38565,
1
] | [
1,
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,
351,
14858,
286,
8854,
11,
38565,
46506,
1700,
16034,
3084,
62,
3672,
62,
3134,
33411,
14858,
796,
366,
4790,
11,
38565,
1
] |
What city is the housemate who entered the house on day 1 and whose profession was a tv presenter from? | SELECT "City" FROM table_6828 WHERE "Entered the house" = 'day 1' AND "Profession" = 'tv presenter' | [
2061,
1748,
318,
262,
2156,
9830,
508,
5982,
262,
2156,
319,
1110,
352,
290,
3025,
7573,
373,
257,
31557,
39597,
422,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
3104,
2078,
33411,
366,
14539,
1068,
262,
2156,
1,
796,
705,
820,
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
] | [
2061,
1748,
318,
262,
2156,
9830,
508,
5982,
262,
2156,
319,
1110,
352,
290,
3025,
7573,
373,
257,
31557,
39597,
422,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
3104,
2078,
33411,
366,
14539,
1068,
262,
2156,
1,
796,
705,
820,
352,
... |
Show all the distinct president votes made on 08/30/2015. | SELECT DISTINCT president_vote FROM voting_record WHERE registration_date = "08/30/2015" | [
15307,
477,
262,
7310,
1893,
5690,
925,
319,
8487,
14,
1270,
14,
4626,
13,
46506,
360,
8808,
1268,
4177,
1893,
62,
27257,
16034,
6709,
62,
22105,
33411,
9352,
62,
4475,
796,
366,
2919,
14,
1270,
14,
4626,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
262,
7310,
1893,
5690,
925,
319,
8487,
14,
1270,
14,
4626,
13,
46506,
360,
8808,
1268,
4177,
1893,
62,
27257,
16034,
6709,
62,
22105,
33411,
9352,
62,
4475,
796,
366,
2919,
14,
1270,
14,
4626,
1
] |
Display a bar chart for what are the names and ids of the tourist attractions that are visited at most once? | SELECT T1.Name, T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
3891,
290,
220,
2340,
286,
262,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
30,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23114,
257,
2318,
8262,
329,
644,
389,
262,
3891,
290,
220,
2340,
286,
262,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
30,
46506,
309,
16,
13,
5376,
11,
309,
16,
13,
39152,
396,
62,
8086,
7861,
62,
2389,
16034,
9852,
396,
62,
8... |
Top 100 Tunisian users on stackover flow. | SELECT Id, DisplayName, Reputation, WebsiteUrl, Location FROM Users WHERE Location LIKE '%Tunis%' ORDER BY Reputation DESC LIMIT 100 | [
9126,
1802,
25266,
666,
2985,
319,
8931,
2502,
5202,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
33411,
13397,
34178,
705,
4,
51,
403,
271,
4,
6,
38678,
11050,
1432,
7094,
22196,
34,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9126,
1802,
25266,
666,
2985,
319,
8931,
2502,
5202,
13,
46506,
5121,
11,
16531,
5376,
11,
1432,
7094,
11,
15887,
28165,
11,
13397,
16034,
18987,
33411,
13397,
34178,
705,
4,
51,
403,
271,
4,
6,
38678,
11050,
1432,
7094,
22196,
34,
27... |
find the number of patients diagnosed with mitral valve disorders. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Mitral valve disorders" | [
19796,
262,
1271,
286,
3871,
14641,
351,
10255,
1373,
22580,
11916,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
262,
1271,
286,
3871,
14641,
351,
10255,
1373,
22580,
11916,
13,
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,
... |
Stacked bar of year and the number of year colored by Theme, display in desc by the Y-axis. | SELECT Year, COUNT(Year) FROM exhibition GROUP BY Theme ORDER BY COUNT(Year) DESC | [
1273,
6021,
2318,
286,
614,
290,
262,
1271,
286,
614,
16396,
416,
26729,
11,
3359,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
16034,
17127,
44441,
11050,
26729,
38678,
11050,
327,
28270,
7,
1768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1273,
6021,
2318,
286,
614,
290,
262,
1271,
286,
614,
16396,
416,
26729,
11,
3359,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
6280,
11,
327,
28270,
7,
17688,
8,
16034,
17127,
44441,
11050,
26729,
38678,
11050,
327,
28270,
7,
1768... |
Which Free polite has a Genitive 3 of *n(i)-ami? | SELECT "Free polite" FROM table_40799 WHERE "Genitive 3" = '*n(i)-ami' | [
13828,
3232,
23507,
468,
257,
5215,
1800,
513,
286,
1635,
77,
7,
72,
13219,
6277,
30,
46506,
366,
11146,
23507,
1,
16034,
3084,
62,
30120,
2079,
33411,
366,
13746,
1800,
513,
1,
796,
705,
9,
77,
7,
72,
13219,
6277,
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
] | [
13828,
3232,
23507,
468,
257,
5215,
1800,
513,
286,
1635,
77,
7,
72,
13219,
6277,
30,
46506,
366,
11146,
23507,
1,
16034,
3084,
62,
30120,
2079,
33411,
366,
13746,
1800,
513,
1,
796,
705,
9,
77,
7,
72,
13219,
6277,
6
] |
Is it true that Geoffrey E. Hinton has more citations than Yann Lecun ? | SELECT DISTINCT author.authorname, COUNT(writes.paperid) FROM author, writes WHERE author.authorname IN ('Geoffrey E. Hinton', 'Yann Lecun') AND writes.authorid = author.authorid GROUP BY author.authorname ORDER BY COUNT(writes.paperid) DESC | [
3792,
340,
2081,
326,
42803,
412,
13,
367,
2371,
468,
517,
33499,
621,
575,
1236,
406,
721,
403,
5633,
46506,
360,
8808,
1268,
4177,
1772,
13,
18439,
1211,
480,
11,
327,
28270,
7,
8933,
274,
13,
20189,
312,
8,
16034,
1772,
11,
6797,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3792,
340,
2081,
326,
42803,
412,
13,
367,
2371,
468,
517,
33499,
621,
575,
1236,
406,
721,
403,
5633,
46506,
360,
8808,
1268,
4177,
1772,
13,
18439,
1211,
480,
11,
327,
28270,
7,
8933,
274,
13,
20189,
312,
8,
16034,
1772,
11,
6797,... |
When the Score was 4-10, what was the Attendance? | SELECT attendance FROM table_name_13 WHERE score = "4-10" | [
2215,
262,
15178,
373,
604,
12,
940,
11,
644,
373,
262,
46502,
590,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
19,
12,
940,
1
] | [
1,
1,
1,
1,
1,
1,
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,
262,
15178,
373,
604,
12,
940,
11,
644,
373,
262,
46502,
590,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
19,
12,
940,
1
] |
Who got the loss on the game that ended in a 52-36 record? | SELECT loss FROM table_name_22 WHERE record = "52-36" | [
8241,
1392,
262,
2994,
319,
262,
983,
326,
4444,
287,
257,
6740,
12,
2623,
1700,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
1828,
33411,
1700,
796,
366,
4309,
12,
2623,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
1392,
262,
2994,
319,
262,
983,
326,
4444,
287,
257,
6740,
12,
2623,
1700,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
1828,
33411,
1700,
796,
366,
4309,
12,
2623,
1
] |
what's the race winner with location being jacarepagu | SELECT race AS Winner FROM table_1140074_2 WHERE location = "Jacarepaguá" | [
10919,
338,
262,
3234,
8464,
351,
4067,
852,
474,
330,
533,
79,
11433,
46506,
3234,
7054,
25358,
16034,
3084,
62,
1157,
7029,
4524,
62,
17,
33411,
4067,
796,
366,
28821,
533,
79,
11433,
6557,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
3234,
8464,
351,
4067,
852,
474,
330,
533,
79,
11433,
46506,
3234,
7054,
25358,
16034,
3084,
62,
1157,
7029,
4524,
62,
17,
33411,
4067,
796,
366,
28821,
533,
79,
11433,
6557,
1
] |
What is the lowest Place, when Points are greater than 2? | SELECT MIN(place) FROM table_name_17 WHERE points > 2 | [
2061,
318,
262,
9016,
8474,
11,
618,
11045,
389,
3744,
621,
362,
30,
46506,
20625,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
2173,
1875,
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
] | [
2061,
318,
262,
9016,
8474,
11,
618,
11045,
389,
3744,
621,
362,
30,
46506,
20625,
7,
5372,
8,
16034,
3084,
62,
3672,
62,
1558,
33411,
2173,
1875,
362
] |
Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869? | SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869 | [
13828,
12344,
3984,
357,
907,
75,
76,
8,
318,
262,
4511,
530,
326,
468,
281,
9498,
357,
13276,
362,
8,
4833,
621,
1511,
13,
486,
11,
290,
257,
20133,
286,
767,
2231,
2623,
11,
290,
257,
360,
6377,
357,
259,
5976,
270,
1187,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
12344,
3984,
357,
907,
75,
76,
8,
318,
262,
4511,
530,
326,
468,
281,
9498,
357,
13276,
362,
8,
4833,
621,
1511,
13,
486,
11,
290,
257,
20133,
286,
767,
2231,
2623,
11,
290,
257,
360,
6377,
357,
259,
5976,
270,
1187,
14,
... |
Which High rebounds have High points of chris bosh (18)? | SELECT "High rebounds" FROM table_50275 WHERE "High points" = 'chris bosh (18)' | [
13828,
3334,
18841,
423,
3334,
2173,
286,
442,
2442,
275,
3768,
357,
1507,
19427,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
1120,
23195,
33411,
366,
11922,
2173,
1,
796,
705,
354,
2442,
275,
3768,
357,
1507,
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,
1,
1,
1,
1,
1,
1
] | [
13828,
3334,
18841,
423,
3334,
2173,
286,
442,
2442,
275,
3768,
357,
1507,
19427,
46506,
366,
11922,
18841,
1,
16034,
3084,
62,
1120,
23195,
33411,
366,
11922,
2173,
1,
796,
705,
354,
2442,
275,
3768,
357,
1507,
33047
] |
How many losses have 222 as the goals against, with points greater than 78? | SELECT SUM("Lost") FROM table_40445 WHERE "Goals against" = '222' AND "Points" > '78' | [
2437,
867,
9089,
423,
27795,
355,
262,
4661,
1028,
11,
351,
2173,
3744,
621,
8699,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
26429,
2231,
33411,
366,
5247,
874,
1028,
1,
796,
705,
23148,
6,
5357,
366,
40710,
1,
1875,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
9089,
423,
27795,
355,
262,
4661,
1028,
11,
351,
2173,
3744,
621,
8699,
30,
46506,
35683,
7203,
31042,
4943,
16034,
3084,
62,
26429,
2231,
33411,
366,
5247,
874,
1028,
1,
796,
705,
23148,
6,
5357,
366,
40710,
1,
1875,
705,
... |
What's the record after week 16? | SELECT "Record" FROM table_77697 WHERE "Week" > '16' | [
2061,
338,
262,
1700,
706,
1285,
1467,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3324,
40035,
33411,
366,
20916,
1,
1875,
705,
1433,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
1700,
706,
1285,
1467,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
3324,
40035,
33411,
366,
20916,
1,
1875,
705,
1433,
6
] |
Calculate the total number of patients with int infection clostrdium dificile who were born before 2065. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2065" AND diagnoses.short_title = "Int inf clstrdium dfcile" | [
9771,
3129,
378,
262,
2472,
1271,
286,
3871,
351,
493,
10280,
537,
455,
4372,
1505,
288,
811,
576,
508,
547,
4642,
878,
1160,
2996,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9771,
3129,
378,
262,
2472,
1271,
286,
3871,
351,
493,
10280,
537,
455,
4372,
1505,
288,
811,
576,
508,
547,
4642,
878,
1160,
2996,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
What Tournament has a Date of 20 december 2010? | SELECT "Tournament" FROM table_61017 WHERE "Date" = '20 december 2010' | [
2061,
9595,
468,
257,
7536,
286,
1160,
390,
3273,
3050,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
5333,
29326,
33411,
366,
10430,
1,
796,
705,
1238,
390,
3273,
3050,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
9595,
468,
257,
7536,
286,
1160,
390,
3273,
3050,
30,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
5333,
29326,
33411,
366,
10430,
1,
796,
705,
1238,
390,
3273,
3050,
6
] |
For each movie that received more than 3 reviews, what is the average rating? | SELECT mid, AVG(stars) FROM rating GROUP BY mid HAVING COUNT(*) >= 2 | [
1890,
1123,
3807,
326,
2722,
517,
621,
513,
8088,
11,
644,
318,
262,
2811,
7955,
30,
46506,
3095,
11,
35224,
7,
30783,
8,
16034,
7955,
44441,
11050,
3095,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
3807,
326,
2722,
517,
621,
513,
8088,
11,
644,
318,
262,
2811,
7955,
30,
46506,
3095,
11,
35224,
7,
30783,
8,
16034,
7955,
44441,
11050,
3095,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362
] |
what is minimum age of patients whose language is cape and primary disease is complete heart block? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.language = "CAPE" AND demographic.diagnosis = "COMPLETE HEART BLOCK" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
3303,
318,
36023,
290,
4165,
4369,
318,
1844,
2612,
2512,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
33177,
36,
1,
5357,
16728,
13,
47356,
595... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
5288,
2479,
286,
3871,
3025,
3303,
318,
36023,
290,
4165,
4369,
318,
1844,
2612,
2512,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
33177,
36,
1,
5357,
16728,
13,
47356,
595... |
count the number of patients whose admission type is emergency and drug name is sulfameth/trimethoprim suspension? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "Sulfameth/Trimethoprim Suspension" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
2563,
1438,
318,
22443,
321,
2788,
14,
2213,
320,
2788,
404,
3036,
11461,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
2563,
1438,
318,
22443,
321,
2788,
14,
2213,
320,
2788,
404,
3036,
11461,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,... |
What is the smallest Result with a Location of birmingham, and Rank larger than 5? | SELECT MIN(result) FROM table_name_73 WHERE location = "birmingham" AND rank > 5 | [
2061,
318,
262,
18197,
25414,
351,
257,
13397,
286,
35122,
17737,
11,
290,
10916,
4025,
621,
642,
30,
46506,
20625,
7,
20274,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
4067,
796,
366,
65,
343,
17737,
1,
5357,
4279,
1875,
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
] | [
2061,
318,
262,
18197,
25414,
351,
257,
13397,
286,
35122,
17737,
11,
290,
10916,
4025,
621,
642,
30,
46506,
20625,
7,
20274,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
4067,
796,
366,
65,
343,
17737,
1,
5357,
4279,
1875,
642
] |
how many patients were tested for triiodothyronine (t3)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Triiodothyronine (T3)" | [
4919,
867,
3871,
547,
6789,
329,
1333,
2101,
14863,
1313,
500,
357,
83,
18,
19427,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
6789,
329,
1333,
2101,
14863,
1313,
500,
357,
83,
18,
19427,
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,... |
What is the Results that was a friendly game and played on June 25? | SELECT "Results\u00b9" FROM table_75018 WHERE "Type of game" = 'friendly' AND "Date" = 'june 25' | [
2061,
318,
262,
15691,
326,
373,
257,
8030,
983,
290,
2826,
319,
2795,
1679,
30,
46506,
366,
25468,
59,
84,
405,
65,
24,
1,
16034,
3084,
62,
2425,
29159,
33411,
366,
6030,
286,
983,
1,
796,
705,
13120,
6,
5357,
366,
10430,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
15691,
326,
373,
257,
8030,
983,
290,
2826,
319,
2795,
1679,
30,
46506,
366,
25468,
59,
84,
405,
65,
24,
1,
16034,
3084,
62,
2425,
29159,
33411,
366,
6030,
286,
983,
1,
796,
705,
13120,
6,
5357,
366,
10430,
1,
796,... |
Bar graph to show maximal age from different sex, and display in desc by the y-axis. | SELECT Sex, MAX(Age) FROM Student GROUP BY Sex ORDER BY MAX(Age) DESC | [
10374,
4823,
284,
905,
40708,
2479,
422,
1180,
1714,
11,
290,
3359,
287,
1715,
416,
262,
331,
12,
22704,
13,
46506,
14419,
11,
25882,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
25882,
7,
23396,
8,
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
] | [
10374,
4823,
284,
905,
40708,
2479,
422,
1180,
1714,
11,
290,
3359,
287,
1715,
416,
262,
331,
12,
22704,
13,
46506,
14419,
11,
25882,
7,
23396,
8,
16034,
13613,
44441,
11050,
14419,
38678,
11050,
25882,
7,
23396,
8,
22196,
34
] |
What is the Theme Song of ? | SELECT theme_song_s_ FROM table_name_5 WHERE japanese_title = "働きマン" | [
2061,
318,
262,
26729,
10940,
286,
5633,
46506,
7505,
62,
34050,
62,
82,
62,
16034,
3084,
62,
3672,
62,
20,
33411,
474,
2674,
2771,
62,
7839,
796,
366,
161,
225,
235,
33778,
20115,
6527,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26729,
10940,
286,
5633,
46506,
7505,
62,
34050,
62,
82,
62,
16034,
3084,
62,
3672,
62,
20,
33411,
474,
2674,
2771,
62,
7839,
796,
366,
161,
225,
235,
33778,
20115,
6527,
1
] |
What were the results for round of 32 for Nicole Vaidi ov ? | SELECT "Round of 32" FROM table_21465 WHERE "Athlete" = 'Nicole Vaidišová' | [
2061,
547,
262,
2482,
329,
2835,
286,
3933,
329,
25176,
569,
1698,
72,
19643,
5633,
46506,
366,
22685,
286,
3933,
1,
16034,
3084,
62,
22291,
2996,
33411,
366,
32,
400,
5807,
1,
796,
705,
30403,
2305,
569,
1698,
72,
32790,
709,
6557,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2482,
329,
2835,
286,
3933,
329,
25176,
569,
1698,
72,
19643,
5633,
46506,
366,
22685,
286,
3933,
1,
16034,
3084,
62,
22291,
2996,
33411,
366,
32,
400,
5807,
1,
796,
705,
30403,
2305,
569,
1698,
72,
32790,
709,
6557,
... |
give me the number of patients whose primary disease is complete heart block and procedure icd9 code is 3512? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "COMPLETE HEART BLOCK" AND procedures.icd9_code = "3512" | [
26535,
502,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
1844,
2612,
2512,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
1065,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
1844,
2612,
2512,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
1065,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357... |
who is the leading scorer where home is charlotte bobcats | SELECT "Leading scorer" FROM table_72247 WHERE "Home" = 'Charlotte Bobcats' | [
8727,
318,
262,
3756,
30664,
810,
1363,
318,
1149,
75,
11404,
29202,
24619,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
4761,
23753,
33411,
366,
16060,
1,
796,
705,
24453,
11404,
5811,
24619,
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
] | [
8727,
318,
262,
3756,
30664,
810,
1363,
318,
1149,
75,
11404,
29202,
24619,
46506,
366,
20451,
278,
30664,
1,
16034,
3084,
62,
4761,
23753,
33411,
366,
16060,
1,
796,
705,
24453,
11404,
5811,
24619,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.