instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What amount is the junior high school where the gender is male and the specification is minimum diameter of sakigawa? | SELECT "Junior High School (12\u201315 yrs)" FROM table_18814 WHERE "Gender" = 'Male' AND "Specification" = 'Minimum diameter of sakigawa' | [
2061,
2033,
318,
262,
13430,
1029,
1524,
810,
262,
5279,
318,
4257,
290,
262,
20855,
318,
5288,
14753,
286,
264,
461,
328,
6909,
30,
46506,
366,
22396,
1504,
3334,
3961,
357,
1065,
59,
84,
6390,
1314,
331,
3808,
16725,
16034,
3084,
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,
2033,
318,
262,
13430,
1029,
1524,
810,
262,
5279,
318,
4257,
290,
262,
20855,
318,
5288,
14753,
286,
264,
461,
328,
6909,
30,
46506,
366,
22396,
1504,
3334,
3961,
357,
1065,
59,
84,
6390,
1314,
331,
3808,
16725,
16034,
3084,
62... |
Saint-Blaise-Sur-Richelieu is smaller than 68.42 km^2, what is the population of this type M municipality? | SELECT MIN(population) FROM table_name_64 WHERE type = "m" AND name = "saint-blaise-sur-richelieu" AND area__km_2__ < 68.42 | [
48615,
12,
3629,
64,
786,
12,
14214,
12,
49,
291,
2978,
22304,
318,
4833,
621,
8257,
13,
3682,
10571,
61,
17,
11,
644,
318,
262,
3265,
286,
428,
2099,
337,
27264,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
2414,
334... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
48615,
12,
3629,
64,
786,
12,
14214,
12,
49,
291,
2978,
22304,
318,
4833,
621,
8257,
13,
3682,
10571,
61,
17,
11,
644,
318,
262,
3265,
286,
428,
2099,
337,
27264,
30,
46506,
20625,
7,
39748,
8,
16034,
3084,
62,
3672,
62,
2414,
334... |
what is the insurance in patient 17667 during this hospital visit? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 17667 AND admissions.dischtime IS NULL | [
10919,
318,
262,
5096,
287,
5827,
1596,
28933,
1141,
428,
4436,
3187,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1596,
28933,
5357,
25349,
13,
6381,
354,
2435,
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,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5096,
287,
5827,
1596,
28933,
1141,
428,
4436,
3187,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1596,
28933,
5357,
25349,
13,
6381,
354,
2435,
3180,
15697
] |
Which segment A item that has a Segment D of wigs? | SELECT "Segment A" FROM table_36076 WHERE "Segment D" = 'wigs' | [
13828,
10618,
317,
2378,
326,
468,
257,
1001,
5154,
360,
286,
266,
9235,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
15277,
4304,
33411,
366,
41030,
434,
360,
1,
796,
705,
86,
9235,
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,
10618,
317,
2378,
326,
468,
257,
1001,
5154,
360,
286,
266,
9235,
30,
46506,
366,
41030,
434,
317,
1,
16034,
3084,
62,
15277,
4304,
33411,
366,
41030,
434,
360,
1,
796,
705,
86,
9235,
6
] |
What is the L when the W is 4? | SELECT MIN("L") FROM table_31221 WHERE "W" = '4' | [
2061,
318,
262,
406,
618,
262,
370,
318,
604,
30,
46506,
20625,
7203,
43,
4943,
16034,
3084,
62,
27970,
2481,
33411,
366,
54,
1,
796,
705,
19,
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
] | [
2061,
318,
262,
406,
618,
262,
370,
318,
604,
30,
46506,
20625,
7203,
43,
4943,
16034,
3084,
62,
27970,
2481,
33411,
366,
54,
1,
796,
705,
19,
6
] |
Accept rate in a tag vs global accept rate per month. | SELECT YEAR(q.CreationDate) + MONTH(q.CreationDate) / 12.0 AS "m", ROUND(COUNT(q.AcceptedAnswerId) * 100.0 / COUNT(*), 2) AS "global_%_accepted", ROUND(COUNT(CASE WHEN NOT q.AcceptedAnswerId IS NULL AND q.Tags LIKE '%##Tag##%' THEN 1 ELSE NULL END) * 100.0 / NULLIF(COUNT(CASE WHEN q.Tags LIKE '%##Tag##%' THEN 1 ELSE NU... | [
38855,
2494,
287,
257,
7621,
3691,
3298,
2453,
2494,
583,
1227,
13,
46506,
32914,
7,
80,
13,
12443,
341,
10430,
8,
1343,
25000,
4221,
7,
80,
13,
12443,
341,
10430,
8,
1220,
1105,
13,
15,
7054,
366,
76,
1600,
371,
15919,
7,
34,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
38855,
2494,
287,
257,
7621,
3691,
3298,
2453,
2494,
583,
1227,
13,
46506,
32914,
7,
80,
13,
12443,
341,
10430,
8,
1343,
25000,
4221,
7,
80,
13,
12443,
341,
10430,
8,
1220,
1105,
13,
15,
7054,
366,
76,
1600,
371,
15919,
7,
34,
282... |
What number was manufactured 1 in 1841? | SELECT "Number(s)" FROM table_62450 WHERE "Quantity" = '1' AND "Year(s) of Manufacture" = '1841' | [
2061,
1271,
373,
15943,
352,
287,
1248,
3901,
30,
46506,
366,
15057,
7,
82,
16725,
16034,
3084,
62,
21,
1731,
1120,
33411,
366,
31208,
1,
796,
705,
16,
6,
5357,
366,
17688,
7,
82,
8,
286,
17858,
495,
1,
796,
705,
1507,
3901,
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
] | [
2061,
1271,
373,
15943,
352,
287,
1248,
3901,
30,
46506,
366,
15057,
7,
82,
16725,
16034,
3084,
62,
21,
1731,
1120,
33411,
366,
31208,
1,
796,
705,
16,
6,
5357,
366,
17688,
7,
82,
8,
286,
17858,
495,
1,
796,
705,
1507,
3901,
6
] |
Visualize a bar chart about the distribution of ACC_Road and the amount of ACC_Road , and group by attribute ACC_Road. | SELECT ACC_Road, COUNT(ACC_Road) FROM basketball_match GROUP BY ACC_Road | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2033,
286,
15859,
62,
29197,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
13,
46506,
15859,
62,
29197,
11,
327,
28270,
7,
26861,
62,
29197,
8,
16034,
9669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15859,
62,
29197,
290,
262,
2033,
286,
15859,
62,
29197,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
13,
46506,
15859,
62,
29197,
11,
327,
28270,
7,
26861,
62,
29197,
8,
16034,
9669... |
Name the driver/passenger for 6 position | SELECT "Driver / Passenger" FROM table_21010 WHERE "Position" = '6' | [
5376,
262,
4639,
14,
6603,
6540,
329,
718,
2292,
46506,
366,
32103,
1220,
47239,
1,
16034,
3084,
62,
2481,
20943,
33411,
366,
26545,
1,
796,
705,
21,
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
] | [
5376,
262,
4639,
14,
6603,
6540,
329,
718,
2292,
46506,
366,
32103,
1220,
47239,
1,
16034,
3084,
62,
2481,
20943,
33411,
366,
26545,
1,
796,
705,
21,
6
] |
provide the number of patients whose language is span and year of birth is less than 2197? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "SPAN" AND demographic.dob_year < "2197" | [
15234,
485,
262,
1271,
286,
3871,
3025,
3303,
318,
11506,
290,
614,
286,
4082,
318,
1342,
621,
362,
24991,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15234,
485,
262,
1271,
286,
3871,
3025,
3303,
318,
11506,
290,
614,
286,
4082,
318,
1342,
621,
362,
24991,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
... |
What is the release date of vhs super callanetics? | SELECT "Release Date" FROM table_11297 WHERE "Format" = 'vhs' AND "Title" = 'super callanetics' | [
2061,
318,
262,
2650,
3128,
286,
410,
11994,
2208,
869,
272,
14596,
30,
46506,
366,
26362,
7536,
1,
16034,
3084,
62,
14686,
5607,
33411,
366,
26227,
1,
796,
705,
85,
11994,
6,
5357,
366,
19160,
1,
796,
705,
16668,
869,
272,
14596,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2650,
3128,
286,
410,
11994,
2208,
869,
272,
14596,
30,
46506,
366,
26362,
7536,
1,
16034,
3084,
62,
14686,
5607,
33411,
366,
26227,
1,
796,
705,
85,
11994,
6,
5357,
366,
19160,
1,
796,
705,
16668,
869,
272,
14596,
6... |
what was the away team with st kilda as the away team? | SELECT "Away team score" FROM table_52378 WHERE "Away team" = 'st kilda' | [
10919,
373,
262,
1497,
1074,
351,
336,
479,
27281,
355,
262,
1497,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
49803,
3695,
33411,
366,
32,
1014,
1074,
1,
796,
705,
301,
479,
27281,
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
] | [
10919,
373,
262,
1497,
1074,
351,
336,
479,
27281,
355,
262,
1497,
1074,
30,
46506,
366,
32,
1014,
1074,
4776,
1,
16034,
3084,
62,
49803,
3695,
33411,
366,
32,
1014,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
Name The Player who has a Pick # of 27? | SELECT "Player" FROM table_48383 WHERE "Pick #" = '27' | [
5376,
383,
7853,
508,
468,
257,
12346,
1303,
286,
2681,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
34741,
33411,
366,
31686,
1303,
1,
796,
705,
1983,
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
] | [
5376,
383,
7853,
508,
468,
257,
12346,
1303,
286,
2681,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2780,
34741,
33411,
366,
31686,
1303,
1,
796,
705,
1983,
6
] |
When gordon (27) had high points, what was the number of high assists? | SELECT COUNT(high_assists) FROM table_11960610_10 WHERE high_points = "Gordon (27)" | [
2215,
308,
9999,
357,
1983,
8,
550,
1029,
2173,
11,
644,
373,
262,
1271,
286,
1029,
13648,
30,
46506,
327,
28270,
7,
8929,
62,
562,
1023,
8,
16034,
3084,
62,
16315,
33206,
940,
62,
940,
33411,
1029,
62,
13033,
796,
366,
47073,
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
] | [
2215,
308,
9999,
357,
1983,
8,
550,
1029,
2173,
11,
644,
373,
262,
1271,
286,
1029,
13648,
30,
46506,
327,
28270,
7,
8929,
62,
562,
1023,
8,
16034,
3084,
62,
16315,
33206,
940,
62,
940,
33411,
1029,
62,
13033,
796,
366,
47073,
357,
... |
When / ruka is the serbo-croatian what is the macedonian? | SELECT "Macedonian" FROM table_28989 WHERE "Serbo-Croatian" = 'рука / ruka' | [
2215,
1220,
374,
14852,
318,
262,
1055,
2127,
12,
19915,
265,
666,
644,
318,
262,
285,
2286,
27625,
30,
46506,
366,
44,
2286,
27625,
1,
16034,
3084,
62,
2078,
42520,
33411,
366,
7089,
2127,
12,
35403,
265,
666,
1,
796,
705,
21169,
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
] | [
2215,
1220,
374,
14852,
318,
262,
1055,
2127,
12,
19915,
265,
666,
644,
318,
262,
285,
2286,
27625,
30,
46506,
366,
44,
2286,
27625,
1,
16034,
3084,
62,
2078,
42520,
33411,
366,
7089,
2127,
12,
35403,
265,
666,
1,
796,
705,
21169,
3... |
what was the name of the last lab test that patient 006-133605 had on this hospital visit? | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-133605' AND patient.hospitaldischargetime IS NULL)) ORDER BY lab.labresulttime DESC L... | [
10919,
373,
262,
1438,
286,
262,
938,
2248,
1332,
326,
5827,
3571,
21,
12,
1485,
15277,
20,
550,
319,
428,
4436,
3187,
30,
46506,
2248,
13,
23912,
3672,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1438,
286,
262,
938,
2248,
1332,
326,
5827,
3571,
21,
12,
1485,
15277,
20,
550,
319,
428,
4436,
3187,
30,
46506,
2248,
13,
23912,
3672,
16034,
2248,
33411,
2248,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
1... |
Name the points for paulistano | SELECT "Points" FROM table_72670 WHERE "Team" = 'Paulistano' | [
5376,
262,
2173,
329,
279,
2518,
4103,
78,
46506,
366,
40710,
1,
16034,
3084,
62,
22,
2075,
2154,
33411,
366,
15592,
1,
796,
705,
12041,
4103,
78,
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
] | [
5376,
262,
2173,
329,
279,
2518,
4103,
78,
46506,
366,
40710,
1,
16034,
3084,
62,
22,
2075,
2154,
33411,
366,
15592,
1,
796,
705,
12041,
4103,
78,
6
] |
what are the different card types, and how many transactions have been made with each?, and sort X from high to low order. | SELECT card_type_code, COUNT(*) FROM Financial_Transactions AS T1 JOIN Customers_Cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code ORDER BY card_type_code DESC | [
10919,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
21747,
290,
3297,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
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... | [
10919,
389,
262,
1180,
2657,
3858,
11,
290,
703,
867,
8945,
423,
587,
925,
351,
1123,
21747,
290,
3297,
1395,
422,
1029,
284,
1877,
1502,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
11302,
62,
8291,
4658,
7... |
count the number of patients whose insurance is self pay and procedure long title is other unilateral salpingo-oophorectomy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Self Pay" AND procedures.long_title = "Other unilateral salpingo-oophorectomy" | [
9127,
262,
1271,
286,
3871,
3025,
5096,
318,
2116,
1414,
290,
8771,
890,
3670,
318,
584,
37095,
3664,
13886,
78,
12,
78,
2522,
382,
310,
9145,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
3025,
5096,
318,
2116,
1414,
290,
8771,
890,
3670,
318,
584,
37095,
3664,
13886,
78,
12,
78,
2522,
382,
310,
9145,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... |
give me the number of patients whose year of death is less than or equal to 2122? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dod_year <= "2122.0" | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
18376,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
375,
62,
1941,
198... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
26535,
502,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
18376,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
67,
375,
62,
1941,
198... |
How many votes were there on November 10? | SELECT "Votes" FROM table_5560 WHERE "Date" = 'november 10' | [
2437,
867,
5690,
547,
612,
319,
3389,
838,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
2816,
1899,
33411,
366,
10430,
1,
796,
705,
77,
3239,
838,
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
] | [
2437,
867,
5690,
547,
612,
319,
3389,
838,
30,
46506,
366,
53,
6421,
1,
16034,
3084,
62,
2816,
1899,
33411,
366,
10430,
1,
796,
705,
77,
3239,
838,
6
] |
Name the number of years for womens doubles being diana koleva emilia dimitrova and jeliazko valkov | SELECT COUNT("Year") FROM table_19663 WHERE "Womens doubles" = 'Diana Koleva Emilia Dimitrova' AND "Mens singles" = 'Jeliazko Valkov' | [
5376,
262,
1271,
286,
812,
329,
1116,
641,
21938,
852,
288,
7484,
479,
2305,
6862,
795,
17517,
5391,
270,
305,
6862,
290,
474,
417,
17890,
7204,
410,
971,
709,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
44227,
18,
33411,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5376,
262,
1271,
286,
812,
329,
1116,
641,
21938,
852,
288,
7484,
479,
2305,
6862,
795,
17517,
5391,
270,
305,
6862,
290,
474,
417,
17890,
7204,
410,
971,
709,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
44227,
18,
33411,
3... |
Which team won on the day when attendance was 42,308? | SELECT "Result" FROM table_41931 WHERE "Attendance" = '42,308' | [
13828,
1074,
1839,
319,
262,
1110,
618,
14858,
373,
5433,
11,
21495,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
45068,
3132,
33411,
366,
8086,
437,
590,
1,
796,
705,
3682,
11,
21495,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
1839,
319,
262,
1110,
618,
14858,
373,
5433,
11,
21495,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
45068,
3132,
33411,
366,
8086,
437,
590,
1,
796,
705,
3682,
11,
21495,
6
] |
How many Total matches have a Year of career, and a Points won larger than 25? | SELECT SUM("Total matches") FROM table_5976 WHERE "Year" = 'career' AND "Points won" > '25' | [
2437,
867,
7472,
7466,
423,
257,
6280,
286,
3451,
11,
290,
257,
11045,
1839,
4025,
621,
1679,
30,
46506,
35683,
7203,
14957,
7466,
4943,
16034,
3084,
62,
3270,
4304,
33411,
366,
17688,
1,
796,
705,
6651,
263,
6,
5357,
366,
40710,
1839... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7472,
7466,
423,
257,
6280,
286,
3451,
11,
290,
257,
11045,
1839,
4025,
621,
1679,
30,
46506,
35683,
7203,
14957,
7466,
4943,
16034,
3084,
62,
3270,
4304,
33411,
366,
17688,
1,
796,
705,
6651,
263,
6,
5357,
366,
40710,
1839... |
select PostTypeId,FavoriteCount from Ports where Score>=30. | SELECT PostTypeId, FavoriteCount FROM Posts WHERE Score >= 30 | [
19738,
2947,
6030,
7390,
11,
49434,
12332,
422,
30824,
810,
15178,
29,
28,
1270,
13,
46506,
2947,
6030,
7390,
11,
33992,
12332,
16034,
12043,
33411,
15178,
18189,
1542
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
2947,
6030,
7390,
11,
49434,
12332,
422,
30824,
810,
15178,
29,
28,
1270,
13,
46506,
2947,
6030,
7390,
11,
33992,
12332,
16034,
12043,
33411,
15178,
18189,
1542
] |
What are the first and last names of the instructors who teach the top 3 number of courses? | SELECT T2.Fname, T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY COUNT(*) DESC LIMIT 3 | [
2061,
389,
262,
717,
290,
938,
3891,
286,
262,
33667,
508,
4545,
262,
1353,
513,
1271,
286,
10902,
30,
46506,
309,
17,
13,
37,
3672,
11,
309,
17,
13,
43,
3672,
16034,
37384,
5188,
7054,
309,
16,
32357,
1268,
44216,
6239,
9936,
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... | [
2061,
389,
262,
717,
290,
938,
3891,
286,
262,
33667,
508,
4545,
262,
1353,
513,
1271,
286,
10902,
30,
46506,
309,
17,
13,
37,
3672,
11,
309,
17,
13,
43,
3672,
16034,
37384,
5188,
7054,
309,
16,
32357,
1268,
44216,
6239,
9936,
7054,... |
For all storms with at least 1 death, compare the number of deaths by dates active with a bar graph. | SELECT Dates_active, Number_Deaths FROM storm WHERE Number_Deaths >= 1 | [
1890,
477,
20228,
351,
379,
1551,
352,
1918,
11,
8996,
262,
1271,
286,
7040,
416,
9667,
4075,
351,
257,
2318,
4823,
13,
46506,
44712,
62,
5275,
11,
7913,
62,
20148,
82,
16034,
6388,
33411,
7913,
62,
20148,
82,
18189,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
477,
20228,
351,
379,
1551,
352,
1918,
11,
8996,
262,
1271,
286,
7040,
416,
9667,
4075,
351,
257,
2318,
4823,
13,
46506,
44712,
62,
5275,
11,
7913,
62,
20148,
82,
16034,
6388,
33411,
7913,
62,
20148,
82,
18189,
352
] |
What series # had an original air date of november 30, 1996? | SELECT MIN(series__number) FROM table_name_52 WHERE original_air_date = "november 30, 1996" | [
2061,
2168,
1303,
550,
281,
2656,
1633,
3128,
286,
645,
303,
1916,
1542,
11,
8235,
30,
46506,
20625,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
2656,
62,
958,
62,
4475,
796,
366,
77,
3239,
1542,
11,
8235,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2168,
1303,
550,
281,
2656,
1633,
3128,
286,
645,
303,
1916,
1542,
11,
8235,
30,
46506,
20625,
7,
25076,
834,
17618,
8,
16034,
3084,
62,
3672,
62,
4309,
33411,
2656,
62,
958,
62,
4475,
796,
366,
77,
3239,
1542,
11,
8235,
1
] |
what were the three most frequently prescribed drugs at the same time in 2105 for patients who were prescribed morphine sr (ms contin)? | 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 = 'morphine sr (ms contin)' AND STRFTIME('%y', prescriptions.startda... | [
10919,
547,
262,
1115,
749,
6777,
14798,
5010,
379,
262,
976,
640,
287,
362,
13348,
329,
3871,
508,
547,
14798,
43948,
19677,
357,
907,
1261,
19427,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
547,
262,
1115,
749,
6777,
14798,
5010,
379,
262,
976,
640,
287,
362,
13348,
329,
3871,
508,
547,
14798,
43948,
19677,
357,
907,
1261,
19427,
46506,
256,
18,
13,
30349,
16034,
357,
46506,
256,
17,
13,
30349,
11,
360,
24290,
62,... |
When collingwood was the away team, what was the home team? | SELECT "Home team" FROM table_78343 WHERE "Away team" = 'collingwood' | [
2215,
2927,
278,
3822,
373,
262,
1497,
1074,
11,
644,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3695,
32118,
33411,
366,
32,
1014,
1074,
1,
796,
705,
26000,
278,
3822,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
2927,
278,
3822,
373,
262,
1497,
1074,
11,
644,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
3695,
32118,
33411,
366,
32,
1014,
1074,
1,
796,
705,
26000,
278,
3822,
6
] |
Give me a pie chart to reflect the proportion of All_Road and School_ID. | SELECT All_Road, School_ID FROM basketball_match | [
23318,
502,
257,
2508,
8262,
284,
4079,
262,
9823,
286,
1439,
62,
29197,
290,
3961,
62,
2389,
13,
46506,
1439,
62,
29197,
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
] | [
23318,
502,
257,
2508,
8262,
284,
4079,
262,
9823,
286,
1439,
62,
29197,
290,
3961,
62,
2389,
13,
46506,
1439,
62,
29197,
11,
3961,
62,
2389,
16034,
9669,
62,
15699
] |
Who is GREEKMOD 399 usually taught by ? | SELECT COUNT(instructor.name), instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'GREEKMOD' AND course.number = 399 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id ... | [
8241,
318,
402,
11587,
42,
33365,
43927,
3221,
7817,
416,
5633,
46506,
327,
28270,
7,
259,
7249,
273,
13,
3672,
828,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
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,
1... | [
8241,
318,
402,
11587,
42,
33365,
43927,
3221,
7817,
416,
5633,
46506,
327,
28270,
7,
259,
7249,
273,
13,
3672,
828,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
21187,
11,
6011,
62,
259,
7249,
273,
33411,
1781,
13,
1... |
Please compare the frequency of the customer details using a bar chart, and sort in desc by the Y-axis. | SELECT customer_details, COUNT(customer_details) FROM Customers GROUP BY customer_details ORDER BY COUNT(customer_details) DESC | [
5492,
8996,
262,
8373,
286,
262,
6491,
3307,
1262,
257,
2318,
8262,
11,
290,
3297,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
6491,
62,
36604,
11,
327,
28270,
7,
23144,
263,
62,
36604,
8,
16034,
36707,
44441,
11050,
6491,
62,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5492,
8996,
262,
8373,
286,
262,
6491,
3307,
1262,
257,
2318,
8262,
11,
290,
3297,
287,
1715,
416,
262,
575,
12,
22704,
13,
46506,
6491,
62,
36604,
11,
327,
28270,
7,
23144,
263,
62,
36604,
8,
16034,
36707,
44441,
11050,
6491,
62,
3... |
how many patients speak ptun and were born before 2065? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "PTUN" AND demographic.dob_year < "2065" | [
4919,
867,
3871,
2740,
279,
28286,
290,
547,
4642,
878,
1160,
2996,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
11571,
4944,
1,
5357,
16728,
13,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
2740,
279,
28286,
290,
547,
4642,
878,
1160,
2996,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
16129,
796,
366,
11571,
4944,
1,
5357,
16728,
13,
67,
... |
Name the candidates for 1998 | SELECT candidates FROM table_25030512_24 WHERE first_elected = "1998" | [
5376,
262,
5871,
329,
7795,
46506,
5871,
16034,
3084,
62,
9031,
22515,
1065,
62,
1731,
33411,
717,
62,
28604,
796,
366,
21113,
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,
5871,
329,
7795,
46506,
5871,
16034,
3084,
62,
9031,
22515,
1065,
62,
1731,
33411,
717,
62,
28604,
796,
366,
21113,
1
] |
tell me the insurance plan for patient 9619 when they came to the hospital last time? | SELECT admissions.insurance FROM admissions WHERE admissions.subject_id = 9619 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
33331,
502,
262,
5096,
1410,
329,
5827,
9907,
1129,
618,
484,
1625,
284,
262,
4436,
938,
640,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
9907,
1129,
5357,
5626,
25349,
13,
6381,
354,
2435,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33331,
502,
262,
5096,
1410,
329,
5827,
9907,
1129,
618,
484,
1625,
284,
262,
4436,
938,
640,
30,
46506,
25349,
13,
1040,
3874,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
9907,
1129,
5357,
5626,
25349,
13,
6381,
354,
2435,
3... |
can you list the cheapest round trip fare from ORLANDO to KANSAS CITY | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ORLANDO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city... | [
5171,
345,
1351,
262,
28918,
2835,
5296,
14505,
422,
6375,
28182,
46,
284,
509,
15037,
1921,
27993,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5171,
345,
1351,
262,
28918,
2835,
5296,
14505,
422,
6375,
28182,
46,
284,
509,
15037,
1921,
27993,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
... |
Where was the tournament won by Hale Irwin (19)? | SELECT "Location" FROM table_36619 WHERE "Winner" = 'hale irwin (19)' | [
8496,
373,
262,
7756,
1839,
416,
35056,
48470,
357,
1129,
19427,
46506,
366,
14749,
1,
16034,
3084,
62,
32459,
1129,
33411,
366,
48056,
1,
796,
705,
71,
1000,
4173,
5404,
357,
1129,
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
] | [
8496,
373,
262,
7756,
1839,
416,
35056,
48470,
357,
1129,
19427,
46506,
366,
14749,
1,
16034,
3084,
62,
32459,
1129,
33411,
366,
48056,
1,
796,
705,
71,
1000,
4173,
5404,
357,
1129,
33047
] |
In 2004 who was favourite maa? | SELECT "Character" FROM table_54076 WHERE "Category" = 'favourite maa' AND "Year" = '2004' | [
818,
5472,
508,
373,
12507,
285,
7252,
30,
46506,
366,
27275,
1,
16034,
3084,
62,
35005,
4304,
33411,
366,
27313,
1,
796,
705,
69,
29023,
578,
285,
7252,
6,
5357,
366,
17688,
1,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
5472,
508,
373,
12507,
285,
7252,
30,
46506,
366,
27275,
1,
16034,
3084,
62,
35005,
4304,
33411,
366,
27313,
1,
796,
705,
69,
29023,
578,
285,
7252,
6,
5357,
366,
17688,
1,
796,
705,
15724,
6
] |
flights from WASHINGTON to SEATTLE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SEA... | [
2704,
2337,
422,
370,
19436,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2704,
2337,
422,
370,
19436,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009... |
Car number 15 earned what time? | SELECT time_retired FROM table_17244483_1 WHERE car_no = 15 | [
9914,
1271,
1315,
7366,
644,
640,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
1558,
1731,
2598,
5999,
62,
16,
33411,
1097,
62,
3919,
796,
1315
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9914,
1271,
1315,
7366,
644,
640,
30,
46506,
640,
62,
1186,
1202,
16034,
3084,
62,
1558,
1731,
2598,
5999,
62,
16,
33411,
1097,
62,
3919,
796,
1315
] |
what is average age of patients whose marital status is widowed and insurance is private? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.insurance = "Private" | [
10919,
318,
2811,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
5096,
318,
2839,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
2389,
3913,
1961,
1,
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
] | [
10919,
318,
2811,
2479,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
5096,
318,
2839,
30,
46506,
35224,
7,
9536,
6826,
13,
496,
8,
16034,
16728,
33411,
16728,
13,
3876,
1287,
62,
13376,
796,
366,
54,
2389,
3913,
1961,
1,
5357,
... |
What is Martina Wood's Position? | SELECT "Position" FROM table_39829 WHERE "Name" = 'martina wood' | [
2061,
318,
3981,
1437,
5326,
338,
23158,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
31952,
1959,
33411,
366,
5376,
1,
796,
705,
13822,
1437,
4898,
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,
318,
3981,
1437,
5326,
338,
23158,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
31952,
1959,
33411,
366,
5376,
1,
796,
705,
13822,
1437,
4898,
6
] |
what is the city with the height (ft) more than 328.1, rank higher than 56, a height (m) of 103 and floors less than 28? | SELECT city FROM table_name_14 WHERE height__ft_ > 328.1 AND rank > 56 AND height__m_ = 103 AND floors < 28 | [
10919,
318,
262,
1748,
351,
262,
6001,
357,
701,
8,
517,
621,
39093,
13,
16,
11,
4279,
2440,
621,
7265,
11,
257,
6001,
357,
76,
8,
286,
15349,
290,
18570,
1342,
621,
2579,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
1415,
33411,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1748,
351,
262,
6001,
357,
701,
8,
517,
621,
39093,
13,
16,
11,
4279,
2440,
621,
7265,
11,
257,
6001,
357,
76,
8,
286,
15349,
290,
18570,
1342,
621,
2579,
30,
46506,
1748,
16034,
3084,
62,
3672,
62,
1415,
33411,
6... |
What package/option has sky arte hd as the television service? | SELECT package_option FROM table_name_51 WHERE television_service = "sky arte hd" | [
2061,
5301,
14,
18076,
468,
6766,
46252,
289,
67,
355,
262,
5581,
2139,
30,
46506,
5301,
62,
18076,
16034,
3084,
62,
3672,
62,
4349,
33411,
5581,
62,
15271,
796,
366,
15688,
46252,
289,
67,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5301,
14,
18076,
468,
6766,
46252,
289,
67,
355,
262,
5581,
2139,
30,
46506,
5301,
62,
18076,
16034,
3084,
62,
3672,
62,
4349,
33411,
5581,
62,
15271,
796,
366,
15688,
46252,
289,
67,
1
] |
What position is associated with the hometown of Olney, Maryland? | SELECT COUNT(position) FROM table_11677691_5 WHERE hometown = "Olney, Maryland" | [
2061,
2292,
318,
3917,
351,
262,
20994,
286,
6544,
1681,
11,
10769,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1157,
40179,
49541,
62,
20,
33411,
20994,
796,
366,
30098,
1681,
11,
10769,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2292,
318,
3917,
351,
262,
20994,
286,
6544,
1681,
11,
10769,
30,
46506,
327,
28270,
7,
9150,
8,
16034,
3084,
62,
1157,
40179,
49541,
62,
20,
33411,
20994,
796,
366,
30098,
1681,
11,
10769,
1
] |
What construction completed is named nelson tunnel/commodore waste rock? | SELECT construction_completed FROM table_name_76 WHERE name = "nelson tunnel/commodore waste rock" | [
2061,
5103,
5668,
318,
3706,
299,
10151,
13275,
14,
785,
4666,
382,
7030,
3881,
30,
46506,
5103,
62,
785,
16838,
16034,
3084,
62,
3672,
62,
4304,
33411,
1438,
796,
366,
77,
10151,
13275,
14,
785,
4666,
382,
7030,
3881,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5103,
5668,
318,
3706,
299,
10151,
13275,
14,
785,
4666,
382,
7030,
3881,
30,
46506,
5103,
62,
785,
16838,
16034,
3084,
62,
3672,
62,
4304,
33411,
1438,
796,
366,
77,
10151,
13275,
14,
785,
4666,
382,
7030,
3881,
1
] |
What is the location/attendance for the w 95-93 score? | SELECT location_attendance FROM table_name_33 WHERE score = "w 95-93" | [
2061,
318,
262,
4067,
14,
1078,
437,
590,
329,
262,
266,
6957,
12,
6052,
4776,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
796,
366,
86,
6957,
12,
6052,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4067,
14,
1078,
437,
590,
329,
262,
266,
6957,
12,
6052,
4776,
30,
46506,
4067,
62,
1078,
437,
590,
16034,
3084,
62,
3672,
62,
2091,
33411,
4776,
796,
366,
86,
6957,
12,
6052,
1
] |
WHat is the them for the order #2? | SELECT "Theme" FROM table_28486 WHERE "Order #" = '2' | [
12418,
265,
318,
262,
606,
329,
262,
1502,
1303,
17,
30,
46506,
366,
47863,
1,
16034,
3084,
62,
2078,
34251,
33411,
366,
18743,
1303,
1,
796,
705,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12418,
265,
318,
262,
606,
329,
262,
1502,
1303,
17,
30,
46506,
366,
47863,
1,
16034,
3084,
62,
2078,
34251,
33411,
366,
18743,
1303,
1,
796,
705,
17,
6
] |
Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012? | SELECT "Country" FROM table_31343 WHERE "% change" = '5.7' | [
13828,
1499,
2497,
257,
642,
13,
22,
4,
2620,
287,
4581,
319,
3230,
19277,
1022,
2813,
290,
2321,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
25838,
3559,
33411,
36521,
1487,
1,
796,
705,
20,
13,
22,
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
] | [
13828,
1499,
2497,
257,
642,
13,
22,
4,
2620,
287,
4581,
319,
3230,
19277,
1022,
2813,
290,
2321,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
25838,
3559,
33411,
36521,
1487,
1,
796,
705,
20,
13,
22,
6
] |
what was the difference in win percentage between john pawlowski and porter grant ? | SELECT (SELECT "pct." FROM table_203_593 WHERE "coach" = 'john pawlowski') - (SELECT "pct." FROM table_203_593 WHERE "coach" = 'porter grant') | [
10919,
373,
262,
3580,
287,
1592,
5873,
1022,
45610,
41827,
75,
12079,
290,
279,
4337,
7264,
5633,
46506,
357,
46506,
366,
79,
310,
526,
16034,
3084,
62,
22416,
62,
49051,
33411,
366,
1073,
620,
1,
796,
705,
30686,
41827,
75,
12079,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3580,
287,
1592,
5873,
1022,
45610,
41827,
75,
12079,
290,
279,
4337,
7264,
5633,
46506,
357,
46506,
366,
79,
310,
526,
16034,
3084,
62,
22416,
62,
49051,
33411,
366,
1073,
620,
1,
796,
705,
30686,
41827,
75,
12079,
1... |
How much money did James Seddon request? | SELECT "Money requested (\u00a3)" FROM table_67637 WHERE "Entrepreneur(s)" = 'james seddon' | [
2437,
881,
1637,
750,
3700,
311,
6048,
261,
2581,
30,
46506,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
16725,
16034,
3084,
62,
42548,
2718,
33411,
366,
14539,
10406,
333,
7,
82,
16725,
796,
705,
73,
1047,
264,
6048,
261,
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
] | [
2437,
881,
1637,
750,
3700,
311,
6048,
261,
2581,
30,
46506,
366,
26788,
9167,
357,
59,
84,
405,
64,
18,
16725,
16034,
3084,
62,
42548,
2718,
33411,
366,
14539,
10406,
333,
7,
82,
16725,
796,
705,
73,
1047,
264,
6048,
261,
6
] |
What hand guard system is used with a gas piston commando? | SELECT "Hand guards" FROM table_17836 WHERE "Name" = 'Gas Piston Commando' | [
2061,
1021,
4860,
1080,
318,
973,
351,
257,
3623,
41743,
3141,
78,
30,
46506,
366,
12885,
10942,
1,
16034,
3084,
62,
23188,
2623,
33411,
366,
5376,
1,
796,
705,
39699,
18667,
261,
47150,
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,
1021,
4860,
1080,
318,
973,
351,
257,
3623,
41743,
3141,
78,
30,
46506,
366,
12885,
10942,
1,
16034,
3084,
62,
23188,
2623,
33411,
366,
5376,
1,
796,
705,
39699,
18667,
261,
47150,
6
] |
What seasons does stella malone appear? | SELECT main_cast_seasons FROM table_12441518_1 WHERE character = "Stella Malone" | [
2061,
7028,
857,
336,
12627,
6428,
505,
1656,
30,
46506,
1388,
62,
2701,
62,
325,
2812,
16034,
3084,
62,
1065,
2598,
1314,
1507,
62,
16,
33411,
2095,
796,
366,
7447,
8466,
40735,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7028,
857,
336,
12627,
6428,
505,
1656,
30,
46506,
1388,
62,
2701,
62,
325,
2812,
16034,
3084,
62,
1065,
2598,
1314,
1507,
62,
16,
33411,
2095,
796,
366,
7447,
8466,
40735,
1
] |
Which 100 -level classes are there for Spring or Summer terms ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = cou... | [
13828,
1802,
532,
5715,
6097,
389,
612,
329,
8225,
393,
10216,
2846,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
62,
2364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1802,
532,
5715,
6097,
389,
612,
329,
8225,
393,
10216,
2846,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
62,
2364,
... |
what is the average total cost of a hospital, which includes a drug called alteplase 1 mg/2ml syr this year? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'alteplase 1 mg/2ml syr')) AND DATETIME(cost.ch... | [
10919,
318,
262,
2811,
2472,
1575,
286,
257,
4436,
11,
543,
3407,
257,
2563,
1444,
435,
660,
489,
589,
352,
10527,
14,
17,
4029,
827,
81,
428,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
2472,
1575,
286,
257,
4436,
11,
543,
3407,
257,
2563,
1444,
435,
660,
489,
589,
352,
10527,
14,
17,
4029,
827,
81,
428,
614,
30,
46506,
35224,
7,
83,
16,
13,
66,
16,
8,
16034,
357,
46506,
35683,
7,
15805,
... |
Find the name of customers who did not pay with Cash. | SELECT customer_name FROM customers WHERE payment_method <> 'Cash' | [
16742,
262,
1438,
286,
4297,
508,
750,
407,
1414,
351,
16210,
13,
46506,
6491,
62,
3672,
16034,
4297,
33411,
6074,
62,
24396,
1279,
29,
705,
35361,
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
] | [
16742,
262,
1438,
286,
4297,
508,
750,
407,
1414,
351,
16210,
13,
46506,
6491,
62,
3672,
16034,
4297,
33411,
6074,
62,
24396,
1279,
29,
705,
35361,
6
] |
Which Xenon has a Helium of 5.1? | SELECT "Xenon" FROM table_59216 WHERE "Helium" = '5.1' | [
13828,
21173,
261,
468,
257,
5053,
1505,
286,
642,
13,
16,
30,
46506,
366,
55,
268,
261,
1,
16034,
3084,
62,
3270,
20666,
33411,
366,
12621,
1505,
1,
796,
705,
20,
13,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
21173,
261,
468,
257,
5053,
1505,
286,
642,
13,
16,
30,
46506,
366,
55,
268,
261,
1,
16034,
3084,
62,
3270,
20666,
33411,
366,
12621,
1505,
1,
796,
705,
20,
13,
16,
6
] |
What original title has a year of 1978? | SELECT original_title FROM table_name_18 WHERE year = "1978" | [
2061,
2656,
3670,
468,
257,
614,
286,
15524,
30,
46506,
2656,
62,
7839,
16034,
3084,
62,
3672,
62,
1507,
33411,
614,
796,
366,
37950,
1
] | [
1,
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,
2656,
3670,
468,
257,
614,
286,
15524,
30,
46506,
2656,
62,
7839,
16034,
3084,
62,
3672,
62,
1507,
33411,
614,
796,
366,
37950,
1
] |
What are the id of students who registered course 301? | SELECT student_id FROM student_course_attendance WHERE course_id = 301 | [
2061,
389,
262,
4686,
286,
2444,
508,
6823,
1781,
25643,
30,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
1078,
437,
590,
33411,
1781,
62,
312,
796,
25643
] | [
1,
1,
1,
1,
1,
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,
4686,
286,
2444,
508,
6823,
1781,
25643,
30,
46506,
3710,
62,
312,
16034,
3710,
62,
17319,
62,
1078,
437,
590,
33411,
1781,
62,
312,
796,
25643
] |
What was the score for the tournament in Budapest? | SELECT score FROM table_name_14 WHERE tournament = "budapest" | [
2061,
373,
262,
4776,
329,
262,
7756,
287,
40959,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1415,
33411,
7756,
796,
366,
65,
463,
35746,
1
] | [
1,
1,
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,
329,
262,
7756,
287,
40959,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1415,
33411,
7756,
796,
366,
65,
463,
35746,
1
] |
How many assets can each parts be used in? List the part name and the number, and order y-axis in asc order. | SELECT part_name, COUNT(*) FROM Parts AS T1 JOIN Asset_Parts AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_name ORDER BY COUNT(*) | [
2437,
867,
6798,
460,
1123,
3354,
307,
973,
287,
30,
7343,
262,
636,
1438,
290,
262,
1271,
11,
290,
1502,
331,
12,
22704,
287,
10570,
1502,
13,
46506,
636,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
22349,
7054,
309,
16,
32357,
1268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
6798,
460,
1123,
3354,
307,
973,
287,
30,
7343,
262,
636,
1438,
290,
262,
1271,
11,
290,
1502,
331,
12,
22704,
287,
10570,
1502,
13,
46506,
636,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
22349,
7054,
309,
16,
32357,
1268... |
did the eagles play against virginia tech or alabama on september 8 ? | SELECT "opponent#" FROM table_203_490 WHERE "date" = 'september 8' | [
20839,
262,
304,
37803,
711,
1028,
21772,
544,
7261,
393,
435,
8809,
319,
384,
457,
1491,
807,
5633,
46506,
366,
10365,
3471,
2,
1,
16034,
3084,
62,
22416,
62,
31503,
33411,
366,
4475,
1,
796,
705,
325,
457,
1491,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
20839,
262,
304,
37803,
711,
1028,
21772,
544,
7261,
393,
435,
8809,
319,
384,
457,
1491,
807,
5633,
46506,
366,
10365,
3471,
2,
1,
16034,
3084,
62,
22416,
62,
31503,
33411,
366,
4475,
1,
796,
705,
325,
457,
1491,
807,
6
] |
What is the giant slalom with a 37 super g? | SELECT "Giant Slalom" FROM table_40854 WHERE "Super G" = '37' | [
2061,
318,
262,
6175,
1017,
282,
296,
351,
257,
5214,
2208,
308,
30,
46506,
366,
38,
3014,
3454,
282,
296,
1,
16034,
3084,
62,
26200,
4051,
33411,
366,
12442,
402,
1,
796,
705,
2718,
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,
6175,
1017,
282,
296,
351,
257,
5214,
2208,
308,
30,
46506,
366,
38,
3014,
3454,
282,
296,
1,
16034,
3084,
62,
26200,
4051,
33411,
366,
12442,
402,
1,
796,
705,
2718,
6
] |
What is the Canadian Kennel Club Toy Dogs Group with the australian silky terrier as the Australian National Kennel Council Toy Dogs Group breed? | SELECT canadian_kennel_club_toy_dogs_group FROM table_name_49 WHERE australian_national_kennel_council_toy_dogs_group = "australian silky terrier" | [
2061,
318,
262,
5398,
7158,
417,
6289,
10977,
21367,
4912,
351,
262,
38132,
1373,
666,
3313,
2584,
1059,
5277,
355,
262,
6638,
2351,
7158,
417,
4281,
10977,
21367,
4912,
15939,
30,
46506,
460,
18425,
62,
74,
1697,
417,
62,
18664,
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,
5398,
7158,
417,
6289,
10977,
21367,
4912,
351,
262,
38132,
1373,
666,
3313,
2584,
1059,
5277,
355,
262,
6638,
2351,
7158,
417,
4281,
10977,
21367,
4912,
15939,
30,
46506,
460,
18425,
62,
74,
1697,
417,
62,
18664,
62,
... |
Who is the Player for School/Club Team Illinois? | SELECT "Player" FROM table_40972 WHERE "School/Club Team" = 'illinois' | [
8241,
318,
262,
7853,
329,
3961,
14,
42350,
4816,
9486,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
29416,
4761,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
359,
8981,
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
] | [
8241,
318,
262,
7853,
329,
3961,
14,
42350,
4816,
9486,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
29416,
4761,
33411,
366,
26130,
14,
42350,
4816,
1,
796,
705,
359,
8981,
6
] |
HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007? | SELECT "Percentage of global total" FROM table_16585 WHERE "Carbon dioxide emissions per year (Tons per person) (2007)" = '4.9' | [
37181,
45859,
3180,
3336,
19878,
43960,
11879,
3963,
10188,
9864,
1847,
36247,
17228,
16744,
11053,
3268,
3336,
31404,
40405,
14603,
4810,
3727,
9598,
1961,
604,
13,
24,
309,
19213,
19878,
46740,
3268,
4343,
30,
46506,
366,
31905,
496,
286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
37181,
45859,
3180,
3336,
19878,
43960,
11879,
3963,
10188,
9864,
1847,
36247,
17228,
16744,
11053,
3268,
3336,
31404,
40405,
14603,
4810,
3727,
9598,
1961,
604,
13,
24,
309,
19213,
19878,
46740,
3268,
4343,
30,
46506,
366,
31905,
496,
286,... |
have patient 1114 produce any chest tube #1 on this month/23? | SELECT COUNT(*) > 0 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 = 1114)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'chest tube #1' ... | [
14150,
5827,
13374,
19,
4439,
597,
7721,
12403,
1303,
16,
319,
428,
1227,
14,
1954,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
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... | [
14150,
5827,
13374,
19,
4439,
597,
7721,
12403,
1303,
16,
319,
428,
1227,
14,
1954,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
... |
Which opponent has an attendance of 17,015? | SELECT "Opponent" FROM table_38058 WHERE "Attendance" = '17,015' | [
13828,
6125,
468,
281,
14858,
286,
1596,
11,
25150,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
23734,
3365,
33411,
366,
8086,
437,
590,
1,
796,
705,
1558,
11,
25150,
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
] | [
13828,
6125,
468,
281,
14858,
286,
1596,
11,
25150,
30,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
23734,
3365,
33411,
366,
8086,
437,
590,
1,
796,
705,
1558,
11,
25150,
6
] |
Name the margin for 2002 | SELECT "Margin" FROM table_71161 WHERE "Year" = '2002' | [
5376,
262,
10330,
329,
6244,
46506,
366,
24428,
259,
1,
16034,
3084,
62,
22,
1157,
5333,
33411,
366,
17688,
1,
796,
705,
16942,
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
] | [
5376,
262,
10330,
329,
6244,
46506,
366,
24428,
259,
1,
16034,
3084,
62,
22,
1157,
5333,
33411,
366,
17688,
1,
796,
705,
16942,
6
] |
Return a bar chart about the distribution of meter_700 and ID , sort by the y-axis in desc. | SELECT meter_700, ID FROM swimmer ORDER BY ID DESC | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
9879,
290,
4522,
837,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
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
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
16430,
62,
9879,
290,
4522,
837,
3297,
416,
262,
331,
12,
22704,
287,
1715,
13,
46506,
16430,
62,
9879,
11,
4522,
16034,
9422,
647,
38678,
11050,
4522,
22196,
34
] |
tell me the number of times they placed first . | SELECT COUNT(*) FROM table_204_622 WHERE "position" = 1 | [
33331,
502,
262,
1271,
286,
1661,
484,
4624,
717,
764,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
21,
1828,
33411,
366,
9150,
1,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
33331,
502,
262,
1271,
286,
1661,
484,
4624,
717,
764,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
21,
1828,
33411,
366,
9150,
1,
796,
352
] |
Which Surface has a Score of 2009 wta tour? | SELECT surface FROM table_name_13 WHERE score = "2009 wta tour" | [
13828,
20321,
468,
257,
15178,
286,
3717,
266,
8326,
4205,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
10531,
266,
8326,
4205,
1
] | [
1,
1,
1,
1,
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,
20321,
468,
257,
15178,
286,
3717,
266,
8326,
4205,
30,
46506,
4417,
16034,
3084,
62,
3672,
62,
1485,
33411,
4776,
796,
366,
10531,
266,
8326,
4205,
1
] |
Tell me the total number of gold for bronze more than 0 and total more than 100 | SELECT COUNT("Gold") FROM table_31618 WHERE "Bronze" > '0' AND "Rank" = 'total' AND "Total" > '100' | [
24446,
502,
262,
2472,
1271,
286,
3869,
329,
22101,
517,
621,
657,
290,
2472,
517,
621,
1802,
46506,
327,
28270,
7203,
13306,
4943,
16034,
3084,
62,
33400,
1507,
33411,
366,
18760,
2736,
1,
1875,
705,
15,
6,
5357,
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
] | [
24446,
502,
262,
2472,
1271,
286,
3869,
329,
22101,
517,
621,
657,
290,
2472,
517,
621,
1802,
46506,
327,
28270,
7203,
13306,
4943,
16034,
3084,
62,
33400,
1507,
33411,
366,
18760,
2736,
1,
1875,
705,
15,
6,
5357,
366,
27520,
1,
796,
... |
What is the average number of matches of leonardo in seasons after 1? | SELECT AVG("Matches") FROM table_46765 WHERE "Name" = 'leonardo' AND "Seasons" > '1' | [
2061,
318,
262,
2811,
1271,
286,
7466,
286,
443,
261,
13109,
287,
7028,
706,
352,
30,
46506,
35224,
7203,
19044,
2052,
4943,
16034,
3084,
62,
24669,
2996,
33411,
366,
5376,
1,
796,
705,
38970,
13109,
6,
5357,
366,
4653,
2812,
1,
1875,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
7466,
286,
443,
261,
13109,
287,
7028,
706,
352,
30,
46506,
35224,
7203,
19044,
2052,
4943,
16034,
3084,
62,
24669,
2996,
33411,
366,
5376,
1,
796,
705,
38970,
13109,
6,
5357,
366,
4653,
2812,
1,
1875,... |
How many storeys in Calgary during 1975-1976? | SELECT "Storeys" FROM table_5244 WHERE "City" = 'calgary' AND "Years" = '1975-1976' | [
2437,
867,
3650,
893,
287,
17842,
1141,
15231,
12,
38108,
30,
46506,
366,
22658,
893,
1,
16034,
3084,
62,
20,
25707,
33411,
366,
14941,
1,
796,
705,
9948,
14849,
6,
5357,
366,
40630,
1,
796,
705,
38449,
12,
38108,
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
] | [
2437,
867,
3650,
893,
287,
17842,
1141,
15231,
12,
38108,
30,
46506,
366,
22658,
893,
1,
16034,
3084,
62,
20,
25707,
33411,
366,
14941,
1,
796,
705,
9948,
14849,
6,
5357,
366,
40630,
1,
796,
705,
38449,
12,
38108,
6
] |
what is the number of patients whose age is less than 43 and diagnoses short title is hypertension nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "43" AND diagnoses.short_title = "Hypertension NOS" | [
10919,
318,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
5946,
290,
40567,
1790,
3670,
318,
37454,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
318,
1342,
621,
5946,
290,
40567,
1790,
3670,
318,
37454,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
... |
what is patient 027-144847's gender? | SELECT DISTINCT patient.gender FROM patient WHERE patient.uniquepid = '027-144847' | [
10919,
318,
5827,
657,
1983,
12,
1415,
2780,
2857,
338,
5279,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1415,
2780,
2857,
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
] | [
10919,
318,
5827,
657,
1983,
12,
1415,
2780,
2857,
338,
5279,
30,
46506,
360,
8808,
1268,
4177,
5827,
13,
8388,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
44698,
12,
1415,
2780,
2857,
6
] |
need a flight from PITTSBURGH to DENVER | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DEN... | [
31227,
257,
5474,
422,
49040,
4694,
38926,
17511,
284,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
31227,
257,
5474,
422,
49040,
4694,
38926,
17511,
284,
37692,
28884,
36,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
31600,
154... |
What is the relationship between CID and DNO ? | SELECT CID, DNO FROM Course ORDER BY Credits | [
2061,
318,
262,
2776,
1022,
327,
2389,
290,
360,
15285,
5633,
46506,
327,
2389,
11,
360,
15285,
16034,
20537,
38678,
11050,
29501
] | [
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,
2776,
1022,
327,
2389,
290,
360,
15285,
5633,
46506,
327,
2389,
11,
360,
15285,
16034,
20537,
38678,
11050,
29501
] |
A bar chart shows how many locations, and order in ascending by the X-axis please. | SELECT Location, COUNT(Location) FROM station GROUP BY Location ORDER BY Location | [
32,
2318,
8262,
2523,
703,
867,
7064,
11,
290,
1502,
287,
41988,
416,
262,
1395,
12,
22704,
3387,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
4429,
44441,
11050,
13397,
38678,
11050,
13397
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
703,
867,
7064,
11,
290,
1502,
287,
41988,
416,
262,
1395,
12,
22704,
3387,
13,
46506,
13397,
11,
327,
28270,
7,
14749,
8,
16034,
4429,
44441,
11050,
13397,
38678,
11050,
13397
] |
What is the sum of goals scored for the Al Wahda team with less than 4 drawn and more than 22 plays? | SELECT SUM(goals_for) FROM table_name_6 WHERE drawn < 4 AND team = "al wahda" AND played > 22 | [
2061,
318,
262,
2160,
286,
4661,
7781,
329,
262,
978,
35893,
6814,
1074,
351,
1342,
621,
604,
7428,
290,
517,
621,
2534,
5341,
30,
46506,
35683,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
21,
33411,
7428,
1279,
604,
5357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
4661,
7781,
329,
262,
978,
35893,
6814,
1074,
351,
1342,
621,
604,
7428,
290,
517,
621,
2534,
5341,
30,
46506,
35683,
7,
2188,
874,
62,
1640,
8,
16034,
3084,
62,
3672,
62,
21,
33411,
7428,
1279,
604,
5357,... |
What is 2011, when 2010 is 'WTA Premier 5 Tournaments'? | SELECT 2011 FROM table_name_49 WHERE 2010 = "wta premier 5 tournaments" | [
2061,
318,
2813,
11,
618,
3050,
318,
705,
54,
5603,
9952,
642,
309,
16950,
30960,
46506,
2813,
16034,
3084,
62,
3672,
62,
2920,
33411,
3050,
796,
366,
86,
8326,
18256,
642,
18130,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2813,
11,
618,
3050,
318,
705,
54,
5603,
9952,
642,
309,
16950,
30960,
46506,
2813,
16034,
3084,
62,
3672,
62,
2920,
33411,
3050,
796,
366,
86,
8326,
18256,
642,
18130,
1
] |
When galaxy angel aa is the title what was the series? | SELECT "Series" FROM table_1626 WHERE "Title" = 'Galaxy Angel AA' | [
2215,
16161,
18304,
257,
64,
318,
262,
3670,
644,
373,
262,
2168,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
1433,
2075,
33411,
366,
19160,
1,
796,
705,
26552,
6969,
3905,
15923,
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
] | [
2215,
16161,
18304,
257,
64,
318,
262,
3670,
644,
373,
262,
2168,
30,
46506,
366,
27996,
1,
16034,
3084,
62,
1433,
2075,
33411,
366,
19160,
1,
796,
705,
26552,
6969,
3905,
15923,
6
] |
What was the money value that went along with the score of 68-67-69-76=280? | SELECT money___$__ FROM table_name_42 WHERE score = 68 - 67 - 69 - 76 = 280 | [
2061,
373,
262,
1637,
1988,
326,
1816,
1863,
351,
262,
4776,
286,
8257,
12,
3134,
12,
3388,
12,
4304,
28,
21033,
30,
46506,
1637,
17569,
3,
834,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
8257,
532,
8275,
532,
8644,
532,
868... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1637,
1988,
326,
1816,
1863,
351,
262,
4776,
286,
8257,
12,
3134,
12,
3388,
12,
4304,
28,
21033,
30,
46506,
1637,
17569,
3,
834,
16034,
3084,
62,
3672,
62,
3682,
33411,
4776,
796,
8257,
532,
8275,
532,
8644,
532,
868... |
count the number of patients whose diagnoses short title is surg compl-body syst nec and procedure short title is tonsil&adenoid biopsy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE diagnoses.short_title = "Surg compl-body syst NEC" AND procedures.short_title = "Tonsil&adenoid biopsy" | [
9127,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
19797,
2299,
12,
2618,
827,
301,
27576,
290,
8771,
1790,
3670,
318,
10860,
346,
5,
40780,
1868,
3182,
44522,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
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... | [
9127,
262,
1271,
286,
3871,
3025,
40567,
1790,
3670,
318,
19797,
2299,
12,
2618,
827,
301,
27576,
290,
8771,
1790,
3670,
318,
10860,
346,
5,
40780,
1868,
3182,
44522,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
6... |
what's the record with date being december 29 | SELECT "Record" FROM table_877 WHERE "Date" = 'December 29' | [
10919,
338,
262,
1700,
351,
3128,
852,
390,
3273,
2808,
46506,
366,
23739,
1,
16034,
3084,
62,
42802,
33411,
366,
10430,
1,
796,
705,
20588,
2808,
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,
338,
262,
1700,
351,
3128,
852,
390,
3273,
2808,
46506,
366,
23739,
1,
16034,
3084,
62,
42802,
33411,
366,
10430,
1,
796,
705,
20588,
2808,
6
] |
Return a histogram on how many students live in each city?, and list the total number in ascending order. | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY COUNT(*) | [
13615,
257,
1554,
21857,
319,
703,
867,
2444,
2107,
287,
1123,
1748,
21747,
290,
1351,
262,
2472,
1271,
287,
41988,
1502,
13,
46506,
1748,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
13613,
44441,
11050,
1748,
62,
8189,
38678,
11050,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1554,
21857,
319,
703,
867,
2444,
2107,
287,
1123,
1748,
21747,
290,
1351,
262,
2472,
1271,
287,
41988,
1502,
13,
46506,
1748,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
13613,
44441,
11050,
1748,
62,
8189,
38678,
11050,
327... |
How many patients were admitted to the hospital before the year 2182 and had a lab test protein, total? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2182" AND lab.label = "Protein, Total" | [
2437,
867,
3871,
547,
6848,
284,
262,
4436,
878,
262,
614,
362,
24294,
290,
550,
257,
2248,
1332,
7532,
11,
2472,
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... | [
2437,
867,
3871,
547,
6848,
284,
262,
4436,
878,
262,
614,
362,
24294,
290,
550,
257,
2248,
1332,
7532,
11,
2472,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
What is the toal rec with more than 27 and averages less than 10.8 and TDs more than 6? | SELECT COUNT("Long") FROM table_55158 WHERE "Rec." > '27' AND "Avg." < '10.8' AND "TD's" > '6' | [
2061,
318,
262,
284,
282,
664,
351,
517,
621,
2681,
290,
25694,
1342,
621,
838,
13,
23,
290,
42873,
517,
621,
718,
30,
46506,
327,
28270,
7203,
14617,
4943,
16034,
3084,
62,
2816,
21273,
33411,
366,
6690,
526,
1875,
705,
1983,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
284,
282,
664,
351,
517,
621,
2681,
290,
25694,
1342,
621,
838,
13,
23,
290,
42873,
517,
621,
718,
30,
46506,
327,
28270,
7203,
14617,
4943,
16034,
3084,
62,
2816,
21273,
33411,
366,
6690,
526,
1875,
705,
1983,
6,
53... |
What is the transfer window with a status of transfer from the country of Wal? | SELECT transfer_window FROM table_name_65 WHERE status = "transfer" AND country = "wal" | [
2061,
318,
262,
4351,
4324,
351,
257,
3722,
286,
4351,
422,
262,
1499,
286,
6445,
30,
46506,
4351,
62,
17497,
16034,
3084,
62,
3672,
62,
2996,
33411,
3722,
796,
366,
39437,
1,
5357,
1499,
796,
366,
16783,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4351,
4324,
351,
257,
3722,
286,
4351,
422,
262,
1499,
286,
6445,
30,
46506,
4351,
62,
17497,
16034,
3084,
62,
3672,
62,
2996,
33411,
3722,
796,
366,
39437,
1,
5357,
1499,
796,
366,
16783,
1
] |
Find the number of the category descriptions of the products whose descriptions include letter 't', I want to sort y-axis in descending order. | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY COUNT(product_category_description) DESC | [
16742,
262,
1271,
286,
262,
6536,
16969,
286,
262,
3186,
3025,
16969,
2291,
3850,
705,
83,
3256,
314,
765,
284,
3297,
331,
12,
22704,
287,
31491,
1502,
13,
46506,
1720,
62,
22872,
62,
11213,
11,
327,
28270,
7,
11167,
62,
22872,
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... | [
16742,
262,
1271,
286,
262,
6536,
16969,
286,
262,
3186,
3025,
16969,
2291,
3850,
705,
83,
3256,
314,
765,
284,
3297,
331,
12,
22704,
287,
31491,
1502,
13,
46506,
1720,
62,
22872,
62,
11213,
11,
327,
28270,
7,
11167,
62,
22872,
62,
... |
Name the number at march when class is j66 | SELECT "Number at March" FROM table_20186 WHERE "Class" = 'J66' | [
5376,
262,
1271,
379,
9960,
618,
1398,
318,
474,
2791,
46506,
366,
15057,
379,
2805,
1,
16034,
3084,
62,
1264,
4521,
33411,
366,
9487,
1,
796,
705,
41,
2791,
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
] | [
5376,
262,
1271,
379,
9960,
618,
1398,
318,
474,
2791,
46506,
366,
15057,
379,
2805,
1,
16034,
3084,
62,
1264,
4521,
33411,
366,
9487,
1,
796,
705,
41,
2791,
6
] |
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes? | SELECT "Adelaide" FROM table_68016 WHERE "Melbourne" = 'yes' AND "Auckland" = 'yes' AND "Perth" = 'yes' | [
13828,
27139,
468,
257,
14819,
286,
3763,
11,
281,
30422,
286,
3763,
11,
290,
257,
29913,
286,
3763,
30,
46506,
366,
2782,
25078,
1,
16034,
3084,
62,
3104,
27037,
33411,
366,
21102,
12544,
1,
796,
705,
8505,
6,
5357,
366,
32,
28789,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27139,
468,
257,
14819,
286,
3763,
11,
281,
30422,
286,
3763,
11,
290,
257,
29913,
286,
3763,
30,
46506,
366,
2782,
25078,
1,
16034,
3084,
62,
3104,
27037,
33411,
366,
21102,
12544,
1,
796,
705,
8505,
6,
5357,
366,
32,
28789,
... |
what is maximum days of hospital stay of patients whose admission year is greater than or equal to 2176? | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admityear >= "2176" | [
10919,
318,
5415,
1528,
286,
4436,
2652,
286,
3871,
3025,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
24096,
30,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
18189,
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
] | [
10919,
318,
5415,
1528,
286,
4436,
2652,
286,
3871,
3025,
13938,
614,
318,
3744,
621,
393,
4961,
284,
362,
24096,
30,
46506,
25882,
7,
9536,
6826,
13,
12545,
62,
31712,
8,
16034,
16728,
33411,
16728,
13,
324,
76,
414,
451,
18189,
366,... |
how many male patients had open and other replacement of aortic valve with tissue graft procedure? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.long_title = "Open and other replacement of aortic valve with tissue graft" | [
4919,
867,
4257,
3871,
550,
1280,
290,
584,
9014,
286,
257,
419,
291,
22580,
351,
10712,
38455,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
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... | [
4919,
867,
4257,
3871,
550,
1280,
290,
584,
9014,
286,
257,
419,
291,
22580,
351,
10712,
38455,
8771,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16... |
what is the average % coal when the % natural gas is more than 11.6, electricity production (kw/h, billion) is less than 1,053 and % hydropower is 32? | SELECT AVG("% Coal") FROM table_59302 WHERE "% Natural gas" > '11.6' AND "Electricity production (Kw/h, billion)" < '1,053' AND "% Hydropower" = '32' | [
10919,
318,
262,
2811,
4064,
5655,
618,
262,
4064,
3288,
3623,
318,
517,
621,
1367,
13,
21,
11,
8744,
3227,
357,
46265,
14,
71,
11,
2997,
8,
318,
1342,
621,
352,
11,
2713,
18,
290,
4064,
7409,
1773,
789,
318,
3933,
30,
46506,
3522... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2811,
4064,
5655,
618,
262,
4064,
3288,
3623,
318,
517,
621,
1367,
13,
21,
11,
8744,
3227,
357,
46265,
14,
71,
11,
2997,
8,
318,
1342,
621,
352,
11,
2713,
18,
290,
4064,
7409,
1773,
789,
318,
3933,
30,
46506,
3522... |
Which Object type has a Constellation of cancer? | SELECT object_type FROM table_name_58 WHERE constellation = "cancer" | [
13828,
9515,
2099,
468,
257,
4757,
28828,
286,
4890,
30,
46506,
2134,
62,
4906,
16034,
3084,
62,
3672,
62,
3365,
33411,
38712,
796,
366,
48870,
1
] | [
1,
1,
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,
9515,
2099,
468,
257,
4757,
28828,
286,
4890,
30,
46506,
2134,
62,
4906,
16034,
3084,
62,
3672,
62,
3365,
33411,
38712,
796,
366,
48870,
1
] |
What is Moving, when Type is 'Transfer', and when Name is 'Andy Webster'? | SELECT "Moving from" FROM table_47072 WHERE "Type" = 'transfer' AND "Name" = 'andy webster' | [
2061,
318,
26768,
11,
618,
5994,
318,
705,
43260,
3256,
290,
618,
6530,
318,
705,
35314,
31890,
30960,
46506,
366,
33622,
422,
1,
16034,
3084,
62,
27790,
4761,
33411,
366,
6030,
1,
796,
705,
39437,
6,
5357,
366,
5376,
1,
796,
705,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
26768,
11,
618,
5994,
318,
705,
43260,
3256,
290,
618,
6530,
318,
705,
35314,
31890,
30960,
46506,
366,
33622,
422,
1,
16034,
3084,
62,
27790,
4761,
33411,
366,
6030,
1,
796,
705,
39437,
6,
5357,
366,
5376,
1,
796,
705,
1... |
In 2007, how many points were won when more than 5 matches were played? | SELECT COUNT("Points won") FROM table_31922 WHERE "Year" = '2007' AND "Total matches" > '5' | [
818,
4343,
11,
703,
867,
2173,
547,
1839,
618,
517,
621,
642,
7466,
547,
2826,
30,
46506,
327,
28270,
7203,
40710,
1839,
4943,
16034,
3084,
62,
35175,
1828,
33411,
366,
17688,
1,
796,
705,
12726,
6,
5357,
366,
14957,
7466,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4343,
11,
703,
867,
2173,
547,
1839,
618,
517,
621,
642,
7466,
547,
2826,
30,
46506,
327,
28270,
7203,
40710,
1839,
4943,
16034,
3084,
62,
35175,
1828,
33411,
366,
17688,
1,
796,
705,
12726,
6,
5357,
366,
14957,
7466,
1,
1875,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.