instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Bar chart x axis name y axis how many name, could you sort Y in descending order please? | SELECT Name, COUNT(Name) FROM editor GROUP BY Name ORDER BY COUNT(Name) DESC | [
10374,
8262,
2124,
16488,
1438,
331,
16488,
703,
867,
1438,
11,
714,
345,
3297,
575,
287,
31491,
1502,
3387,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
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,
1,
1
] | [
10374,
8262,
2124,
16488,
1438,
331,
16488,
703,
867,
1438,
11,
714,
345,
3297,
575,
287,
31491,
1502,
3387,
30,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
8,
22196,
34... |
How many episodes aired on february 13, 1954? | SELECT COUNT("Title") FROM table_20319 WHERE "Original air date" = 'February 13, 1954' | [
2437,
867,
8640,
18530,
319,
730,
65,
3728,
1511,
11,
24718,
30,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
22416,
1129,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
21816,
1511,
11,
24718,
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
] | [
2437,
867,
8640,
18530,
319,
730,
65,
3728,
1511,
11,
24718,
30,
46506,
327,
28270,
7203,
19160,
4943,
16034,
3084,
62,
22416,
1129,
33411,
366,
20556,
1633,
3128,
1,
796,
705,
21816,
1511,
11,
24718,
6
] |
what kind of aircraft is used on the FIRST class AA flight from PHILADELPHIA to SAN FRANCISCO stopping in DALLAS | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, equipment_sequence, fare, fare_basis, flight, flight_fare, flight_stop WHERE (((CITY_2.city_code = AIRPO... | [
10919,
1611,
286,
6215,
318,
973,
319,
262,
31328,
1398,
15923,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
12225,
287,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
818... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1611,
286,
6215,
318,
973,
319,
262,
31328,
1398,
15923,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
37376,
8782,
20940,
1797,
8220,
12225,
287,
360,
7036,
1921,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
818... |
count the number of patients who were prescribed albumin 5% 250 ml inj in the same month after having received a bronchodilator - metered dose until 2104. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'bronchodilator - metered dose' AND STRFTIME('%y', treatment.treatmenttime) <= '2104') AS t1 JOIN (SELECT pat... | [
9127,
262,
1271,
286,
3871,
508,
547,
14798,
5062,
259,
642,
4,
8646,
25962,
2529,
287,
262,
976,
1227,
706,
1719,
2722,
257,
18443,
354,
375,
346,
1352,
532,
1138,
1068,
10742,
1566,
362,
13464,
13,
46506,
327,
28270,
7,
35,
8808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
547,
14798,
5062,
259,
642,
4,
8646,
25962,
2529,
287,
262,
976,
1227,
706,
1719,
2722,
257,
18443,
354,
375,
346,
1352,
532,
1138,
1068,
10742,
1566,
362,
13464,
13,
46506,
327,
28270,
7,
35,
8808,
... |
what is the number of patients who had been admitted to the hospital until 2103? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE STRFTIME('%y', patient.hospitaladmittime) <= '2103' | [
10919,
318,
262,
1271,
286,
3871,
508,
550,
587,
6848,
284,
262,
4436,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
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,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
508,
550,
587,
6848,
284,
262,
4436,
1566,
362,
15197,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
19269,
9792,
12789,
10786,
4,
88,
3256,
5... |
june 10-11 when january 15-16 is january 15, 1991? | SELECT "June 10-11" FROM table_27594 WHERE "January 15-16" = 'January 15, 1991' | [
73,
1726,
838,
12,
1157,
618,
42897,
2838,
1315,
12,
1433,
318,
42897,
2838,
1315,
11,
10249,
30,
46506,
366,
15749,
838,
12,
1157,
1,
16034,
3084,
62,
1983,
46438,
33411,
366,
21339,
1315,
12,
1433,
1,
796,
705,
21339,
1315,
11,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
73,
1726,
838,
12,
1157,
618,
42897,
2838,
1315,
12,
1433,
318,
42897,
2838,
1315,
11,
10249,
30,
46506,
366,
15749,
838,
12,
1157,
1,
16034,
3084,
62,
1983,
46438,
33411,
366,
21339,
1315,
12,
1433,
1,
796,
705,
21339,
1315,
11,
10... |
by which insurance is the patient kelly gallardo covered? | SELECT demographic.insurance FROM demographic WHERE demographic.name = "Kelly Gallardo" | [
1525,
543,
5096,
318,
262,
5827,
885,
12810,
7976,
13109,
5017,
30,
46506,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1525,
543,
5096,
318,
262,
5827,
885,
12810,
7976,
13109,
5017,
30,
46506,
16728,
13,
1040,
3874,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] |
How many counties are there in total? | SELECT COUNT(*) FROM county | [
2437,
867,
14683,
389,
612,
287,
2472,
30,
46506,
327,
28270,
7,
28104,
16034,
7968
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
14683,
389,
612,
287,
2472,
30,
46506,
327,
28270,
7,
28104,
16034,
7968
] |
What is the score of the match with an attendance of 2248? | SELECT "Score" FROM table_47338 WHERE "Attendance" = '2248' | [
2061,
318,
262,
4776,
286,
262,
2872,
351,
281,
14858,
286,
362,
23045,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2857,
28460,
33411,
366,
8086,
437,
590,
1,
796,
705,
17,
23045,
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,
4776,
286,
262,
2872,
351,
281,
14858,
286,
362,
23045,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
2857,
28460,
33411,
366,
8086,
437,
590,
1,
796,
705,
17,
23045,
6
] |
what was the first work completed ? | SELECT "title" FROM table_204_191 ORDER BY "year" LIMIT 1 | [
10919,
373,
262,
717,
670,
5668,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
26492,
38678,
11050,
366,
1941,
1,
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
] | [
10919,
373,
262,
717,
670,
5668,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
18638,
62,
26492,
38678,
11050,
366,
1941,
1,
27564,
2043,
352
] |
Name the aircraft type for furstenau/vorden | SELECT "Aircraft Type" FROM table_30480 WHERE "Geschwader Base" = 'Furstenau/Vorden' | [
5376,
262,
6215,
2099,
329,
9230,
26400,
559,
14,
85,
585,
268,
46506,
366,
32,
27002,
5994,
1,
16034,
3084,
62,
21288,
1795,
33411,
366,
38,
274,
354,
86,
5067,
7308,
1,
796,
705,
37,
24962,
268,
559,
14,
53,
585,
268,
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
] | [
5376,
262,
6215,
2099,
329,
9230,
26400,
559,
14,
85,
585,
268,
46506,
366,
32,
27002,
5994,
1,
16034,
3084,
62,
21288,
1795,
33411,
366,
38,
274,
354,
86,
5067,
7308,
1,
796,
705,
37,
24962,
268,
559,
14,
53,
585,
268,
6
] |
what was the top three most frequent procedures given to patients in the same hospital visit after they were diagnosed with s/p aortobifemoral bypass until 4 years ago? | SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p a... | [
10919,
373,
262,
1353,
1115,
749,
10792,
9021,
1813,
284,
3871,
287,
262,
976,
4436,
3187,
706,
484,
547,
14641,
351,
264,
14,
79,
257,
419,
672,
361,
368,
6864,
17286,
1566,
604,
812,
2084,
30,
46506,
256,
18,
13,
42487,
3672,
1603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1353,
1115,
749,
10792,
9021,
1813,
284,
3871,
287,
262,
976,
4436,
3187,
706,
484,
547,
14641,
351,
264,
14,
79,
257,
419,
672,
361,
368,
6864,
17286,
1566,
604,
812,
2084,
30,
46506,
256,
18,
13,
42487,
3672,
1603... |
What is the average age for each gender Visualize by bar chart, I want to list by the mean age in descending. | SELECT gender, AVG(age) FROM Person GROUP BY gender ORDER BY AVG(age) DESC | [
2061,
318,
262,
2811,
2479,
329,
1123,
5279,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
1612,
2479,
287,
31491,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
35224,
7,
496,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
329,
1123,
5279,
15612,
1096,
416,
2318,
8262,
11,
314,
765,
284,
1351,
416,
262,
1612,
2479,
287,
31491,
13,
46506,
5279,
11,
35224,
7,
496,
8,
16034,
7755,
44441,
11050,
5279,
38678,
11050,
35224,
7,
496,... |
List the rank of the player that left the tournament due to right foot injury | SELECT COUNT(rank) FROM table_24431264_18 WHERE withdrew_due_to = "right foot injury" | [
8053,
262,
4279,
286,
262,
2137,
326,
1364,
262,
7756,
2233,
284,
826,
2366,
5095,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
1731,
3559,
1065,
2414,
62,
1507,
33411,
25518,
62,
23301,
62,
1462,
796,
366,
3506,
2366,
5095,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
4279,
286,
262,
2137,
326,
1364,
262,
7756,
2233,
284,
826,
2366,
5095,
46506,
327,
28270,
7,
43027,
8,
16034,
3084,
62,
1731,
3559,
1065,
2414,
62,
1507,
33411,
25518,
62,
23301,
62,
1462,
796,
366,
3506,
2366,
5095,
1
] |
what's party with district being pennsylvania 21 | SELECT party FROM table_1341586_39 WHERE district = "Pennsylvania 21" | [
10919,
338,
2151,
351,
4783,
852,
22429,
9270,
2310,
46506,
2151,
16034,
3084,
62,
19880,
1314,
4521,
62,
2670,
33411,
4783,
796,
366,
39899,
9270,
2310,
1
] | [
1,
1,
1,
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,
2151,
351,
4783,
852,
22429,
9270,
2310,
46506,
2151,
16034,
3084,
62,
19880,
1314,
4521,
62,
2670,
33411,
4783,
796,
366,
39899,
9270,
2310,
1
] |
report the number of elective hospital admission patients who have acute glomerulonephritis with other pathological lesion in kidney diagnoses. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Acute glomerulonephritis with other specified pathological lesion in kidney" | [
13116,
262,
1271,
286,
1742,
425,
4436,
13938,
3871,
508,
423,
14352,
1278,
12057,
377,
505,
746,
27398,
351,
584,
42306,
10287,
295,
287,
21919,
40567,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13116,
262,
1271,
286,
1742,
425,
4436,
13938,
3871,
508,
423,
14352,
1278,
12057,
377,
505,
746,
27398,
351,
584,
42306,
10287,
295,
287,
21919,
40567,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
160... |
until 7 months ago, when patient 005-4044 was prescribed for the first time for magnesium sulfate 2gm/50ml? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4044')) AND medication.drugname = 'magnesium sulfate 2gm/5... | [
28446,
767,
1933,
2084,
11,
618,
5827,
3571,
20,
12,
1821,
2598,
373,
14798,
329,
262,
717,
640,
329,
33525,
22443,
378,
362,
39870,
14,
1120,
4029,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
767,
1933,
2084,
11,
618,
5827,
3571,
20,
12,
1821,
2598,
373,
14798,
329,
262,
717,
640,
329,
33525,
22443,
378,
362,
39870,
14,
1120,
4029,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
... |
What lost has a position greater than 2, a drawn greater than 0, with an against greater than 15? | SELECT lost FROM table_name_24 WHERE position > 2 AND drawn > 0 AND against > 15 | [
2061,
2626,
468,
257,
2292,
3744,
621,
362,
11,
257,
7428,
3744,
621,
657,
11,
351,
281,
1028,
3744,
621,
1315,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
1731,
33411,
2292,
1875,
362,
5357,
7428,
1875,
657,
5357,
1028,
1875,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2292,
3744,
621,
362,
11,
257,
7428,
3744,
621,
657,
11,
351,
281,
1028,
3744,
621,
1315,
30,
46506,
2626,
16034,
3084,
62,
3672,
62,
1731,
33411,
2292,
1875,
362,
5357,
7428,
1875,
657,
5357,
1028,
1875,
1315
] |
Who were the away teams when the competition was the 1st republic of srpska football day and the home team was u 14 republic of srpska? | SELECT away_team FROM table_29728596_2 WHERE competition = "1st ``Republic of Srpska Football Day``" AND home_team = "U 14 Republic of Srpska" | [
8241,
547,
262,
1497,
3466,
618,
262,
5449,
373,
262,
352,
301,
17146,
286,
19677,
862,
4914,
4346,
1110,
290,
262,
1363,
1074,
373,
334,
1478,
17146,
286,
19677,
862,
4914,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
26561,
2078,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1497,
3466,
618,
262,
5449,
373,
262,
352,
301,
17146,
286,
19677,
862,
4914,
4346,
1110,
290,
262,
1363,
1074,
373,
334,
1478,
17146,
286,
19677,
862,
4914,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
26561,
2078,
45... |
how much difference does patient 9619 have in arterial bp [diastolic] last measured on the first intensive care unit visit compared to the second to last value measured on the first intensive care unit visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9619) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemi... | [
4919,
881,
3580,
857,
5827,
9907,
1129,
423,
287,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
262,
717,
18590,
1337,
4326,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
717,
18590,
1337,
4326,
3187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3580,
857,
5827,
9907,
1129,
423,
287,
30675,
498,
275,
79,
685,
10989,
459,
4160,
60,
938,
8630,
319,
262,
717,
18590,
1337,
4326,
3187,
3688,
284,
262,
1218,
284,
938,
1988,
8630,
319,
262,
717,
18590,
1337,
4326,
3187,
... |
What was the record on March 22? | SELECT "Record" FROM table_51373 WHERE "Date" = 'march 22' | [
2061,
373,
262,
1700,
319,
2805,
2534,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
48645,
4790,
33411,
366,
10430,
1,
796,
705,
76,
998,
2534,
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,
1700,
319,
2805,
2534,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
48645,
4790,
33411,
366,
10430,
1,
796,
705,
76,
998,
2534,
6
] |
Which weight was attached to the 2012 club San Pedro? | SELECT "Weight" FROM table_41208 WHERE "2012 club" = 'san pedro' | [
13828,
3463,
373,
7223,
284,
262,
2321,
3430,
2986,
28855,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
39226,
2919,
33411,
366,
6999,
3430,
1,
796,
705,
12807,
7190,
305,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
3463,
373,
7223,
284,
262,
2321,
3430,
2986,
28855,
30,
46506,
366,
25844,
1,
16034,
3084,
62,
39226,
2919,
33411,
366,
6999,
3430,
1,
796,
705,
12807,
7190,
305,
6
] |
what is the number of patients whose diagnoses icd9 code is v4983 and drug type is main? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "V4983" AND prescriptions.drug_type = "MAIN" | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
410,
2920,
5999,
290,
2563,
2099,
318,
1388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
410,
2920,
5999,
290,
2563,
2099,
318,
1388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
What is the postion of the player listed from Dooly County High School? | SELECT "Position" FROM table_17063 WHERE "School" = 'Dooly County High School' | [
2061,
318,
262,
1281,
295,
286,
262,
2137,
5610,
422,
2141,
3366,
3418,
3334,
3961,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1558,
3312,
18,
33411,
366,
26130,
1,
796,
705,
35,
2238,
306,
3418,
3334,
3961,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1281,
295,
286,
262,
2137,
5610,
422,
2141,
3366,
3418,
3334,
3961,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1558,
3312,
18,
33411,
366,
26130,
1,
796,
705,
35,
2238,
306,
3418,
3334,
3961,
6
] |
Show the average age of drivers from the same home city using a bar graph, sort total number from low to high order. | SELECT Home_city, AVG(Age) FROM driver GROUP BY Home_city ORDER BY AVG(Age) | [
15307,
262,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
3297,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
2479,
286,
6643,
422,
262,
976,
1363,
1748,
1262,
257,
2318,
4823,
11,
3297,
2472,
1271,
422,
1877,
284,
1029,
1502,
13,
46506,
5995,
62,
19205,
11,
35224,
7,
23396,
8,
16034,
4639,
44441,
11050,
5995,
62,
19205,
386... |
Where is constituency number 16? | SELECT "Name" FROM table_12907 WHERE "Constituency number" = '16' | [
8496,
318,
28280,
1271,
1467,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
18741,
2998,
33411,
366,
34184,
34272,
1387,
1271,
1,
796,
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,
1
] | [
8496,
318,
28280,
1271,
1467,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
18741,
2998,
33411,
366,
34184,
34272,
1387,
1271,
1,
796,
705,
1433,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the email , and I want to order X-axis in descending order. | SELECT EMAIL, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL DESC | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
3053,
837,
290,
314,
765,
284,
1502,
1395,
12,
22704,
287,
31491,
1502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1577,
502,
262,
7208,
546,
6538,
62,
312,
625,
262,
3053,
837,
290,
314,
765,
284,
1502,
1395,
12,
22704,
287,
31491,
1502,
... |
What's the earliest year that had a category of best supporting actress at the asian film awards? | SELECT MIN("Year") FROM table_55134 WHERE "Category" = 'best supporting actress' AND "Award" = 'asian film awards' | [
2061,
338,
262,
14555,
614,
326,
550,
257,
6536,
286,
1266,
6493,
14549,
379,
262,
355,
666,
2646,
13304,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2816,
19880,
33411,
366,
27313,
1,
796,
705,
13466,
6493,
14549,
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
] | [
2061,
338,
262,
14555,
614,
326,
550,
257,
6536,
286,
1266,
6493,
14549,
379,
262,
355,
666,
2646,
13304,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
2816,
19880,
33411,
366,
27313,
1,
796,
705,
13466,
6493,
14549,
6,
5357,
... |
Find questions migrated from a particular site. Only selects questions that have never been closed. | SELECT PostId AS "post_link", Score, AnswerCount, CASE WHEN NOT AcceptedAnswerId IS NULL THEN ' ' ELSE '' END AS HasAccepted FROM PostHistory LEFT JOIN Posts ON PostHistory.PostId = Posts.Id WHERE Posts.PostTypeId = 1 AND Posts.ClosedDate IS NULL AND PostHistoryTypeId = 36 AND Comment LIKE 'from %' + '##site:string##' ... | [
16742,
2683,
40227,
422,
257,
1948,
2524,
13,
5514,
40573,
2683,
326,
423,
1239,
587,
4838,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23998,
12332,
11,
42001,
42099,
5626,
21699,
276,
33706,
7390,
3180,
15697,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
2683,
40227,
422,
257,
1948,
2524,
13,
5514,
40573,
2683,
326,
423,
1239,
587,
4838,
13,
46506,
2947,
7390,
7054,
366,
7353,
62,
8726,
1600,
15178,
11,
23998,
12332,
11,
42001,
42099,
5626,
21699,
276,
33706,
7390,
3180,
15697,
4... |
what is a drug that patient 25696 was prescribed for during the same hospital encounter after receiving cont inv mec ven <96 hrs in 03/last year? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 25696 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_proce... | [
10919,
318,
257,
2563,
326,
5827,
1679,
38205,
373,
14798,
329,
1141,
262,
976,
4436,
8791,
706,
6464,
542,
800,
502,
66,
8710,
1279,
4846,
36201,
287,
7643,
14,
12957,
614,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
257,
2563,
326,
5827,
1679,
38205,
373,
14798,
329,
1141,
262,
976,
4436,
8791,
706,
6464,
542,
800,
502,
66,
8710,
1279,
4846,
36201,
287,
7643,
14,
12957,
614,
30,
46506,
256,
17,
13,
30349,
16034,
357,
46506,
25349,
13,... |
How many pixels would be found in a hardware colour of 8? | SELECT "Pixels" FROM table_21213 WHERE "Hardware colours" = '8' | [
2437,
867,
17848,
561,
307,
1043,
287,
257,
6890,
9568,
286,
807,
30,
46506,
366,
47,
14810,
1,
16034,
3084,
62,
21777,
1485,
33411,
366,
49865,
18915,
1,
796,
705,
23,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
17848,
561,
307,
1043,
287,
257,
6890,
9568,
286,
807,
30,
46506,
366,
47,
14810,
1,
16034,
3084,
62,
21777,
1485,
33411,
366,
49865,
18915,
1,
796,
705,
23,
6
] |
what is the number of patients whose language is engl and age is less than 30? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "ENGL" AND demographic.age < "30" | [
10919,
318,
262,
1271,
286,
3871,
3025,
3303,
318,
1786,
75,
290,
2479,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
1677,
8763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
1271,
286,
3871,
3025,
3303,
318,
1786,
75,
290,
2479,
318,
1342,
621,
1542,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
1677,
8763,
... |
Specify the icd9 code of patient Kelly Gallardo | SELECT diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Kelly Gallardo" | [
22882,
1958,
262,
14158,
67,
24,
2438,
286,
5827,
9077,
7096,
13109,
46506,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22882,
1958,
262,
14158,
67,
24,
2438,
286,
5827,
9077,
7096,
13109,
46506,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
796,
40567,
13,
18108,
76,
62,
312,
33411,
16728... |
list flights from SAN FRANCISCO to PITTSBURGH | 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 = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = '... | [
4868,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
49040,
4694,
38926,
17511,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
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... | [
4868,
13956,
422,
37376,
8782,
20940,
1797,
8220,
284,
49040,
4694,
38926,
17511,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
3... |
What is the team mascot for the soccer team in Charlottetown? | SELECT varsity_name FROM table_27369069_1 WHERE city = "Charlottetown" | [
2061,
318,
262,
1074,
37358,
329,
262,
11783,
1074,
287,
6258,
1252,
316,
593,
30,
46506,
410,
45826,
62,
3672,
16034,
3084,
62,
1983,
30803,
3312,
24,
62,
16,
33411,
1748,
796,
366,
24453,
1252,
316,
593,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1074,
37358,
329,
262,
11783,
1074,
287,
6258,
1252,
316,
593,
30,
46506,
410,
45826,
62,
3672,
16034,
3084,
62,
1983,
30803,
3312,
24,
62,
16,
33411,
1748,
796,
366,
24453,
1252,
316,
593,
1
] |
What's the average year with a rank less than 3? | SELECT AVG("Year") FROM table_47649 WHERE "Rank" < '3' | [
2061,
338,
262,
2811,
614,
351,
257,
4279,
1342,
621,
513,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
2857,
33300,
33411,
366,
27520,
1,
1279,
705,
18,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
2811,
614,
351,
257,
4279,
1342,
621,
513,
30,
46506,
35224,
7203,
17688,
4943,
16034,
3084,
62,
2857,
33300,
33411,
366,
27520,
1,
1279,
705,
18,
6
] |
Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert? | SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert" | [
8241,
373,
262,
3800,
8464,
618,
262,
3800,
373,
517,
621,
838,
290,
7872,
22383,
373,
7212,
5224,
694,
64,
861,
30,
46506,
3800,
7054,
8464,
16034,
3084,
62,
3672,
62,
2079,
33411,
3800,
1875,
838,
5357,
7872,
62,
44009,
4397,
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
] | [
8241,
373,
262,
3800,
8464,
618,
262,
3800,
373,
517,
621,
838,
290,
7872,
22383,
373,
7212,
5224,
694,
64,
861,
30,
46506,
3800,
7054,
8464,
16034,
3084,
62,
3672,
62,
2079,
33411,
3800,
1875,
838,
5357,
7872,
62,
44009,
4397,
796,
... |
Bar chart x axis document name y axis the number of document name, and sort by the how many document name in asc please. | SELECT Document_Name, COUNT(Document_Name) FROM Documents GROUP BY Document_Name ORDER BY COUNT(Document_Name) | [
10374,
8262,
2124,
16488,
3188,
1438,
331,
16488,
262,
1271,
286,
3188,
1438,
11,
290,
3297,
416,
262,
703,
867,
3188,
1438,
287,
10570,
3387,
13,
46506,
16854,
62,
5376,
11,
327,
28270,
7,
24941,
62,
5376,
8,
16034,
33267,
44441,
110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3188,
1438,
331,
16488,
262,
1271,
286,
3188,
1438,
11,
290,
3297,
416,
262,
703,
867,
3188,
1438,
287,
10570,
3387,
13,
46506,
16854,
62,
5376,
11,
327,
28270,
7,
24941,
62,
5376,
8,
16034,
33267,
44441,
110... |
Name the total number of high assists for fedexforum 11,283 | SELECT COUNT(high_assists) FROM table_27756474_6 WHERE location_attendance = "FedExForum 11,283" | [
5376,
262,
2472,
1271,
286,
1029,
13648,
329,
11672,
1069,
27302,
1367,
11,
30290,
46506,
327,
28270,
7,
8929,
62,
562,
1023,
8,
16034,
3084,
62,
1983,
2425,
2414,
4524,
62,
21,
33411,
4067,
62,
1078,
437,
590,
796,
366,
42268,
3109,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
1029,
13648,
329,
11672,
1069,
27302,
1367,
11,
30290,
46506,
327,
28270,
7,
8929,
62,
562,
1023,
8,
16034,
3084,
62,
1983,
2425,
2414,
4524,
62,
21,
33411,
4067,
62,
1078,
437,
590,
796,
366,
42268,
3109,
... |
Questions with bounties awarded in the past. | SELECT Posts.Id AS "post_link", Votes.BountyAmount AS "Bounty Amount", Votes.CreationDate AS "Bounty Creation Date" FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE Votes.VoteTypeId = 8 ORDER BY Votes.BountyAmount DESC, Votes.CreationDate DESC | [
35741,
351,
49937,
444,
11343,
287,
262,
1613,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
39584,
13,
33,
17705,
31264,
7054,
366,
33,
17705,
26308,
1600,
39584,
13,
12443,
341,
10430,
7054,
366,
33,
17705,
21582,
7536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35741,
351,
49937,
444,
11343,
287,
262,
1613,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
39584,
13,
33,
17705,
31264,
7054,
366,
33,
17705,
26308,
1600,
39584,
13,
12443,
341,
10430,
7054,
366,
33,
17705,
21582,
7536,... |
What is the sum of goals when the league cup goals are 4 and the FA cup goals are 0? | SELECT total FROM table_name_79 WHERE league_cup_goals = "4" AND fa_cup_goals = "0" | [
2061,
318,
262,
2160,
286,
4661,
618,
262,
4652,
6508,
4661,
389,
604,
290,
262,
9677,
6508,
4661,
389,
657,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
3720,
33411,
4652,
62,
25244,
62,
2188,
874,
796,
366,
19,
1,
5357,
24685,
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
] | [
2061,
318,
262,
2160,
286,
4661,
618,
262,
4652,
6508,
4661,
389,
604,
290,
262,
9677,
6508,
4661,
389,
657,
30,
46506,
2472,
16034,
3084,
62,
3672,
62,
3720,
33411,
4652,
62,
25244,
62,
2188,
874,
796,
366,
19,
1,
5357,
24685,
62,
... |
What is a highest time for the heat smaller than 1? | SELECT MAX(time) FROM table_name_39 WHERE heat < 1 | [
2061,
318,
257,
4511,
640,
329,
262,
4894,
4833,
621,
352,
30,
46506,
25882,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
4894,
1279,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
257,
4511,
640,
329,
262,
4894,
4833,
621,
352,
30,
46506,
25882,
7,
2435,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
4894,
1279,
352
] |
Who was at home when the score was 2:2? | SELECT "Home" FROM table_5529 WHERE "Score" = '2:2' | [
8241,
373,
379,
1363,
618,
262,
4776,
373,
362,
25,
17,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
2816,
1959,
33411,
366,
26595,
1,
796,
705,
17,
25,
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,
1,
1,
1,
1
] | [
8241,
373,
379,
1363,
618,
262,
4776,
373,
362,
25,
17,
30,
46506,
366,
16060,
1,
16034,
3084,
62,
2816,
1959,
33411,
366,
26595,
1,
796,
705,
17,
25,
17,
6
] |
What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? | SELECT SUM(altitude__meters_) FROM table_name_93 WHERE range = "belgica mountains" AND name = "mount launoit" | [
2061,
318,
262,
20334,
357,
4164,
364,
8,
318,
3917,
351,
262,
6530,
5628,
19826,
30711,
11,
351,
262,
2837,
355,
10952,
3970,
21124,
30,
46506,
35683,
7,
2501,
3984,
834,
4164,
364,
62,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20334,
357,
4164,
364,
8,
318,
3917,
351,
262,
6530,
5628,
19826,
30711,
11,
351,
262,
2837,
355,
10952,
3970,
21124,
30,
46506,
35683,
7,
2501,
3984,
834,
4164,
364,
62,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
28... |
What date was the race at the Symmons Plains Raceway? | SELECT date FROM table_22905641_2 WHERE circuit = "Symmons Plains Raceway" | [
2061,
3128,
373,
262,
3234,
379,
262,
1632,
3020,
684,
31981,
24746,
16172,
30,
46506,
3128,
16034,
3084,
62,
23539,
2713,
42759,
62,
17,
33411,
10349,
796,
366,
13940,
3020,
684,
31981,
24746,
16172,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3128,
373,
262,
3234,
379,
262,
1632,
3020,
684,
31981,
24746,
16172,
30,
46506,
3128,
16034,
3084,
62,
23539,
2713,
42759,
62,
17,
33411,
10349,
796,
366,
13940,
3020,
684,
31981,
24746,
16172,
1
] |
What is Opponent, when Location/Attendance is 'Mellon Arena - 17,132'? | SELECT opponent FROM table_name_67 WHERE location_attendance = "mellon arena - 17,132" | [
2061,
318,
9385,
3471,
11,
618,
13397,
14,
8086,
437,
590,
318,
705,
44,
695,
261,
10937,
532,
1596,
11,
19924,
30960,
46506,
6125,
16034,
3084,
62,
3672,
62,
3134,
33411,
4067,
62,
1078,
437,
590,
796,
366,
76,
695,
261,
13478,
532... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9385,
3471,
11,
618,
13397,
14,
8086,
437,
590,
318,
705,
44,
695,
261,
10937,
532,
1596,
11,
19924,
30960,
46506,
6125,
16034,
3084,
62,
3672,
62,
3134,
33411,
4067,
62,
1078,
437,
590,
796,
366,
76,
695,
261,
13478,
532... |
What title runs for 3:22? | SELECT title FROM table_name_5 WHERE time = "3:22" | [
2061,
3670,
4539,
329,
513,
25,
1828,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
20,
33411,
640,
796,
366,
18,
25,
1828,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3670,
4539,
329,
513,
25,
1828,
30,
46506,
3670,
16034,
3084,
62,
3672,
62,
20,
33411,
640,
796,
366,
18,
25,
1828,
1
] |
What player has a score less than 66, and a Place of t2, in the United States? | SELECT "Player" FROM table_13483 WHERE "Score" < '66' AND "Place" = 't2' AND "Country" = 'united states' | [
2061,
2137,
468,
257,
4776,
1342,
621,
7930,
11,
290,
257,
8474,
286,
256,
17,
11,
287,
262,
1578,
1829,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1485,
38783,
33411,
366,
26595,
1,
1279,
705,
2791,
6,
5357,
366,
27271,
1,
796,
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
] | [
2061,
2137,
468,
257,
4776,
1342,
621,
7930,
11,
290,
257,
8474,
286,
256,
17,
11,
287,
262,
1578,
1829,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
1485,
38783,
33411,
366,
26595,
1,
1279,
705,
2791,
6,
5357,
366,
27271,
1,
796,
7... |
What College/junior/club team (league) did mitch fadden play for? | SELECT college_junior_club_team__league_ FROM table_name_14 WHERE player = "mitch fadden" | [
2061,
5535,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
8,
750,
285,
2007,
277,
38014,
711,
329,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
16034,
3084,
62,
3672,
62,
1415,
33411,
2137,
796,
366,
76,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
5535,
14,
29741,
1504,
14,
18664,
1074,
357,
19316,
8,
750,
285,
2007,
277,
38014,
711,
329,
30,
46506,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
16034,
3084,
62,
3672,
62,
1415,
33411,
2137,
796,
366,
76,
2... |
what is the maximum season where leading goalkicker is scott simister (54) | SELECT MAX(season) FROM table_1165048_1 WHERE leading_goalkicker = "Scott Simister (54)" | [
10919,
318,
262,
5415,
1622,
810,
3756,
467,
971,
15799,
318,
629,
1252,
985,
1694,
357,
4051,
8,
46506,
25882,
7,
6230,
8,
16034,
3084,
62,
1157,
17544,
2780,
62,
16,
33411,
3756,
62,
2188,
971,
15799,
796,
366,
19040,
3184,
1694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
1622,
810,
3756,
467,
971,
15799,
318,
629,
1252,
985,
1694,
357,
4051,
8,
46506,
25882,
7,
6230,
8,
16034,
3084,
62,
1157,
17544,
2780,
62,
16,
33411,
3756,
62,
2188,
971,
15799,
796,
366,
19040,
3184,
1694,
... |
Group and count the name attribute for visualizing a bar chart. | SELECT Name, COUNT(Name) FROM editor GROUP BY Name | [
13247,
290,
954,
262,
1438,
11688,
329,
5874,
2890,
257,
2318,
8262,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13247,
290,
954,
262,
1438,
11688,
329,
5874,
2890,
257,
2318,
8262,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
5464,
44441,
11050,
6530
] |
What is the party of the representative that has the smallest number of votes. | SELECT T2.party FROM election AS T1 JOIN representative AS T2 ON T1.representative_id = T2.representative_id ORDER BY votes LIMIT 1 | [
2061,
318,
262,
2151,
286,
262,
8852,
326,
468,
262,
18197,
1271,
286,
5690,
13,
46506,
309,
17,
13,
10608,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
15603,
876,
62,
312,
796,
309,
17,
13,
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
] | [
2061,
318,
262,
2151,
286,
262,
8852,
326,
468,
262,
18197,
1271,
286,
5690,
13,
46506,
309,
17,
13,
10608,
16034,
3071,
7054,
309,
16,
32357,
1268,
8852,
7054,
309,
17,
6177,
309,
16,
13,
15603,
876,
62,
312,
796,
309,
17,
13,
15... |
What record has a decision of parent, Philadelphia as the home, with december 12 as the date? | SELECT "Record" FROM table_37493 WHERE "Decision" = 'parent' AND "Home" = 'philadelphia' AND "Date" = 'december 12' | [
2061,
1700,
468,
257,
2551,
286,
2560,
11,
8857,
355,
262,
1363,
11,
351,
390,
3273,
1105,
355,
262,
3128,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2718,
43134,
33411,
366,
10707,
1166,
1,
796,
705,
8000,
6,
5357,
366,
16060,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
468,
257,
2551,
286,
2560,
11,
8857,
355,
262,
1363,
11,
351,
390,
3273,
1105,
355,
262,
3128,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
2718,
43134,
33411,
366,
10707,
1166,
1,
796,
705,
8000,
6,
5357,
366,
16060,
1,
... |
which was the only stamp set to have more than 200,000 issued ? | SELECT "stamp set" FROM table_203_153 WHERE "qty. issued" > 200000 | [
4758,
373,
262,
691,
17977,
900,
284,
423,
517,
621,
939,
11,
830,
4884,
5633,
46506,
366,
301,
696,
900,
1,
16034,
3084,
62,
22416,
62,
21395,
33411,
366,
80,
774,
13,
4884,
1,
1875,
939,
830
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
373,
262,
691,
17977,
900,
284,
423,
517,
621,
939,
11,
830,
4884,
5633,
46506,
366,
301,
696,
900,
1,
16034,
3084,
62,
22416,
62,
21395,
33411,
366,
80,
774,
13,
4884,
1,
1875,
939,
830
] |
A bar chart for what are the number of the descriptions for the aircrafts?, and sort by the names in ascending please. | SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY Description | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
16969,
329,
262,
6215,
82,
21747,
290,
3297,
416,
262,
3891,
287,
41988,
3387,
13,
46506,
12489,
11,
327,
28270,
7,
11828,
8,
16034,
6215,
44441,
11050,
12489,
38678,
11050,
12489
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
16969,
329,
262,
6215,
82,
21747,
290,
3297,
416,
262,
3891,
287,
41988,
3387,
13,
46506,
12489,
11,
327,
28270,
7,
11828,
8,
16034,
6215,
44441,
11050,
12489,
38678,
11050,
12489
] |
give me the number of patients who had percutaneous endoscopic gastrostomy and died on or before 2148. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2148.0" AND procedures.short_title = "Percu endosc gastrostomy" | [
26535,
502,
262,
1271,
286,
3871,
508,
550,
583,
8968,
11655,
886,
48228,
21956,
23341,
9145,
290,
3724,
319,
393,
878,
362,
18294,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
508,
550,
583,
8968,
11655,
886,
48228,
21956,
23341,
9145,
290,
3724,
319,
393,
878,
362,
18294,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
what are the three most commonly ordered lab tests for patients who had been diagnosed with hypovolemia before in the same hospital encounter, since 2 years ago? | 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, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id W... | [
10919,
389,
262,
1115,
749,
8811,
6149,
2248,
5254,
329,
3871,
508,
550,
587,
14641,
351,
5328,
709,
2305,
20730,
878,
287,
262,
976,
4436,
8791,
11,
1201,
362,
812,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
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... | [
10919,
389,
262,
1115,
749,
8811,
6149,
2248,
5254,
329,
3871,
508,
550,
587,
14641,
351,
5328,
709,
2305,
20730,
878,
287,
262,
976,
4436,
8791,
11,
1201,
362,
812,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
... |
tell me the total amount of ultrafiltrate ultrafiltrate that patient 25523 produced on 06/06/2104? | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25523)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'ult... | [
33331,
502,
262,
2472,
2033,
286,
14764,
10379,
2213,
378,
14764,
10379,
2213,
378,
326,
5827,
14280,
1954,
4635,
319,
9130,
14,
3312,
14,
17,
13464,
30,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
33331,
502,
262,
2472,
2033,
286,
14764,
10379,
2213,
378,
14764,
10379,
2213,
378,
326,
5827,
14280,
1954,
4635,
319,
9130,
14,
3312,
14,
17,
13464,
30,
46506,
35683,
7,
448,
79,
1133,
85,
658,
13,
8367,
8,
16034,
38701,
1133,
85,
... |
Which airport has perth as the city? | SELECT "Airport" FROM table_36853 WHERE "City" = 'perth' | [
13828,
9003,
468,
583,
400,
355,
262,
1748,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
27412,
4310,
33411,
366,
14941,
1,
796,
705,
525,
400,
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,
9003,
468,
583,
400,
355,
262,
1748,
30,
46506,
366,
16170,
634,
1,
16034,
3084,
62,
27412,
4310,
33411,
366,
14941,
1,
796,
705,
525,
400,
6
] |
List all region names in alphabetical order. | SELECT region_name FROM region ORDER BY region_name | [
8053,
477,
3814,
3891,
287,
24830,
605,
1502,
13,
46506,
3814,
62,
3672,
16034,
3814,
38678,
11050,
3814,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
3814,
3891,
287,
24830,
605,
1502,
13,
46506,
3814,
62,
3672,
16034,
3814,
38678,
11050,
3814,
62,
3672
] |
How many seats in 2006 has a % 1997 rating of 38.9? | SELECT COUNT("Seats 2006") FROM table_2418 WHERE "% 1997" = '38.9' | [
2437,
867,
8632,
287,
4793,
468,
257,
4064,
8309,
7955,
286,
4353,
13,
24,
30,
46506,
327,
28270,
7203,
4653,
1381,
4793,
4943,
16034,
3084,
62,
1731,
1507,
33411,
36521,
8309,
1,
796,
705,
2548,
13,
24,
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
] | [
2437,
867,
8632,
287,
4793,
468,
257,
4064,
8309,
7955,
286,
4353,
13,
24,
30,
46506,
327,
28270,
7203,
4653,
1381,
4793,
4943,
16034,
3084,
62,
1731,
1507,
33411,
36521,
8309,
1,
796,
705,
2548,
13,
24,
6
] |
What event has a $248,004 prize? | SELECT "Event" FROM table_77006 WHERE "Prize" = '$248,004' | [
2061,
1785,
468,
257,
720,
23045,
11,
22914,
11596,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
3324,
28041,
33411,
366,
34487,
2736,
1,
796,
705,
3,
23045,
11,
22914,
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,
1785,
468,
257,
720,
23045,
11,
22914,
11596,
30,
46506,
366,
9237,
1,
16034,
3084,
62,
3324,
28041,
33411,
366,
34487,
2736,
1,
796,
705,
3,
23045,
11,
22914,
6
] |
What did the home team score when the away team scored 12.12 (84)? | SELECT "Home team score" FROM table_57460 WHERE "Away team score" = '12.12 (84)' | [
2061,
750,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
7781,
1105,
13,
1065,
357,
5705,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
3553,
34716,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1065,
357,
5705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
750,
262,
1363,
1074,
4776,
618,
262,
1497,
1074,
7781,
1105,
13,
1065,
357,
5705,
19427,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
3553,
34716,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
1065,
13,
1065,
357,
5705,
... |
Find All_Home and School_ID , and group by attribute ACC_Home, and visualize them by a bar chart, could you list in descending by the y-axis please? | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY School_ID DESC | [
16742,
1439,
62,
16060,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
714,
345,
1351,
287,
31491,
416,
262,
331,
12,
22704,
3387,
30,
46506,
1439,
62,
16060,
11,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1439,
62,
16060,
290,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
16060,
11,
290,
38350,
606,
416,
257,
2318,
8262,
11,
714,
345,
1351,
287,
31491,
416,
262,
331,
12,
22704,
3387,
30,
46506,
1439,
62,
16060,
11,
39... |
What is the date where the winner was the Oakland Raiders in 1975? | SELECT "Date" FROM table_54230 WHERE "Year" = '1975' AND "Winner" = 'oakland raiders' | [
2061,
318,
262,
3128,
810,
262,
8464,
373,
262,
12369,
16120,
287,
15231,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
3682,
1270,
33411,
366,
17688,
1,
796,
705,
38449,
6,
5357,
366,
48056,
1,
796,
705,
15877,
1044,
9513,
364,
6
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
810,
262,
8464,
373,
262,
12369,
16120,
287,
15231,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
20,
3682,
1270,
33411,
366,
17688,
1,
796,
705,
38449,
6,
5357,
366,
48056,
1,
796,
705,
15877,
1044,
9513,
364,
6
... |
How many weeks are there? | SELECT MAX(week) FROM table_10647639_1 | [
2437,
867,
2745,
389,
612,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
940,
2414,
4304,
2670,
62,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2745,
389,
612,
30,
46506,
25882,
7,
10464,
8,
16034,
3084,
62,
940,
2414,
4304,
2670,
62,
16
] |
my rank in Sri Lanka. | SELECT x.position AS RANK_IN_LANKA, x.Id AS USER_ID, x.Reputation, x.DisplayName FROM (SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS position, Id, DisplayName, Reputation FROM Users WHERE Location LIKE '%Sri Lanka%' ORDER BY Reputation DESC LIMIT 1000) AS x WHERE x.Id = 3702886 | [
1820,
4279,
287,
20872,
28143,
13,
46506,
2124,
13,
9150,
7054,
371,
15154,
62,
1268,
62,
43,
15154,
32,
11,
2124,
13,
7390,
7054,
1294,
1137,
62,
2389,
11,
2124,
13,
6207,
7094,
11,
2124,
13,
23114,
5376,
16034,
357,
46506,
371,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1820,
4279,
287,
20872,
28143,
13,
46506,
2124,
13,
9150,
7054,
371,
15154,
62,
1268,
62,
43,
15154,
32,
11,
2124,
13,
7390,
7054,
1294,
1137,
62,
2389,
11,
2124,
13,
6207,
7094,
11,
2124,
13,
23114,
5376,
16034,
357,
46506,
371,
39... |
What number of attempts were recorded when the completions were 223? | SELECT "Attempts" FROM table_50835 WHERE "Completions" = '223' | [
2061,
1271,
286,
6370,
547,
6264,
618,
262,
1224,
45240,
547,
30299,
30,
46506,
366,
48452,
1,
16034,
3084,
62,
33042,
2327,
33411,
366,
5377,
37069,
507,
1,
796,
705,
22047,
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,
1271,
286,
6370,
547,
6264,
618,
262,
1224,
45240,
547,
30299,
30,
46506,
366,
48452,
1,
16034,
3084,
62,
33042,
2327,
33411,
366,
5377,
37069,
507,
1,
796,
705,
22047,
6
] |
What story title was included in Issue #8? | SELECT story FROM table_name_47 WHERE issue = "#8" | [
2061,
1621,
3670,
373,
3017,
287,
18232,
1303,
23,
30,
46506,
1621,
16034,
3084,
62,
3672,
62,
2857,
33411,
2071,
796,
25113,
23,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1621,
3670,
373,
3017,
287,
18232,
1303,
23,
30,
46506,
1621,
16034,
3084,
62,
3672,
62,
2857,
33411,
2071,
796,
25113,
23,
1
] |
all round trip flights between NEW YORK and MIAMI COACH fare | 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, fare, fare_basis, flight, flight_fare WHERE ((fare_basis.class_type = 'COACH' AND fare.fare_basis_code = fare_basis.fare_basis_code) AND CITY_1.city_code = AIRPORT_SERVICE_1.... | [
439,
2835,
5296,
13956,
1022,
12682,
28154,
290,
15789,
43870,
7375,
16219,
14505,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
439,
2835,
5296,
13956,
1022,
12682,
28154,
290,
15789,
43870,
7375,
16219,
14505,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
... |
What are the manuals with a kind of r, and an opus of 144? | SELECT manuals FROM table_name_89 WHERE kind = "r" AND opus = "144" | [
2061,
389,
262,
41371,
351,
257,
1611,
286,
374,
11,
290,
281,
1034,
385,
286,
20224,
30,
46506,
41371,
16034,
3084,
62,
3672,
62,
4531,
33411,
1611,
796,
366,
81,
1,
5357,
1034,
385,
796,
366,
18444,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41371,
351,
257,
1611,
286,
374,
11,
290,
281,
1034,
385,
286,
20224,
30,
46506,
41371,
16034,
3084,
62,
3672,
62,
4531,
33411,
1611,
796,
366,
81,
1,
5357,
1034,
385,
796,
366,
18444,
1
] |
Time distribution of upvotes on all the questions of a given user. It prints the time distribution of all the questions of a given user | SELECT Posts.Id AS "post_link", Votes.CreationDate AS "Date", COUNT(Posts.Score) AS "Total upvotes" FROM Votes INNER JOIN Posts ON Posts.Id = Votes.PostId AND Votes.VoteTypeId = 2 AND Posts.OwnerUserId = '##UserId##' AND Posts.PostTypeId = 1 GROUP BY Posts.Title, Posts.Id, Votes.CreationDate ORDER BY Posts.Id | [
7575,
6082,
286,
510,
29307,
319,
477,
262,
2683,
286,
257,
1813,
2836,
13,
632,
20842,
262,
640,
6082,
286,
477,
262,
2683,
286,
257,
1813,
2836,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
39584,
13,
12443,
341,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7575,
6082,
286,
510,
29307,
319,
477,
262,
2683,
286,
257,
1813,
2836,
13,
632,
20842,
262,
640,
6082,
286,
477,
262,
2683,
286,
257,
1813,
2836,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
39584,
13,
12443,
341,
10430,
... |
The opponent was the New York Jets on what week? | SELECT week FROM table_17781886_1 WHERE opponent = "New York Jets" | [
464,
6125,
373,
262,
968,
1971,
14728,
319,
644,
1285,
30,
46506,
1285,
16034,
3084,
62,
1558,
3695,
1507,
4521,
62,
16,
33411,
6125,
796,
366,
3791,
1971,
14728,
1
] | [
1,
1,
1,
1,
1,
1,
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,
6125,
373,
262,
968,
1971,
14728,
319,
644,
1285,
30,
46506,
1285,
16034,
3084,
62,
1558,
3695,
1507,
4521,
62,
16,
33411,
6125,
796,
366,
3791,
1971,
14728,
1
] |
List the names and locations of all stations ordered by their yearly entry exit and interchange amounts. | SELECT name, LOCATION FROM station ORDER BY Annual_entry_exit, Annual_interchanges | [
8053,
262,
3891,
290,
7064,
286,
477,
8985,
6149,
416,
511,
24169,
5726,
8420,
290,
26478,
6867,
13,
46506,
1438,
11,
37347,
6234,
16034,
4429,
38678,
11050,
16328,
62,
13000,
62,
37023,
11,
16328,
62,
3849,
36653
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
3891,
290,
7064,
286,
477,
8985,
6149,
416,
511,
24169,
5726,
8420,
290,
26478,
6867,
13,
46506,
1438,
11,
37347,
6234,
16034,
4429,
38678,
11050,
16328,
62,
13000,
62,
37023,
11,
16328,
62,
3849,
36653
] |
Who wrote all the shows with 18.73 u.s. viewers? | SELECT written_by FROM table_1130632_1 WHERE us_viewers__million_ = "18.73" | [
8241,
2630,
477,
262,
2523,
351,
1248,
13,
4790,
334,
13,
82,
13,
10209,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
1157,
20548,
2624,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1507,
13,
4790,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
2630,
477,
262,
2523,
351,
1248,
13,
4790,
334,
13,
82,
13,
10209,
30,
46506,
3194,
62,
1525,
16034,
3084,
62,
1157,
20548,
2624,
62,
16,
33411,
514,
62,
1177,
364,
834,
14100,
62,
796,
366,
1507,
13,
4790,
1
] |
Post Score/View ratio for a given user. | SELECT P.Id AS "post_link", CAST(P.Score AS FLOAT) / CAST(P.ViewCount AS FLOAT) AS SVRatio, P.Score AS Score, P.ViewCount AS Views, P.CreationDate AS CreationDate FROM Posts AS P WHERE P.PostTypeId = 1 AND P.OwnerUserId = '##userid##' AND P.Score >= @MinScore AND P.ViewCount >= @MinViews ORDER BY SVRatio DESC | [
6307,
15178,
14,
7680,
8064,
329,
257,
1813,
2836,
13,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
11262,
7,
47,
13,
26595,
7054,
9977,
46,
1404,
8,
1220,
327,
11262,
7,
47,
13,
7680,
12332,
7054,
9977,
46,
1404,
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... | [
6307,
15178,
14,
7680,
8064,
329,
257,
1813,
2836,
13,
46506,
350,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
327,
11262,
7,
47,
13,
26595,
7054,
9977,
46,
1404,
8,
1220,
327,
11262,
7,
47,
13,
7680,
12332,
7054,
9977,
46,
1404,
8... |
Which country contains the Shanghai Pudong International airport? | SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport" | [
13828,
1499,
4909,
262,
21865,
350,
463,
506,
4037,
9003,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3901,
33411,
9003,
796,
366,
1477,
272,
20380,
279,
463,
506,
3230,
9003,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1499,
4909,
262,
21865,
350,
463,
506,
4037,
9003,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3901,
33411,
9003,
796,
366,
1477,
272,
20380,
279,
463,
506,
3230,
9003,
1
] |
What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver? | SELECT shortstop FROM table_name_40 WHERE catcher = "johnny roseboro" AND third_baseman = "jim lefebvre" AND second_baseman = "nate oliver" | [
2061,
318,
262,
1438,
286,
262,
40388,
618,
262,
5181,
2044,
373,
45610,
3281,
8278,
21513,
11,
290,
257,
10467,
6455,
8463,
286,
474,
320,
443,
69,
1765,
43933,
11,
290,
257,
5498,
6455,
8463,
286,
299,
378,
25776,
1428,
30,
46506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1438,
286,
262,
40388,
618,
262,
5181,
2044,
373,
45610,
3281,
8278,
21513,
11,
290,
257,
10467,
6455,
8463,
286,
474,
320,
443,
69,
1765,
43933,
11,
290,
257,
5498,
6455,
8463,
286,
299,
378,
25776,
1428,
30,
46506,
... |
Who did the Blue Jays lose to when their record was 36-20? | SELECT "Loss" FROM table_71920 WHERE "Record" = '36-20' | [
8241,
750,
262,
4518,
23288,
4425,
284,
618,
511,
1700,
373,
4570,
12,
1238,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
22,
40454,
33411,
366,
23739,
1,
796,
705,
2623,
12,
1238,
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,
750,
262,
4518,
23288,
4425,
284,
618,
511,
1700,
373,
4570,
12,
1238,
30,
46506,
366,
43,
793,
1,
16034,
3084,
62,
22,
40454,
33411,
366,
23739,
1,
796,
705,
2623,
12,
1238,
6
] |
list all flights from ATLANTA to BALTIMORE thursday morning | 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 24 AND date_day.month_number = 5 AN... | [
4868,
477,
13956,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
294,
3479,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4868,
477,
13956,
422,
5161,
25697,
5603,
284,
347,
31429,
3955,
6965,
294,
3479,
3329,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
... |
Which Opponents in Final has an Outcome of winner, and a Surface of hard, and a Date of april 17, 1994? | SELECT "Opponents in Final" FROM table_5574 WHERE "Outcome" = 'winner' AND "Surface" = 'hard' AND "Date" = 'april 17, 1994' | [
13828,
9385,
3906,
287,
8125,
468,
281,
3806,
2958,
286,
8464,
11,
290,
257,
20321,
286,
1327,
11,
290,
257,
7536,
286,
46593,
346,
1596,
11,
9162,
30,
46506,
366,
27524,
3906,
287,
8125,
1,
16034,
3084,
62,
2816,
4524,
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... | [
13828,
9385,
3906,
287,
8125,
468,
281,
3806,
2958,
286,
8464,
11,
290,
257,
20321,
286,
1327,
11,
290,
257,
7536,
286,
46593,
346,
1596,
11,
9162,
30,
46506,
366,
27524,
3906,
287,
8125,
1,
16034,
3084,
62,
2816,
4524,
33411,
366,
... |
how many patients speak spanish language and tested under hematology in lab? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.language = "SPAN" AND lab."CATEGORY" = "Hematology" | [
4919,
867,
3871,
2740,
599,
7115,
3303,
290,
6789,
739,
339,
6759,
1435,
287,
2248,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2740,
599,
7115,
3303,
290,
6789,
739,
339,
6759,
1435,
287,
2248,
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... |
When 'body damage' is the title how many air dates are there? | SELECT COUNT("Original air date") FROM table_26552 WHERE "Title" = 'Body Damage' | [
2215,
705,
2618,
2465,
6,
318,
262,
3670,
703,
867,
1633,
9667,
389,
612,
30,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
2075,
40427,
33411,
366,
19160,
1,
796,
705,
25842,
8995,
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
] | [
2215,
705,
2618,
2465,
6,
318,
262,
3670,
703,
867,
1633,
9667,
389,
612,
30,
46506,
327,
28270,
7203,
20556,
1633,
3128,
4943,
16034,
3084,
62,
2075,
40427,
33411,
366,
19160,
1,
796,
705,
25842,
8995,
6
] |
what title appears before the self preservation society ? | SELECT "title" FROM table_203_570 WHERE id = (SELECT id FROM table_203_570 WHERE "title" = 'the self-preservation society') - 1 | [
10919,
3670,
3568,
878,
262,
2116,
22459,
3592,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
39254,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
39254,
33411,
366,
7839,
1,
796,
705,
1169,
2116,
12,
18302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3670,
3568,
878,
262,
2116,
22459,
3592,
5633,
46506,
366,
7839,
1,
16034,
3084,
62,
22416,
62,
39254,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
22416,
62,
39254,
33411,
366,
7839,
1,
796,
705,
1169,
2116,
12,
18302,
... |
Find each target user's name and average trust score. | SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id | [
16742,
1123,
2496,
2836,
338,
1438,
290,
2811,
3774,
4776,
13,
46506,
309,
16,
13,
3672,
11,
35224,
7,
38087,
8,
16034,
2836,
330,
310,
7054,
309,
16,
32357,
1268,
3774,
7054,
309,
17,
6177,
309,
16,
13,
84,
62,
312,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
1123,
2496,
2836,
338,
1438,
290,
2811,
3774,
4776,
13,
46506,
309,
16,
13,
3672,
11,
35224,
7,
38087,
8,
16034,
2836,
330,
310,
7054,
309,
16,
32357,
1268,
3774,
7054,
309,
17,
6177,
309,
16,
13,
84,
62,
312,
796,
309,
17,... |
For Saint-Paul parish, if it has an area of over 228.65 kilometers how many people live there? | SELECT COUNT("Population") FROM table_76723 WHERE "Official Name" = 'saint-paul' AND "Area km 2" > '228.65' | [
1890,
9281,
12,
12041,
28830,
11,
611,
340,
468,
281,
1989,
286,
625,
29041,
13,
2996,
18212,
703,
867,
661,
2107,
612,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
32059,
1954,
33411,
366,
28529,
6530,
1,
796,
705,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9281,
12,
12041,
28830,
11,
611,
340,
468,
281,
1989,
286,
625,
29041,
13,
2996,
18212,
703,
867,
661,
2107,
612,
30,
46506,
327,
28270,
7203,
45251,
4943,
16034,
3084,
62,
32059,
1954,
33411,
366,
28529,
6530,
1,
796,
705,
82,
... |
In which year did the voice of muscatine show start? | SELECT start FROM table_25034983_2 WHERE nickname = "Voice of Muscatine" | [
818,
543,
614,
750,
262,
3809,
286,
1928,
9246,
500,
905,
923,
30,
46506,
923,
16034,
3084,
62,
9031,
2682,
4089,
18,
62,
17,
33411,
21814,
796,
366,
35708,
286,
2629,
9246,
500,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
750,
262,
3809,
286,
1928,
9246,
500,
905,
923,
30,
46506,
923,
16034,
3084,
62,
9031,
2682,
4089,
18,
62,
17,
33411,
21814,
796,
366,
35708,
286,
2629,
9246,
500,
1
] |
What was the first season for Syrianska FC | SELECT "First season" FROM table_20175 WHERE "Club" = 'Syrianska FC' | [
2061,
373,
262,
717,
1622,
329,
26648,
4914,
10029,
46506,
366,
5962,
1622,
1,
16034,
3084,
62,
1264,
2425,
33411,
366,
42350,
1,
796,
705,
13940,
19151,
4914,
10029,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
717,
1622,
329,
26648,
4914,
10029,
46506,
366,
5962,
1622,
1,
16034,
3084,
62,
1264,
2425,
33411,
366,
42350,
1,
796,
705,
13940,
19151,
4914,
10029,
6
] |
what was the five most commonly performed procedure for patients with age 30s until 2 years ago? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-2 yea... | [
10919,
373,
262,
1936,
749,
8811,
6157,
8771,
329,
3871,
351,
2479,
1542,
82,
1566,
362,
812,
2084,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1936,
749,
8811,
6157,
8771,
329,
3871,
351,
2479,
1542,
82,
1566,
362,
812,
2084,
30,
46506,
256,
16,
13,
42487,
3672,
16034,
357,
46506,
3513,
13,
42487,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,... |
What is the method against Paula Mataele? | SELECT "Method" FROM table_54176 WHERE "Opponent" = 'paula mataele' | [
2061,
318,
262,
2446,
1028,
36025,
45332,
11129,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
4051,
24096,
33411,
366,
27524,
3471,
1,
796,
705,
79,
2518,
64,
285,
1045,
11129,
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,
2446,
1028,
36025,
45332,
11129,
30,
46506,
366,
17410,
1,
16034,
3084,
62,
4051,
24096,
33411,
366,
27524,
3471,
1,
796,
705,
79,
2518,
64,
285,
1045,
11129,
6
] |
What are the names of students who have taken Statistics courses? | SELECT T3.name FROM course AS T1 JOIN takes AS T2 ON T1.course_id = T2.course_id JOIN student AS T3 ON T2.id = T3.id WHERE T1.dept_name = 'Statistics' | [
2061,
389,
262,
3891,
286,
2444,
508,
423,
2077,
14370,
10902,
30,
46506,
309,
18,
13,
3672,
16034,
1781,
7054,
309,
16,
32357,
1268,
2753,
7054,
309,
17,
6177,
309,
16,
13,
17319,
62,
312,
796,
309,
17,
13,
17319,
62,
312,
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... | [
2061,
389,
262,
3891,
286,
2444,
508,
423,
2077,
14370,
10902,
30,
46506,
309,
18,
13,
3672,
16034,
1781,
7054,
309,
16,
32357,
1268,
2753,
7054,
309,
17,
6177,
309,
16,
13,
17319,
62,
312,
796,
309,
17,
13,
17319,
62,
312,
32357,
... |
Count the number of artists. | SELECT COUNT(*) FROM artist | [
12332,
262,
1271,
286,
7912,
13,
46506,
327,
28270,
7,
28104,
16034,
6802
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
7912,
13,
46506,
327,
28270,
7,
28104,
16034,
6802
] |
provide the number of patients whose admission year is less than 2139 and diagnoses icd9 code is 769? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2139" AND diagnoses.icd9_code = "769" | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
20219,
290,
40567,
14158,
67,
24,
2438,
318,
767,
3388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
13938,
614,
318,
1342,
621,
362,
20219,
290,
40567,
14158,
67,
24,
2438,
318,
767,
3388,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
... |
What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals? | SELECT COUNT("Bronze") FROM table_63335 WHERE "Silver" > '4' AND "Nation" = 'total' AND "Gold" < '30' | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
329,
262,
1074,
351,
517,
621,
604,
8465,
290,
1342,
621,
1542,
3869,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
21,
2091,
2327,
33411,
366,
26766,
1,
1875,
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
] | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
329,
262,
1074,
351,
517,
621,
604,
8465,
290,
1342,
621,
1542,
3869,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
21,
2091,
2327,
33411,
366,
26766,
1,
1875,
7... |
provide the number of patients who died in or before year 2186 had 78321 as the diagnosis icd9 code. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dod_year <= "2186.0" AND diagnoses.icd9_code = "78321" | [
15234,
485,
262,
1271,
286,
3871,
508,
3724,
287,
393,
878,
614,
362,
25096,
550,
767,
5999,
2481,
355,
262,
13669,
14158,
67,
24,
2438,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
508,
3724,
287,
393,
878,
614,
362,
25096,
550,
767,
5999,
2481,
355,
262,
13669,
14158,
67,
24,
2438,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
326... |
What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah? | SELECT COUNT("Starts") FROM table_64037 WHERE "Driver" = 'nasser al-attiyah' AND "Points" > '1' | [
2061,
338,
262,
2472,
4940,
351,
517,
2173,
621,
352,
290,
262,
4639,
318,
399,
24929,
978,
12,
8086,
46398,
30,
46506,
327,
28270,
7203,
1273,
5889,
4943,
16034,
3084,
62,
31102,
2718,
33411,
366,
32103,
1,
796,
705,
77,
24929,
435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
4940,
351,
517,
2173,
621,
352,
290,
262,
4639,
318,
399,
24929,
978,
12,
8086,
46398,
30,
46506,
327,
28270,
7203,
1273,
5889,
4943,
16034,
3084,
62,
31102,
2718,
33411,
366,
32103,
1,
796,
705,
77,
24929,
435,
... |
Find the name of dorms only for female (F gender). | SELECT dorm_name FROM dorm WHERE gender = 'F' | [
16742,
262,
1438,
286,
18586,
82,
691,
329,
4048,
357,
37,
5279,
737,
46506,
18586,
62,
3672,
16034,
18586,
33411,
5279,
796,
705,
37,
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
] | [
16742,
262,
1438,
286,
18586,
82,
691,
329,
4048,
357,
37,
5279,
737,
46506,
18586,
62,
3672,
16034,
18586,
33411,
5279,
796,
705,
37,
6
] |
count the number of patients who had undergone oth endo proc oth vessel two or more times since 5 years ago. | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'oth endo proc oth ves... | [
9127,
262,
1271,
286,
3871,
508,
550,
29900,
267,
400,
886,
78,
13834,
267,
400,
8837,
734,
393,
517,
1661,
1201,
642,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
550,
29900,
267,
400,
886,
78,
13834,
267,
400,
8837,
734,
393,
517,
1661,
1201,
642,
812,
2084,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
2... |
Name the courses in Digital Studio that satisfy the MDE requirement . | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Digital Studio%' OR course.description LIKE '%Digital Studio%' OR course.name LIKE '%Digital Stu... | [
5376,
262,
10902,
287,
10231,
11733,
326,
15959,
262,
337,
7206,
9079,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10902,
287,
10231,
11733,
326,
15959,
262,
337,
7206,
9079,
764,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
3268,
21479,
32357,
1268,
1989,
6177,
1781,
13,
17319... |
Where is the team in Sussex county located? | SELECT location FROM table_18461635_1 WHERE county = "Sussex" | [
8496,
318,
262,
1074,
287,
41588,
7968,
5140,
30,
46506,
4067,
16034,
3084,
62,
1507,
3510,
1433,
2327,
62,
16,
33411,
7968,
796,
366,
30746,
8044,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
262,
1074,
287,
41588,
7968,
5140,
30,
46506,
4067,
16034,
3084,
62,
1507,
3510,
1433,
2327,
62,
16,
33411,
7968,
796,
366,
30746,
8044,
1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.