instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
how did patient 006-36108 first get admitted in the hospital since 2 years ago? | SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '006-36108' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') ORDER BY patient.hospitaladmittime LIMIT 1 | [
4919,
750,
5827,
3571,
21,
12,
2623,
15711,
717,
651,
6848,
287,
262,
4436,
1201,
362,
812,
2084,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
2623,
15711,
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... | [
4919,
750,
5827,
3571,
21,
12,
2623,
15711,
717,
651,
6848,
287,
262,
4436,
1201,
362,
812,
2084,
30,
46506,
5827,
13,
49257,
324,
24883,
1668,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
2623,
15711,
6,
... |
have patient 62413 gone through any procedure in 2105? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 62413) AND STRFTIME('%y', procedures_icd.charttime) = '2105' | [
14150,
5827,
718,
1731,
1485,
3750,
832,
597,
8771,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
14150,
5827,
718,
1731,
1485,
3750,
832,
597,
8771,
287,
362,
13348,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,... |
does respiration of patient 032-21820 be normal on the current hospital visit? | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '032-21820' AND patient.hospitaldischargetime IS NULL)) AND vitalperi... | [
22437,
1217,
15297,
286,
5827,
657,
2624,
12,
28727,
1238,
307,
3487,
319,
262,
1459,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
22437,
1217,
15297,
286,
5827,
657,
2624,
12,
28727,
1238,
307,
3487,
319,
262,
1459,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
465... |
what's the date where ships name is zeeland entered service | SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Zeeland" | [
10919,
338,
262,
3128,
810,
7937,
1438,
318,
41271,
8822,
5982,
2139,
46506,
3128,
62,
298,
1068,
62,
15271,
16034,
3084,
62,
1157,
39380,
16945,
62,
18,
33411,
7937,
62,
3672,
796,
366,
36056,
8822,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
338,
262,
3128,
810,
7937,
1438,
318,
41271,
8822,
5982,
2139,
46506,
3128,
62,
298,
1068,
62,
15271,
16034,
3084,
62,
1157,
39380,
16945,
62,
18,
33411,
7937,
62,
3672,
796,
366,
36056,
8822,
1
] |
On what date was James P. Buchanan (d)'s successor seated? | SELECT date_successor_seated FROM table_2159547_3 WHERE vacator = "James P. Buchanan (D)" | [
2202,
644,
3128,
373,
3700,
350,
13,
36358,
357,
67,
33047,
82,
17270,
21639,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
23349,
3865,
2857,
62,
18,
33411,
6658,
1352,
796,
366,
14731,
350,
13,
36358,
357,
35,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2202,
644,
3128,
373,
3700,
350,
13,
36358,
357,
67,
33047,
82,
17270,
21639,
30,
46506,
3128,
62,
13138,
273,
62,
325,
515,
16034,
3084,
62,
23349,
3865,
2857,
62,
18,
33411,
6658,
1352,
796,
366,
14731,
350,
13,
36358,
357,
35,
16... |
During the game at Candlestick Park, who was the visiting team? | SELECT "Visiting Team" FROM table_52744 WHERE "Stadium" = 'candlestick park' | [
7191,
262,
983,
379,
15518,
32712,
624,
3250,
11,
508,
373,
262,
10013,
1074,
30,
46506,
366,
15854,
1780,
4816,
1,
16034,
3084,
62,
20,
1983,
2598,
33411,
366,
1273,
6271,
1,
796,
705,
46188,
32712,
624,
3952,
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
] | [
7191,
262,
983,
379,
15518,
32712,
624,
3250,
11,
508,
373,
262,
10013,
1074,
30,
46506,
366,
15854,
1780,
4816,
1,
16034,
3084,
62,
20,
1983,
2598,
33411,
366,
1273,
6271,
1,
796,
705,
46188,
32712,
624,
3952,
6
] |
Which track has a Japanese title of ? | SELECT MAX(track) FROM table_name_12 WHERE japanese_title = "メロディー" | [
13828,
2610,
468,
257,
4960,
3670,
286,
5633,
46506,
25882,
7,
11659,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
474,
2674,
2771,
62,
7839,
796,
366,
26998,
16253,
40629,
6312,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
2610,
468,
257,
4960,
3670,
286,
5633,
46506,
25882,
7,
11659,
8,
16034,
3084,
62,
3672,
62,
1065,
33411,
474,
2674,
2771,
62,
7839,
796,
366,
26998,
16253,
40629,
6312,
1
] |
list the ids of patients who have been diagnosed with joint replaced hip since 2105. | SELECT admissions.subject_id FROM admissions WHERE admissions.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 = 'joint replaced hip') AND STRFTIME('%y', diagnoses_icd.charttime) >= '2105'... | [
4868,
262,
220,
2340,
286,
3871,
508,
423,
587,
14641,
351,
6466,
6928,
10359,
1201,
362,
13348,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,
291,
67,
13,
18108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
220,
2340,
286,
3871,
508,
423,
587,
14641,
351,
6466,
6928,
10359,
1201,
362,
13348,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,
291,
67,
13,
18108... |
How many tries for does the team with 263 points against have? | SELECT "Tries for" FROM table_36632 WHERE "Points against" = '263' | [
2437,
867,
8404,
329,
857,
262,
1074,
351,
39135,
2173,
1028,
423,
30,
46506,
366,
51,
1678,
329,
1,
16034,
3084,
62,
32459,
2624,
33411,
366,
40710,
1028,
1,
796,
705,
29558,
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
] | [
2437,
867,
8404,
329,
857,
262,
1074,
351,
39135,
2173,
1028,
423,
30,
46506,
366,
51,
1678,
329,
1,
16034,
3084,
62,
32459,
2624,
33411,
366,
40710,
1028,
1,
796,
705,
29558,
6
] |
Does class 381 include a project ? | SELECT DISTINCT has_projects FROM course WHERE department = 'EECS' AND number = 381 | [
13921,
1398,
4353,
16,
2291,
257,
1628,
5633,
46506,
360,
8808,
1268,
4177,
468,
62,
42068,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
4353,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13921,
1398,
4353,
16,
2291,
257,
1628,
5633,
46506,
360,
8808,
1268,
4177,
468,
62,
42068,
16034,
1781,
33411,
5011,
796,
705,
36,
2943,
50,
6,
5357,
1271,
796,
4353,
16
] |
What is the Place of the Song by Artist Rosie Hunter with a Draw of 1 or larger? | SELECT COUNT("Place") FROM table_13888 WHERE "Artist" = 'rosie hunter' AND "Draw" > '1' | [
2061,
318,
262,
8474,
286,
262,
10940,
416,
18902,
10018,
494,
9055,
351,
257,
15315,
286,
352,
393,
4025,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
1485,
28011,
33411,
366,
43020,
1,
796,
705,
4951,
494,
19177,
6,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8474,
286,
262,
10940,
416,
18902,
10018,
494,
9055,
351,
257,
15315,
286,
352,
393,
4025,
30,
46506,
327,
28270,
7203,
27271,
4943,
16034,
3084,
62,
1485,
28011,
33411,
366,
43020,
1,
796,
705,
4951,
494,
19177,
6,
53... |
if there are 30 lifts, what is the name of the ski resort? | SELECT "Name" FROM table_73848 WHERE "Lifts" = '30' | [
361,
612,
389,
1542,
27103,
11,
644,
318,
262,
1438,
286,
262,
19984,
12600,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
2548,
2780,
33411,
366,
43,
19265,
1,
796,
705,
1270,
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
] | [
361,
612,
389,
1542,
27103,
11,
644,
318,
262,
1438,
286,
262,
19984,
12600,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
22,
2548,
2780,
33411,
366,
43,
19265,
1,
796,
705,
1270,
6
] |
What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf? | SELECT AVG(goals) FROM table_name_52 WHERE last_appearance < 1984 AND appearances > 17 AND first_appearance < 1961 AND position = "mf" | [
2061,
318,
262,
2811,
4661,
618,
262,
938,
5585,
373,
878,
12844,
11,
612,
547,
517,
621,
1596,
11057,
11,
262,
717,
5585,
373,
878,
20510,
290,
262,
2292,
373,
285,
69,
30,
46506,
35224,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
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... | [
2061,
318,
262,
2811,
4661,
618,
262,
938,
5585,
373,
878,
12844,
11,
612,
547,
517,
621,
1596,
11057,
11,
262,
717,
5585,
373,
878,
20510,
290,
262,
2292,
373,
285,
69,
30,
46506,
35224,
7,
2188,
874,
8,
16034,
3084,
62,
3672,
62... |
what type of aircraft is used on the first flight from PHILADELPHIA to DALLAS in the morning | SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE... | [
10919,
2099,
286,
6215,
318,
973,
319,
262,
717,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
360,
7036,
1921,
287,
262,
3329,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
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... | [
10919,
2099,
286,
6215,
318,
973,
319,
262,
717,
5474,
422,
9370,
4146,
2885,
3698,
11909,
3539,
284,
360,
7036,
1921,
287,
262,
3329,
46506,
360,
8808,
1268,
4177,
6215,
13,
958,
3323,
62,
8189,
16034,
6215,
11,
9003,
62,
15271,
7054... |
How large, in square kilometers, is Sackville? | SELECT area_km_2 FROM table_name_38 WHERE official_name = "sackville" | [
2437,
1588,
11,
287,
6616,
18212,
11,
318,
49175,
4244,
30,
46506,
1989,
62,
13276,
62,
17,
16034,
3084,
62,
3672,
62,
2548,
33411,
1743,
62,
3672,
796,
366,
82,
441,
4244,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1588,
11,
287,
6616,
18212,
11,
318,
49175,
4244,
30,
46506,
1989,
62,
13276,
62,
17,
16034,
3084,
62,
3672,
62,
2548,
33411,
1743,
62,
3672,
796,
366,
82,
441,
4244,
1
] |
Which Run 4 has a Run 1 of 1:25.82? | SELECT run_4 FROM table_name_59 WHERE run_1 = "1:25.82" | [
13828,
5660,
604,
468,
257,
5660,
352,
286,
352,
25,
1495,
13,
6469,
30,
46506,
1057,
62,
19,
16034,
3084,
62,
3672,
62,
3270,
33411,
1057,
62,
16,
796,
366,
16,
25,
1495,
13,
6469,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
5660,
604,
468,
257,
5660,
352,
286,
352,
25,
1495,
13,
6469,
30,
46506,
1057,
62,
19,
16034,
3084,
62,
3672,
62,
3270,
33411,
1057,
62,
16,
796,
366,
16,
25,
1495,
13,
6469,
1
] |
Tell me the 2008 for 2012 of 4r and 2009 of a | SELECT "2008" FROM table_31882 WHERE "2012" = '4r' AND "2009" = 'a' | [
24446,
502,
262,
3648,
329,
2321,
286,
604,
81,
290,
3717,
286,
257,
46506,
366,
11528,
1,
16034,
3084,
62,
36042,
6469,
33411,
366,
6999,
1,
796,
705,
19,
81,
6,
5357,
366,
10531,
1,
796,
705,
64,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
3648,
329,
2321,
286,
604,
81,
290,
3717,
286,
257,
46506,
366,
11528,
1,
16034,
3084,
62,
36042,
6469,
33411,
366,
6999,
1,
796,
705,
19,
81,
6,
5357,
366,
10531,
1,
796,
705,
64,
6
] |
What is the name of the road race held in Omsk, Russia? | SELECT road_race FROM table_26166836_3 WHERE location = "Omsk" | [
2061,
318,
262,
1438,
286,
262,
2975,
3234,
2714,
287,
440,
907,
74,
11,
3284,
30,
46506,
2975,
62,
16740,
16034,
3084,
62,
2075,
1433,
3104,
2623,
62,
18,
33411,
4067,
796,
366,
46,
907,
74,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2975,
3234,
2714,
287,
440,
907,
74,
11,
3284,
30,
46506,
2975,
62,
16740,
16034,
3084,
62,
2075,
1433,
3104,
2623,
62,
18,
33411,
4067,
796,
366,
46,
907,
74,
1
] |
how many patients whose item id is 50804 and lab test abnormal status is delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "50804" AND lab.flag = "delta" | [
4919,
867,
3871,
3025,
2378,
4686,
318,
2026,
36088,
290,
2248,
1332,
18801,
3722,
318,
25979,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2378,
4686,
318,
2026,
36088,
290,
2248,
1332,
18801,
3722,
318,
25979,
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,
... |
what are the flight numbers of the flights which go from SAN FRANCISCO to WASHINGTON via INDIANAPOLIS | 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 = 'WASHINGTON' AND CITY_2... | [
10919,
389,
262,
5474,
3146,
286,
262,
13956,
543,
467,
422,
37376,
8782,
20940,
1797,
8220,
284,
370,
19436,
2884,
24413,
16868,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5474,
3146,
286,
262,
13956,
543,
467,
422,
37376,
8782,
20940,
1797,
8220,
284,
370,
19436,
2884,
24413,
16868,
2969,
3535,
1797,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31... |
For each sex, what is the name and sex of the candidate with the oppose rate for their sex? | SELECT t1.name, t1.sex, MIN(oppose_rate) FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex | [
1890,
1123,
1714,
11,
644,
318,
262,
1438,
290,
1714,
286,
262,
4540,
351,
262,
12856,
2494,
329,
511,
1714,
30,
46506,
256,
16,
13,
3672,
11,
256,
16,
13,
8044,
11,
20625,
7,
10365,
577,
62,
4873,
8,
16034,
661,
7054,
256,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
1123,
1714,
11,
644,
318,
262,
1438,
290,
1714,
286,
262,
4540,
351,
262,
12856,
2494,
329,
511,
1714,
30,
46506,
256,
16,
13,
3672,
11,
256,
16,
13,
8044,
11,
20625,
7,
10365,
577,
62,
4873,
8,
16034,
661,
7054,
256,
16,
... |
What is the population density in the Brighton area? | SELECT density FROM table_140297_1 WHERE principal_town = "Brighton" | [
2061,
318,
262,
3265,
12109,
287,
262,
33193,
1989,
30,
46506,
12109,
16034,
3084,
62,
15187,
26561,
62,
16,
33411,
10033,
62,
12735,
796,
366,
41267,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3265,
12109,
287,
262,
33193,
1989,
30,
46506,
12109,
16034,
3084,
62,
15187,
26561,
62,
16,
33411,
10033,
62,
12735,
796,
366,
41267,
261,
1
] |
when was the first time patient 30171 got a lab test until 05/2105 for bicarbonate? | SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30171) AND STRFTIME('%y-%m', labevents.charttime) <= '2105-05' ORDER BY ... | [
12518,
373,
262,
717,
640,
5827,
25643,
4869,
1392,
257,
2248,
1332,
1566,
8870,
14,
17,
13348,
329,
275,
291,
42084,
378,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
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... | [
12518,
373,
262,
717,
640,
5827,
25643,
4869,
1392,
257,
2248,
1332,
1566,
8870,
14,
17,
13348,
329,
275,
291,
42084,
378,
30,
46506,
2248,
31534,
13,
40926,
2435,
16034,
2248,
31534,
33411,
2248,
31534,
13,
9186,
312,
3268,
357,
46506,... |
What is the undisclosed when Wycombe Wanderers is unattached? | SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached" | [
2061,
318,
262,
33457,
618,
12958,
49325,
22420,
19288,
318,
29327,
2317,
30,
46506,
33457,
16034,
3084,
62,
23721,
2327,
26427,
62,
17,
33411,
266,
88,
49325,
62,
86,
392,
19288,
796,
366,
3118,
1078,
2317,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33457,
618,
12958,
49325,
22420,
19288,
318,
29327,
2317,
30,
46506,
33457,
16034,
3084,
62,
23721,
2327,
26427,
62,
17,
33411,
266,
88,
49325,
62,
86,
392,
19288,
796,
366,
3118,
1078,
2317,
1
] |
What is the Opponent of the game with a Result of w 13 0? | SELECT "Opponent" FROM table_46135 WHERE "Result" = 'w 13–0' | [
2061,
318,
262,
9385,
3471,
286,
262,
983,
351,
257,
25414,
286,
266,
1511,
657,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3510,
17059,
33411,
366,
23004,
1,
796,
705,
86,
1511,
1906,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9385,
3471,
286,
262,
983,
351,
257,
25414,
286,
266,
1511,
657,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
3510,
17059,
33411,
366,
23004,
1,
796,
705,
86,
1511,
1906,
15,
6
] |
What is the type of measure that voted on the Power Development Debt Limit Amendment? | SELECT type FROM table_256286_45 WHERE description = "Power Development Debt Limit Amendment" | [
2061,
318,
262,
2099,
286,
3953,
326,
7052,
319,
262,
4333,
7712,
30319,
27272,
8441,
30,
46506,
2099,
16034,
3084,
62,
11645,
27033,
62,
2231,
33411,
6764,
796,
366,
13434,
7712,
30319,
27272,
8441,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2099,
286,
3953,
326,
7052,
319,
262,
4333,
7712,
30319,
27272,
8441,
30,
46506,
2099,
16034,
3084,
62,
11645,
27033,
62,
2231,
33411,
6764,
796,
366,
13434,
7712,
30319,
27272,
8441,
1
] |
What is the total number of bronze medals of West Germany, which is ranked 2 and has less than 1 total medals? | SELECT COUNT("Bronze") FROM table_75204 WHERE "Rank" = '2' AND "Nation" = 'west germany' AND "Total" < '1' | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
286,
2688,
4486,
11,
543,
318,
10307,
362,
290,
468,
1342,
621,
352,
2472,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2425,
18638,
33411,
366,
27520,
1,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
22101,
28057,
286,
2688,
4486,
11,
543,
318,
10307,
362,
290,
468,
1342,
621,
352,
2472,
28057,
30,
46506,
327,
28270,
7203,
18760,
2736,
4943,
16034,
3084,
62,
2425,
18638,
33411,
366,
27520,
1,
796,
... |
how many races were in 2009 with 0 wins? | SELECT races FROM table_10748727_1 WHERE season = "2009" AND wins = 0 | [
4919,
867,
9558,
547,
287,
3717,
351,
657,
7864,
30,
46506,
9558,
16034,
3084,
62,
15982,
35133,
1983,
62,
16,
33411,
1622,
796,
366,
10531,
1,
5357,
7864,
796,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
9558,
547,
287,
3717,
351,
657,
7864,
30,
46506,
9558,
16034,
3084,
62,
15982,
35133,
1983,
62,
16,
33411,
1622,
796,
366,
10531,
1,
5357,
7864,
796,
657
] |
What is the highest # Of Constituency Votes, when Election is 2005? | SELECT MAX(_number_of_constituency_votes) FROM table_name_22 WHERE election = 2005 | [
2061,
318,
262,
4511,
1303,
3226,
4757,
34272,
1387,
39584,
11,
618,
14219,
318,
5075,
30,
46506,
25882,
28264,
17618,
62,
1659,
62,
9979,
34272,
1387,
62,
29307,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
3071,
796,
5075
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1303,
3226,
4757,
34272,
1387,
39584,
11,
618,
14219,
318,
5075,
30,
46506,
25882,
28264,
17618,
62,
1659,
62,
9979,
34272,
1387,
62,
29307,
8,
16034,
3084,
62,
3672,
62,
1828,
33411,
3071,
796,
5075
] |
What was the date of the game at Lake Oval? | SELECT "Date" FROM table_10611 WHERE "Venue" = 'lake oval' | [
2061,
373,
262,
3128,
286,
262,
983,
379,
6233,
25165,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
15801,
1157,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
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,
3128,
286,
262,
983,
379,
6233,
25165,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
15801,
1157,
33411,
366,
37522,
518,
1,
796,
705,
27180,
41186,
6
] |
What is the number of patients who were admitted in urgent care and had their drug code as amid200? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.formulary_drug_cd = "AMID200" | [
2061,
318,
262,
1271,
286,
3871,
508,
547,
6848,
287,
18039,
1337,
290,
550,
511,
2563,
2438,
355,
10371,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
3409... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1271,
286,
3871,
508,
547,
6848,
287,
18039,
1337,
290,
550,
511,
2563,
2438,
355,
10371,
2167,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
3409... |
When the laps are 31 and the constructor was honda, what's the sum of all grid values? | SELECT SUM("Grid") FROM table_51289 WHERE "Constructor" = 'honda' AND "Laps" = '31' | [
2215,
262,
24590,
389,
3261,
290,
262,
23772,
373,
289,
13533,
11,
644,
338,
262,
2160,
286,
477,
10706,
3815,
30,
46506,
35683,
7203,
41339,
4943,
16034,
3084,
62,
25836,
4531,
33411,
366,
42316,
273,
1,
796,
705,
71,
13533,
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
] | [
2215,
262,
24590,
389,
3261,
290,
262,
23772,
373,
289,
13533,
11,
644,
338,
262,
2160,
286,
477,
10706,
3815,
30,
46506,
35683,
7203,
41339,
4943,
16034,
3084,
62,
25836,
4531,
33411,
366,
42316,
273,
1,
796,
705,
71,
13533,
6,
5357,... |
count the number of patients whose primary disease is sternal wound infection and who are aged below 82 years. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "STERNAL WOUND INFECTION" AND demographic.age < "82" | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
26370,
282,
11699,
10280,
290,
508,
389,
9722,
2174,
9415,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
26370,
282,
11699,
10280,
290,
508,
389,
9722,
2174,
9415,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
59... |
Decision of parent, and a Home of philadelphia, and a Record of 20 16 7 is on what date? | SELECT date FROM table_name_23 WHERE decision = "parent" AND home = "philadelphia" AND record = "20–16–7" | [
10707,
1166,
286,
2560,
11,
290,
257,
5995,
286,
5206,
8273,
11,
290,
257,
13266,
286,
1160,
1467,
767,
318,
319,
644,
3128,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1954,
33411,
2551,
796,
366,
8000,
1,
5357,
1363,
796,
366,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10707,
1166,
286,
2560,
11,
290,
257,
5995,
286,
5206,
8273,
11,
290,
257,
13266,
286,
1160,
1467,
767,
318,
319,
644,
3128,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1954,
33411,
2551,
796,
366,
8000,
1,
5357,
1363,
796,
366,
288... |
Name the total number of years for chassis of maserati 250f and points less than 0 | SELECT COUNT("Year") FROM table_69619 WHERE "Chassis" = 'maserati 250f' AND "Points" < '0' | [
5376,
262,
2472,
1271,
286,
812,
329,
24587,
286,
285,
6005,
7246,
8646,
69,
290,
2173,
1342,
621,
657,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
38205,
1129,
33411,
366,
1925,
20297,
1,
796,
705,
5356,
263,
7246,
8646,
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
] | [
5376,
262,
2472,
1271,
286,
812,
329,
24587,
286,
285,
6005,
7246,
8646,
69,
290,
2173,
1342,
621,
657,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
38205,
1129,
33411,
366,
1925,
20297,
1,
796,
705,
5356,
263,
7246,
8646,
6... |
how many patients diagnosed with short title accid in resident instit have delta lab test abnormal status? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Accid in resident instit" AND lab.flag = "delta" | [
4919,
867,
3871,
14641,
351,
1790,
3670,
697,
312,
287,
6623,
6113,
423,
25979,
2248,
1332,
18801,
3722,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
14641,
351,
1790,
3670,
697,
312,
287,
6623,
6113,
423,
25979,
2248,
1332,
18801,
3722,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
... |
What is the score of the game against away team queens park rangers on 23 january 1982? | SELECT "Score" FROM table_59579 WHERE "Date" = '23 january 1982' AND "Away team" = 'queens park rangers' | [
2061,
318,
262,
4776,
286,
262,
983,
1028,
1497,
1074,
38771,
3952,
374,
6606,
319,
2242,
42897,
2838,
14489,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3270,
41734,
33411,
366,
10430,
1,
796,
705,
1954,
42897,
2838,
14489,
6,
5357,
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
] | [
2061,
318,
262,
4776,
286,
262,
983,
1028,
1497,
1074,
38771,
3952,
374,
6606,
319,
2242,
42897,
2838,
14489,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3270,
41734,
33411,
366,
10430,
1,
796,
705,
1954,
42897,
2838,
14489,
6,
5357,
3... |
how many tour wins did nancy lopez have before 1980 ? | SELECT COUNT("tournament") FROM table_204_328 WHERE "date" < 1980 | [
4919,
867,
4205,
7864,
750,
299,
3883,
300,
20808,
423,
878,
7169,
5633,
46506,
327,
28270,
7203,
83,
5138,
4943,
16034,
3084,
62,
18638,
62,
34256,
33411,
366,
4475,
1,
1279,
7169
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
4205,
7864,
750,
299,
3883,
300,
20808,
423,
878,
7169,
5633,
46506,
327,
28270,
7203,
83,
5138,
4943,
16034,
3084,
62,
18638,
62,
34256,
33411,
366,
4475,
1,
1279,
7169
] |
Show names of musicals and the number of actors who have appeared in the musicals in a bar chart, sort Y-axis in desc order. | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY COUNT(*) DESC | [
15307,
3891,
286,
10530,
82,
290,
262,
1271,
286,
10544,
508,
423,
4120,
287,
262,
10530,
82,
287,
257,
2318,
8262,
11,
3297,
575,
12,
22704,
287,
1715,
1502,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
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... | [
15307,
3891,
286,
10530,
82,
290,
262,
1271,
286,
10544,
508,
423,
4120,
287,
262,
10530,
82,
287,
257,
2318,
8262,
11,
3297,
575,
12,
22704,
287,
1715,
1502,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
28104,
16034,
8674,
7054... |
What did the tournament with a QF in 1969 get in 1956-1968? | SELECT "1956\u20131968" FROM table_4709 WHERE "1969" = 'qf' | [
2061,
750,
262,
7756,
351,
257,
1195,
37,
287,
16450,
651,
287,
25190,
12,
42246,
30,
46506,
366,
1129,
3980,
59,
84,
6390,
42246,
1,
16034,
3084,
62,
27790,
24,
33411,
366,
38391,
1,
796,
705,
80,
69,
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,
750,
262,
7756,
351,
257,
1195,
37,
287,
16450,
651,
287,
25190,
12,
42246,
30,
46506,
366,
1129,
3980,
59,
84,
6390,
42246,
1,
16034,
3084,
62,
27790,
24,
33411,
366,
38391,
1,
796,
705,
80,
69,
6
] |
Which catalog did Village Records have on February 14, 2002? | SELECT catalog FROM table_name_60 WHERE label = "village records" AND date = "february 14, 2002" | [
13828,
18388,
750,
14812,
13407,
423,
319,
3945,
1478,
11,
6244,
30,
46506,
18388,
16034,
3084,
62,
3672,
62,
1899,
33411,
6167,
796,
366,
41082,
496,
4406,
1,
5357,
3128,
796,
366,
69,
1765,
3728,
1478,
11,
6244,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18388,
750,
14812,
13407,
423,
319,
3945,
1478,
11,
6244,
30,
46506,
18388,
16034,
3084,
62,
3672,
62,
1899,
33411,
6167,
796,
366,
41082,
496,
4406,
1,
5357,
3128,
796,
366,
69,
1765,
3728,
1478,
11,
6244,
1
] |
What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins? | SELECT COUNT(goals_conceded) FROM table_name_47 WHERE draws < 5 AND loses > 4 AND wins > 9 | [
2061,
373,
262,
2472,
1271,
286,
28510,
24684,
618,
612,
547,
517,
621,
604,
9089,
11,
1342,
621,
642,
14293,
11,
290,
517,
621,
860,
7864,
30,
46506,
327,
28270,
7,
2188,
874,
62,
1102,
771,
276,
8,
16034,
3084,
62,
3672,
62,
285... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
1271,
286,
28510,
24684,
618,
612,
547,
517,
621,
604,
9089,
11,
1342,
621,
642,
14293,
11,
290,
517,
621,
860,
7864,
30,
46506,
327,
28270,
7,
2188,
874,
62,
1102,
771,
276,
8,
16034,
3084,
62,
3672,
62,
285... |
When did the north melbourne team play? | SELECT "Date" FROM table_56007 WHERE "Home team" = 'north melbourne' | [
2215,
750,
262,
5093,
7758,
12544,
1074,
711,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3980,
25816,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
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
] | [
2215,
750,
262,
5093,
7758,
12544,
1074,
711,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3980,
25816,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
Which athlete is from Mexico City? | SELECT athlete FROM table_1231316_7 WHERE location = "Mexico City" | [
13828,
16076,
318,
422,
5828,
2254,
30,
46506,
16076,
16034,
3084,
62,
10163,
1485,
1433,
62,
22,
33411,
4067,
796,
366,
33006,
2254,
1
] | [
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,
16076,
318,
422,
5828,
2254,
30,
46506,
16076,
16034,
3084,
62,
10163,
1485,
1433,
62,
22,
33411,
4067,
796,
366,
33006,
2254,
1
] |
the match on november 12 , 1978 was on a hard surface . what was the surface of the previous match ? | SELECT "surface" FROM table_204_553 WHERE "date" < (SELECT "date" FROM table_204_553 WHERE "date" = '12 november 1978') ORDER BY "date" DESC LIMIT 1 | [
1169,
2872,
319,
645,
303,
1916,
1105,
837,
15524,
373,
319,
257,
1327,
4417,
764,
644,
373,
262,
4417,
286,
262,
2180,
2872,
5633,
46506,
366,
42029,
1,
16034,
3084,
62,
18638,
62,
48096,
33411,
366,
4475,
1,
1279,
357,
46506,
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... | [
1169,
2872,
319,
645,
303,
1916,
1105,
837,
15524,
373,
319,
257,
1327,
4417,
764,
644,
373,
262,
4417,
286,
262,
2180,
2872,
5633,
46506,
366,
42029,
1,
16034,
3084,
62,
18638,
62,
48096,
33411,
366,
4475,
1,
1279,
357,
46506,
366,
... |
What was Barry Jamieson's pick number? | SELECT MAX(pick__number) FROM table_26996293_1 WHERE player = "Barry Jamieson" | [
2061,
373,
14488,
9986,
444,
261,
338,
2298,
1271,
30,
46506,
25882,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
2075,
38565,
31675,
62,
16,
33411,
2137,
796,
366,
33,
6532,
9986,
444,
261,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
14488,
9986,
444,
261,
338,
2298,
1271,
30,
46506,
25882,
7,
27729,
834,
17618,
8,
16034,
3084,
62,
2075,
38565,
31675,
62,
16,
33411,
2137,
796,
366,
33,
6532,
9986,
444,
261,
1
] |
What is russ cochran's average margin? | SELECT AVG("Margin") FROM table_79645 WHERE "Player" = 'russ cochran' | [
2061,
318,
374,
1046,
763,
354,
2596,
338,
2811,
10330,
30,
46506,
35224,
7203,
24428,
259,
4943,
16034,
3084,
62,
41060,
2231,
33411,
366,
14140,
1,
796,
705,
81,
1046,
763,
354,
2596,
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,
374,
1046,
763,
354,
2596,
338,
2811,
10330,
30,
46506,
35224,
7203,
24428,
259,
4943,
16034,
3084,
62,
41060,
2231,
33411,
366,
14140,
1,
796,
705,
81,
1046,
763,
354,
2596,
6
] |
Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team. | SELECT "Episode" FROM table_25926 WHERE "Jasons team" = 'Duncan James and Johnny Vegas' | [
5376,
262,
4471,
7,
82,
8,
326,
8096,
18625,
3700,
290,
15470,
9621,
355,
8982,
338,
1074,
13,
46506,
366,
23758,
1,
16034,
3084,
62,
25191,
2075,
33411,
366,
41,
2812,
1074,
1,
796,
705,
30128,
5171,
3700,
290,
15470,
9621,
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
] | [
5376,
262,
4471,
7,
82,
8,
326,
8096,
18625,
3700,
290,
15470,
9621,
355,
8982,
338,
1074,
13,
46506,
366,
23758,
1,
16034,
3084,
62,
25191,
2075,
33411,
366,
41,
2812,
1074,
1,
796,
705,
30128,
5171,
3700,
290,
15470,
9621,
6
] |
Which color is the background of the mandatory instructions? | SELECT background_colour FROM table_name_43 WHERE type_of_sign = "mandatory instructions" | [
13828,
3124,
318,
262,
4469,
286,
262,
13677,
7729,
30,
46506,
4469,
62,
49903,
16034,
3084,
62,
3672,
62,
3559,
33411,
2099,
62,
1659,
62,
12683,
796,
366,
22249,
2870,
7729,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3124,
318,
262,
4469,
286,
262,
13677,
7729,
30,
46506,
4469,
62,
49903,
16034,
3084,
62,
3672,
62,
3559,
33411,
2099,
62,
1659,
62,
12683,
796,
366,
22249,
2870,
7729,
1
] |
is the respiration of patient 006-99708 was normal until 126 days ago. | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-99708')) AND vitalperiodic.respiration BETWEEN respiration_lower... | [
271,
262,
1217,
15297,
286,
5827,
3571,
21,
12,
2079,
32583,
373,
3487,
1566,
19710,
1528,
2084,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
271,
262,
1217,
15297,
286,
5827,
3571,
21,
12,
2079,
32583,
373,
3487,
1566,
19710,
1528,
2084,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,
20850,
31712,
312,
3268,
357,
4650... |
What was the score when the opponent was the Orioles and the loss shows morehead (5 4)? | SELECT "Score" FROM table_71566 WHERE "Opponent" = 'orioles' AND "Loss" = 'morehead (5–4)' | [
2061,
373,
262,
4776,
618,
262,
6125,
373,
262,
32907,
290,
262,
2994,
2523,
517,
2256,
357,
20,
604,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
1314,
2791,
33411,
366,
27524,
3471,
1,
796,
705,
273,
1669,
274,
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,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
618,
262,
6125,
373,
262,
32907,
290,
262,
2994,
2523,
517,
2256,
357,
20,
604,
19427,
46506,
366,
26595,
1,
16034,
3084,
62,
22,
1314,
2791,
33411,
366,
27524,
3471,
1,
796,
705,
273,
1669,
274,
6,
5357,
366,
... |
Who is the driver for laps of 45 | SELECT driver FROM table_name_62 WHERE laps = 45 | [
8241,
318,
262,
4639,
329,
24590,
286,
4153,
46506,
4639,
16034,
3084,
62,
3672,
62,
5237,
33411,
24590,
796,
4153
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
4639,
329,
24590,
286,
4153,
46506,
4639,
16034,
3084,
62,
3672,
62,
5237,
33411,
24590,
796,
4153
] |
Who from your location is better than you?. | SELECT U2.* FROM Users AS U1 JOIN Users AS U2 ON U1.Location = U2.Location WHERE 1 = 1 AND U1.DisplayName = 'jyparask' AND U1.Reputation <= U2.Reputation ORDER BY U2.Reputation DESC, U2.DisplayName | [
8241,
422,
534,
4067,
318,
1365,
621,
345,
30,
13,
46506,
471,
17,
15885,
16034,
18987,
7054,
471,
16,
32357,
1268,
18987,
7054,
471,
17,
6177,
471,
16,
13,
14749,
796,
471,
17,
13,
14749,
33411,
352,
796,
352,
5357,
471,
16,
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... | [
8241,
422,
534,
4067,
318,
1365,
621,
345,
30,
13,
46506,
471,
17,
15885,
16034,
18987,
7054,
471,
16,
32357,
1268,
18987,
7054,
471,
17,
6177,
471,
16,
13,
14749,
796,
471,
17,
13,
14749,
33411,
352,
796,
352,
5357,
471,
16,
13,
... |
What is the Score that has an Attendance of 4 679? | SELECT score FROM table_name_52 WHERE attendance = "4 679" | [
2061,
318,
262,
15178,
326,
468,
281,
46502,
590,
286,
604,
718,
3720,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
14858,
796,
366,
19,
718,
3720,
1
] | [
1,
1,
1,
1,
1,
1,
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,
15178,
326,
468,
281,
46502,
590,
286,
604,
718,
3720,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
4309,
33411,
14858,
796,
366,
19,
718,
3720,
1
] |
What was the location that led to a record of 9-0-0? | SELECT "Location" FROM table_38998 WHERE "Record" = '9-0-0' | [
2061,
373,
262,
4067,
326,
2957,
284,
257,
1700,
286,
860,
12,
15,
12,
15,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2548,
34808,
33411,
366,
23739,
1,
796,
705,
24,
12,
15,
12,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4067,
326,
2957,
284,
257,
1700,
286,
860,
12,
15,
12,
15,
30,
46506,
366,
14749,
1,
16034,
3084,
62,
2548,
34808,
33411,
366,
23739,
1,
796,
705,
24,
12,
15,
12,
15,
6
] |
Name the average Stolen Ends which has an Ends Lost smaller than 35? | SELECT AVG("Stolen Ends") FROM table_45661 WHERE "Ends Lost" < '35' | [
5376,
262,
2811,
520,
8622,
46756,
543,
468,
281,
46756,
9164,
4833,
621,
3439,
30,
46506,
35224,
7203,
1273,
8622,
46756,
4943,
16034,
3084,
62,
2231,
47159,
33411,
366,
12915,
82,
9164,
1,
1279,
705,
2327,
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
] | [
5376,
262,
2811,
520,
8622,
46756,
543,
468,
281,
46756,
9164,
4833,
621,
3439,
30,
46506,
35224,
7203,
1273,
8622,
46756,
4943,
16034,
3084,
62,
2231,
47159,
33411,
366,
12915,
82,
9164,
1,
1279,
705,
2327,
6
] |
what is the total number of teams that played 1919 brazilian football ? | SELECT COUNT("team") FROM table_203_254 | [
10919,
318,
262,
2472,
1271,
286,
3466,
326,
2826,
30992,
275,
7098,
666,
4346,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
22416,
62,
24970
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
3466,
326,
2826,
30992,
275,
7098,
666,
4346,
5633,
46506,
327,
28270,
7203,
15097,
4943,
16034,
3084,
62,
22416,
62,
24970
] |
In 2001, where the mens singles is armand jehle and the womens singles is michaela ritter, who are the mixed doubles | SELECT mixed_doubles FROM table_15001681_1 WHERE womens_singles = "Michaela Ritter" AND mens_singles = "Armand Jehle" | [
818,
5878,
11,
810,
262,
285,
641,
25287,
318,
3211,
392,
11223,
71,
293,
290,
262,
1116,
641,
25287,
318,
285,
40302,
64,
374,
1967,
11,
508,
389,
262,
7668,
21938,
46506,
7668,
62,
67,
280,
7689,
16034,
3084,
62,
33698,
1433,
6659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5878,
11,
810,
262,
285,
641,
25287,
318,
3211,
392,
11223,
71,
293,
290,
262,
1116,
641,
25287,
318,
285,
40302,
64,
374,
1967,
11,
508,
389,
262,
7668,
21938,
46506,
7668,
62,
67,
280,
7689,
16034,
3084,
62,
33698,
1433,
6659... |
how many patients with medicare insurance had insertion of endotracheal tube? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Medicare" AND procedures.long_title = "Insertion of endotracheal tube" | [
4919,
867,
3871,
351,
6924,
533,
5096,
550,
36075,
286,
46710,
81,
4891,
282,
12403,
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,
18108,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
351,
6924,
533,
5096,
550,
36075,
286,
46710,
81,
4891,
282,
12403,
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,
18108,
7... |
did patient 031-9128 have any microbiology test results for his sputum, tracheal specimen since 138 months ago? | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-9128')) AND microlab.culturesite = 'sputum, tracheal specimen' AND DATETIME(mi... | [
20839,
5827,
657,
3132,
12,
24,
12762,
423,
597,
24559,
1435,
1332,
2482,
329,
465,
599,
315,
388,
11,
491,
4891,
282,
31674,
1201,
21503,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
657,
3132,
12,
24,
12762,
423,
597,
24559,
1435,
1332,
2482,
329,
465,
599,
315,
388,
11,
491,
4891,
282,
31674,
1201,
21503,
1933,
2084,
30,
46506,
327,
28270,
7,
28104,
16034,
4580,
23912,
33411,
4580,
23912,
13,
26029,
... |
how many competitors did not start the preliminaries ? | SELECT COUNT("swimmer") FROM table_204_886 WHERE "rank" IS NULL | [
4919,
867,
13861,
750,
407,
923,
262,
14541,
259,
3166,
5633,
46506,
327,
28270,
7203,
2032,
10957,
4943,
16034,
3084,
62,
18638,
62,
44980,
33411,
366,
43027,
1,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
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,
13861,
750,
407,
923,
262,
14541,
259,
3166,
5633,
46506,
327,
28270,
7203,
2032,
10957,
4943,
16034,
3084,
62,
18638,
62,
44980,
33411,
366,
43027,
1,
3180,
15697
] |
until 2104, how many patients were prescribed thiamine hcl within 2 months after they had a immobiliz/wound attn nec? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime 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 = 'immobiliz/w... | [
28446,
362,
13464,
11,
703,
867,
3871,
547,
14798,
294,
1789,
500,
289,
565,
1626,
362,
1933,
706,
484,
550,
257,
47800,
528,
14,
86,
633,
708,
77,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
362,
13464,
11,
703,
867,
3871,
547,
14798,
294,
1789,
500,
289,
565,
1626,
362,
1933,
706,
484,
550,
257,
47800,
528,
14,
86,
633,
708,
77,
27576,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312... |
I want the tuner for hybrid video recorder and Digital of dvb-t (zl10353), and a Model of hvr-900 | SELECT "Tuner" FROM table_11612 WHERE "Type" = 'hybrid video recorder' AND "Digital" = 'dvb-t (zl10353)' AND "Model" = 'hvr-900' | [
40,
765,
262,
6278,
263,
329,
14554,
2008,
38156,
290,
10231,
286,
288,
85,
65,
12,
83,
357,
48274,
940,
33319,
828,
290,
257,
9104,
286,
289,
37020,
12,
12865,
46506,
366,
51,
38886,
1,
16034,
3084,
62,
18298,
1065,
33411,
366,
603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40,
765,
262,
6278,
263,
329,
14554,
2008,
38156,
290,
10231,
286,
288,
85,
65,
12,
83,
357,
48274,
940,
33319,
828,
290,
257,
9104,
286,
289,
37020,
12,
12865,
46506,
366,
51,
38886,
1,
16034,
3084,
62,
18298,
1065,
33411,
366,
603... |
Visualize a bar chart about the distribution of Sex and the average of Height , and group by attribute Sex, order x-axis from high to low order please. | SELECT Sex, AVG(Height) FROM people GROUP BY Sex ORDER BY Sex DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2811,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
1502,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
14419,
11,
35224,
7,
23106,
8,
16034,
661... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2811,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
1502,
2124,
12,
22704,
422,
1029,
284,
1877,
1502,
3387,
13,
46506,
14419,
11,
35224,
7,
23106,
8,
16034,
661... |
What was the result on October 4, 1993? | SELECT result FROM table_name_48 WHERE date = "october 4, 1993" | [
2061,
373,
262,
1255,
319,
3267,
604,
11,
9656,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2780,
33411,
3128,
796,
366,
38441,
2023,
604,
11,
9656,
1
] | [
1,
1,
1,
1,
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,
1255,
319,
3267,
604,
11,
9656,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
2780,
33411,
3128,
796,
366,
38441,
2023,
604,
11,
9656,
1
] |
what is the specimen test that patient 72032 was given for the last time? | SELECT microbiologyevents.spec_type_desc FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 72032) ORDER BY microbiologyevents.charttime DESC LIMIT 1 | [
10919,
318,
262,
31674,
1332,
326,
5827,
26250,
2624,
373,
1813,
329,
262,
938,
640,
30,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
31674,
1332,
326,
5827,
26250,
2624,
373,
1813,
329,
262,
938,
640,
30,
46506,
24559,
1435,
31534,
13,
16684,
62,
4906,
62,
20147,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,... |
what was the last urine catheter output time for patient 031-21970 on 09/26/this year? | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-21970')) AND intakeoutput.cellpath LIKE '%output%... | [
10919,
373,
262,
938,
18922,
3797,
43332,
5072,
640,
329,
5827,
657,
3132,
12,
28896,
2154,
319,
7769,
14,
2075,
14,
5661,
614,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
18922,
3797,
43332,
5072,
640,
329,
5827,
657,
3132,
12,
28896,
2154,
319,
7769,
14,
2075,
14,
5661,
614,
30,
46506,
10337,
22915,
13,
600,
539,
22915,
2435,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
208... |
Show all branch names with the number of members in each branch registered after 2015. | SELECT T2.name, COUNT(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id WHERE T1.register_year > 2015 GROUP BY T2.branch_id | [
15307,
477,
8478,
3891,
351,
262,
1271,
286,
1866,
287,
1123,
8478,
6823,
706,
1853,
13,
46506,
309,
17,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
9931,
62,
30238,
62,
1671,
3702,
7054,
309,
16,
32357,
1268,
8478,
7054,
309,
17,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15307,
477,
8478,
3891,
351,
262,
1271,
286,
1866,
287,
1123,
8478,
6823,
706,
1853,
13,
46506,
309,
17,
13,
3672,
11,
327,
28270,
7,
28104,
16034,
9931,
62,
30238,
62,
1671,
3702,
7054,
309,
16,
32357,
1268,
8478,
7054,
309,
17,
61... |
Name the least total apps for jaime | SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = "Jaime" | [
5376,
262,
1551,
2472,
6725,
329,
45091,
524,
46506,
20625,
7,
23350,
62,
18211,
8,
16034,
3084,
62,
18182,
2548,
44617,
62,
18,
33411,
2137,
796,
366,
33186,
524,
1
] | [
1,
1,
1,
1,
1,
1,
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,
1551,
2472,
6725,
329,
45091,
524,
46506,
20625,
7,
23350,
62,
18211,
8,
16034,
3084,
62,
18182,
2548,
44617,
62,
18,
33411,
2137,
796,
366,
33186,
524,
1
] |
What is the Place when Steve Pate was the player? | SELECT "Place" FROM table_46404 WHERE "Player" = 'steve pate' | [
2061,
318,
262,
8474,
618,
6542,
350,
378,
373,
262,
2137,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3510,
26429,
33411,
366,
14140,
1,
796,
705,
4169,
303,
279,
378,
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,
8474,
618,
6542,
350,
378,
373,
262,
2137,
30,
46506,
366,
27271,
1,
16034,
3084,
62,
3510,
26429,
33411,
366,
14140,
1,
796,
705,
4169,
303,
279,
378,
6
] |
how many widow patients have been diagnosed with disorders of magnesium metabolism? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "WIDOWED" AND diagnoses.long_title = "Disorders of magnesium metabolism" | [
4919,
867,
27075,
3871,
423,
587,
14641,
351,
11916,
286,
33525,
20211,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27075,
3871,
423,
587,
14641,
351,
11916,
286,
33525,
20211,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
76,
62,
312,
... |
Which Runner(s)-up has a Tournament of cameron park open? | SELECT "Runner(s)-up" FROM table_8123 WHERE "Tournament" = 'cameron park open' | [
13828,
21529,
7,
82,
13219,
929,
468,
257,
9595,
286,
3676,
261,
3952,
1280,
30,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
62,
23,
10163,
33411,
366,
51,
5138,
1,
796,
705,
66,
41639,
3952,
1280,
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
] | [
13828,
21529,
7,
82,
13219,
929,
468,
257,
9595,
286,
3676,
261,
3952,
1280,
30,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
62,
23,
10163,
33411,
366,
51,
5138,
1,
796,
705,
66,
41639,
3952,
1280,
6
] |
Round of 1, and a Record of 10 2 had what method? | SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2" | [
22685,
286,
352,
11,
290,
257,
13266,
286,
838,
362,
550,
644,
2446,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3459,
33411,
2835,
796,
366,
16,
1,
5357,
1700,
796,
366,
940,
1906,
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
] | [
22685,
286,
352,
11,
290,
257,
13266,
286,
838,
362,
550,
644,
2446,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3459,
33411,
2835,
796,
366,
16,
1,
5357,
1700,
796,
366,
940,
1906,
17,
1
] |
What Podiums listing has a World Rally Championship series entry? | SELECT podiums FROM table_name_74 WHERE series = "world rally championship" | [
2061,
350,
12664,
82,
13487,
468,
257,
2159,
27752,
10749,
2168,
5726,
30,
46506,
27941,
82,
16034,
3084,
62,
3672,
62,
4524,
33411,
2168,
796,
366,
6894,
7903,
12184,
1
] | [
1,
1,
1,
1,
1,
1,
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,
350,
12664,
82,
13487,
468,
257,
2159,
27752,
10749,
2168,
5726,
30,
46506,
27941,
82,
16034,
3084,
62,
3672,
62,
4524,
33411,
2168,
796,
366,
6894,
7903,
12184,
1
] |
In what Region is the Native American museum in Anchorage? | SELECT region FROM table_name_8 WHERE type = "native american" AND town_city = "anchorage" | [
818,
644,
17718,
318,
262,
12547,
1605,
13257,
287,
50066,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
23,
33411,
2099,
796,
366,
30191,
45630,
272,
1,
5357,
3240,
62,
19205,
796,
366,
3702,
4945,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
17718,
318,
262,
12547,
1605,
13257,
287,
50066,
30,
46506,
3814,
16034,
3084,
62,
3672,
62,
23,
33411,
2099,
796,
366,
30191,
45630,
272,
1,
5357,
3240,
62,
19205,
796,
366,
3702,
4945,
1
] |
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up? | SELECT semi_finalists FROM table_name_81 WHERE runner_up = "alexia dechaume-balleret sandrine testud" | [
8241,
547,
262,
10663,
43736,
618,
4422,
544,
1024,
11693,
2454,
12,
33,
6765,
1186,
3837,
7640,
1332,
463,
373,
262,
17490,
12,
929,
30,
46506,
10663,
62,
20311,
1023,
16034,
3084,
62,
3672,
62,
6659,
33411,
17490,
62,
929,
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
] | [
8241,
547,
262,
10663,
43736,
618,
4422,
544,
1024,
11693,
2454,
12,
33,
6765,
1186,
3837,
7640,
1332,
463,
373,
262,
17490,
12,
929,
30,
46506,
10663,
62,
20311,
1023,
16034,
3084,
62,
3672,
62,
6659,
33411,
17490,
62,
929,
796,
366,... |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the sum of code , and group by attribute name, and order x-axis in ascending order. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.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,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
1502,
2124,
12,
22704,
287,
41988,
1502,
13,
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... | [
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,
2438,
837,
290,
1448,
416,
11688,
1438,
11,
290,
1502,
2124,
12,
22704,
287,
41988,
1502,
13,
4... |
What is the median income for a family whose per capita income is $18,296? | SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296" | [
2061,
318,
262,
14288,
3739,
329,
257,
1641,
3025,
583,
21344,
3739,
318,
720,
1507,
11,
27137,
30,
46506,
14288,
62,
17989,
62,
12519,
16034,
3084,
62,
3672,
62,
1415,
33411,
583,
62,
11128,
5350,
62,
12519,
796,
17971,
1507,
11,
271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14288,
3739,
329,
257,
1641,
3025,
583,
21344,
3739,
318,
720,
1507,
11,
27137,
30,
46506,
14288,
62,
17989,
62,
12519,
16034,
3084,
62,
3672,
62,
1415,
33411,
583,
62,
11128,
5350,
62,
12519,
796,
17971,
1507,
11,
271... |
What is the lowest drawn that has a played greater than 19, with a position less than 2? | SELECT MIN(drawn) FROM table_name_52 WHERE played > 19 AND position < 2 | [
2061,
318,
262,
9016,
7428,
326,
468,
257,
2826,
3744,
621,
678,
11,
351,
257,
2292,
1342,
621,
362,
30,
46506,
20625,
7,
41549,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
2826,
1875,
678,
5357,
2292,
1279,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
7428,
326,
468,
257,
2826,
3744,
621,
678,
11,
351,
257,
2292,
1342,
621,
362,
30,
46506,
20625,
7,
41549,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
2826,
1875,
678,
5357,
2292,
1279,
362
] |
Which Date has a Home of pittsburgh, and a Record of 3 6 5? | SELECT date FROM table_name_22 WHERE home = "pittsburgh" AND record = "3–6–5" | [
13828,
7536,
468,
257,
5995,
286,
279,
715,
11931,
11,
290,
257,
13266,
286,
513,
718,
642,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1828,
33411,
1363,
796,
366,
79,
715,
11931,
1,
5357,
1700,
796,
366,
18,
1906,
21,
1906,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7536,
468,
257,
5995,
286,
279,
715,
11931,
11,
290,
257,
13266,
286,
513,
718,
642,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1828,
33411,
1363,
796,
366,
79,
715,
11931,
1,
5357,
1700,
796,
366,
18,
1906,
21,
1906,
20,
... |
What is the Set 1 with a Set 2 of 15 5, and a Set 3 with 15 3? | SELECT "Set 1" FROM table_52873 WHERE "Set 2" = '15–5' AND "Set 3" = '15–3' | [
2061,
318,
262,
5345,
352,
351,
257,
5345,
362,
286,
1315,
642,
11,
290,
257,
5345,
513,
351,
1315,
513,
30,
46506,
366,
7248,
352,
1,
16034,
3084,
62,
49351,
4790,
33411,
366,
7248,
362,
1,
796,
705,
1314,
1906,
20,
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,
1,
1
] | [
2061,
318,
262,
5345,
352,
351,
257,
5345,
362,
286,
1315,
642,
11,
290,
257,
5345,
513,
351,
1315,
513,
30,
46506,
366,
7248,
352,
1,
16034,
3084,
62,
49351,
4790,
33411,
366,
7248,
362,
1,
796,
705,
1314,
1906,
20,
6,
5357,
366,... |
what is the number of patients whose ethnicity is black/haitian and lab test name is ld, body fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/HAITIAN" AND lab.label = "LD, Body Fluid" | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
2248,
1332,
1438,
318,
300,
67,
11,
1767,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
26289,
318,
2042,
14,
3099,
270,
666,
290,
2248,
1332,
1438,
318,
300,
67,
11,
1767,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
Return a pie chart about the proportion of ACC_Regular_Season and School_ID. | SELECT ACC_Regular_Season, School_ID FROM basketball_match | [
13615,
257,
2508,
8262,
546,
262,
9823,
286,
15859,
62,
40164,
62,
18960,
290,
3961,
62,
2389,
13,
46506,
15859,
62,
40164,
62,
18960,
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,
1,
1,
1,
1,
1
] | [
13615,
257,
2508,
8262,
546,
262,
9823,
286,
15859,
62,
40164,
62,
18960,
290,
3961,
62,
2389,
13,
46506,
15859,
62,
40164,
62,
18960,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] |
What french open tournament happened in 2010 and has a 2004 1r? | SELECT 2010 FROM table_name_58 WHERE 2004 = "1r" AND tournament = "french open" | [
2061,
48718,
1280,
7756,
3022,
287,
3050,
290,
468,
257,
5472,
352,
81,
30,
46506,
3050,
16034,
3084,
62,
3672,
62,
3365,
33411,
5472,
796,
366,
16,
81,
1,
5357,
7756,
796,
366,
69,
3532,
1280,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
48718,
1280,
7756,
3022,
287,
3050,
290,
468,
257,
5472,
352,
81,
30,
46506,
3050,
16034,
3084,
62,
3672,
62,
3365,
33411,
5472,
796,
366,
16,
81,
1,
5357,
7756,
796,
366,
69,
3532,
1280,
1
] |
among patients who were prescribed with tromethamine, what is the five most frequently prescribed drug at the same time,? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'tromethamine') AS t1 JOIN (SELECT admissions.subject_id, prescrip... | [
35131,
3871,
508,
547,
14798,
351,
256,
398,
316,
2763,
500,
11,
644,
318,
262,
1936,
749,
6777,
14798,
2563,
379,
262,
976,
640,
11,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
49,
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... | [
35131,
3871,
508,
547,
14798,
351,
256,
398,
316,
2763,
500,
11,
644,
318,
262,
1936,
749,
6777,
14798,
2563,
379,
262,
976,
640,
11,
30,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,
49,
15... |
Which Published as serial has a Published as novel of october 1917, mcclurg? | SELECT "Published as serial" FROM table_14162 WHERE "Published as novel" = 'october 1917, mcclurg' | [
13828,
26372,
355,
11389,
468,
257,
26372,
355,
5337,
286,
19318,
2023,
24168,
11,
285,
535,
75,
3686,
30,
46506,
366,
24492,
355,
11389,
1,
16034,
3084,
62,
1415,
25061,
33411,
366,
24492,
355,
5337,
1,
796,
705,
38441,
2023,
24168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26372,
355,
11389,
468,
257,
26372,
355,
5337,
286,
19318,
2023,
24168,
11,
285,
535,
75,
3686,
30,
46506,
366,
24492,
355,
11389,
1,
16034,
3084,
62,
1415,
25061,
33411,
366,
24492,
355,
5337,
1,
796,
705,
38441,
2023,
24168,
... |
What are all the employee ids and the names of the countries in which they work? | SELECT T1.employee_id, T4.country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id | [
2061,
389,
477,
262,
6538,
220,
2340,
290,
262,
3891,
286,
262,
2678,
287,
543,
484,
670,
30,
46506,
309,
16,
13,
7033,
1453,
62,
312,
11,
309,
19,
13,
19315,
62,
3672,
16034,
4409,
7054,
309,
16,
32357,
1268,
13346,
7054,
309,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
477,
262,
6538,
220,
2340,
290,
262,
3891,
286,
262,
2678,
287,
543,
484,
670,
30,
46506,
309,
16,
13,
7033,
1453,
62,
312,
11,
309,
19,
13,
19315,
62,
3672,
16034,
4409,
7054,
309,
16,
32357,
1268,
13346,
7054,
309,
17... |
What is the sum of PTS when there is a PCT smaller than 0.1? | SELECT SUM(pts) FROM table_name_11 WHERE pct < 0.1 | [
2061,
318,
262,
2160,
286,
20907,
618,
612,
318,
257,
350,
4177,
4833,
621,
657,
13,
16,
30,
46506,
35683,
7,
457,
82,
8,
16034,
3084,
62,
3672,
62,
1157,
33411,
279,
310,
1279,
657,
13,
16
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
20907,
618,
612,
318,
257,
350,
4177,
4833,
621,
657,
13,
16,
30,
46506,
35683,
7,
457,
82,
8,
16034,
3084,
62,
3672,
62,
1157,
33411,
279,
310,
1279,
657,
13,
16
] |
Name the most 10 3 bbl/d (2008) for present share being 1.7% | SELECT MAX("10 3 bbl/d (2008)") FROM table_25718 WHERE "Present Share" = '1.7%' | [
5376,
262,
749,
838,
513,
275,
2436,
14,
67,
357,
11528,
8,
329,
1944,
2648,
852,
352,
13,
22,
4,
46506,
25882,
7203,
940,
513,
275,
2436,
14,
67,
357,
11528,
8,
4943,
16034,
3084,
62,
28676,
1507,
33411,
366,
34695,
8734,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
749,
838,
513,
275,
2436,
14,
67,
357,
11528,
8,
329,
1944,
2648,
852,
352,
13,
22,
4,
46506,
25882,
7203,
940,
513,
275,
2436,
14,
67,
357,
11528,
8,
4943,
16034,
3084,
62,
28676,
1507,
33411,
366,
34695,
8734,
1,
796,... |
platelets > 100 | SELECT * FROM table_train_257 WHERE platelets > 100 | [
6816,
5289,
1875,
1802,
46506,
1635,
16034,
3084,
62,
27432,
62,
28676,
33411,
7480,
5289,
1875,
1802
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6816,
5289,
1875,
1802,
46506,
1635,
16034,
3084,
62,
27432,
62,
28676,
33411,
7480,
5289,
1875,
1802
] |
Driver Shaun Jones with a viper as a chassis is in what class? | SELECT "Class" FROM table_74865 WHERE "Chassis" = 'viper' AND "Driver" = 'shaun jones' | [
32103,
35188,
5437,
351,
257,
410,
9346,
355,
257,
24587,
318,
287,
644,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
48246,
2996,
33411,
366,
1925,
20297,
1,
796,
705,
8903,
525,
6,
5357,
366,
32103,
1,
796,
705,
1477,
1942,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32103,
35188,
5437,
351,
257,
410,
9346,
355,
257,
24587,
318,
287,
644,
1398,
30,
46506,
366,
9487,
1,
16034,
3084,
62,
48246,
2996,
33411,
366,
1925,
20297,
1,
796,
705,
8903,
525,
6,
5357,
366,
32103,
1,
796,
705,
1477,
1942,
474... |
How many people attended the game on December 20, 1964? | SELECT attendance FROM table_name_64 WHERE date = "december 20, 1964" | [
2437,
867,
661,
9141,
262,
983,
319,
3426,
1160,
11,
17575,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
2414,
33411,
3128,
796,
366,
2934,
3273,
1160,
11,
17575,
1
] | [
1,
1,
1,
1,
1,
1,
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,
9141,
262,
983,
319,
3426,
1160,
11,
17575,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
2414,
33411,
3128,
796,
366,
2934,
3273,
1160,
11,
17575,
1
] |
Give me the comparison about meter_100 over the meter_400 , I want to show bars in descending order please. | SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_400 DESC | [
23318,
502,
262,
7208,
546,
16430,
62,
3064,
625,
262,
16430,
62,
7029,
837,
314,
765,
284,
905,
9210,
287,
31491,
1502,
3387,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
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
] | [
23318,
502,
262,
7208,
546,
16430,
62,
3064,
625,
262,
16430,
62,
7029,
837,
314,
765,
284,
905,
9210,
287,
31491,
1502,
3387,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
22196,
34... |
how many time did patient 82235 produce a or urine output until 11/2103? | SELECT COUNT(*) 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 = 82235)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'or urine' AND d_it... | [
4919,
867,
640,
750,
5827,
807,
1828,
2327,
4439,
257,
393,
18922,
5072,
1566,
1367,
14,
17,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
640,
750,
5827,
807,
1828,
2327,
4439,
257,
393,
18922,
5072,
1566,
1367,
14,
17,
15197,
30,
46506,
327,
28270,
7,
28104,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46... |
How many points did the Bridgend Athletic RFC have? | SELECT points FROM table_name_42 WHERE club = "bridgend athletic rfc" | [
2437,
867,
2173,
750,
262,
28320,
70,
437,
29007,
30978,
423,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3682,
33411,
3430,
796,
366,
10236,
70,
437,
15177,
374,
16072,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2173,
750,
262,
28320,
70,
437,
29007,
30978,
423,
30,
46506,
2173,
16034,
3084,
62,
3672,
62,
3682,
33411,
3430,
796,
366,
10236,
70,
437,
15177,
374,
16072,
1
] |
How many years was the title drop dead? | SELECT COUNT(year) FROM table_name_94 WHERE title = "drop dead" | [
2437,
867,
812,
373,
262,
3670,
4268,
2636,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
3670,
796,
366,
14781,
2636,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
812,
373,
262,
3670,
4268,
2636,
30,
46506,
327,
28270,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
3670,
796,
366,
14781,
2636,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday, sort Y-axis in ascending order. | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(MANAGER_ID) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,... |
WHAT GOALS AGAINST HAD A GOAL FOR OF 46, AND PLAYED LESS THAN 38? | SELECT SUM(goals_against) FROM table_name_85 WHERE goals_for = 46 AND played < 38 | [
32971,
10351,
23333,
36218,
38604,
367,
2885,
317,
10351,
1847,
7473,
3963,
6337,
11,
5357,
28180,
1961,
406,
7597,
2320,
1565,
4353,
30,
46506,
35683,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4661,
62,
1640,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
10351,
23333,
36218,
38604,
367,
2885,
317,
10351,
1847,
7473,
3963,
6337,
11,
5357,
28180,
1961,
406,
7597,
2320,
1565,
4353,
30,
46506,
35683,
7,
2188,
874,
62,
32826,
8,
16034,
3084,
62,
3672,
62,
5332,
33411,
4661,
62,
1640,
... |
What is the memory when release date is January 2010 and socket is BGA-1288? | SELECT "Memory" FROM table_13616 WHERE "Release date" = 'january 2010' AND "Socket" = 'bga-1288' | [
2061,
318,
262,
4088,
618,
2650,
3128,
318,
3269,
3050,
290,
17802,
318,
347,
9273,
12,
1065,
3459,
30,
46506,
366,
30871,
1,
16034,
3084,
62,
20809,
1433,
33411,
366,
26362,
3128,
1,
796,
705,
13881,
2838,
3050,
6,
5357,
366,
39105,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4088,
618,
2650,
3128,
318,
3269,
3050,
290,
17802,
318,
347,
9273,
12,
1065,
3459,
30,
46506,
366,
30871,
1,
16034,
3084,
62,
20809,
1433,
33411,
366,
26362,
3128,
1,
796,
705,
13881,
2838,
3050,
6,
5357,
366,
39105,
... |
Which Year has a Competition of european championships, and Notes of 66.81 m? | SELECT SUM("Year") FROM table_61155 WHERE "Competition" = 'european championships' AND "Notes" = '66.81 m' | [
13828,
6280,
468,
257,
27348,
286,
11063,
431,
272,
27459,
11,
290,
11822,
286,
7930,
13,
6659,
285,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
21,
1157,
2816,
33411,
366,
7293,
15620,
1,
796,
705,
44252,
431,
272,
27459,
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
] | [
13828,
6280,
468,
257,
27348,
286,
11063,
431,
272,
27459,
11,
290,
11822,
286,
7930,
13,
6659,
285,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
21,
1157,
2816,
33411,
366,
7293,
15620,
1,
796,
705,
44252,
431,
272,
27459,
6... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.