instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
how many times has patient 006-70268 received a -eos laboratory test until 81 months ago? | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-70268')) AND lab.labname = '-eos' AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TI... | [
4919,
867,
1661,
468,
5827,
3571,
21,
12,
2154,
25022,
2722,
257,
532,
68,
418,
14010,
1332,
1566,
9773,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
1661,
468,
5827,
3571,
21,
12,
2154,
25022,
2722,
257,
532,
68,
418,
14010,
1332,
1566,
9773,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
... |
How many womens singles entries are there when womens doubles is li xiaodan wen jia? | SELECT COUNT("Womens Singles") FROM table_30307 WHERE "Womens Doubles" = 'Li Xiaodan Wen Jia' | [
2437,
867,
1116,
641,
25287,
12784,
389,
612,
618,
1116,
641,
21938,
318,
7649,
2124,
544,
45561,
266,
268,
474,
544,
30,
46506,
327,
28270,
7203,
54,
296,
641,
5573,
829,
4943,
16034,
3084,
62,
1270,
22996,
33411,
366,
54,
296,
641,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1116,
641,
25287,
12784,
389,
612,
618,
1116,
641,
21938,
318,
7649,
2124,
544,
45561,
266,
268,
474,
544,
30,
46506,
327,
28270,
7203,
54,
296,
641,
5573,
829,
4943,
16034,
3084,
62,
1270,
22996,
33411,
366,
54,
296,
641,
... |
Give the number of patients whose admission type is emergency and were born before the year 2064. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year < "2064" | [
23318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
547,
4642,
878,
262,
614,
1160,
2414,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
6334,
290,
547,
4642,
878,
262,
614,
1160,
2414,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
... |
i need a flight from BALTIMORE to SEATTLE that stops in MINNEAPOLIS | SELECT DISTINCT flight.flight_id FROM 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, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEATTLE' AND CITY_2.ci... | [
72,
761,
257,
5474,
422,
347,
31429,
3955,
6965,
284,
7946,
35455,
326,
9911,
287,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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... | [
72,
761,
257,
5474,
422,
347,
31429,
3955,
6965,
284,
7946,
35455,
326,
9911,
287,
20625,
12161,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,... |
what is the position for robert johnson? | SELECT position FROM table_name_25 WHERE name = "robert johnson" | [
10919,
318,
262,
2292,
329,
686,
4835,
45610,
1559,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1495,
33411,
1438,
796,
366,
305,
4835,
45610,
1559,
1
] | [
1,
1,
1,
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,
2292,
329,
686,
4835,
45610,
1559,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1495,
33411,
1438,
796,
366,
305,
4835,
45610,
1559,
1
] |
what drug was patient 030-47098 prescribed for during the same day after the treatment of electrolyte administration - potassium since 74 months ago? | SELECT t2.drugname FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-47098') AND treatment.treatme... | [
10919,
2563,
373,
5827,
657,
1270,
12,
27790,
4089,
14798,
329,
1141,
262,
976,
1110,
706,
262,
3513,
286,
39450,
660,
3662,
532,
33156,
1201,
8915,
1933,
2084,
30,
46506,
256,
17,
13,
30349,
3672,
16034,
357,
46506,
5827,
13,
403,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
2563,
373,
5827,
657,
1270,
12,
27790,
4089,
14798,
329,
1141,
262,
976,
1110,
706,
262,
3513,
286,
39450,
660,
3662,
532,
33156,
1201,
8915,
1933,
2084,
30,
46506,
256,
17,
13,
30349,
3672,
16034,
357,
46506,
5827,
13,
403,
15... |
Just show the first name of the employee and list their department's id in the Y-axis of the bar chart, could you order by the X in descending? | SELECT FIRST_NAME, DEPARTMENT_ID FROM employees ORDER BY FIRST_NAME DESC | [
5703,
905,
262,
717,
1438,
286,
262,
6538,
290,
1351,
511,
5011,
338,
4686,
287,
262,
575,
12,
22704,
286,
262,
2318,
8262,
11,
714,
345,
1502,
416,
262,
1395,
287,
31491,
30,
46506,
31328,
62,
20608,
11,
5550,
30709,
10979,
62,
238... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5703,
905,
262,
717,
1438,
286,
262,
6538,
290,
1351,
511,
5011,
338,
4686,
287,
262,
575,
12,
22704,
286,
262,
2318,
8262,
11,
714,
345,
1502,
416,
262,
1395,
287,
31491,
30,
46506,
31328,
62,
20608,
11,
5550,
30709,
10979,
62,
238... |
What is the British for the Australian ? | SELECT british FROM table_name_93 WHERE australian = "ɔ" | [
2061,
318,
262,
3517,
329,
262,
6638,
5633,
46506,
275,
799,
680,
16034,
3084,
62,
3672,
62,
6052,
33411,
38132,
1373,
666,
796,
366,
133,
242,
1
] | [
1,
1,
1,
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,
3517,
329,
262,
6638,
5633,
46506,
275,
799,
680,
16034,
3084,
62,
3672,
62,
6052,
33411,
38132,
1373,
666,
796,
366,
133,
242,
1
] |
What years was Denis Lawson nominated for an award? | SELECT COUNT(year) FROM table_name_45 WHERE nominee = "denis lawson" | [
2061,
812,
373,
33089,
35892,
19332,
329,
281,
5764,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
10429,
796,
366,
6559,
271,
1099,
1559,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
812,
373,
33089,
35892,
19332,
329,
281,
5764,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
10429,
796,
366,
6559,
271,
1099,
1559,
1
] |
did albumin 5% (25 g), d5 1/2ns, or vial be prescribed to patient 3118? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3118) AND prescriptions.drug IN ('albumin 5% (25 g)', 'd5 1/2ns', 'vial') | [
20839,
5062,
259,
642,
4,
357,
1495,
308,
828,
288,
20,
352,
14,
17,
5907,
11,
393,
410,
498,
307,
14798,
284,
5827,
513,
16817,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20839,
5062,
259,
642,
4,
357,
1495,
308,
828,
288,
20,
352,
14,
17,
5907,
11,
393,
410,
498,
307,
14798,
284,
5827,
513,
16817,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
... |
he scored at least how many points on haiti | SELECT SUM("score") FROM table_203_614 WHERE "opponent" = 'haiti' | [
258,
7781,
379,
1551,
703,
867,
2173,
319,
387,
8846,
46506,
35683,
7203,
26675,
4943,
16034,
3084,
62,
22416,
62,
46841,
33411,
366,
10365,
3471,
1,
796,
705,
3099,
8846,
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
] | [
258,
7781,
379,
1551,
703,
867,
2173,
319,
387,
8846,
46506,
35683,
7203,
26675,
4943,
16034,
3084,
62,
22416,
62,
46841,
33411,
366,
10365,
3471,
1,
796,
705,
3099,
8846,
6
] |
How many people were in attendance when the home shows as Bulls? | SELECT COUNT("Attendance") FROM table_10703 WHERE "Home" = 'bulls' | [
2437,
867,
661,
547,
287,
14858,
618,
262,
1363,
2523,
355,
18075,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
940,
36809,
33411,
366,
16060,
1,
796,
705,
16308,
82,
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
] | [
2437,
867,
661,
547,
287,
14858,
618,
262,
1363,
2523,
355,
18075,
30,
46506,
327,
28270,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
940,
36809,
33411,
366,
16060,
1,
796,
705,
16308,
82,
6
] |
what are the five most common procedures given to patients aged 60 or above until 2 years ago? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >... | [
10919,
389,
262,
1936,
749,
2219,
9021,
1813,
284,
3871,
9722,
3126,
393,
2029,
1566,
362,
812,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
749,
2219,
9021,
1813,
284,
3871,
9722,
3126,
393,
2029,
1566,
362,
812,
2084,
30,
46506,
288,
62,
291,
67,
62,
1676,
771,
942,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
1676,
771,
942,
33411,
288,
6... |
What Representative has a Presentation of Credentails of April 10, 1855? | SELECT "Representative" FROM table_80069 WHERE "Presentation of Credentials" = 'april 10, 1855' | [
2061,
19920,
468,
257,
21662,
341,
286,
327,
445,
298,
1768,
286,
3035,
838,
11,
1248,
2816,
30,
46506,
366,
40171,
876,
1,
16034,
3084,
62,
7410,
3388,
33411,
366,
34695,
341,
286,
327,
445,
14817,
1,
796,
705,
499,
22379,
838,
11,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
19920,
468,
257,
21662,
341,
286,
327,
445,
298,
1768,
286,
3035,
838,
11,
1248,
2816,
30,
46506,
366,
40171,
876,
1,
16034,
3084,
62,
7410,
3388,
33411,
366,
34695,
341,
286,
327,
445,
14817,
1,
796,
705,
499,
22379,
838,
11,... |
Will 351 be taught by Prof. Jonathan Brumit next semester ? | SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 351 AND instructor.name LIKE '%Jonathan Brumit%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering... | [
8743,
44417,
307,
7817,
416,
4415,
13,
11232,
1709,
388,
270,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
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... | [
8743,
44417,
307,
7817,
416,
4415,
13,
11232,
1709,
388,
270,
1306,
24878,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
11,
24878,
33411,
1781,
13,
17319... |
Which Investing Dragon(s) requested 100,000 in money and has autosafe? | SELECT "Investing Dragon(s)" FROM table_67641 WHERE "Money requested (\u00a3)" = '100,000' AND "Company or product name" = 'autosafe' | [
13828,
7488,
278,
2851,
7,
82,
8,
9167,
1802,
11,
830,
287,
1637,
290,
468,
44619,
8635,
30,
46506,
366,
19070,
278,
2851,
7,
82,
16725,
16034,
3084,
62,
3134,
42759,
33411,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
16725,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7488,
278,
2851,
7,
82,
8,
9167,
1802,
11,
830,
287,
1637,
290,
468,
44619,
8635,
30,
46506,
366,
19070,
278,
2851,
7,
82,
16725,
16034,
3084,
62,
3134,
42759,
33411,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
16725,
796,
... |
What class had a Championship Test event with a 62.516 result? | SELECT class FROM table_name_66 WHERE event = "championship test" AND result = "62.516" | [
2061,
1398,
550,
257,
10749,
6208,
1785,
351,
257,
8190,
13,
47493,
1255,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2791,
33411,
1785,
796,
366,
354,
4350,
1056,
1332,
1,
5357,
1255,
796,
366,
5237,
13,
47493,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1398,
550,
257,
10749,
6208,
1785,
351,
257,
8190,
13,
47493,
1255,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
2791,
33411,
1785,
796,
366,
354,
4350,
1056,
1332,
1,
5357,
1255,
796,
366,
5237,
13,
47493,
1
] |
What is the weight of the player with a height of 2.00m? | SELECT weight FROM table_name_58 WHERE height = "2.00" | [
2061,
318,
262,
3463,
286,
262,
2137,
351,
257,
6001,
286,
362,
13,
405,
76,
30,
46506,
3463,
16034,
3084,
62,
3672,
62,
3365,
33411,
6001,
796,
366,
17,
13,
405,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3463,
286,
262,
2137,
351,
257,
6001,
286,
362,
13,
405,
76,
30,
46506,
3463,
16034,
3084,
62,
3672,
62,
3365,
33411,
6001,
796,
366,
17,
13,
405,
1
] |
what was the drug that patient 022-67644 had been allergic to? | SELECT allergy.drugname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-67644')) | [
10919,
373,
262,
2563,
326,
5827,
657,
1828,
12,
3134,
29173,
550,
587,
31856,
284,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
2563,
326,
5827,
657,
1828,
12,
3134,
29173,
550,
587,
31856,
284,
30,
46506,
36197,
13,
30349,
3672,
16034,
36197,
33411,
36197,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
16034,
... |
Show the names and ids of 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 GROUP BY T2.tourist_attraction_id HAVING COUNT(*) <= 1 | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
13,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
83,
454,
396,
62,
1078,
7861,
62,
312,
16034,
18473,
62,
1078,
37810,
7054,
309,
16,
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... | [
15307,
262,
3891,
290,
220,
2340,
286,
18473,
29156,
326,
389,
8672,
379,
749,
1752,
13,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
83,
454,
396,
62,
1078,
7861,
62,
312,
16034,
18473,
62,
1078,
37810,
7054,
309,
16,
32357,
1268,
... |
what is the earliest year when the champion team members are charisse borromeo, jennifer ong, larissa co? | SELECT MIN("Year") FROM table_66530 WHERE "Champion Team Members" = 'charisse borromeo, jennifer ong, larissa co' | [
10919,
318,
262,
14555,
614,
618,
262,
8783,
1074,
1866,
389,
1149,
20782,
275,
273,
5998,
78,
11,
474,
1697,
7087,
319,
70,
11,
26371,
13808,
763,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
36879,
1270,
33411,
366,
1925,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
14555,
614,
618,
262,
8783,
1074,
1866,
389,
1149,
20782,
275,
273,
5998,
78,
11,
474,
1697,
7087,
319,
70,
11,
26371,
13808,
763,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
36879,
1270,
33411,
366,
1925,
6... |
what are the five year survival rates of patients who had been prescribed morphine sulfate after having been diagnosed with fetal/neonatal jaund nos? | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 5 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
10919,
389,
262,
1936,
614,
9441,
3965,
286,
3871,
508,
550,
587,
14798,
43948,
22443,
378,
706,
1719,
587,
14641,
351,
27652,
14,
710,
261,
10254,
474,
14677,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1936,
614,
9441,
3965,
286,
3871,
508,
550,
587,
14798,
43948,
22443,
378,
706,
1719,
587,
14641,
351,
27652,
14,
710,
261,
10254,
474,
14677,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
156... |
What is the name of the person who was in the Original Broadway Cast that was Original West End Cast of sheila hancock? | SELECT "Original Broadway Cast" FROM table_15524 WHERE "Original West End Cast" = 'sheila hancock' | [
2061,
318,
262,
1438,
286,
262,
1048,
508,
373,
287,
262,
13745,
20617,
5833,
326,
373,
13745,
2688,
5268,
5833,
286,
673,
10102,
289,
37077,
30,
46506,
366,
20556,
20617,
5833,
1,
16034,
3084,
62,
18742,
1731,
33411,
366,
20556,
2688,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1048,
508,
373,
287,
262,
13745,
20617,
5833,
326,
373,
13745,
2688,
5268,
5833,
286,
673,
10102,
289,
37077,
30,
46506,
366,
20556,
20617,
5833,
1,
16034,
3084,
62,
18742,
1731,
33411,
366,
20556,
2688,
... |
How many group legs were won with player Mark Dudbridge? | SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge" | [
2437,
867,
1448,
7405,
547,
1839,
351,
2137,
2940,
30673,
9458,
30,
46506,
42754,
7054,
1448,
62,
1455,
82,
62,
26502,
16034,
3084,
62,
1731,
31380,
24136,
62,
16,
33411,
2137,
796,
366,
9704,
30673,
9458,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1448,
7405,
547,
1839,
351,
2137,
2940,
30673,
9458,
30,
46506,
42754,
7054,
1448,
62,
1455,
82,
62,
26502,
16034,
3084,
62,
1731,
31380,
24136,
62,
16,
33411,
2137,
796,
366,
9704,
30673,
9458,
1
] |
how many total women were victims ? | SELECT SUM("women") FROM table_204_693 | [
4919,
867,
2472,
1466,
547,
4970,
5633,
46506,
35683,
7203,
25878,
4943,
16034,
3084,
62,
18638,
62,
48528
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
2472,
1466,
547,
4970,
5633,
46506,
35683,
7203,
25878,
4943,
16034,
3084,
62,
18638,
62,
48528
] |
among patients who have been diagnosed with upper respiratory obstruction - due to tumor tell me the four year survival rate. | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI... | [
35131,
3871,
508,
423,
587,
14641,
351,
6727,
22949,
28118,
532,
2233,
284,
22359,
1560,
502,
262,
1440,
614,
9441,
2494,
13,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
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... | [
35131,
3871,
508,
423,
587,
14641,
351,
6727,
22949,
28118,
532,
2233,
284,
22359,
1560,
502,
262,
1440,
614,
9441,
2494,
13,
46506,
35683,
7,
34,
11159,
42099,
5827,
13,
49257,
6381,
11121,
395,
7240,
796,
705,
282,
425,
6,
42243,
35... |
where value world rank is 12, what is the quantity world rank? | SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "12" | [
3003,
1988,
995,
4279,
318,
1105,
11,
644,
318,
262,
12040,
995,
4279,
30,
46506,
12040,
62,
6894,
62,
43027,
16034,
3084,
62,
2481,
940,
4089,
5892,
62,
16,
33411,
1988,
62,
6894,
62,
43027,
796,
366,
1065,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3003,
1988,
995,
4279,
318,
1105,
11,
644,
318,
262,
12040,
995,
4279,
30,
46506,
12040,
62,
6894,
62,
43027,
16034,
3084,
62,
2481,
940,
4089,
5892,
62,
16,
33411,
1988,
62,
6894,
62,
43027,
796,
366,
1065,
1
] |
What's the Super G when the combined was 13 and the overall was more than 7? | SELECT "Super G" FROM table_43742 WHERE "Overall" > '7' AND "Combined" = '13' | [
2061,
338,
262,
3115,
402,
618,
262,
5929,
373,
1511,
290,
262,
4045,
373,
517,
621,
767,
30,
46506,
366,
12442,
402,
1,
16034,
3084,
62,
43284,
3682,
33411,
366,
16350,
1,
1875,
705,
22,
6,
5357,
366,
20575,
1389,
1,
796,
705,
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
] | [
2061,
338,
262,
3115,
402,
618,
262,
5929,
373,
1511,
290,
262,
4045,
373,
517,
621,
767,
30,
46506,
366,
12442,
402,
1,
16034,
3084,
62,
43284,
3682,
33411,
366,
16350,
1,
1875,
705,
22,
6,
5357,
366,
20575,
1389,
1,
796,
705,
14... |
Which courses next year are taught by Prof. Macalester Bell ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Macalester Bell%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.o... | [
13828,
10902,
1306,
614,
389,
7817,
416,
4415,
13,
4100,
2040,
353,
7459,
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,
21187,
11,
6011,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10902,
1306,
614,
389,
7817,
416,
4415,
13,
4100,
2040,
353,
7459,
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,
21187,
11,
6011,
... |
What member of the current Broadway cast plays the character played by Constantine Maroulis from the original Broadway cast? | SELECT current_broadway_cast FROM table_19529639_3 WHERE original_broadway_cast = "Constantine Maroulis" | [
2061,
2888,
286,
262,
1459,
20617,
3350,
5341,
262,
2095,
2826,
416,
44665,
1526,
2852,
271,
422,
262,
2656,
20617,
3350,
30,
46506,
1459,
62,
36654,
1014,
62,
2701,
16034,
3084,
62,
22186,
27137,
2670,
62,
18,
33411,
2656,
62,
36654,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2888,
286,
262,
1459,
20617,
3350,
5341,
262,
2095,
2826,
416,
44665,
1526,
2852,
271,
422,
262,
2656,
20617,
3350,
30,
46506,
1459,
62,
36654,
1014,
62,
2701,
16034,
3084,
62,
22186,
27137,
2670,
62,
18,
33411,
2656,
62,
36654,
... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of revenue , and group by attribute name. | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
3041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2160,
286,
6426,
837,
290,
1448,
416,
11688,
1438,
13,
46506,
309,
16,
13,
5376,
11,
309,
17,
13,
3041,
... |
A scatter chart shows the correlation between Team_ID and School_ID . | SELECT Team_ID, School_ID FROM basketball_match | [
32,
41058,
8262,
2523,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
764,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] | [
1,
1,
1,
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,
41058,
8262,
2523,
262,
16096,
1022,
4816,
62,
2389,
290,
3961,
62,
2389,
764,
46506,
4816,
62,
2389,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] |
What is the total of Golds with more bronzes than 1 and totaled larger than 4? | SELECT COUNT("Gold") FROM table_45284 WHERE "Bronze" > '1' AND "Total" > '4' | [
2061,
318,
262,
2472,
286,
3561,
82,
351,
517,
18443,
12271,
621,
352,
290,
39398,
4025,
621,
604,
30,
46506,
327,
28270,
7203,
13306,
4943,
16034,
3084,
62,
2231,
30336,
33411,
366,
18760,
2736,
1,
1875,
705,
16,
6,
5357,
366,
14957,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
3561,
82,
351,
517,
18443,
12271,
621,
352,
290,
39398,
4025,
621,
604,
30,
46506,
327,
28270,
7203,
13306,
4943,
16034,
3084,
62,
2231,
30336,
33411,
366,
18760,
2736,
1,
1875,
705,
16,
6,
5357,
366,
14957,... |
Which class had a rank of 2nd? | SELECT class FROM table_name_52 WHERE rank = "2nd" | [
13828,
1398,
550,
257,
4279,
286,
362,
358,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
4309,
33411,
4279,
796,
366,
17,
358,
1
] | [
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,
1398,
550,
257,
4279,
286,
362,
358,
30,
46506,
1398,
16034,
3084,
62,
3672,
62,
4309,
33411,
4279,
796,
366,
17,
358,
1
] |
when was the first otafest held ? | SELECT "first\nheld" FROM table_204_991 WHERE "name" = 'otafest' | [
12518,
373,
262,
717,
30972,
1878,
395,
2714,
5633,
46506,
366,
11085,
59,
77,
10217,
1,
16034,
3084,
62,
18638,
62,
2079,
16,
33411,
366,
3672,
1,
796,
705,
313,
1878,
395,
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
] | [
12518,
373,
262,
717,
30972,
1878,
395,
2714,
5633,
46506,
366,
11085,
59,
77,
10217,
1,
16034,
3084,
62,
18638,
62,
2079,
16,
33411,
366,
3672,
1,
796,
705,
313,
1878,
395,
6
] |
in Spring and Summer term , how many 300 -level classes are being offered ? | SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = course_offering.se... | [
259,
8225,
290,
10216,
3381,
837,
703,
867,
5867,
532,
5715,
6097,
389,
852,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
259,
8225,
290,
10216,
3381,
837,
703,
867,
5867,
532,
5715,
6097,
389,
852,
4438,
5633,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
1781,
13,
17319,
62,
312,
11,
24878,
13,
325,
6880,
353,
8,
16034,
1781,
11,
1781,
62,
2364,
1586,
... |
How many time was the distance Abu Dhabi? | SELECT COUNT("Sanya") FROM table_29116 WHERE "Distance" = 'Abu Dhabi' | [
2437,
867,
640,
373,
262,
5253,
13098,
43941,
30,
46506,
327,
28270,
7203,
50,
34183,
4943,
16034,
3084,
62,
1959,
18298,
33411,
366,
45767,
1,
796,
705,
4826,
84,
43941,
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
] | [
2437,
867,
640,
373,
262,
5253,
13098,
43941,
30,
46506,
327,
28270,
7203,
50,
34183,
4943,
16034,
3084,
62,
1959,
18298,
33411,
366,
45767,
1,
796,
705,
4826,
84,
43941,
6
] |
What is maximum loss record when the pa record is 47? | SELECT MAX(l) FROM table_29545993_3 WHERE pa = 47 | [
2061,
318,
5415,
2994,
1700,
618,
262,
14187,
1700,
318,
6298,
30,
46506,
25882,
7,
75,
8,
16034,
3084,
62,
25710,
2231,
44821,
62,
18,
33411,
14187,
796,
6298
] | [
1,
1,
1,
1,
1,
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,
5415,
2994,
1700,
618,
262,
14187,
1700,
318,
6298,
30,
46506,
25882,
7,
75,
8,
16034,
3084,
62,
25710,
2231,
44821,
62,
18,
33411,
14187,
796,
6298
] |
What is Michael's surname? | SELECT surname FROM table_name_16 WHERE first = "michael" | [
2061,
318,
3899,
338,
40358,
30,
46506,
40358,
16034,
3084,
62,
3672,
62,
1433,
33411,
717,
796,
366,
76,
40302,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
3899,
338,
40358,
30,
46506,
40358,
16034,
3084,
62,
3672,
62,
1433,
33411,
717,
796,
366,
76,
40302,
1
] |
What place did Jimmy Reece finish in 1957? | SELECT finish FROM table_name_29 WHERE year = "1957" | [
2061,
1295,
750,
12963,
29030,
344,
5461,
287,
25177,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
1959,
33411,
614,
796,
366,
1129,
3553,
1
] | [
1,
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,
1295,
750,
12963,
29030,
344,
5461,
287,
25177,
30,
46506,
5461,
16034,
3084,
62,
3672,
62,
1959,
33411,
614,
796,
366,
1129,
3553,
1
] |
What's the lineage of oka tadatomo ( )? | SELECT "Lineage" FROM table_14968 WHERE "Name" = 'ōoka tadatomo (大岡忠與)' | [
2061,
338,
262,
31144,
286,
267,
4914,
36264,
265,
17902,
357,
1267,
30,
46506,
366,
13949,
496,
1,
16034,
3084,
62,
19442,
3104,
33411,
366,
5376,
1,
796,
705,
13090,
17411,
36264,
265,
17902,
357,
32014,
161,
110,
94,
33232,
254,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31144,
286,
267,
4914,
36264,
265,
17902,
357,
1267,
30,
46506,
366,
13949,
496,
1,
16034,
3084,
62,
19442,
3104,
33411,
366,
5376,
1,
796,
705,
13090,
17411,
36264,
265,
17902,
357,
32014,
161,
110,
94,
33232,
254,
48... |
What general classification has david de la fuente as mountains classification, and thor hushovd as points classification? | SELECT general_classification FROM table_name_45 WHERE mountains_classification = "david de la fuente" AND points_classification = "thor hushovd" | [
2061,
2276,
17923,
468,
21970,
390,
8591,
14035,
21872,
355,
12269,
17923,
11,
290,
41899,
289,
1530,
709,
67,
355,
2173,
17923,
30,
46506,
2276,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
2231,
33411,
12269,
62,
4871,
2649,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2276,
17923,
468,
21970,
390,
8591,
14035,
21872,
355,
12269,
17923,
11,
290,
41899,
289,
1530,
709,
67,
355,
2173,
17923,
30,
46506,
2276,
62,
4871,
2649,
16034,
3084,
62,
3672,
62,
2231,
33411,
12269,
62,
4871,
2649,
796,
366,
... |
Count of dupe vs. count of exact dupes. | SELECT COUNT(*) AS DupeCount, COUNT(CASE WHEN Orig.Body = Dupe.Body THEN 1 END) AS SameDupeCount FROM PostLinks, Posts AS Orig, Posts AS Dupe WHERE PostLinks.LinkTypeId = 3 AND Dupe.Id = PostLinks.PostId AND Orig.Id = PostLinks.RelatedPostId | [
12332,
286,
7043,
431,
3691,
13,
954,
286,
2748,
32597,
274,
13,
46506,
327,
28270,
7,
28104,
7054,
10343,
431,
12332,
11,
327,
28270,
7,
34,
11159,
42099,
6913,
13,
25842,
796,
10343,
431,
13,
25842,
42243,
352,
23578,
8,
7054,
16766... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
7043,
431,
3691,
13,
954,
286,
2748,
32597,
274,
13,
46506,
327,
28270,
7,
28104,
7054,
10343,
431,
12332,
11,
327,
28270,
7,
34,
11159,
42099,
6913,
13,
25842,
796,
10343,
431,
13,
25842,
42243,
352,
23578,
8,
7054,
16766... |
how many roles did this actor have before 2010 ? | SELECT COUNT("role") FROM table_204_729 WHERE "year" < 2010 | [
4919,
867,
9176,
750,
428,
8674,
423,
878,
3050,
5633,
46506,
327,
28270,
7203,
18090,
4943,
16034,
3084,
62,
18638,
62,
48555,
33411,
366,
1941,
1,
1279,
3050
] | [
1,
1,
1,
1,
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,
9176,
750,
428,
8674,
423,
878,
3050,
5633,
46506,
327,
28270,
7203,
18090,
4943,
16034,
3084,
62,
18638,
62,
48555,
33411,
366,
1941,
1,
1279,
3050
] |
The nll participate in what sport? | SELECT sport FROM table_name_64 WHERE league = "nll" | [
464,
299,
297,
8277,
287,
644,
6332,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
2414,
33411,
4652,
796,
366,
77,
297,
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,
299,
297,
8277,
287,
644,
6332,
30,
46506,
6332,
16034,
3084,
62,
3672,
62,
2414,
33411,
4652,
796,
366,
77,
297,
1
] |
What is the incumbent for ohio 12? | SELECT "Incumbent" FROM table_18595 WHERE "District" = 'Ohio 12' | [
2061,
318,
262,
23526,
329,
11752,
952,
1105,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
35124,
33411,
366,
44857,
1,
796,
705,
31274,
1105,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
23526,
329,
11752,
952,
1105,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
1507,
35124,
33411,
366,
44857,
1,
796,
705,
31274,
1105,
6
] |
how many patients had procedure creation of conduit between left ventricle and aorta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Creation of conduit between left ventricle and aorta" | [
4919,
867,
3871,
550,
8771,
6282,
286,
44457,
1022,
1364,
7435,
1173,
293,
290,
257,
419,
64,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
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... | [
4919,
867,
3871,
550,
8771,
6282,
286,
44457,
1022,
1364,
7435,
1173,
293,
290,
257,
419,
64,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,... |
who was the first opponent of the season ? | SELECT "opponent" FROM table_203_114 WHERE id = 1 | [
8727,
373,
262,
717,
6125,
286,
262,
1622,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
16562,
33411,
4686,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
373,
262,
717,
6125,
286,
262,
1622,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
22416,
62,
16562,
33411,
4686,
796,
352
] |
In which year did he compete in the Universiade? | SELECT year FROM table_name_21 WHERE competition = "universiade" | [
818,
543,
614,
750,
339,
9320,
287,
262,
26986,
72,
671,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2481,
33411,
5449,
796,
366,
403,
1191,
72,
671,
1
] | [
1,
1,
1,
1,
1,
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,
339,
9320,
287,
262,
26986,
72,
671,
30,
46506,
614,
16034,
3084,
62,
3672,
62,
2481,
33411,
5449,
796,
366,
403,
1191,
72,
671,
1
] |
what is the only cable car with a 2937 slope length ? | SELECT "name" FROM table_204_980 WHERE "type" = 'cable car' AND "slope length" = 2937 | [
10919,
318,
262,
691,
7862,
1097,
351,
257,
2808,
2718,
22638,
4129,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
40022,
33411,
366,
4906,
1,
796,
705,
66,
540,
1097,
6,
5357,
366,
6649,
3008,
4129,
1,
796,
2808,
2718
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
691,
7862,
1097,
351,
257,
2808,
2718,
22638,
4129,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
18638,
62,
40022,
33411,
366,
4906,
1,
796,
705,
66,
540,
1097,
6,
5357,
366,
6649,
3008,
4129,
1,
796,
2808,
2718
] |
When was the game number 3 played? | SELECT date FROM table_23286112_6 WHERE game = 3 | [
2215,
373,
262,
983,
1271,
513,
2826,
30,
46506,
3128,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
21,
33411,
983,
796,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
983,
1271,
513,
2826,
30,
46506,
3128,
16034,
3084,
62,
1954,
2078,
5333,
1065,
62,
21,
33411,
983,
796,
513
] |
Show different parties of people along with the number of people in each party with a bar chart, and could you display by the y-axis in ascending? | SELECT Party, COUNT(*) FROM people GROUP BY Party ORDER BY COUNT(*) | [
15307,
1180,
4671,
286,
661,
1863,
351,
262,
1271,
286,
661,
287,
1123,
2151,
351,
257,
2318,
8262,
11,
290,
714,
345,
3359,
416,
262,
331,
12,
22704,
287,
41988,
30,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
661,
44441,
11050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
4671,
286,
661,
1863,
351,
262,
1271,
286,
661,
287,
1123,
2151,
351,
257,
2318,
8262,
11,
290,
714,
345,
3359,
416,
262,
331,
12,
22704,
287,
41988,
30,
46506,
3615,
11,
327,
28270,
7,
28104,
16034,
661,
44441,
11050,
... |
what is the minimum total hospital cost, which includes thyrotox nos no crisis since 2 years ago? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'thyrotox nos no crisis')) AND DATETIME(cost.chargetime) >= DATE... | [
10919,
318,
262,
5288,
2472,
4436,
1575,
11,
543,
3407,
11906,
10599,
1140,
43630,
645,
4902,
1201,
362,
812,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
5288,
2472,
4436,
1575,
11,
543,
3407,
11906,
10599,
1140,
43630,
645,
4902,
1201,
362,
812,
2084,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
... |
how much is the minimum hospital bill that includes bradycardia? | SELECT MIN(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'bradycardia')) GROUP BY cost.patienthealthsy... | [
4919,
881,
318,
262,
5288,
4436,
2855,
326,
3407,
865,
4597,
9517,
544,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
318,
262,
5288,
4436,
2855,
326,
3407,
865,
4597,
9517,
544,
30,
46506,
20625,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
13,
15805,
8,
7054,
269,
16,
16034,
1575,
33411,
1575,
13,
26029,
13948,
10057,
... |
On August 29, What was the record playing against the Rangers? | SELECT record FROM table_name_75 WHERE opponent = "rangers" AND date = "august 29" | [
2202,
2932,
2808,
11,
1867,
373,
262,
1700,
2712,
1028,
262,
13804,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2425,
33411,
6125,
796,
366,
81,
6606,
1,
5357,
3128,
796,
366,
7493,
436,
2808,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2932,
2808,
11,
1867,
373,
262,
1700,
2712,
1028,
262,
13804,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2425,
33411,
6125,
796,
366,
81,
6606,
1,
5357,
3128,
796,
366,
7493,
436,
2808,
1
] |
What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3? | SELECT AVG(total) FROM table_name_52 WHERE nation = "sweden" AND bronze < 3 | [
2061,
318,
262,
2811,
7472,
11,
618,
262,
8741,
318,
10710,
11,
290,
618,
262,
1988,
329,
19461,
318,
1342,
621,
513,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3277,
796,
366,
2032,
31829,
1,
5357,
22101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
11,
618,
262,
8741,
318,
10710,
11,
290,
618,
262,
1988,
329,
19461,
318,
1342,
621,
513,
30,
46506,
35224,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
3277,
796,
366,
2032,
31829,
1,
5357,
22101... |
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585? | SELECT "Main span metres" FROM table_42136 WHERE "Year to open" = '2013' AND "Country" = 'china' AND "Main span feet" = '2,585' | [
2061,
318,
262,
8774,
11506,
286,
262,
7696,
422,
2807,
351,
257,
6280,
284,
1280,
286,
2211,
290,
8774,
11506,
3625,
286,
362,
11,
38905,
30,
46506,
366,
13383,
11506,
18985,
1,
16034,
3084,
62,
3682,
20809,
33411,
366,
17688,
284,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8774,
11506,
286,
262,
7696,
422,
2807,
351,
257,
6280,
284,
1280,
286,
2211,
290,
8774,
11506,
3625,
286,
362,
11,
38905,
30,
46506,
366,
13383,
11506,
18985,
1,
16034,
3084,
62,
3682,
20809,
33411,
366,
17688,
284,
1... |
What was the score on April 23? | SELECT score FROM table_name_5 WHERE date = "april 23" | [
2061,
373,
262,
4776,
319,
3035,
2242,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
20,
33411,
3128,
796,
366,
499,
22379,
2242,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
319,
3035,
2242,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
20,
33411,
3128,
796,
366,
499,
22379,
2242,
1
] |
What was the first airdate with a viewership of 4.77 million? | SELECT "Original airdate" FROM table_21853 WHERE "Viewership" = '4.77 million' | [
2061,
373,
262,
717,
257,
1447,
378,
351,
257,
48347,
286,
604,
13,
3324,
1510,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
28727,
4310,
33411,
366,
7680,
49437,
1,
796,
705,
19,
13,
3324,
1510,
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
] | [
2061,
373,
262,
717,
257,
1447,
378,
351,
257,
48347,
286,
604,
13,
3324,
1510,
30,
46506,
366,
20556,
257,
1447,
378,
1,
16034,
3084,
62,
28727,
4310,
33411,
366,
7680,
49437,
1,
796,
705,
19,
13,
3324,
1510,
6
] |
What is the ratio of Republicans to Democrats in South Carolina? | SELECT "Republican/ Democratic" FROM table_67119 WHERE "State ranked in partisan order" = 'south carolina' | [
2061,
318,
262,
8064,
286,
4734,
284,
4956,
287,
2520,
5913,
30,
46506,
366,
25777,
14,
4390,
1,
16034,
3084,
62,
3134,
16315,
33411,
366,
9012,
10307,
287,
19666,
1502,
1,
796,
705,
35782,
1097,
47196,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8064,
286,
4734,
284,
4956,
287,
2520,
5913,
30,
46506,
366,
25777,
14,
4390,
1,
16034,
3084,
62,
3134,
16315,
33411,
366,
9012,
10307,
287,
19666,
1502,
1,
796,
705,
35782,
1097,
47196,
6
] |
When is the last day any resident moved in? | SELECT MAX(date_moved_in) FROM residents | [
2215,
318,
262,
938,
1110,
597,
6623,
3888,
287,
30,
46506,
25882,
7,
4475,
62,
76,
2668,
62,
259,
8,
16034,
5085
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
318,
262,
938,
1110,
597,
6623,
3888,
287,
30,
46506,
25882,
7,
4475,
62,
76,
2668,
62,
259,
8,
16034,
5085
] |
Name the country moving to chelsea | SELECT "Country" FROM table_51863 WHERE "Moving to" = 'chelsea' | [
5376,
262,
1499,
3867,
284,
1125,
75,
8583,
46506,
366,
33921,
1,
16034,
3084,
62,
44085,
5066,
33411,
366,
33622,
284,
1,
796,
705,
29232,
8583,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1499,
3867,
284,
1125,
75,
8583,
46506,
366,
33921,
1,
16034,
3084,
62,
44085,
5066,
33411,
366,
33622,
284,
1,
796,
705,
29232,
8583,
6
] |
what year had the highest total number ? | SELECT "year" FROM table_203_355 ORDER BY "total" DESC LIMIT 1 | [
10919,
614,
550,
262,
4511,
2472,
1271,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
28567,
38678,
11050,
366,
23350,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
614,
550,
262,
4511,
2472,
1271,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
28567,
38678,
11050,
366,
23350,
1,
22196,
34,
27564,
2043,
352
] |
What is the highest Top-5 that has 18 or more events with a Top-25 of 23? | SELECT MAX("Top-5") FROM table_42348 WHERE "Events" > '18' AND "Top-25" = '23' | [
2061,
318,
262,
4511,
5849,
12,
20,
326,
468,
1248,
393,
517,
2995,
351,
257,
5849,
12,
1495,
286,
2242,
30,
46506,
25882,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
43356,
2780,
33411,
366,
37103,
1,
1875,
705,
1507,
6,
5357,
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
] | [
2061,
318,
262,
4511,
5849,
12,
20,
326,
468,
1248,
393,
517,
2995,
351,
257,
5849,
12,
1495,
286,
2242,
30,
46506,
25882,
7203,
9126,
12,
20,
4943,
16034,
3084,
62,
43356,
2780,
33411,
366,
37103,
1,
1875,
705,
1507,
6,
5357,
366,
... |
What is Highest Total, when Year(s) Won is before 1959? | SELECT MAX(total) FROM table_name_99 WHERE year_s__won < 1959 | [
2061,
318,
41864,
7472,
11,
618,
6280,
7,
82,
8,
23306,
318,
878,
23859,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
614,
62,
82,
834,
26502,
1279,
23859
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
41864,
7472,
11,
618,
6280,
7,
82,
8,
23306,
318,
878,
23859,
30,
46506,
25882,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
2079,
33411,
614,
62,
82,
834,
26502,
1279,
23859
] |
give me the round trip flights from CLEVELAND to MIAMI next wednesday | SELECT DISTINCT flight_id FROM flight WHERE (((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 23 AND DATE_DAYalias0.month_number = 4 AND DATE_DAYalias0.year = 1991)) AND fl... | [
26535,
502,
262,
2835,
5296,
13956,
422,
30301,
18697,
6981,
284,
15789,
43870,
1306,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,
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,
2835,
5296,
13956,
422,
30301,
18697,
6981,
284,
15789,
43870,
1306,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
62,
312,
16034,
5474,
33411,
14808,
7,
22560,
62,
12545,
3268,
357,
46506,
24644,
19221,
4448,
15,
13,
... |
What has Luke S Zettlemoyer published in the last 8 years ? | SELECT DISTINCT writes.paperid FROM author, paper, writes WHERE author.authorname = 'Luke S Zettlemoyer' AND paper.year >= YEAR(CURDATE()) - 8 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | [
2061,
468,
11336,
311,
1168,
3087,
10671,
35301,
3199,
287,
262,
938,
807,
812,
5633,
46506,
360,
8808,
1268,
4177,
6797,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
311,
1168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
11336,
311,
1168,
3087,
10671,
35301,
3199,
287,
262,
938,
807,
812,
5633,
46506,
360,
8808,
1268,
4177,
6797,
13,
20189,
312,
16034,
1772,
11,
3348,
11,
6797,
33411,
1772,
13,
18439,
1211,
480,
796,
705,
30730,
311,
1168,
... |
provide the number of patients whose primary disease is stemi and days of hospital stay is greater than 4? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "STEMI" AND demographic.days_stay > "4" | [
15234,
485,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
10717,
72,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4165,
4369,
318,
10717,
72,
290,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
... |
how many patients whose year of birth is less than 2056 and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2056" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
4919,
867,
3871,
3025,
614,
286,
4082,
318,
1342,
621,
1160,
3980,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
286,
4082,
318,
1342,
621,
1160,
3980,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... |
Bar chart of the number of hometown from each hometown, and rank X-axis in desc order. | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown DESC | [
10374,
8262,
286,
262,
1271,
286,
20994,
422,
1123,
20994,
11,
290,
4279,
1395,
12,
22704,
287,
1715,
1502,
13,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
367,
19191,
22196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
1271,
286,
20994,
422,
1123,
20994,
11,
290,
4279,
1395,
12,
22704,
287,
1715,
1502,
13,
46506,
367,
19191,
11,
327,
28270,
7,
39,
19191,
8,
16034,
2888,
44441,
11050,
367,
19191,
38678,
11050,
367,
19191,
22196,
... |
Name the vcore for multi 11x | SELECT v_core FROM table_27277284_8 WHERE mult_1 = "11x" | [
5376,
262,
410,
7295,
329,
5021,
1367,
87,
46506,
410,
62,
7295,
16034,
3084,
62,
1983,
27019,
30336,
62,
23,
33411,
1963,
62,
16,
796,
366,
1157,
87,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
410,
7295,
329,
5021,
1367,
87,
46506,
410,
62,
7295,
16034,
3084,
62,
1983,
27019,
30336,
62,
23,
33411,
1963,
62,
16,
796,
366,
1157,
87,
1
] |
did austria win more games in 1992 or 1996 ? | SELECT "year" FROM table_204_933 WHERE "year" IN (1992, 1996) AND "result" = 'win' GROUP BY "year" ORDER BY COUNT(*) DESC LIMIT 1 | [
20839,
38132,
7496,
1592,
517,
1830,
287,
9768,
393,
8235,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
24,
2091,
33411,
366,
1941,
1,
3268,
357,
23847,
11,
8235,
8,
5357,
366,
20274,
1,
796,
705,
5404,
6,
44441,
11050,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20839,
38132,
7496,
1592,
517,
1830,
287,
9768,
393,
8235,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
18638,
62,
24,
2091,
33411,
366,
1941,
1,
3268,
357,
23847,
11,
8235,
8,
5357,
366,
20274,
1,
796,
705,
5404,
6,
44441,
11050,
36... |
What are the average wins that have great britain as the team? | SELECT AVG("Wins") FROM table_42435 WHERE "Team" = 'great britain' | [
2061,
389,
262,
2811,
7864,
326,
423,
1049,
275,
799,
391,
355,
262,
1074,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
40090,
2327,
33411,
366,
15592,
1,
796,
705,
18223,
275,
799,
391,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
2811,
7864,
326,
423,
1049,
275,
799,
391,
355,
262,
1074,
30,
46506,
35224,
7203,
54,
1040,
4943,
16034,
3084,
62,
40090,
2327,
33411,
366,
15592,
1,
796,
705,
18223,
275,
799,
391,
6
] |
Select Short Answers With a Score Equal or more than x. | SELECT Id AS "post_link", Body FROM Posts WHERE PostTypeId = 2 AND LENGTH(Body) <= 100 AND Score >= @score | [
17563,
10073,
42612,
2080,
257,
15178,
28701,
393,
517,
621,
2124,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
406,
49494,
7,
25842,
8,
19841,
1802,
5357,
15178,
18189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
17563,
10073,
42612,
2080,
257,
15178,
28701,
393,
517,
621,
2124,
13,
46506,
5121,
7054,
366,
7353,
62,
8726,
1600,
12290,
16034,
12043,
33411,
2947,
6030,
7390,
796,
362,
5357,
406,
49494,
7,
25842,
8,
19841,
1802,
5357,
15178,
18189,
... |
What were the July ( C) temperatures when the July ( F) temperatures were 71/55? | SELECT "July (\u00b0C)" FROM table_24692 WHERE "July (\u00b0F)" = '71/55' | [
2061,
547,
262,
2901,
357,
327,
8,
10101,
618,
262,
2901,
357,
376,
8,
10101,
547,
9166,
14,
2816,
30,
46506,
366,
16157,
357,
59,
84,
405,
65,
15,
34,
16725,
16034,
3084,
62,
1731,
46589,
33411,
366,
16157,
357,
59,
84,
405,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2901,
357,
327,
8,
10101,
618,
262,
2901,
357,
376,
8,
10101,
547,
9166,
14,
2816,
30,
46506,
366,
16157,
357,
59,
84,
405,
65,
15,
34,
16725,
16034,
3084,
62,
1731,
46589,
33411,
366,
16157,
357,
59,
84,
405,
65,
... |
What club began in 1976? | SELECT current_club FROM table_name_21 WHERE year_born = 1976 | [
2061,
3430,
2540,
287,
15408,
30,
46506,
1459,
62,
18664,
16034,
3084,
62,
3672,
62,
2481,
33411,
614,
62,
6286,
796,
15408
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
3430,
2540,
287,
15408,
30,
46506,
1459,
62,
18664,
16034,
3084,
62,
3672,
62,
2481,
33411,
614,
62,
6286,
796,
15408
] |
are there more wins by submission , or tko ? | SELECT "method" FROM table_204_461 WHERE "res." = 'win' AND "method" IN ('submission', 'tko') GROUP BY "method" ORDER BY COUNT(*) DESC LIMIT 1 | [
533,
612,
517,
7864,
416,
14498,
837,
393,
256,
7204,
5633,
46506,
366,
24396,
1,
16034,
3084,
62,
18638,
62,
40652,
33411,
366,
411,
526,
796,
705,
5404,
6,
5357,
366,
24396,
1,
3268,
19203,
7266,
3411,
3256,
705,
83,
7204,
11537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
533,
612,
517,
7864,
416,
14498,
837,
393,
256,
7204,
5633,
46506,
366,
24396,
1,
16034,
3084,
62,
18638,
62,
40652,
33411,
366,
411,
526,
796,
705,
5404,
6,
5357,
366,
24396,
1,
3268,
19203,
7266,
3411,
3256,
705,
83,
7204,
11537,
... |
Who are the players that have attended Stanford? | SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford" | [
8241,
389,
262,
1938,
326,
423,
9141,
13863,
30,
46506,
2137,
16034,
3084,
62,
1433,
2920,
2231,
2079,
62,
940,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
32140,
3841,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
1938,
326,
423,
9141,
13863,
30,
46506,
2137,
16034,
3084,
62,
1433,
2920,
2231,
2079,
62,
940,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
32140,
3841,
1
] |
what was the name of the first specimen test patient 031-15417 received since 116 months ago? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-15417')) AND DATETIME(microlab.culturetakentime) >= DATETIME(CURRE... | [
10919,
373,
262,
1438,
286,
262,
717,
31674,
1332,
5827,
657,
3132,
12,
21526,
1558,
2722,
1201,
18693,
1933,
2084,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
717,
31674,
1332,
5827,
657,
3132,
12,
21526,
1558,
2722,
1201,
18693,
1933,
2084,
30,
46506,
4580,
23912,
13,
40820,
942,
578,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
20850,
31712,
312,
3268,
... |
Can you tell me the Record that has the Score of 100-105? | SELECT record FROM table_name_99 WHERE score = "100-105" | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
15178,
286,
1802,
12,
13348,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2079,
33411,
4776,
796,
366,
3064,
12,
13348,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
13266,
326,
468,
262,
15178,
286,
1802,
12,
13348,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
2079,
33411,
4776,
796,
366,
3064,
12,
13348,
1
] |
What's the total amount of Bulgaria that has more than 13 bronze? | SELECT SUM(total) FROM table_name_2 WHERE nation = "bulgaria" AND bronze > 13 | [
2061,
338,
262,
2472,
2033,
286,
27902,
326,
468,
517,
621,
1511,
22101,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
3277,
796,
366,
15065,
4563,
544,
1,
5357,
22101,
1875,
1511
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
286,
27902,
326,
468,
517,
621,
1511,
22101,
30,
46506,
35683,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
17,
33411,
3277,
796,
366,
15065,
4563,
544,
1,
5357,
22101,
1875,
1511
] |
Name the country moving to chelsea | SELECT country FROM table_name_24 WHERE moving_to = "chelsea" | [
5376,
262,
1499,
3867,
284,
1125,
75,
8583,
46506,
1499,
16034,
3084,
62,
3672,
62,
1731,
33411,
3867,
62,
1462,
796,
366,
29232,
8583,
1
] | [
1,
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,
1499,
3867,
284,
1125,
75,
8583,
46506,
1499,
16034,
3084,
62,
3672,
62,
1731,
33411,
3867,
62,
1462,
796,
366,
29232,
8583,
1
] |
What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts? | SELECT volume AS :issue FROM table_name_96 WHERE weeks_on_top < 2 AND artist = "george mccrae" | [
2061,
318,
262,
14701,
25,
45147,
1271,
286,
262,
4502,
5108,
430,
68,
3496,
326,
3377,
1342,
621,
362,
2745,
319,
1353,
286,
262,
15907,
30,
46506,
6115,
7054,
1058,
21949,
16034,
3084,
62,
3672,
62,
4846,
33411,
2745,
62,
261,
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
] | [
2061,
318,
262,
14701,
25,
45147,
1271,
286,
262,
4502,
5108,
430,
68,
3496,
326,
3377,
1342,
621,
362,
2745,
319,
1353,
286,
262,
15907,
30,
46506,
6115,
7054,
1058,
21949,
16034,
3084,
62,
3672,
62,
4846,
33411,
2745,
62,
261,
62,
... |
What are the names of catalog entries with level number 8? | SELECT t1.catalog_entry_name FROM catalog_contents AS t1 JOIN catalog_contents_additional_attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" | [
2061,
389,
262,
3891,
286,
18388,
12784,
351,
1241,
1271,
807,
30,
46506,
256,
16,
13,
9246,
11794,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
7054,
256,
16,
32357,
1268,
18388,
62,
3642,
658,
62,
2860,
1859,
62,
1078,
7657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18388,
12784,
351,
1241,
1271,
807,
30,
46506,
256,
16,
13,
9246,
11794,
62,
13000,
62,
3672,
16034,
18388,
62,
3642,
658,
7054,
256,
16,
32357,
1268,
18388,
62,
3642,
658,
62,
2860,
1859,
62,
1078,
7657,
... |
since 3 years ago, what are the top four most commonly prescribed drugs for patients 40s? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 40 AND 49) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY pres... | [
20777,
513,
812,
2084,
11,
644,
389,
262,
1353,
1440,
749,
8811,
14798,
5010,
329,
3871,
2319,
82,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
20777,
513,
812,
2084,
11,
644,
389,
262,
1353,
1440,
749,
8811,
14798,
5010,
329,
3871,
2319,
82,
30,
46506,
256,
16,
13,
30349,
16034,
357,
46506,
34092,
13,
30349,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050... |
How many courses for each course description? Show me a stacked bar chart The x-axis is course description and group by instructor's name, and show Y in descending order. | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY EMP_FNAME, CRS_DESCRIPTION ORDER BY COUNT(CRS_DESCRIPTION) DESC | [
2437,
867,
10902,
329,
1123,
1781,
6764,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
1781,
6764,
290,
1448,
416,
21187,
338,
1438,
11,
290,
905,
575,
287,
31491,
1502,
13,
46506,
327,
6998,
62,
30910,
40165,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
10902,
329,
1123,
1781,
6764,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
1781,
6764,
290,
1448,
416,
21187,
338,
1438,
11,
290,
905,
575,
287,
31491,
1502,
13,
46506,
327,
6998,
62,
30910,
40165,
11,
... |
How many caps for alister campbell from brumbies? | SELECT MIN(caps) FROM table_name_67 WHERE club_province = "brumbies" AND player = "alister campbell" | [
2437,
867,
11022,
329,
435,
1694,
1413,
7923,
422,
865,
2178,
444,
30,
46506,
20625,
7,
27979,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
3430,
62,
15234,
924,
796,
366,
1671,
2178,
444,
1,
5357,
2137,
796,
366,
282,
1694,
1413,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11022,
329,
435,
1694,
1413,
7923,
422,
865,
2178,
444,
30,
46506,
20625,
7,
27979,
8,
16034,
3084,
62,
3672,
62,
3134,
33411,
3430,
62,
15234,
924,
796,
366,
1671,
2178,
444,
1,
5357,
2137,
796,
366,
282,
1694,
1413,
792... |
Return the founded year for the school with the largest enrollment. | SELECT founded FROM university ORDER BY enrollment DESC LIMIT 1 | [
13615,
262,
9393,
614,
329,
262,
1524,
351,
262,
4387,
20753,
13,
46506,
9393,
16034,
6403,
38678,
11050,
20753,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
9393,
614,
329,
262,
1524,
351,
262,
4387,
20753,
13,
46506,
9393,
16034,
6403,
38678,
11050,
20753,
22196,
34,
27564,
2043,
352
] |
When did the season premiere that had a viewer rank of #6? | SELECT season AS premiere FROM table_name_12 WHERE viewer_rank___number_ = "#6" | [
2215,
750,
262,
1622,
19245,
326,
550,
257,
19091,
4279,
286,
1303,
21,
30,
46506,
1622,
7054,
19245,
16034,
3084,
62,
3672,
62,
1065,
33411,
19091,
62,
43027,
17569,
17618,
62,
796,
25113,
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
] | [
2215,
750,
262,
1622,
19245,
326,
550,
257,
19091,
4279,
286,
1303,
21,
30,
46506,
1622,
7054,
19245,
16034,
3084,
62,
3672,
62,
1065,
33411,
19091,
62,
43027,
17569,
17618,
62,
796,
25113,
21,
1
] |
Which position had a pick larger than 80 and Walt Mainer as a player? | SELECT "Position" FROM table_47332 WHERE "Pick" > '80' AND "Player" = 'walt mainer' | [
13828,
2292,
550,
257,
2298,
4025,
621,
4019,
290,
18935,
8774,
263,
355,
257,
2137,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
2857,
32148,
33411,
366,
31686,
1,
1875,
705,
1795,
6,
5357,
366,
14140,
1,
796,
705,
86,
2501,
1388,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
550,
257,
2298,
4025,
621,
4019,
290,
18935,
8774,
263,
355,
257,
2137,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
2857,
32148,
33411,
366,
31686,
1,
1875,
705,
1795,
6,
5357,
366,
14140,
1,
796,
705,
86,
2501,
1388,
26... |
what is patient 25312's average arterial bp mean at since 1968 days ago? | SELECT AVG(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 = 25312)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte... | [
10919,
318,
5827,
1679,
27970,
338,
2811,
30675,
498,
275,
79,
1612,
379,
1201,
15963,
1528,
2084,
30,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
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,
318,
5827,
1679,
27970,
338,
2811,
30675,
498,
275,
79,
1612,
379,
1201,
15963,
1528,
2084,
30,
46506,
35224,
7,
40926,
31534,
13,
2100,
84,
44709,
8,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
35... |
tell me the number of patients who were born in or before 2132. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dod_year <= "2132.0" | [
33331,
502,
262,
1271,
286,
3871,
508,
547,
4642,
287,
393,
878,
362,
19924,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
19924,
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
] | [
33331,
502,
262,
1271,
286,
3871,
508,
547,
4642,
287,
393,
878,
362,
19924,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
375,
62,
1941,
19841,
366,
17,
19924,
13,... |
What is the liberal ticket that has judith white as the socialist workers? | SELECT "Liberal ticket" FROM table_42138 WHERE "Socialist Workers ticket" = 'judith white' | [
2061,
318,
262,
7270,
7846,
326,
468,
2553,
342,
2330,
355,
262,
15889,
3259,
30,
46506,
366,
46650,
7846,
1,
16034,
3084,
62,
3682,
20107,
33411,
366,
20636,
396,
16847,
7846,
1,
796,
705,
10456,
342,
2330,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7270,
7846,
326,
468,
2553,
342,
2330,
355,
262,
15889,
3259,
30,
46506,
366,
46650,
7846,
1,
16034,
3084,
62,
3682,
20107,
33411,
366,
20636,
396,
16847,
7846,
1,
796,
705,
10456,
342,
2330,
6
] |
What is NK Rijeka's away score in Round 2? | SELECT "Away" FROM table_5968 WHERE "Round" < '2' AND "Club" = 'nk rijeka' | [
2061,
318,
46465,
371,
2926,
38001,
338,
1497,
4776,
287,
10485,
362,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
3270,
3104,
33411,
366,
22685,
1,
1279,
705,
17,
6,
5357,
366,
42350,
1,
796,
705,
77,
74,
374,
2926,
38001,
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,
46465,
371,
2926,
38001,
338,
1497,
4776,
287,
10485,
362,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
3270,
3104,
33411,
366,
22685,
1,
1279,
705,
17,
6,
5357,
366,
42350,
1,
796,
705,
77,
74,
374,
2926,
38001,
6
] |
Which Engine has a Model of sl500, and a Chassis smaller than 129.067? | SELECT MIN(engine) FROM table_name_60 WHERE model = "sl500" AND chassis < 129.067 | [
13828,
7117,
468,
257,
9104,
286,
1017,
4059,
11,
290,
257,
609,
20297,
4833,
621,
20248,
13,
15,
3134,
30,
46506,
20625,
7,
18392,
8,
16034,
3084,
62,
3672,
62,
1899,
33411,
2746,
796,
366,
6649,
4059,
1,
5357,
24587,
1279,
20248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7117,
468,
257,
9104,
286,
1017,
4059,
11,
290,
257,
609,
20297,
4833,
621,
20248,
13,
15,
3134,
30,
46506,
20625,
7,
18392,
8,
16034,
3084,
62,
3672,
62,
1899,
33411,
2746,
796,
366,
6649,
4059,
1,
5357,
24587,
1279,
20248,
... |
i need to catch an evening flight from BOSTON to PHILADELPHIA on 8 1 | 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 = 'PHILADELPHIA' AND date_day.day_number = 1 AND date_day.month_number = 8 ... | [
72,
761,
284,
4929,
281,
6180,
5474,
422,
347,
10892,
1340,
284,
9370,
4146,
2885,
3698,
11909,
3539,
319,
807,
352,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
72,
761,
284,
4929,
281,
6180,
5474,
422,
347,
10892,
1340,
284,
9370,
4146,
2885,
3698,
11909,
3539,
319,
807,
352,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
... |
which company released audiobooks authored by day, martin martin day | SELECT "Company" FROM table_23582 WHERE "Author" = 'Day, Martin Martin Day' | [
4758,
1664,
2716,
40504,
672,
31085,
33941,
416,
1110,
11,
11277,
259,
11277,
259,
1110,
46506,
366,
39154,
1,
16034,
3084,
62,
1954,
46044,
33411,
366,
13838,
1,
796,
705,
12393,
11,
5780,
5780,
3596,
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
] | [
4758,
1664,
2716,
40504,
672,
31085,
33941,
416,
1110,
11,
11277,
259,
11277,
259,
1110,
46506,
366,
39154,
1,
16034,
3084,
62,
1954,
46044,
33411,
366,
13838,
1,
796,
705,
12393,
11,
5780,
5780,
3596,
6
] |
What is Total, when Player is 'Hale Irwin'? | SELECT "Total" FROM table_46655 WHERE "Player" = 'hale irwin' | [
2061,
318,
7472,
11,
618,
7853,
318,
705,
39,
1000,
48470,
30960,
46506,
366,
14957,
1,
16034,
3084,
62,
42199,
2816,
33411,
366,
14140,
1,
796,
705,
71,
1000,
4173,
5404,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
7472,
11,
618,
7853,
318,
705,
39,
1000,
48470,
30960,
46506,
366,
14957,
1,
16034,
3084,
62,
42199,
2816,
33411,
366,
14140,
1,
796,
705,
71,
1000,
4173,
5404,
6
] |
How many trains call at Castor, Overton, Peterborough East and are operated by LNWR? | SELECT COUNT(arrival) FROM table_12221135_3 WHERE operator = "LNWR" AND calling_at = "Castor, Overton, Peterborough East" | [
2437,
867,
13404,
869,
379,
5833,
273,
11,
3827,
1122,
11,
5613,
17913,
3687,
290,
389,
12228,
416,
406,
45,
18564,
30,
46506,
327,
28270,
7,
283,
43171,
8,
16034,
3084,
62,
1065,
1828,
1157,
2327,
62,
18,
33411,
10088,
796,
366,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13404,
869,
379,
5833,
273,
11,
3827,
1122,
11,
5613,
17913,
3687,
290,
389,
12228,
416,
406,
45,
18564,
30,
46506,
327,
28270,
7,
283,
43171,
8,
16034,
3084,
62,
1065,
1828,
1157,
2327,
62,
18,
33411,
10088,
796,
366,
43... |
filtrar por pais y tag de post. | SELECT Users.DisplayName, Users.Id AS "user_link" FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.Id = PostTags.PostId INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE TagName = '##tagname##' AND LOWER(Location) = LOWER('##pais##') GROUP BY Users.Id, Users.DisplayName | [
10379,
2213,
283,
16964,
14187,
271,
331,
7621,
390,
1281,
13,
46506,
18987,
13,
23114,
5376,
11,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
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... | [
10379,
2213,
283,
16964,
14187,
271,
331,
7621,
390,
1281,
13,
46506,
18987,
13,
23114,
5376,
11,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1,
16034,
44789,
3268,
21479,
32357,
1268,
2947,
36142,
6177,
2947,
36142,
13,
24835,
7390,
79... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.