instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
the episode entitled 'ward 8' was what number in the series? | SELECT "Series no." FROM table_74228 WHERE "Title" = 'Ward 8' | [
1169,
4471,
9080,
705,
904,
807,
6,
373,
644,
1271,
287,
262,
2168,
30,
46506,
366,
27996,
645,
526,
16034,
3084,
62,
4524,
23815,
33411,
366,
19160,
1,
796,
705,
49021,
807,
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
] | [
1169,
4471,
9080,
705,
904,
807,
6,
373,
644,
1271,
287,
262,
2168,
30,
46506,
366,
27996,
645,
526,
16034,
3084,
62,
4524,
23815,
33411,
366,
19160,
1,
796,
705,
49021,
807,
6
] |
Who is the director for the witman boys? | SELECT "Director" FROM table_1151 WHERE "English title" = 'The Witman Boys' | [
8241,
318,
262,
3437,
329,
262,
20868,
805,
6510,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1157,
4349,
33411,
366,
15823,
3670,
1,
796,
705,
464,
40648,
805,
17528,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
3437,
329,
262,
20868,
805,
6510,
30,
46506,
366,
28702,
1,
16034,
3084,
62,
1157,
4349,
33411,
366,
15823,
3670,
1,
796,
705,
464,
40648,
805,
17528,
6
] |
Which From club had a Transfer fee of 3.87m? | SELECT "From club" FROM table_6761 WHERE "Transfer fee" = '£3.87m' | [
13828,
3574,
3430,
550,
257,
20558,
6838,
286,
513,
13,
5774,
76,
30,
46506,
366,
4863,
3430,
1,
16034,
3084,
62,
3134,
5333,
33411,
366,
43260,
6838,
1,
796,
705,
14988,
18,
13,
5774,
76,
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
] | [
13828,
3574,
3430,
550,
257,
20558,
6838,
286,
513,
13,
5774,
76,
30,
46506,
366,
4863,
3430,
1,
16034,
3084,
62,
3134,
5333,
33411,
366,
43260,
6838,
1,
796,
705,
14988,
18,
13,
5774,
76,
6
] |
how many of the patients aged below 56 had other specified conditions originating in the perinatal period? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "56" AND diagnoses.long_title = "Other specified conditions originating in the perinatal period" | [
4919,
867,
286,
262,
3871,
9722,
2174,
7265,
550,
584,
7368,
3403,
37962,
287,
262,
583,
259,
10254,
2278,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
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... | [
4919,
867,
286,
262,
3871,
9722,
2174,
7265,
550,
584,
7368,
3403,
37962,
287,
262,
583,
259,
10254,
2278,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
61... |
What are the number of the dates in which the mean sea level pressure was between 303 and 31?, display date in asc order. | SELECT date, COUNT(date) FROM weather WHERE mean_sea_level_pressure_inches BETWEEN 30.3 AND 31 GROUP BY date ORDER BY date | [
2061,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
3359,
3128,
287,
10570,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
33411,
1612,
62,
8583,
62,
5715,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1271,
286,
262,
9667,
287,
543,
262,
1612,
5417,
1241,
3833,
373,
1022,
30727,
290,
3261,
21747,
3359,
3128,
287,
10570,
1502,
13,
46506,
3128,
11,
327,
28270,
7,
4475,
8,
16034,
6193,
33411,
1612,
62,
8583,
62,
5715,
... |
What is the low TD for 49 longs and 1436 less yards? | SELECT MIN("TD's") FROM table_55156 WHERE "Long" = '49' AND "Yards" < '1436' | [
2061,
318,
262,
1877,
13320,
329,
5125,
890,
82,
290,
1478,
2623,
1342,
5695,
30,
46506,
20625,
7203,
21016,
338,
4943,
16034,
3084,
62,
2816,
21599,
33411,
366,
14617,
1,
796,
705,
2920,
6,
5357,
366,
56,
1371,
1,
1279,
705,
1415,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1877,
13320,
329,
5125,
890,
82,
290,
1478,
2623,
1342,
5695,
30,
46506,
20625,
7203,
21016,
338,
4943,
16034,
3084,
62,
2816,
21599,
33411,
366,
14617,
1,
796,
705,
2920,
6,
5357,
366,
56,
1371,
1,
1279,
705,
1415,
... |
Which alliance has a rank of 40? | SELECT "Alliance/ Association" FROM table_54137 WHERE "Rank" = '40' | [
13828,
12801,
468,
257,
4279,
286,
2319,
30,
46506,
366,
3237,
3610,
14,
5396,
1,
16034,
3084,
62,
4051,
19708,
33411,
366,
27520,
1,
796,
705,
1821,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
12801,
468,
257,
4279,
286,
2319,
30,
46506,
366,
3237,
3610,
14,
5396,
1,
16034,
3084,
62,
4051,
19708,
33411,
366,
27520,
1,
796,
705,
1821,
6
] |
What is the second leg that has kk bosna? | SELECT "2nd leg" FROM table_39307 WHERE "Team #1" = 'kk bosna' | [
2061,
318,
262,
1218,
1232,
326,
468,
479,
74,
37284,
2616,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
2670,
22996,
33411,
366,
15592,
1303,
16,
1,
796,
705,
28747,
37284,
2616,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1218,
1232,
326,
468,
479,
74,
37284,
2616,
30,
46506,
366,
17,
358,
1232,
1,
16034,
3084,
62,
2670,
22996,
33411,
366,
15592,
1303,
16,
1,
796,
705,
28747,
37284,
2616,
6
] |
How many times is brannon condren with and overall more than 131 drafted? | SELECT COUNT("Round") FROM table_67195 WHERE "Name" = 'brannon condren' AND "Overall" > '131' | [
2437,
867,
1661,
318,
865,
8825,
1779,
918,
351,
290,
4045,
517,
621,
23134,
15937,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
3134,
22186,
33411,
366,
5376,
1,
796,
705,
1671,
8825,
1779,
918,
6,
5357,
366,
16350,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
318,
865,
8825,
1779,
918,
351,
290,
4045,
517,
621,
23134,
15937,
30,
46506,
327,
28270,
7203,
22685,
4943,
16034,
3084,
62,
3134,
22186,
33411,
366,
5376,
1,
796,
705,
1671,
8825,
1779,
918,
6,
5357,
366,
16350,
1,
... |
Simple data on reputation parity above a given lower bound. | SELECT COUNT(*) AS "total", SUM(CASE WHEN Reputation % 2 = 0 THEN 1 ELSE 0 END) AS "even", SUM(CASE WHEN Reputation % 2 = 1 THEN 1 ELSE 0 END) AS "odd", ROUND((SUM(CASE WHEN Reputation % 2 = 0 THEN 1 ELSE 0 END) * 100.0) / COUNT(*), 3) AS "%even", ROUND((SUM(CASE WHEN Reputation % 2 = 1 THEN 1 ELSE 0 END) * 100.0) / CO... | [
26437,
1366,
319,
8507,
34383,
2029,
257,
1813,
2793,
5421,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
23350,
1600,
35683,
7,
34,
11159,
42099,
1432,
7094,
4064,
362,
796,
657,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
10197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26437,
1366,
319,
8507,
34383,
2029,
257,
1813,
2793,
5421,
13,
46506,
327,
28270,
7,
28104,
7054,
366,
23350,
1600,
35683,
7,
34,
11159,
42099,
1432,
7094,
4064,
362,
796,
657,
42243,
352,
17852,
5188,
657,
23578,
8,
7054,
366,
10197,
... |
Please show the most common type of ships. | SELECT type FROM ship GROUP BY type ORDER BY COUNT(*) DESC LIMIT 1 | [
5492,
905,
262,
749,
2219,
2099,
286,
7937,
13,
46506,
2099,
16034,
4074,
44441,
11050,
2099,
38678,
11050,
327,
28270,
7,
28104,
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
] | [
5492,
905,
262,
749,
2219,
2099,
286,
7937,
13,
46506,
2099,
16034,
4074,
44441,
11050,
2099,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
2043,
352
] |
What is the total Decile that has a state authority, fairlie area and roll smarter than 206? | SELECT COUNT(decile) FROM table_name_49 WHERE authority = "state" AND area = "fairlie" AND roll < 206 | [
2061,
318,
262,
2472,
4280,
576,
326,
468,
257,
1181,
4934,
11,
3148,
14485,
1989,
290,
4836,
23714,
621,
27253,
30,
46506,
327,
28270,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
4934,
796,
366,
5219,
1,
5357,
1989,
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
] | [
2061,
318,
262,
2472,
4280,
576,
326,
468,
257,
1181,
4934,
11,
3148,
14485,
1989,
290,
4836,
23714,
621,
27253,
30,
46506,
327,
28270,
7,
12501,
576,
8,
16034,
3084,
62,
3672,
62,
2920,
33411,
4934,
796,
366,
5219,
1,
5357,
1989,
7... |
What are the average amount purchased and value purchased for the supplier who supplies the most products. | SELECT AVG(total_amount_purchased), AVG(total_value_purchased) FROM product_suppliers WHERE supplier_id = (SELECT supplier_id FROM product_suppliers GROUP BY supplier_id ORDER BY COUNT(*) DESC LIMIT 1) | [
2061,
389,
262,
2811,
2033,
8155,
290,
1988,
8155,
329,
262,
22693,
508,
9416,
262,
749,
3186,
13,
46506,
35224,
7,
23350,
62,
17287,
62,
79,
2575,
839,
828,
35224,
7,
23350,
62,
8367,
62,
79,
2575,
839,
8,
16034,
1720,
62,
18608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2033,
8155,
290,
1988,
8155,
329,
262,
22693,
508,
9416,
262,
749,
3186,
13,
46506,
35224,
7,
23350,
62,
17287,
62,
79,
2575,
839,
828,
35224,
7,
23350,
62,
8367,
62,
79,
2575,
839,
8,
16034,
1720,
62,
18608,
... |
What was the enrollment of the school founded in 1846? | SELECT "Enrollment" FROM table_72780 WHERE "Founded" = '1846' | [
2061,
373,
262,
20753,
286,
262,
1524,
9393,
287,
1248,
3510,
30,
46506,
366,
4834,
48108,
1,
16034,
3084,
62,
47760,
1795,
33411,
366,
37,
6302,
1,
796,
705,
1507,
3510,
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,
373,
262,
20753,
286,
262,
1524,
9393,
287,
1248,
3510,
30,
46506,
366,
4834,
48108,
1,
16034,
3084,
62,
47760,
1795,
33411,
366,
37,
6302,
1,
796,
705,
1507,
3510,
6
] |
when the last time patient 43959 was prescribed a medicine via ed route? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 43959) AND prescriptions.route = 'ed' ORDER BY prescriptions.startdate DESC LIMIT 1 | [
12518,
262,
938,
640,
5827,
604,
2670,
3270,
373,
14798,
257,
9007,
2884,
1225,
6339,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
262,
938,
640,
5827,
604,
2670,
3270,
373,
14798,
257,
9007,
2884,
1225,
6339,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
... |
What's the CBR for the period with 1 058 000 deaths per year? | SELECT "CBR*" FROM table_22710 WHERE "Deaths per year" = '1 058 000' | [
2061,
338,
262,
10078,
49,
329,
262,
2278,
351,
352,
657,
3365,
12877,
7040,
583,
614,
30,
46506,
366,
34,
11473,
9,
1,
16034,
3084,
62,
24403,
940,
33411,
366,
20148,
82,
583,
614,
1,
796,
705,
16,
657,
3365,
12877,
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
] | [
2061,
338,
262,
10078,
49,
329,
262,
2278,
351,
352,
657,
3365,
12877,
7040,
583,
614,
30,
46506,
366,
34,
11473,
9,
1,
16034,
3084,
62,
24403,
940,
33411,
366,
20148,
82,
583,
614,
1,
796,
705,
16,
657,
3365,
12877,
6
] |
when was patient 002-70965 last prescribed with nss infusion and protonix at the same time since 151 months ago? | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'nss infusion' AND patient.uniquepid = '002-70965' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-15... | [
12518,
373,
5827,
3571,
17,
12,
31495,
2996,
938,
14798,
351,
299,
824,
35547,
290,
386,
1122,
844,
379,
262,
976,
640,
1201,
25326,
1933,
2084,
30,
46506,
256,
16,
13,
30349,
9688,
2435,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5827,
3571,
17,
12,
31495,
2996,
938,
14798,
351,
299,
824,
35547,
290,
386,
1122,
844,
379,
262,
976,
640,
1201,
25326,
1933,
2084,
30,
46506,
256,
16,
13,
30349,
9688,
2435,
16034,
357,
46506,
5827,
13,
403,
1557,
538,
... |
How many Points has a Position of 8? | SELECT AVG(points) FROM table_name_45 WHERE position = 8 | [
2437,
867,
11045,
468,
257,
23158,
286,
807,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
2292,
796,
807
] | [
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,
11045,
468,
257,
23158,
286,
807,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
2231,
33411,
2292,
796,
807
] |
What is the largest total for a team with fewer than 12 bronze, 1 silver and 0 gold medals? | SELECT MAX("Total") FROM table_78122 WHERE "Bronze" < '12' AND "Gold" = '0' AND "Silver" = '1' | [
2061,
318,
262,
4387,
2472,
329,
257,
1074,
351,
7380,
621,
1105,
22101,
11,
352,
8465,
290,
657,
3869,
28057,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
3695,
18376,
33411,
366,
18760,
2736,
1,
1279,
705,
1065,
6,
5357,
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
] | [
2061,
318,
262,
4387,
2472,
329,
257,
1074,
351,
7380,
621,
1105,
22101,
11,
352,
8465,
290,
657,
3869,
28057,
30,
46506,
25882,
7203,
14957,
4943,
16034,
3084,
62,
3695,
18376,
33411,
366,
18760,
2736,
1,
1279,
705,
1065,
6,
5357,
36... |
what was the total number of loses ? | SELECT COUNT(*) FROM table_203_689 WHERE "result" = 'loss' | [
10919,
373,
262,
2472,
1271,
286,
14754,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
40523,
33411,
366,
20274,
1,
796,
705,
22462,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
2472,
1271,
286,
14754,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
40523,
33411,
366,
20274,
1,
796,
705,
22462,
6
] |
What's the official name of the place with an Area KM 2 of 295.07 | SELECT "Official Name" FROM table_1620 WHERE "Area km 2" = '295.07' | [
2061,
338,
262,
1743,
1438,
286,
262,
1295,
351,
281,
9498,
46646,
362,
286,
34772,
13,
2998,
46506,
366,
28529,
6530,
1,
16034,
3084,
62,
1433,
1238,
33411,
366,
30547,
10571,
362,
1,
796,
705,
25710,
13,
2998,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
1743,
1438,
286,
262,
1295,
351,
281,
9498,
46646,
362,
286,
34772,
13,
2998,
46506,
366,
28529,
6530,
1,
16034,
3084,
62,
1433,
1238,
33411,
366,
30547,
10571,
362,
1,
796,
705,
25710,
13,
2998,
6
] |
find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion. | SELECT rank, company, market_value FROM company WHERE main_industry = 'Banking' ORDER BY sales_billion, profits_billion | [
19796,
262,
4279,
11,
1664,
3891,
11,
1910,
3815,
286,
262,
2706,
287,
262,
11754,
2831,
1502,
416,
511,
4200,
290,
10177,
287,
2997,
13,
46506,
4279,
11,
1664,
11,
1910,
62,
8367,
16034,
1664,
33411,
1388,
62,
23213,
563,
796,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
262,
4279,
11,
1664,
3891,
11,
1910,
3815,
286,
262,
2706,
287,
262,
11754,
2831,
1502,
416,
511,
4200,
290,
10177,
287,
2997,
13,
46506,
4279,
11,
1664,
11,
1910,
62,
8367,
16034,
1664,
33411,
1388,
62,
23213,
563,
796,
705,
... |
What average total has 41.241 (3) as the 1st run? | SELECT AVG("Total") FROM table_13763 WHERE "1st run" = '41.241 (3)' | [
2061,
2811,
2472,
468,
6073,
13,
28872,
357,
18,
8,
355,
262,
352,
301,
1057,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
1485,
49641,
33411,
366,
16,
301,
1057,
1,
796,
705,
3901,
13,
28872,
357,
18,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2811,
2472,
468,
6073,
13,
28872,
357,
18,
8,
355,
262,
352,
301,
1057,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
1485,
49641,
33411,
366,
16,
301,
1057,
1,
796,
705,
3901,
13,
28872,
357,
18,
33047
] |
Find the number of rooms with more than 50 capacity for each building. Show bar chart. | SELECT building, COUNT(*) FROM classroom WHERE capacity > 50 GROUP BY building | [
16742,
262,
1271,
286,
9519,
351,
517,
621,
2026,
5339,
329,
1123,
2615,
13,
5438,
2318,
8262,
13,
46506,
2615,
11,
327,
28270,
7,
28104,
16034,
15806,
33411,
5339,
1875,
2026,
44441,
11050,
2615
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1271,
286,
9519,
351,
517,
621,
2026,
5339,
329,
1123,
2615,
13,
5438,
2318,
8262,
13,
46506,
2615,
11,
327,
28270,
7,
28104,
16034,
15806,
33411,
5339,
1875,
2026,
44441,
11050,
2615
] |
What dipole moment has a density of 1.092 g/ml? | SELECT dipole_moment___d__ FROM table_name_18 WHERE density = "1.092 g/ml" | [
2061,
19550,
2305,
2589,
468,
257,
12109,
286,
352,
13,
2931,
17,
308,
14,
4029,
30,
46506,
19550,
2305,
62,
32542,
298,
17569,
67,
834,
16034,
3084,
62,
3672,
62,
1507,
33411,
12109,
796,
366,
16,
13,
2931,
17,
308,
14,
4029,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19550,
2305,
2589,
468,
257,
12109,
286,
352,
13,
2931,
17,
308,
14,
4029,
30,
46506,
19550,
2305,
62,
32542,
298,
17569,
67,
834,
16034,
3084,
62,
3672,
62,
1507,
33411,
12109,
796,
366,
16,
13,
2931,
17,
308,
14,
4029,
1
] |
How many picks did Jay Bruchak have? | SELECT COUNT(pick) FROM table_name_31 WHERE player = "jay bruchak" | [
2437,
867,
11103,
750,
9180,
8274,
354,
461,
423,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
3132,
33411,
2137,
796,
366,
33708,
18145,
354,
461,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
11103,
750,
9180,
8274,
354,
461,
423,
30,
46506,
327,
28270,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
3132,
33411,
2137,
796,
366,
33708,
18145,
354,
461,
1
] |
What was the result on september 26? | SELECT result FROM table_name_43 WHERE date = "september 26" | [
2061,
373,
262,
1255,
319,
384,
457,
1491,
2608,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3559,
33411,
3128,
796,
366,
325,
457,
1491,
2608,
1
] | [
1,
1,
1,
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,
384,
457,
1491,
2608,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
3559,
33411,
3128,
796,
366,
325,
457,
1491,
2608,
1
] |
When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party? | SELECT "Party" FROM table_23282 WHERE "Candidates" = 'Mark Critz (D) 50.8% Tim Burns (R) 49.2%' | [
2215,
1317,
1955,
89,
357,
67,
8,
2026,
13,
23,
4,
4628,
20246,
357,
81,
8,
5125,
13,
17,
4,
389,
262,
5871,
644,
318,
262,
2151,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1954,
32568,
33411,
366,
41572,
37051,
1,
796,
705,
970... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1317,
1955,
89,
357,
67,
8,
2026,
13,
23,
4,
4628,
20246,
357,
81,
8,
5125,
13,
17,
4,
389,
262,
5871,
644,
318,
262,
2151,
30,
46506,
366,
33553,
1,
16034,
3084,
62,
1954,
32568,
33411,
366,
41572,
37051,
1,
796,
705,
970... |
What is the name of the producer that produced a film with a production cost of $1,000,000? | SELECT producer FROM table_name_71 WHERE production_cost = "$1,000,000" | [
2061,
318,
262,
1438,
286,
262,
9920,
326,
4635,
257,
2646,
351,
257,
3227,
1575,
286,
720,
16,
11,
830,
11,
830,
30,
46506,
9920,
16034,
3084,
62,
3672,
62,
4869,
33411,
3227,
62,
15805,
796,
17971,
16,
11,
830,
11,
830,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
9920,
326,
4635,
257,
2646,
351,
257,
3227,
1575,
286,
720,
16,
11,
830,
11,
830,
30,
46506,
9920,
16034,
3084,
62,
3672,
62,
4869,
33411,
3227,
62,
15805,
796,
17971,
16,
11,
830,
11,
830,
1
] |
What is the Start of stage when Bernard Hinault was the stage winner? | SELECT "Start of stage" FROM table_13567 WHERE "Stage winner" = 'bernard hinault' | [
2061,
318,
262,
7253,
286,
3800,
618,
16197,
367,
1437,
586,
373,
262,
3800,
8464,
30,
46506,
366,
10434,
286,
3800,
1,
16034,
3084,
62,
17059,
3134,
33411,
366,
29391,
8464,
1,
796,
705,
33900,
446,
289,
1437,
586,
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,
318,
262,
7253,
286,
3800,
618,
16197,
367,
1437,
586,
373,
262,
3800,
8464,
30,
46506,
366,
10434,
286,
3800,
1,
16034,
3084,
62,
17059,
3134,
33411,
366,
29391,
8464,
1,
796,
705,
33900,
446,
289,
1437,
586,
6
] |
What Canadian Championship had CONCACAF Champions League of semifinals? | SELECT canadian_championship FROM table_name_6 WHERE concacaf_champions_league = "semifinals" | [
2061,
5398,
10749,
550,
39962,
2246,
8579,
6662,
4041,
286,
47633,
30,
46506,
460,
18425,
62,
354,
4350,
1056,
16034,
3084,
62,
3672,
62,
21,
33411,
1673,
330,
1878,
62,
354,
4350,
62,
19316,
796,
366,
43616,
361,
6897,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5398,
10749,
550,
39962,
2246,
8579,
6662,
4041,
286,
47633,
30,
46506,
460,
18425,
62,
354,
4350,
1056,
16034,
3084,
62,
3672,
62,
21,
33411,
1673,
330,
1878,
62,
354,
4350,
62,
19316,
796,
366,
43616,
361,
6897,
1
] |
What is the completed list entry number more than 1356460? | SELECT completed FROM table_name_58 WHERE list_entry_number > 1356460 | [
2061,
318,
262,
5668,
1351,
5726,
1271,
517,
621,
17501,
2414,
1899,
30,
46506,
5668,
16034,
3084,
62,
3672,
62,
3365,
33411,
1351,
62,
13000,
62,
17618,
1875,
17501,
2414,
1899
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
5668,
1351,
5726,
1271,
517,
621,
17501,
2414,
1899,
30,
46506,
5668,
16034,
3084,
62,
3672,
62,
3365,
33411,
1351,
62,
13000,
62,
17618,
1875,
17501,
2414,
1899
] |
What is the position of the player from Beaumont, Texas? | SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas" | [
2061,
318,
262,
2292,
286,
262,
2137,
422,
1355,
26043,
756,
11,
3936,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5999,
33411,
20994,
796,
366,
1350,
26043,
756,
11,
48659,
292,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2292,
286,
262,
2137,
422,
1355,
26043,
756,
11,
3936,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
5999,
33411,
20994,
796,
366,
1350,
26043,
756,
11,
48659,
292,
1
] |
how many patients were treated for kidney transplant nec within 2 months after choledochoenterostomy in 2105? | 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 = 'choledochoe... | [
4919,
867,
3871,
547,
5716,
329,
21919,
23319,
27576,
1626,
362,
1933,
706,
442,
45342,
5374,
78,
9255,
455,
9145,
287,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
547,
5716,
329,
21919,
23319,
27576,
1626,
362,
1933,
706,
442,
45342,
5374,
78,
9255,
455,
9145,
287,
362,
13348,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
46506,
2... |
Which Year has a Competition of european indoor championships, and a Venue of budapest , hungary? | SELECT SUM("Year") FROM table_59638 WHERE "Competition" = 'european indoor championships' AND "Venue" = 'budapest , hungary' | [
13828,
6280,
468,
257,
27348,
286,
11063,
431,
272,
22639,
27459,
11,
290,
257,
9932,
518,
286,
3600,
35746,
837,
9174,
560,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
45734,
2548,
33411,
366,
7293,
15620,
1,
796,
705,
44252,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22639,
27459,
11,
290,
257,
9932,
518,
286,
3600,
35746,
837,
9174,
560,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
45734,
2548,
33411,
366,
7293,
15620,
1,
796,
705,
44252,... |
when was the last time for patient 49036 procedure when they visited the hospital last time? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 49036 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) ORDER BY procedures_icd.charttime DESC LIMIT 1 | [
12518,
373,
262,
938,
640,
329,
5827,
45601,
2623,
8771,
618,
484,
8672,
262,
4436,
938,
640,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
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... | [
12518,
373,
262,
938,
640,
329,
5827,
45601,
2623,
8771,
618,
484,
8672,
262,
4436,
938,
640,
30,
46506,
9021,
62,
291,
67,
13,
40926,
2435,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
18108,
76,
62,
312,
3268,
357,
46... |
What is the country of the original title Cidade de deus? | SELECT country FROM table_name_69 WHERE original_title = "cidade de deus" | [
2061,
318,
262,
1499,
286,
262,
2656,
3670,
327,
312,
671,
390,
390,
385,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3388,
33411,
2656,
62,
7839,
796,
366,
66,
312,
671,
390,
390,
385,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1499,
286,
262,
2656,
3670,
327,
312,
671,
390,
390,
385,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3388,
33411,
2656,
62,
7839,
796,
366,
66,
312,
671,
390,
390,
385,
1
] |
What was the score on October 31? | SELECT "Score" FROM table_77646 WHERE "Date" = 'october 31' | [
2061,
373,
262,
4776,
319,
3267,
3261,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3324,
27720,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
3261,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
319,
3267,
3261,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
3324,
27720,
33411,
366,
10430,
1,
796,
705,
38441,
2023,
3261,
6
] |
What team was the opponent when there was a score of 5 4 (11)? | SELECT "Opponent" FROM table_71033 WHERE "Score" = '5–4 (11)' | [
2061,
1074,
373,
262,
6125,
618,
612,
373,
257,
4776,
286,
642,
604,
357,
1157,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
43147,
2091,
33411,
366,
26595,
1,
796,
705,
20,
1906,
19,
357,
1157,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
373,
262,
6125,
618,
612,
373,
257,
4776,
286,
642,
604,
357,
1157,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
43147,
2091,
33411,
366,
26595,
1,
796,
705,
20,
1906,
19,
357,
1157,
33047
] |
find .the number of patients who are female and were diagnosed with transient ischemic attack? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" | [
19796,
764,
1169,
1271,
286,
3871,
508,
389,
4048,
290,
547,
14641,
351,
32361,
318,
2395,
9383,
1368,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
764,
1169,
1271,
286,
3871,
508,
389,
4048,
290,
547,
14641,
351,
32361,
318,
2395,
9383,
1368,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
... |
When the finish was t31 what was the To par? | SELECT to_par FROM table_name_28 WHERE finish = "t31" | [
2215,
262,
5461,
373,
256,
3132,
644,
373,
262,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2078,
33411,
5461,
796,
366,
83,
3132,
1
] | [
1,
1,
1,
1,
1,
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,
5461,
373,
256,
3132,
644,
373,
262,
1675,
1582,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
2078,
33411,
5461,
796,
366,
83,
3132,
1
] |
How many numbers were recorded for high points when the team played against Oklahoma City? | SELECT COUNT(high_points) FROM table_17311783_6 WHERE team = "Oklahoma City" | [
2437,
867,
3146,
547,
6264,
329,
1029,
2173,
618,
262,
1074,
2826,
1028,
10433,
2254,
30,
46506,
327,
28270,
7,
8929,
62,
13033,
8,
16034,
3084,
62,
25399,
1157,
50165,
62,
21,
33411,
1074,
796,
366,
18690,
9802,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3146,
547,
6264,
329,
1029,
2173,
618,
262,
1074,
2826,
1028,
10433,
2254,
30,
46506,
327,
28270,
7,
8929,
62,
13033,
8,
16034,
3084,
62,
25399,
1157,
50165,
62,
21,
33411,
1074,
796,
366,
18690,
9802,
2254,
1
] |
when was patient 002-21509 prescribed a medication on the last hospital visit for the last time? | SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-21509' AND NOT patient.hospitaldischargetime IS NULL ORDER... | [
12518,
373,
5827,
3571,
17,
12,
2481,
29022,
14798,
257,
14103,
319,
262,
938,
4436,
3187,
329,
262,
938,
640,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
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... | [
12518,
373,
5827,
3571,
17,
12,
2481,
29022,
14798,
257,
14103,
319,
262,
938,
4436,
3187,
329,
262,
938,
640,
30,
46506,
14103,
13,
30349,
9688,
2435,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13... |
What is the short name of channel 5.5, KSTC-TV? | SELECT "PSIP Short Name" FROM table_36937 WHERE "Station" = 'kstc-tv' AND "Channel" = '5.5' | [
2061,
318,
262,
1790,
1438,
286,
6518,
642,
13,
20,
11,
509,
2257,
34,
12,
6849,
30,
46506,
366,
3705,
4061,
10073,
6530,
1,
16034,
3084,
62,
30803,
2718,
33411,
366,
12367,
1,
796,
705,
74,
301,
66,
12,
14981,
6,
5357,
366,
29239... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1790,
1438,
286,
6518,
642,
13,
20,
11,
509,
2257,
34,
12,
6849,
30,
46506,
366,
3705,
4061,
10073,
6530,
1,
16034,
3084,
62,
30803,
2718,
33411,
366,
12367,
1,
796,
705,
74,
301,
66,
12,
14981,
6,
5357,
366,
29239... |
What was the minimal amount ($) of the 1st prize in the tournaments in New Mexico? | SELECT MIN("1st Prize( $ )") FROM table_16953 WHERE "Location" = 'New Mexico' | [
2061,
373,
262,
10926,
2033,
45491,
286,
262,
352,
301,
11596,
287,
262,
18130,
287,
968,
5828,
30,
46506,
20625,
7203,
16,
301,
15895,
7,
720,
1267,
4943,
16034,
3084,
62,
1433,
49649,
33411,
366,
14749,
1,
796,
705,
3791,
5828,
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
] | [
2061,
373,
262,
10926,
2033,
45491,
286,
262,
352,
301,
11596,
287,
262,
18130,
287,
968,
5828,
30,
46506,
20625,
7203,
16,
301,
15895,
7,
720,
1267,
4943,
16034,
3084,
62,
1433,
49649,
33411,
366,
14749,
1,
796,
705,
3791,
5828,
6
] |
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the name , and group by attribute name by a bar chart, and sort Y-axis from high to low order please. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
2438,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
3297,
575,
12,
22704,
422,
1029,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
2438,
625,
262,
1438,
837,
290,
1448,
416,
11688,
1438,
416,
257,
2318,
8262,
11,
290,
3297,
575,
12,
22704,
422,
1029,
284... |
how many spokesperson where in 2004 | SELECT COUNT("Spokesperson") FROM table_2190 WHERE "Year(s)" = '2004' | [
4919,
867,
11821,
810,
287,
5472,
46506,
327,
28270,
7203,
4561,
3369,
6259,
4943,
16034,
3084,
62,
17,
19782,
33411,
366,
17688,
7,
82,
16725,
796,
705,
15724,
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
] | [
4919,
867,
11821,
810,
287,
5472,
46506,
327,
28270,
7203,
4561,
3369,
6259,
4943,
16034,
3084,
62,
17,
19782,
33411,
366,
17688,
7,
82,
16725,
796,
705,
15724,
6
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of phone_number and salary . | SELECT PHONE_NUMBER, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
3072,
62,
17618,
290,
9588,
764,
46506,
9370,
11651,
62,
41359,
13246,
11,
42475,
13153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
3072,
62,
17618,
290,
9588,
764,
46506,
9370,
11651,
62,
41359,
13246,
11,
42475,
13153... |
What number of patients born before the year 2056 have been diagnosed with brain mass intracranial hemorrhage? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND demographic.dob_year < "2056" | [
2061,
1271,
286,
3871,
4642,
878,
262,
614,
1160,
3980,
423,
587,
14641,
351,
3632,
2347,
9913,
330,
2596,
498,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
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... | [
2061,
1271,
286,
3871,
4642,
878,
262,
614,
1160,
3980,
423,
587,
14641,
351,
3632,
2347,
9913,
330,
2596,
498,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
... |
What is the epa rated combined fuel economy for the Nissan Leaf? | SELECT "EPA rated combined fuel economy" FROM table_2955 WHERE "Vehicle" = 'Nissan Leaf' | [
2061,
318,
262,
2462,
64,
13178,
5929,
5252,
3773,
329,
262,
28190,
14697,
30,
46506,
366,
40906,
13178,
5929,
5252,
3773,
1,
16034,
3084,
62,
1959,
2816,
33411,
366,
37870,
1548,
1,
796,
705,
45,
24112,
14697,
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,
2462,
64,
13178,
5929,
5252,
3773,
329,
262,
28190,
14697,
30,
46506,
366,
40906,
13178,
5929,
5252,
3773,
1,
16034,
3084,
62,
1959,
2816,
33411,
366,
37870,
1548,
1,
796,
705,
45,
24112,
14697,
6
] |
What are the medicine and trade names that can interact as an inhibitor and activitor with enzymes? | SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'inhibitor' INTERSECT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id WHERE interaction_type = 'activitor' | [
2061,
389,
262,
9007,
290,
3292,
3891,
326,
460,
9427,
355,
281,
41704,
290,
1753,
2072,
351,
29120,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
25351,
62,
3672,
16034,
9007,
7054,
309,
16,
32357,
1268,
9007,
62,
268,
24266,
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,
389,
262,
9007,
290,
3292,
3891,
326,
460,
9427,
355,
281,
41704,
290,
1753,
2072,
351,
29120,
30,
46506,
309,
16,
13,
3672,
11,
309,
16,
13,
25351,
62,
3672,
16034,
9007,
7054,
309,
16,
32357,
1268,
9007,
62,
268,
24266,
62,
... |
provide me the number of patients with chest pain primary disease who have procedure icd9 code 3521. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CHEST PAIN" AND procedures.icd9_code = "3521" | [
15234,
485,
502,
262,
1271,
286,
3871,
351,
7721,
2356,
4165,
4369,
508,
423,
8771,
14158,
67,
24,
2438,
3439,
2481,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
502,
262,
1271,
286,
3871,
351,
7721,
2356,
4165,
4369,
508,
423,
8771,
14158,
67,
24,
2438,
3439,
2481,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,... |
how many patients whose days of hospital stay is greater than 4 and drug name is labetalol hcl? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "4" AND prescriptions.drug = "Labetalol HCl" | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
2563,
1438,
318,
2248,
316,
282,
349,
289,
565,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
2563,
1438,
318,
2248,
316,
282,
349,
289,
565,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
Band of am, and a Frequency of 0 846 has what purpose? | SELECT purpose FROM table_name_18 WHERE band = "am" AND frequency = "0 846" | [
31407,
286,
716,
11,
290,
257,
31902,
286,
657,
807,
3510,
468,
644,
4007,
30,
46506,
4007,
16034,
3084,
62,
3672,
62,
1507,
33411,
4097,
796,
366,
321,
1,
5357,
8373,
796,
366,
15,
807,
3510,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
31407,
286,
716,
11,
290,
257,
31902,
286,
657,
807,
3510,
468,
644,
4007,
30,
46506,
4007,
16034,
3084,
62,
3672,
62,
1507,
33411,
4097,
796,
366,
321,
1,
5357,
8373,
796,
366,
15,
807,
3510,
1
] |
how many patients whose days of hospital stay is greater than 9 and procedure icd9 code is 3571? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "9" AND procedures.icd9_code = "3571" | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
860,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
4869,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
860,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
4869,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Name the total number of total for rank of 7 and bronze less than 1 | SELECT COUNT(total) FROM table_name_68 WHERE rank = "7" AND bronze < 1 | [
5376,
262,
2472,
1271,
286,
2472,
329,
4279,
286,
767,
290,
22101,
1342,
621,
352,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
4279,
796,
366,
22,
1,
5357,
22101,
1279,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
2472,
1271,
286,
2472,
329,
4279,
286,
767,
290,
22101,
1342,
621,
352,
46506,
327,
28270,
7,
23350,
8,
16034,
3084,
62,
3672,
62,
3104,
33411,
4279,
796,
366,
22,
1,
5357,
22101,
1279,
352
] |
how many patients have stayed in the hospital for more than 10 days and diagnosis icd9 code is 76513? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "10" AND diagnoses.icd9_code = "76513" | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
838,
1528,
290,
13669,
14158,
67,
24,
2438,
318,
767,
2996,
1485,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
838,
1528,
290,
13669,
14158,
67,
24,
2438,
318,
767,
2996,
1485,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32... |
What position is 1999? | SELECT "Position" FROM table_80213 WHERE "Year" = '1999' | [
2061,
2292,
318,
7358,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1795,
26427,
33411,
366,
17688,
1,
796,
705,
18946,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
318,
7358,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
1795,
26427,
33411,
366,
17688,
1,
796,
705,
18946,
6
] |
Name the score for charlotte | SELECT "Score" FROM table_21616 WHERE "Team" = 'Charlotte' | [
5376,
262,
4776,
329,
1149,
75,
11404,
46506,
366,
26595,
1,
16034,
3084,
62,
20666,
1433,
33411,
366,
15592,
1,
796,
705,
24453,
11404,
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
] | [
5376,
262,
4776,
329,
1149,
75,
11404,
46506,
366,
26595,
1,
16034,
3084,
62,
20666,
1433,
33411,
366,
15592,
1,
796,
705,
24453,
11404,
6
] |
Find the number of patients whose admission type is elective that had a procedure named umbilical vein catheterization. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Umbilical vein catheterization" | [
16742,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
326,
550,
257,
8771,
3706,
20810,
346,
605,
27208,
3797,
43332,
1634,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
326,
550,
257,
8771,
3706,
20810,
346,
605,
27208,
3797,
43332,
1634,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21... |
What cities do students live in? | SELECT DISTINCT city_code FROM student | [
2061,
4736,
466,
2444,
2107,
287,
30,
46506,
360,
8808,
1268,
4177,
1748,
62,
8189,
16034,
3710
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4736,
466,
2444,
2107,
287,
30,
46506,
360,
8808,
1268,
4177,
1748,
62,
8189,
16034,
3710
] |
Who is the forward from Grambling State? | SELECT "Player" FROM table_58141 WHERE "Position" = 'forward' AND "School/Club Team" = 'grambling state' | [
8241,
318,
262,
2651,
422,
20159,
11108,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
3365,
23756,
33411,
366,
26545,
1,
796,
705,
11813,
6,
5357,
366,
26130,
14,
42350,
4816,
1,
796,
705,
4546,
11108,
1181,
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
] | [
8241,
318,
262,
2651,
422,
20159,
11108,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
3365,
23756,
33411,
366,
26545,
1,
796,
705,
11813,
6,
5357,
366,
26130,
14,
42350,
4816,
1,
796,
705,
4546,
11108,
1181,
6
] |
How many University founded in 1863? | SELECT COUNT("Enrollment") FROM table_2004 WHERE "Founded" = '1863' | [
2437,
867,
2059,
9393,
287,
47072,
30,
46506,
327,
28270,
7203,
4834,
48108,
4943,
16034,
3084,
62,
15724,
33411,
366,
37,
6302,
1,
796,
705,
1507,
5066,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
2059,
9393,
287,
47072,
30,
46506,
327,
28270,
7203,
4834,
48108,
4943,
16034,
3084,
62,
15724,
33411,
366,
37,
6302,
1,
796,
705,
1507,
5066,
6
] |
Who was the Class A winner when the Class C winner was David Haynes? | SELECT "Class A Winner" FROM table_27134 WHERE "Class C Winner" = 'David Haynes' | [
8241,
373,
262,
5016,
317,
8464,
618,
262,
5016,
327,
8464,
373,
3271,
9075,
2516,
30,
46506,
366,
9487,
317,
25358,
1,
16034,
3084,
62,
1983,
19880,
33411,
366,
9487,
327,
25358,
1,
796,
705,
11006,
9075,
2516,
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
] | [
8241,
373,
262,
5016,
317,
8464,
618,
262,
5016,
327,
8464,
373,
3271,
9075,
2516,
30,
46506,
366,
9487,
317,
25358,
1,
16034,
3084,
62,
1983,
19880,
33411,
366,
9487,
327,
25358,
1,
796,
705,
11006,
9075,
2516,
6
] |
Name the french title for english title of 'inventor bunnies | SELECT "French title" FROM table_1452 WHERE "English title" = 'Inventor Bunnies' | [
5376,
262,
48718,
3670,
329,
46932,
3670,
286,
705,
259,
1151,
273,
275,
20935,
444,
46506,
366,
24111,
3670,
1,
16034,
3084,
62,
1415,
4309,
33411,
366,
15823,
3670,
1,
796,
705,
818,
1151,
273,
347,
20935,
444,
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
] | [
5376,
262,
48718,
3670,
329,
46932,
3670,
286,
705,
259,
1151,
273,
275,
20935,
444,
46506,
366,
24111,
3670,
1,
16034,
3084,
62,
1415,
4309,
33411,
366,
15823,
3670,
1,
796,
705,
818,
1151,
273,
347,
20935,
444,
6
] |
how many patients were admitted before the year 2194? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2194" | [
4919,
867,
3871,
547,
6848,
878,
262,
614,
362,
22913,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
22913,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
547,
6848,
878,
262,
614,
362,
22913,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
1279,
366,
17,
22913,
1
] |
How many customers live in Prague city? | SELECT COUNT(*) FROM customers WHERE city = "Prague" | [
2437,
867,
4297,
2107,
287,
37079,
1748,
30,
46506,
327,
28270,
7,
28104,
16034,
4297,
33411,
1748,
796,
366,
6836,
2064,
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,
4297,
2107,
287,
37079,
1748,
30,
46506,
327,
28270,
7,
28104,
16034,
4297,
33411,
1748,
796,
366,
6836,
2064,
1
] |
What is them two (the two) when you and i is ng balngu? | SELECT "them two (the two)" FROM table_15991 WHERE "you and I" = 'ngœbalngu' | [
2061,
318,
606,
734,
357,
1169,
734,
8,
618,
345,
290,
1312,
318,
23370,
3652,
782,
84,
30,
46506,
366,
18855,
734,
357,
1169,
734,
16725,
16034,
3084,
62,
1314,
2079,
16,
33411,
366,
5832,
290,
314,
1,
796,
705,
782,
129,
241,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
606,
734,
357,
1169,
734,
8,
618,
345,
290,
1312,
318,
23370,
3652,
782,
84,
30,
46506,
366,
18855,
734,
357,
1169,
734,
16725,
16034,
3084,
62,
1314,
2079,
16,
33411,
366,
5832,
290,
314,
1,
796,
705,
782,
129,
241,
68... |
What are the number of the descriptions of all the project outcomes? | SELECT outcome_description, COUNT(outcome_description) FROM Research_Outcomes AS T1 JOIN Project_Outcomes AS T2 ON T1.outcome_code = T2.outcome_code GROUP BY outcome_description | [
2061,
389,
262,
1271,
286,
262,
16969,
286,
477,
262,
1628,
10906,
30,
46506,
8055,
62,
11213,
11,
327,
28270,
7,
448,
2958,
62,
11213,
8,
16034,
4992,
62,
7975,
8988,
7054,
309,
16,
32357,
1268,
4935,
62,
7975,
8988,
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,
262,
1271,
286,
262,
16969,
286,
477,
262,
1628,
10906,
30,
46506,
8055,
62,
11213,
11,
327,
28270,
7,
448,
2958,
62,
11213,
8,
16034,
4992,
62,
7975,
8988,
7054,
309,
16,
32357,
1268,
4935,
62,
7975,
8988,
7054,
309,
17,... |
How many new pageants does Aruba have? | SELECT COUNT(new_pageant) FROM table_14308895_2 WHERE country_territory = "Aruba" | [
2437,
867,
649,
2443,
1187,
857,
943,
22013,
423,
30,
46506,
327,
28270,
7,
3605,
62,
7700,
415,
8,
16034,
3084,
62,
1415,
1270,
3459,
3865,
62,
17,
33411,
1499,
62,
353,
799,
652,
796,
366,
3163,
22013,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
649,
2443,
1187,
857,
943,
22013,
423,
30,
46506,
327,
28270,
7,
3605,
62,
7700,
415,
8,
16034,
3084,
62,
1415,
1270,
3459,
3865,
62,
17,
33411,
1499,
62,
353,
799,
652,
796,
366,
3163,
22013,
1
] |
Top 100 user with highest posts from Kolkata. | SELECT Users.Id AS "user_link", COUNT(Posts.Id) AS Answers, CAST(AVG(CAST(Score AS FLOAT)) AS FLOAT(6, 2)) AS "average_answer_score" FROM Posts INNER JOIN Users ON Users.Id = OwnerUserId WHERE PostTypeId = 2 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND LOWER(Users.Location) LIKE LOWER('%kolkata%') GROUP BY... | [
9126,
1802,
2836,
351,
4511,
6851,
422,
509,
13597,
1045,
13,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
21496,
13,
7390,
8,
7054,
42612,
11,
327,
11262,
7,
10116,
38,
7,
44647,
7,
26595,
7054,
9977,
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... | [
9126,
1802,
2836,
351,
4511,
6851,
422,
509,
13597,
1045,
13,
46506,
18987,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
327,
28270,
7,
21496,
13,
7390,
8,
7054,
42612,
11,
327,
11262,
7,
10116,
38,
7,
44647,
7,
26595,
7054,
9977,
46,... |
Bar chart x axis all games y axis acc_percent, order by the ACC_Percent in ascending. | SELECT All_Games, ACC_Percent FROM basketball_match ORDER BY ACC_Percent | [
10374,
8262,
2124,
16488,
477,
1830,
331,
16488,
697,
62,
25067,
11,
1502,
416,
262,
15859,
62,
31905,
287,
41988,
13,
46506,
1439,
62,
24474,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
15859,
62,
31905
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10374,
8262,
2124,
16488,
477,
1830,
331,
16488,
697,
62,
25067,
11,
1502,
416,
262,
15859,
62,
31905,
287,
41988,
13,
46506,
1439,
62,
24474,
11,
15859,
62,
31905,
16034,
9669,
62,
15699,
38678,
11050,
15859,
62,
31905
] |
What was 2003's To Par? | SELECT to_par FROM table_name_31 WHERE year = 2003 | [
2061,
373,
5816,
338,
1675,
2547,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
796,
5816
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
5816,
338,
1675,
2547,
30,
46506,
284,
62,
1845,
16034,
3084,
62,
3672,
62,
3132,
33411,
614,
796,
5816
] |
What is the score in Leicester? | SELECT "Score" FROM table_39635 WHERE "City" = 'leicester' | [
2061,
318,
262,
4776,
287,
29224,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34107,
2327,
33411,
366,
14941,
1,
796,
705,
293,
26382,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4776,
287,
29224,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34107,
2327,
33411,
366,
14941,
1,
796,
705,
293,
26382,
6
] |
what's the season with regionalliga west/s dwest being arminia bielefeld | SELECT season FROM table_14242137_11 WHERE regionalliga_west_südwest = "Arminia Bielefeld" | [
10919,
338,
262,
1622,
351,
3814,
439,
13827,
7421,
14,
82,
288,
7038,
852,
610,
1084,
544,
275,
494,
293,
16265,
46506,
1622,
16034,
3084,
62,
1415,
27877,
19708,
62,
1157,
33411,
3814,
439,
13827,
62,
7038,
62,
82,
9116,
67,
7038,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1622,
351,
3814,
439,
13827,
7421,
14,
82,
288,
7038,
852,
610,
1084,
544,
275,
494,
293,
16265,
46506,
1622,
16034,
3084,
62,
1415,
27877,
19708,
62,
1157,
33411,
3814,
439,
13827,
62,
7038,
62,
82,
9116,
67,
7038,
... |
Compare the total number of trains in each name by a bar graph, sort y-axis in desc order. | SELECT Name, COUNT(Name) FROM train GROUP BY Name ORDER BY COUNT(Name) DESC | [
41488,
262,
2472,
1271,
286,
13404,
287,
1123,
1438,
416,
257,
2318,
4823,
11,
3297,
331,
12,
22704,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
41488,
262,
2472,
1271,
286,
13404,
287,
1123,
1438,
416,
257,
2318,
4823,
11,
3297,
331,
12,
22704,
287,
1715,
1502,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
4512,
44441,
11050,
6530,
38678,
11050,
327,
28270,
7,
5376,
8,
... |
Which away team scored 9.11 (65)? | SELECT "Away team" FROM table_10536 WHERE "Away team score" = '9.11 (65)' | [
13828,
1497,
1074,
7781,
860,
13,
1157,
357,
2996,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
13348,
2623,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
24,
13,
1157,
357,
2996,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1497,
1074,
7781,
860,
13,
1157,
357,
2996,
19427,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
13348,
2623,
33411,
366,
32,
1014,
1074,
4776,
1,
796,
705,
24,
13,
1157,
357,
2996,
33047
] |
How many people directed the episode that aired on February 5, 1968? | SELECT COUNT(director) FROM table_25800134_12 WHERE airdate = "February 5, 1968" | [
2437,
867,
661,
7924,
262,
4471,
326,
18530,
319,
3945,
642,
11,
15963,
30,
46506,
327,
28270,
7,
35248,
8,
16034,
3084,
62,
1495,
7410,
19880,
62,
1065,
33411,
257,
1447,
378,
796,
366,
21816,
642,
11,
15963,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7924,
262,
4471,
326,
18530,
319,
3945,
642,
11,
15963,
30,
46506,
327,
28270,
7,
35248,
8,
16034,
3084,
62,
1495,
7410,
19880,
62,
1065,
33411,
257,
1447,
378,
796,
366,
21816,
642,
11,
15963,
1
] |
Show me the correlation between the number of platforms and the number of total_passengers in a scatter chart. | SELECT SUM(Number_of_Platforms), SUM(Total_Passengers) FROM station GROUP BY Location | [
15307,
502,
262,
16096,
1022,
262,
1271,
286,
9554,
290,
262,
1271,
286,
2472,
62,
6603,
9302,
287,
257,
41058,
8262,
13,
46506,
35683,
7,
15057,
62,
1659,
62,
37148,
82,
828,
35683,
7,
14957,
62,
14478,
9302,
8,
16034,
4429,
44441,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
262,
16096,
1022,
262,
1271,
286,
9554,
290,
262,
1271,
286,
2472,
62,
6603,
9302,
287,
257,
41058,
8262,
13,
46506,
35683,
7,
15057,
62,
1659,
62,
37148,
82,
828,
35683,
7,
14957,
62,
14478,
9302,
8,
16034,
4429,
44441,
... |
Who is the player from Arizona State? | SELECT "Player" FROM table_41038 WHERE "College" = 'arizona state' | [
8241,
318,
262,
2137,
422,
7943,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33289,
2548,
33411,
366,
38951,
1,
796,
705,
283,
528,
4450,
1181,
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
] | [
8241,
318,
262,
2137,
422,
7943,
1812,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
33289,
2548,
33411,
366,
38951,
1,
796,
705,
283,
528,
4450,
1181,
6
] |
what is the name of the prescription drug patient 009-5351 was prescribed within 2 days after being diagnosed with copd in 06/this year? | SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-5351') AND diagnosis.diagnosi... | [
10919,
318,
262,
1438,
286,
262,
15077,
2563,
5827,
3571,
24,
12,
20,
35273,
373,
14798,
1626,
362,
1528,
706,
852,
14641,
351,
2243,
67,
287,
9130,
14,
5661,
614,
30,
46506,
256,
17,
13,
30349,
3672,
16034,
357,
46506,
5827,
13,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1438,
286,
262,
15077,
2563,
5827,
3571,
24,
12,
20,
35273,
373,
14798,
1626,
362,
1528,
706,
852,
14641,
351,
2243,
67,
287,
9130,
14,
5661,
614,
30,
46506,
256,
17,
13,
30349,
3672,
16034,
357,
46506,
5827,
13,
40... |
Tell me the date for 6 3, 6 2 | SELECT date FROM table_name_87 WHERE score = "6–3, 6–2" | [
24446,
502,
262,
3128,
329,
718,
513,
11,
718,
362,
46506,
3128,
16034,
3084,
62,
3672,
62,
5774,
33411,
4776,
796,
366,
21,
1906,
18,
11,
718,
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
] | [
24446,
502,
262,
3128,
329,
718,
513,
11,
718,
362,
46506,
3128,
16034,
3084,
62,
3672,
62,
5774,
33411,
4776,
796,
366,
21,
1906,
18,
11,
718,
1906,
17,
1
] |
Thomas de Gendt performed on what stage as aggressive rider? | SELECT MAX("Stage") FROM table_31097 WHERE "Aggressive Rider" = 'Thomas De Gendt' | [
22405,
390,
402,
437,
83,
6157,
319,
644,
3800,
355,
8361,
17876,
30,
46506,
25882,
7203,
29391,
4943,
16034,
3084,
62,
26717,
5607,
33411,
366,
46384,
3314,
16414,
1,
796,
705,
22405,
1024,
402,
437,
83,
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
] | [
22405,
390,
402,
437,
83,
6157,
319,
644,
3800,
355,
8361,
17876,
30,
46506,
25882,
7203,
29391,
4943,
16034,
3084,
62,
26717,
5607,
33411,
366,
46384,
3314,
16414,
1,
796,
705,
22405,
1024,
402,
437,
83,
6
] |
How many Overall went in a round larger than 7 with a pick less than 7? | SELECT COUNT(overall) FROM table_name_39 WHERE round > 7 AND pick < 7 | [
2437,
867,
14674,
1816,
287,
257,
2835,
4025,
621,
767,
351,
257,
2298,
1342,
621,
767,
30,
46506,
327,
28270,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
2835,
1875,
767,
5357,
2298,
1279,
767
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
14674,
1816,
287,
257,
2835,
4025,
621,
767,
351,
257,
2298,
1342,
621,
767,
30,
46506,
327,
28270,
7,
2502,
439,
8,
16034,
3084,
62,
3672,
62,
2670,
33411,
2835,
1875,
767,
5357,
2298,
1279,
767
] |
what is minimum age of patients whose days of hospital stay is 4 and admission year is greater than or equal to 2177? | SELECT MIN(demographic.age) FROM demographic WHERE demographic.days_stay = "4" AND demographic.admityear >= "2177" | [
10919,
318,
5288,
2479,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
604,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
22413,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
31712,
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
] | [
10919,
318,
5288,
2479,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
604,
290,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
22413,
30,
46506,
20625,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
12545,
62,
31712,
796,... |
how many private insurance patients had urgent hospital admission? | SELECT MAX(demographic.age) FROM demographic WHERE demographic.admission_type = "URGENT" AND demographic.insurance = "Private" | [
4919,
867,
2839,
5096,
3871,
550,
18039,
4436,
13938,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1,
5357,
16728,
13,
1040,
3874,
796,
366,
29067,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2839,
5096,
3871,
550,
18039,
4436,
13938,
30,
46506,
25882,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
4261,
38,
3525,
1,
5357,
16728,
13,
1040,
3874,
796,
366,
29067,
1
] |
Retrieve the open and close dates of all the policies associated with the customer whose name contains 'Diana | SELECT t2.date_opened, t2.date_closed FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name LIKE "%Diana%" | [
9781,
30227,
262,
1280,
290,
1969,
9667,
286,
477,
262,
4788,
3917,
351,
262,
6491,
3025,
1438,
4909,
705,
35,
7484,
46506,
256,
17,
13,
4475,
62,
26350,
11,
256,
17,
13,
4475,
62,
20225,
16034,
4297,
7054,
256,
16,
32357,
1268,
429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9781,
30227,
262,
1280,
290,
1969,
9667,
286,
477,
262,
4788,
3917,
351,
262,
6491,
3025,
1438,
4909,
705,
35,
7484,
46506,
256,
17,
13,
4475,
62,
26350,
11,
256,
17,
13,
4475,
62,
20225,
16034,
4297,
7054,
256,
16,
32357,
1268,
429... |
Which Record has a Result of l 13 30? | SELECT record FROM table_name_29 WHERE result = "l 13–30" | [
13828,
13266,
468,
257,
25414,
286,
300,
1511,
1542,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1959,
33411,
1255,
796,
366,
75,
1511,
1906,
1270,
1
] | [
1,
1,
1,
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,
13266,
468,
257,
25414,
286,
300,
1511,
1542,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
1959,
33411,
1255,
796,
366,
75,
1511,
1906,
1270,
1
] |
What is the away team's score when north melbourne is the home team? | SELECT "Away team score" FROM table_4919 WHERE "Home team" = 'north melbourne' | [
2061,
318,
262,
1497,
1074,
338,
4776,
618,
5093,
7758,
12544,
318,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2920,
1129,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1497,
1074,
338,
4776,
618,
5093,
7758,
12544,
318,
262,
1363,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
2920,
1129,
33411,
366,
16060,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
What's the attendance when the week was more than 16? | SELECT attendance FROM table_name_95 WHERE week > 16 | [
2061,
338,
262,
14858,
618,
262,
1285,
373,
517,
621,
1467,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3865,
33411,
1285,
1875,
1467
] | [
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,
14858,
618,
262,
1285,
373,
517,
621,
1467,
30,
46506,
14858,
16034,
3084,
62,
3672,
62,
3865,
33411,
1285,
1875,
1467
] |
Last site access for given users. | SELECT u.Id AS "user_link", u.LastAccessDate FROM Users AS u WHERE u.Id IN ('##list##') | [
5956,
2524,
1895,
329,
1813,
2985,
13,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
5956,
15457,
10430,
16034,
18987,
7054,
334,
33411,
334,
13,
7390,
3268,
19203,
2235,
4868,
2235,
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
] | [
5956,
2524,
1895,
329,
1813,
2985,
13,
46506,
334,
13,
7390,
7054,
366,
7220,
62,
8726,
1600,
334,
13,
5956,
15457,
10430,
16034,
18987,
7054,
334,
33411,
334,
13,
7390,
3268,
19203,
2235,
4868,
2235,
11537
] |
what is the date when the format is cd (limited edition steel-box) from united kingdom? | SELECT date FROM table_name_16 WHERE format = "cd (limited edition steel-box)" AND country = "united kingdom" | [
10919,
318,
262,
3128,
618,
262,
5794,
318,
22927,
357,
10698,
8313,
7771,
12,
3524,
8,
422,
16503,
13239,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
5794,
796,
366,
10210,
357,
10698,
8313,
7771,
12,
3524,
16725,
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
] | [
10919,
318,
262,
3128,
618,
262,
5794,
318,
22927,
357,
10698,
8313,
7771,
12,
3524,
8,
422,
16503,
13239,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
1433,
33411,
5794,
796,
366,
10210,
357,
10698,
8313,
7771,
12,
3524,
16725,
5357,
... |
When was erskine college founded | SELECT founded FROM table_11658094_1 WHERE institution = "Erskine College" | [
2215,
373,
220,
364,
74,
500,
4152,
9393,
46506,
9393,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
36,
3808,
74,
500,
5535,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
220,
364,
74,
500,
4152,
9393,
46506,
9393,
16034,
3084,
62,
1157,
2996,
1795,
5824,
62,
16,
33411,
9901,
796,
366,
36,
3808,
74,
500,
5535,
1
] |
how many patients were until 2104 in the ccu careunit. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'ccu' AND STRFTIME('%y', transfers.intime) <= '2104') | [
4919,
867,
3871,
547,
1566,
362,
13464,
287,
262,
269,
27399,
1337,
20850,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
16395,
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,
547,
1566,
362,
13464,
287,
262,
269,
27399,
1337,
20850,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
25349,
13,
32796,
62,
312,
8,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
16395,
13,
... |
At which site was Northwestern an opponent? | SELECT "Site" FROM table_44405 WHERE "Opponent#" = 'northwestern' | [
2953,
543,
2524,
373,
30197,
281,
6125,
30,
46506,
366,
29123,
1,
16034,
3084,
62,
2598,
26598,
33411,
366,
27524,
3471,
2,
1,
796,
705,
43588,
14197,
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
] | [
2953,
543,
2524,
373,
30197,
281,
6125,
30,
46506,
366,
29123,
1,
16034,
3084,
62,
2598,
26598,
33411,
366,
27524,
3471,
2,
1,
796,
705,
43588,
14197,
6
] |
What is Darren Clarke's total score? | SELECT COUNT("Score") FROM table_58808 WHERE "Player" = 'darren clarke' | [
2061,
318,
26203,
19635,
338,
2472,
4776,
30,
46506,
327,
28270,
7203,
26595,
4943,
16034,
3084,
62,
3365,
28362,
33411,
366,
14140,
1,
796,
705,
27455,
918,
10212,
365,
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,
318,
26203,
19635,
338,
2472,
4776,
30,
46506,
327,
28270,
7203,
26595,
4943,
16034,
3084,
62,
3365,
28362,
33411,
366,
14140,
1,
796,
705,
27455,
918,
10212,
365,
6
] |
What is the Attendance on September 28, 1997? | SELECT "Attendance" FROM table_49313 WHERE "Date" = 'september 28, 1997' | [
2061,
318,
262,
46502,
590,
319,
2693,
2579,
11,
8309,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2920,
25838,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
2579,
11,
8309,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
46502,
590,
319,
2693,
2579,
11,
8309,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2920,
25838,
33411,
366,
10430,
1,
796,
705,
325,
457,
1491,
2579,
11,
8309,
6
] |
What kind of Crowd has a Ground of subiaco oval? | SELECT SUM("Crowd") FROM table_48417 WHERE "Ground" = 'subiaco oval' | [
2061,
1611,
286,
29452,
468,
257,
13706,
286,
850,
9607,
78,
41186,
30,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
34137,
1558,
33411,
366,
35539,
1,
796,
705,
7266,
9607,
78,
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,
1,
1,
1,
1,
1
] | [
2061,
1611,
286,
29452,
468,
257,
13706,
286,
850,
9607,
78,
41186,
30,
46506,
35683,
7203,
34,
3986,
4943,
16034,
3084,
62,
34137,
1558,
33411,
366,
35539,
1,
796,
705,
7266,
9607,
78,
41186,
6
] |
how many asian patients born before the year 2107? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.dob_year < "2107" | [
4919,
867,
355,
666,
3871,
4642,
878,
262,
614,
362,
15982,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
5357,
16728,
13,
67,
672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
355,
666,
3871,
4642,
878,
262,
614,
362,
15982,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
38546,
414,
796,
366,
1921,
16868,
1,
5357,
16728,
13,
67,
672... |
Find the name of students who took any class in the years of 2009 and 2010. | SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010 | [
16742,
262,
1438,
286,
2444,
508,
1718,
597,
1398,
287,
262,
812,
286,
3717,
290,
3050,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
16034,
3710,
7054,
309,
16,
32357,
1268,
2753,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16742,
262,
1438,
286,
2444,
508,
1718,
597,
1398,
287,
262,
812,
286,
3717,
290,
3050,
13,
46506,
360,
8808,
1268,
4177,
309,
16,
13,
3672,
16034,
3710,
7054,
309,
16,
32357,
1268,
2753,
7054,
309,
17,
6177,
309,
16,
13,
312,
796,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.