instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up? | SELECT runner_up FROM table_name_14 WHERE score = "kapunda 7-7-49 angaston 6-8-44" | [
2215,
262,
15178,
373,
479,
499,
46535,
767,
12,
22,
12,
2920,
3550,
45966,
718,
12,
23,
12,
2598,
11,
508,
373,
262,
21529,
12,
929,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
1415,
33411,
4776,
796,
366,
74,
499,
4653... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15178,
373,
479,
499,
46535,
767,
12,
22,
12,
2920,
3550,
45966,
718,
12,
23,
12,
2598,
11,
508,
373,
262,
21529,
12,
929,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
1415,
33411,
4776,
796,
366,
74,
499,
4653... |
What year did Barry Sheene win the 125 cc? | SELECT "Year" FROM table_47662 WHERE "125 cc" = 'barry sheene' | [
2061,
614,
750,
14488,
1375,
1734,
1592,
262,
13151,
36624,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2857,
39380,
33411,
366,
11623,
36624,
1,
796,
705,
5657,
563,
673,
1734,
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,
614,
750,
14488,
1375,
1734,
1592,
262,
13151,
36624,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
2857,
39380,
33411,
366,
11623,
36624,
1,
796,
705,
5657,
563,
673,
1734,
6
] |
What is the name of the nurse has the most appointments? | SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
15849,
468,
262,
749,
23976,
30,
46506,
309,
16,
13,
3672,
16034,
15849,
7054,
309,
16,
32357,
1268,
12557,
7054,
309,
17,
6177,
309,
16,
13,
7033,
1453,
312,
796,
309,
17,
13,
3866,
21999,
12321,
444... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15849,
468,
262,
749,
23976,
30,
46506,
309,
16,
13,
3672,
16034,
15849,
7054,
309,
16,
32357,
1268,
12557,
7054,
309,
17,
6177,
309,
16,
13,
7033,
1453,
312,
796,
309,
17,
13,
3866,
21999,
12321,
444... |
What is the part number for s-spec number sk096? | SELECT "Part Number" FROM table_1212 WHERE "S-Spec Number" = 'SK096' | [
2061,
318,
262,
636,
1271,
329,
264,
12,
16684,
1271,
1341,
2931,
21,
30,
46506,
366,
7841,
7913,
1,
16034,
3084,
62,
1065,
1065,
33411,
366,
50,
12,
22882,
7913,
1,
796,
705,
18831,
2931,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
636,
1271,
329,
264,
12,
16684,
1271,
1341,
2931,
21,
30,
46506,
366,
7841,
7913,
1,
16034,
3084,
62,
1065,
1065,
33411,
366,
50,
12,
22882,
7913,
1,
796,
705,
18831,
2931,
21,
6
] |
What is the average tonnage of the ship named proletarij? | SELECT AVG(tonnage) FROM table_name_81 WHERE name_of_ship = "proletarij" | [
2061,
318,
262,
2811,
5680,
77,
496,
286,
262,
4074,
3706,
22758,
39010,
30,
46506,
35224,
7,
1122,
77,
496,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
1438,
62,
1659,
62,
6720,
796,
366,
1676,
1616,
39010,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5680,
77,
496,
286,
262,
4074,
3706,
22758,
39010,
30,
46506,
35224,
7,
1122,
77,
496,
8,
16034,
3084,
62,
3672,
62,
6659,
33411,
1438,
62,
1659,
62,
6720,
796,
366,
1676,
1616,
39010,
1
] |
How many different municipal mayors were there in the municipality with an area of 42.66 km2? | SELECT COUNT("Municipal Mayor") FROM table_24553 WHERE "Area (km\u00b2)" = '42.66' | [
2437,
867,
1180,
13474,
44660,
547,
612,
287,
262,
27264,
351,
281,
1989,
286,
5433,
13,
2791,
10571,
17,
30,
46506,
327,
28270,
7203,
44,
9462,
282,
10106,
4943,
16034,
3084,
62,
1731,
48096,
33411,
366,
30547,
357,
13276,
59,
84,
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
] | [
2437,
867,
1180,
13474,
44660,
547,
612,
287,
262,
27264,
351,
281,
1989,
286,
5433,
13,
2791,
10571,
17,
30,
46506,
327,
28270,
7203,
44,
9462,
282,
10106,
4943,
16034,
3084,
62,
1731,
48096,
33411,
366,
30547,
357,
13276,
59,
84,
40... |
Which s390x contains a yes ia64 and a no for alpha? | SELECT s390x FROM table_name_21 WHERE ia64 = "yes" AND alpha = "no" | [
13828,
264,
25964,
87,
4909,
257,
3763,
220,
544,
2414,
290,
257,
645,
329,
17130,
30,
46506,
264,
25964,
87,
16034,
3084,
62,
3672,
62,
2481,
33411,
220,
544,
2414,
796,
366,
8505,
1,
5357,
17130,
796,
366,
3919,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
264,
25964,
87,
4909,
257,
3763,
220,
544,
2414,
290,
257,
645,
329,
17130,
30,
46506,
264,
25964,
87,
16034,
3084,
62,
3672,
62,
2481,
33411,
220,
544,
2414,
796,
366,
8505,
1,
5357,
17130,
796,
366,
3919,
1
] |
What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady? | SELECT "Role" FROM table_67266 WHERE "Leading lady" = 'sheila terry' AND "Title" = 'the lawless frontier' | [
2061,
2597,
750,
1757,
13329,
711,
287,
383,
3854,
1203,
23281,
11,
351,
49627,
14286,
355,
262,
3756,
10846,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
3134,
25540,
33411,
366,
20451,
278,
10846,
1,
796,
705,
7091,
10102,
1059,
563,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2597,
750,
1757,
13329,
711,
287,
383,
3854,
1203,
23281,
11,
351,
49627,
14286,
355,
262,
3756,
10846,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
3134,
25540,
33411,
366,
20451,
278,
10846,
1,
796,
705,
7091,
10102,
1059,
563,
... |
AWS Questions: Time until Answer. | SELECT Question.Id, MIN(Question.CreationDate) AS Question_date, MIN(Answer.CreationDate) AS Answer_date FROM Posts AS Question LEFT OUTER JOIN Posts AS Answer ON Question.Id = Answer.ParentId WHERE Question.PostTypeId = 1 AND Question.ClosedDate IS NULL AND (Question.Tags LIKE '%<amazon-%' OR Question.Tags LIKE '%<aws... | [
12298,
50,
20396,
25,
3862,
1566,
23998,
13,
46506,
18233,
13,
7390,
11,
20625,
7,
24361,
13,
12443,
341,
10430,
8,
7054,
18233,
62,
4475,
11,
20625,
7,
33706,
13,
12443,
341,
10430,
8,
7054,
23998,
62,
4475,
16034,
12043,
7054,
18233... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12298,
50,
20396,
25,
3862,
1566,
23998,
13,
46506,
18233,
13,
7390,
11,
20625,
7,
24361,
13,
12443,
341,
10430,
8,
7054,
18233,
62,
4475,
11,
20625,
7,
33706,
13,
12443,
341,
10430,
8,
7054,
23998,
62,
4475,
16034,
12043,
7054,
18233... |
who has presented the most seasons ? | SELECT "main presenter" FROM table_203_397 GROUP BY "main presenter" ORDER BY COUNT("series") DESC LIMIT 1 | [
8727,
468,
5545,
262,
749,
7028,
5633,
46506,
366,
12417,
39597,
1,
16034,
3084,
62,
22416,
62,
33372,
44441,
11050,
366,
12417,
39597,
1,
38678,
11050,
327,
28270,
7203,
25076,
4943,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
468,
5545,
262,
749,
7028,
5633,
46506,
366,
12417,
39597,
1,
16034,
3084,
62,
22416,
62,
33372,
44441,
11050,
366,
12417,
39597,
1,
38678,
11050,
327,
28270,
7203,
25076,
4943,
22196,
34,
27564,
2043,
352
] |
What year had a score of 6 7(5), 2 6 and opponent of Brenda Schultz-Mccarthy? | SELECT "Year" FROM table_64680 WHERE "Opponent in the final" = 'brenda schultz-mccarthy' AND "Score" = '6–7(5), 2–6' | [
2061,
614,
550,
257,
4776,
286,
718,
767,
7,
20,
828,
362,
718,
290,
6125,
286,
49495,
26530,
12,
44,
535,
18270,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
27720,
1795,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
4679,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
614,
550,
257,
4776,
286,
718,
767,
7,
20,
828,
362,
718,
290,
6125,
286,
49495,
26530,
12,
44,
535,
18270,
30,
46506,
366,
17688,
1,
16034,
3084,
62,
27720,
1795,
33411,
366,
27524,
3471,
287,
262,
2457,
1,
796,
705,
4679,
... |
How many departments for each building? Draw a bar chart, and rank in asc by the how many building. | SELECT building, COUNT(building) FROM department GROUP BY building ORDER BY COUNT(building) | [
2437,
867,
13346,
329,
1123,
2615,
30,
15315,
257,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
703,
867,
2615,
13,
46506,
2615,
11,
327,
28270,
7,
16894,
8,
16034,
5011,
44441,
11050,
2615,
38678,
11050,
327,
28270,
7,
16894,
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
] | [
2437,
867,
13346,
329,
1123,
2615,
30,
15315,
257,
2318,
8262,
11,
290,
4279,
287,
10570,
416,
262,
703,
867,
2615,
13,
46506,
2615,
11,
327,
28270,
7,
16894,
8,
16034,
5011,
44441,
11050,
2615,
38678,
11050,
327,
28270,
7,
16894,
8
] |
When did the episode originally air with a nick production number of 945? | SELECT original_air_date FROM table_2655016_10 WHERE nick_prod__number = 945 | [
2215,
750,
262,
4471,
6198,
1633,
351,
257,
14428,
3227,
1271,
286,
860,
2231,
30,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
2075,
2816,
27037,
62,
940,
33411,
14428,
62,
1676,
67,
834,
17618,
796,
860,
2231
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
750,
262,
4471,
6198,
1633,
351,
257,
14428,
3227,
1271,
286,
860,
2231,
30,
46506,
2656,
62,
958,
62,
4475,
16034,
3084,
62,
2075,
2816,
27037,
62,
940,
33411,
14428,
62,
1676,
67,
834,
17618,
796,
860,
2231
] |
Which series occurred when the 7800 was 5040.00? | SELECT "Indonesia Super Series 2008" FROM table_27680 WHERE "7800.00" = '5040.00' | [
13828,
2168,
5091,
618,
262,
767,
7410,
373,
2026,
1821,
13,
405,
30,
46506,
366,
5497,
1952,
544,
3115,
7171,
3648,
1,
16034,
3084,
62,
27988,
1795,
33411,
366,
3695,
405,
13,
405,
1,
796,
705,
1120,
1821,
13,
405,
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
] | [
13828,
2168,
5091,
618,
262,
767,
7410,
373,
2026,
1821,
13,
405,
30,
46506,
366,
5497,
1952,
544,
3115,
7171,
3648,
1,
16034,
3084,
62,
27988,
1795,
33411,
366,
3695,
405,
13,
405,
1,
796,
705,
1120,
1821,
13,
405,
6
] |
calculate the length of patient 4092's first stay in icu. | SELECT STRFTIME('%j', icustays.outtime) - STRFTIME('%j', icustays.intime) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4092) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1 | [
9948,
3129,
378,
262,
4129,
286,
5827,
2319,
5892,
338,
717,
2652,
287,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
4129,
286,
5827,
2319,
5892,
338,
717,
2652,
287,
14158,
84,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
13,
448,
2435,
8,
532,
19269,
9792,
12789,
10786,
4,
73,
3256,
14158,
436,
592,
1... |
Shirt number of 18, and a Height larger than 195 has how much weight? | SELECT COUNT("Weight") FROM table_15766 WHERE "Shirt No" = '18' AND "Height" > '195' | [
2484,
2265,
1271,
286,
1248,
11,
290,
257,
27280,
4025,
621,
24793,
468,
703,
881,
3463,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
18458,
2791,
33411,
366,
2484,
2265,
1400,
1,
796,
705,
1507,
6,
5357,
366,
23106,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2484,
2265,
1271,
286,
1248,
11,
290,
257,
27280,
4025,
621,
24793,
468,
703,
881,
3463,
30,
46506,
327,
28270,
7203,
25844,
4943,
16034,
3084,
62,
18458,
2791,
33411,
366,
2484,
2265,
1400,
1,
796,
705,
1507,
6,
5357,
366,
23106,
1,
... |
show me the number of patients with celo-vessicle fistula primary disease who are less than 74 years. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CELO-VESSICLE FISTULA" AND demographic.age < "74" | [
12860,
502,
262,
1271,
286,
3871,
351,
18725,
78,
12,
85,
408,
1548,
18606,
4712,
4165,
4369,
508,
389,
1342,
621,
8915,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
262,
1271,
286,
3871,
351,
18725,
78,
12,
85,
408,
1548,
18606,
4712,
4165,
4369,
508,
389,
1342,
621,
8915,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
... |
With a Rank of less than 4, what is Pablo Prigioni's total number of Games? | SELECT COUNT("Games") FROM table_43051 WHERE "Name" = 'pablo prigioni' AND "Rank" < '4' | [
3152,
257,
10916,
286,
1342,
621,
604,
11,
644,
318,
33185,
1736,
17035,
72,
338,
2472,
1271,
286,
5776,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034,
3084,
62,
31794,
4349,
33411,
366,
5376,
1,
796,
705,
79,
18817,
778,
17035,
72,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
257,
10916,
286,
1342,
621,
604,
11,
644,
318,
33185,
1736,
17035,
72,
338,
2472,
1271,
286,
5776,
30,
46506,
327,
28270,
7203,
24474,
4943,
16034,
3084,
62,
31794,
4349,
33411,
366,
5376,
1,
796,
705,
79,
18817,
778,
17035,
72,... |
which team #1 played again chalkida | SELECT "Team #1" FROM table_24346 WHERE "Team #2" = 'Chalkida' | [
4758,
1074,
1303,
16,
2826,
757,
30860,
3755,
46506,
366,
15592,
1303,
16,
1,
16034,
3084,
62,
1731,
30557,
33411,
366,
15592,
1303,
17,
1,
796,
705,
1925,
971,
3755,
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
] | [
4758,
1074,
1303,
16,
2826,
757,
30860,
3755,
46506,
366,
15592,
1303,
16,
1,
16034,
3084,
62,
1731,
30557,
33411,
366,
15592,
1303,
17,
1,
796,
705,
1925,
971,
3755,
6
] |
Is there a morning class for CDB 450 ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'CDB' AND course.number = 450 AND semester.semester = 'WN' AND semester.semester_id = course_offe... | [
3792,
612,
257,
3329,
1398,
329,
6458,
33,
18523,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
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... | [
3792,
612,
257,
3329,
1398,
329,
6458,
33,
18523,
5633,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
24878,
33411,
1781,
62,
2364,
1586,
13,
9688,
62,
2435,
1279,
705,
1065,
25,
405,
25,
405,
6,... |
What is the total number of losses of the player that has drawn 1 and played smaller than 12? | SELECT COUNT(lost) FROM table_name_73 WHERE drawn = 1 AND played < 12 | [
2061,
318,
262,
2472,
1271,
286,
9089,
286,
262,
2137,
326,
468,
7428,
352,
290,
2826,
4833,
621,
1105,
30,
46506,
327,
28270,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
7428,
796,
352,
5357,
2826,
1279,
1105
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
9089,
286,
262,
2137,
326,
468,
7428,
352,
290,
2826,
4833,
621,
1105,
30,
46506,
327,
28270,
7,
33224,
8,
16034,
3084,
62,
3672,
62,
4790,
33411,
7428,
796,
352,
5357,
2826,
1279,
1105
] |
Which classes has Dr. Muthukrishnan Krishnamurthy historically taught ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course_offering.semester < (SELECT SEMESTERalias0.semester_id FROM semester AS SEMESTERalias0 WHERE SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2016) AND course.course_id = cour... | [
13828,
6097,
468,
1583,
13,
337,
1071,
2724,
37518,
12647,
31372,
7402,
333,
20057,
15074,
7817,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6097,
468,
1583,
13,
337,
1071,
2724,
37518,
12647,
31372,
7402,
333,
20057,
15074,
7817,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
... |
return the smallest salary for every departments. | SELECT MIN(salary), department_id FROM employees GROUP BY department_id | [
7783,
262,
18197,
9588,
329,
790,
13346,
13,
46506,
20625,
7,
21680,
560,
828,
5011,
62,
312,
16034,
4409,
44441,
11050,
5011,
62,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
7783,
262,
18197,
9588,
329,
790,
13346,
13,
46506,
20625,
7,
21680,
560,
828,
5011,
62,
312,
16034,
4409,
44441,
11050,
5011,
62,
312
] |
on this hospital encounter what is the first careunit of patient 20898? | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898 AND admissions.dischtime IS NULL) AND NOT transfers.careunit IS NULL ORDER BY transfers.intime LIMIT 1 | [
261,
428,
4436,
8791,
644,
318,
262,
717,
1337,
20850,
286,
5827,
27121,
4089,
30,
46506,
16395,
13,
6651,
20850,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
261,
428,
4436,
8791,
644,
318,
262,
717,
1337,
20850,
286,
5827,
27121,
4089,
30,
46506,
16395,
13,
6651,
20850,
16034,
16395,
33411,
16395,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
62,
312,
16034,
25349,
33411,
... |
Find the names of stadiums that some Australian swimmers have been to. | SELECT t4.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id JOIN event AS t3 ON t2.event_id = t3.id JOIN stadium AS t4 ON t4.id = t3.stadium_id WHERE t1.nationality = 'Australia' | [
16742,
262,
3891,
286,
37924,
326,
617,
6638,
1509,
36904,
423,
587,
284,
13,
46506,
256,
19,
13,
3672,
16034,
9422,
647,
7054,
256,
16,
32357,
1268,
1700,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
2032,
10957,
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,
3891,
286,
37924,
326,
617,
6638,
1509,
36904,
423,
587,
284,
13,
46506,
256,
19,
13,
3672,
16034,
9422,
647,
7054,
256,
16,
32357,
1268,
1700,
7054,
256,
17,
6177,
256,
16,
13,
312,
796,
256,
17,
13,
2032,
10957,
62,
... |
What is the position of the competition in Tampere, Finland? | SELECT "Position" FROM table_67926 WHERE "Venue" = 'tampere, finland' | [
2061,
318,
262,
2292,
286,
262,
5449,
287,
11552,
431,
260,
11,
17837,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
37601,
2075,
33411,
366,
37522,
518,
1,
796,
705,
83,
321,
431,
260,
11,
957,
1044,
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,
2292,
286,
262,
5449,
287,
11552,
431,
260,
11,
17837,
30,
46506,
366,
26545,
1,
16034,
3084,
62,
37601,
2075,
33411,
366,
37522,
518,
1,
796,
705,
83,
321,
431,
260,
11,
957,
1044,
6
] |
How many number of athletes were in round of 64 was llagostera Vives ( esp ) l 6 2, 3 6, 5 7? | SELECT COUNT(athlete) FROM table_17289604_38 WHERE round_of_64 = "Llagostera Vives ( ESP ) L 6–2, 3–6, 5–7" | [
2437,
867,
1271,
286,
10856,
547,
287,
2835,
286,
5598,
373,
32660,
363,
6197,
64,
569,
1083,
357,
15024,
1267,
300,
718,
362,
11,
513,
718,
11,
642,
767,
30,
46506,
327,
28270,
7,
776,
5807,
8,
16034,
3084,
62,
1558,
27693,
31916,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
10856,
547,
287,
2835,
286,
5598,
373,
32660,
363,
6197,
64,
569,
1083,
357,
15024,
1267,
300,
718,
362,
11,
513,
718,
11,
642,
767,
30,
46506,
327,
28270,
7,
776,
5807,
8,
16034,
3084,
62,
1558,
27693,
31916,
... |
What was week 2's opponent? | SELECT opponent FROM table_name_47 WHERE week = 2 | [
2061,
373,
1285,
362,
338,
6125,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2857,
33411,
1285,
796,
362
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
1285,
362,
338,
6125,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2857,
33411,
1285,
796,
362
] |
Show the names of countries and the average speed of roller coasters from each country with a bar chart, and I want to display by the y axis from high to low. | SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name ORDER BY AVG(T2.Speed) DESC | [
15307,
262,
3891,
286,
2678,
290,
262,
2811,
2866,
286,
24471,
763,
7060,
422,
1123,
1499,
351,
257,
2318,
8262,
11,
290,
314,
765,
284,
3359,
416,
262,
331,
16488,
422,
1029,
284,
1877,
13,
46506,
309,
16,
13,
5376,
11,
35224,
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... | [
15307,
262,
3891,
286,
2678,
290,
262,
2811,
2866,
286,
24471,
763,
7060,
422,
1123,
1499,
351,
257,
2318,
8262,
11,
290,
314,
765,
284,
3359,
416,
262,
331,
16488,
422,
1029,
284,
1877,
13,
46506,
309,
16,
13,
5376,
11,
35224,
7,
... |
If north melbourne played as the home team, who was the away team they played? | SELECT away_team FROM table_name_93 WHERE home_team = "north melbourne" | [
1532,
5093,
7758,
12544,
2826,
355,
262,
1363,
1074,
11,
508,
373,
262,
1497,
1074,
484,
2826,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
6052,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
5093,
7758,
12544,
2826,
355,
262,
1363,
1074,
11,
508,
373,
262,
1497,
1074,
484,
2826,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
6052,
33411,
1363,
62,
15097,
796,
366,
43588,
7758,
12544,
1
] |
How many courses for each teacher? Show me a stacked bar chart The x-axis is teacher's first name and group by course description, list in descending by the y-axis please. | SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION, EMP_FNAME ORDER BY COUNT(EMP_FNAME) DESC | [
2437,
867,
10902,
329,
1123,
4701,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
4701,
338,
717,
1438,
290,
1448,
416,
1781,
6764,
11,
1351,
287,
31491,
416,
262,
331,
12,
22704,
3387,
13,
46506,
38144,
62,
37,
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... | [
2437,
867,
10902,
329,
1123,
4701,
30,
5438,
502,
257,
24167,
2318,
8262,
383,
2124,
12,
22704,
318,
4701,
338,
717,
1438,
290,
1448,
416,
1781,
6764,
11,
1351,
287,
31491,
416,
262,
331,
12,
22704,
3387,
13,
46506,
38144,
62,
37,
2... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of price over the headquarter , and group by attribute headquarter by a bar chart, sort by the bars in asc. | SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
2756,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
3297,
416,
262,
9210,
287,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2756,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
416,
257,
2318,
8262,
11,
3297,
416,
262,
9210,
287,
... |
What is the Hanyu Pinyin with a density of 39.63? | SELECT hanyu_pinyin FROM table_name_32 WHERE density___km²_ = "39.63" | [
2061,
318,
262,
367,
1092,
84,
350,
3541,
259,
351,
257,
12109,
286,
5014,
13,
5066,
30,
46506,
289,
1092,
84,
62,
79,
3541,
259,
16034,
3084,
62,
3672,
62,
2624,
33411,
12109,
17569,
13276,
31185,
62,
796,
366,
2670,
13,
5066,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
367,
1092,
84,
350,
3541,
259,
351,
257,
12109,
286,
5014,
13,
5066,
30,
46506,
289,
1092,
84,
62,
79,
3541,
259,
16034,
3084,
62,
3672,
62,
2624,
33411,
12109,
17569,
13276,
31185,
62,
796,
366,
2670,
13,
5066,
1
] |
Which Points is the highest one that has a Position of 1, and a Lost smaller than 0? | SELECT MAX("Points") FROM table_74878 WHERE "Position" = '1' AND "Lost" < '0' | [
13828,
11045,
318,
262,
4511,
530,
326,
468,
257,
23158,
286,
352,
11,
290,
257,
9164,
4833,
621,
657,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
48246,
3695,
33411,
366,
26545,
1,
796,
705,
16,
6,
5357,
366,
31042,
1,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11045,
318,
262,
4511,
530,
326,
468,
257,
23158,
286,
352,
11,
290,
257,
9164,
4833,
621,
657,
30,
46506,
25882,
7203,
40710,
4943,
16034,
3084,
62,
48246,
3695,
33411,
366,
26545,
1,
796,
705,
16,
6,
5357,
366,
31042,
1,
12... |
When did the Indians play a game with a record of 28-41? | SELECT "Date" FROM table_5970 WHERE "Record" = '28-41' | [
2215,
750,
262,
12746,
711,
257,
983,
351,
257,
1700,
286,
2579,
12,
3901,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3270,
2154,
33411,
366,
23739,
1,
796,
705,
2078,
12,
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
] | [
2215,
750,
262,
12746,
711,
257,
983,
351,
257,
1700,
286,
2579,
12,
3901,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3270,
2154,
33411,
366,
23739,
1,
796,
705,
2078,
12,
3901,
6
] |
What is the procedure short title of Paul Edwards? | SELECT procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.name = "Paul Edwards" | [
2061,
318,
262,
8771,
1790,
3670,
286,
3362,
17381,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8771,
1790,
3670,
286,
3362,
17381,
30,
46506,
9021,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
16728,
13,
18108,
76,
62,
312,
796,
9021,
13,
18108,
76,
62,
312,
33411,
16728,
13,
3672,
79... |
A bar chart for returning the number of the claim start date for the claims whose claimed amount is no more than the average, and sort Y in desc order. | SELECT Date_Claim_Made, COUNT(Date_Claim_Made) FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) ORDER BY COUNT(Date_Claim_Made) DESC | [
32,
2318,
8262,
329,
8024,
262,
1271,
286,
262,
1624,
923,
3128,
329,
262,
3667,
3025,
4752,
2033,
318,
645,
517,
621,
262,
2811,
11,
290,
3297,
575,
287,
1715,
1502,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
32,
2318,
8262,
329,
8024,
262,
1271,
286,
262,
1624,
923,
3128,
329,
262,
3667,
3025,
4752,
2033,
318,
645,
517,
621,
262,
2811,
11,
290,
3297,
575,
287,
1715,
1502,
13,
46506,
7536,
62,
44819,
62,
24616,
11,
327,
28270,
7,
10430,
... |
For all employees who have the letters D or S in their first name, visualize a scatter chart about the correlation between commission_pct and department_id . | SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
5810,
62,
79,
310,
290,
5011,
62,
312,
764,
46506,
22240,
40373,
62,
47,
4177,
11,
5550,
30709,
10979,
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... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
38350,
257,
41058,
8262,
546,
262,
16096,
1022,
5810,
62,
79,
310,
290,
5011,
62,
312,
764,
46506,
22240,
40373,
62,
47,
4177,
11,
5550,
30709,
10979,
62,... |
What is the loan club named dennehy? | SELECT "Loan Club" FROM table_46539 WHERE "Name" = 'dennehy' | [
2061,
318,
262,
8063,
3430,
3706,
2853,
710,
12114,
30,
46506,
366,
43,
24611,
6289,
1,
16034,
3084,
62,
42018,
2670,
33411,
366,
5376,
1,
796,
705,
6559,
710,
12114,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
8063,
3430,
3706,
2853,
710,
12114,
30,
46506,
366,
43,
24611,
6289,
1,
16034,
3084,
62,
42018,
2670,
33411,
366,
5376,
1,
796,
705,
6559,
710,
12114,
6
] |
For all employees who have the letters D or S in their first name, give me the comparison about the amount of hire_date over the hire_date bin hire_date by time by a bar chart, and display by the y axis in descending. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) DESC | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
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... | [
1890,
477,
4409,
508,
423,
262,
7475,
360,
393,
311,
287,
511,
717,
1438,
11,
1577,
502,
262,
7208,
546,
262,
2033,
286,
11078,
62,
4475,
625,
262,
11078,
62,
4475,
9874,
11078,
62,
4475,
416,
640,
416,
257,
2318,
8262,
11,
290,
3... |
count the number of patients whose admission locations is phys referral/normal deli and diagnosis long title is diverticulitis of colon (without mention of hemorrhage). | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND diagnoses.long_title = "Diverticulitis of colon (without mention of hemorrhage)" | [
9127,
262,
1271,
286,
3871,
3025,
13938,
7064,
318,
2281,
31413,
14,
11265,
1619,
72,
290,
13669,
890,
3670,
318,
12312,
13370,
377,
11815,
286,
7633,
357,
19419,
3068,
286,
42203,
496,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13938,
7064,
318,
2281,
31413,
14,
11265,
1619,
72,
290,
13669,
890,
3670,
318,
12312,
13370,
377,
11815,
286,
7633,
357,
19419,
3068,
286,
42203,
496,
737,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
... |
Who was the Coat of Cash Wearing Celebrity in Episode 6? | SELECT "Coat Of Cash Wearing Celebrity" FROM table_7188 WHERE "Episode Number" = '6' | [
8241,
373,
262,
39326,
286,
16210,
370,
6648,
46289,
287,
7922,
718,
30,
46506,
366,
7222,
265,
3226,
16210,
370,
6648,
46289,
1,
16034,
3084,
62,
22,
20356,
33411,
366,
23758,
7913,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
373,
262,
39326,
286,
16210,
370,
6648,
46289,
287,
7922,
718,
30,
46506,
366,
7222,
265,
3226,
16210,
370,
6648,
46289,
1,
16034,
3084,
62,
22,
20356,
33411,
366,
23758,
7913,
1,
796,
705,
21,
6
] |
Gold, SIlver and Bronze Badges for Node.js Worldwide Chronological. | SELECT ROW_NUMBER() OVER (ORDER BY Date) AS "badge_#", Users.Id AS "user_link", Reputation, CASE WHEN Class = 1 THEN 'Gold' WHEN Class = 2 THEN 'Silver' WHEN Class = 3 THEN 'Bronze' ELSE 'Unknown' END AS "Badge", Name AS "Badge for", Date AS "Badge earned", Location FROM Users, Badges WHERE Users.Id = Badges.UserId AND... | [
13306,
11,
25861,
75,
332,
290,
19461,
7772,
3212,
329,
19081,
13,
8457,
33140,
8750,
2770,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
7536,
8,
7054,
366,
14774,
469,
62,
2,
1600,
18987,
13,
7390,
70... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13306,
11,
25861,
75,
332,
290,
19461,
7772,
3212,
329,
19081,
13,
8457,
33140,
8750,
2770,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
7536,
8,
7054,
366,
14774,
469,
62,
2,
1600,
18987,
13,
7390,
70... |
Visualize a bar chart for what is the average salary for each job title?, and sort by the Y from high to low. | SELECT JOB_TITLE, AVG(SALARY) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID GROUP BY T2.JOB_TITLE ORDER BY AVG(SALARY) DESC | [
36259,
1096,
257,
2318,
8262,
329,
644,
318,
262,
2811,
9588,
329,
1123,
1693,
3670,
21747,
290,
3297,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
449,
9864,
62,
49560,
2538,
11,
35224,
7,
50,
1847,
13153,
8,
16034,
4409,
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... | [
36259,
1096,
257,
2318,
8262,
329,
644,
318,
262,
2811,
9588,
329,
1123,
1693,
3670,
21747,
290,
3297,
416,
262,
575,
422,
1029,
284,
1877,
13,
46506,
449,
9864,
62,
49560,
2538,
11,
35224,
7,
50,
1847,
13153,
8,
16034,
4409,
7054,
... |
With which kind of payment method were the least number of payments processed? | SELECT payment_method_code FROM payments GROUP BY payment_method_code ORDER BY COUNT(*) LIMIT 1 | [
3152,
543,
1611,
286,
6074,
2446,
547,
262,
1551,
1271,
286,
7524,
13686,
30,
46506,
6074,
62,
24396,
62,
8189,
16034,
7524,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3152,
543,
1611,
286,
6074,
2446,
547,
262,
1551,
1271,
286,
7524,
13686,
30,
46506,
6074,
62,
24396,
62,
8189,
16034,
7524,
44441,
11050,
6074,
62,
24396,
62,
8189,
38678,
11050,
327,
28270,
7,
28104,
27564,
2043,
352
] |
What is the greatest 2007 when the change 06-07 was 14.7%? | SELECT MAX("2007") FROM table_64455 WHERE "Change 06-07" = '14.7%' | [
2061,
318,
262,
6000,
4343,
618,
262,
1487,
9130,
12,
2998,
373,
1478,
13,
22,
4,
30,
46506,
25882,
7203,
12726,
4943,
16034,
3084,
62,
2414,
30505,
33411,
366,
19400,
9130,
12,
2998,
1,
796,
705,
1415,
13,
22,
4,
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
] | [
2061,
318,
262,
6000,
4343,
618,
262,
1487,
9130,
12,
2998,
373,
1478,
13,
22,
4,
30,
46506,
25882,
7203,
12726,
4943,
16034,
3084,
62,
2414,
30505,
33411,
366,
19400,
9130,
12,
2998,
1,
796,
705,
1415,
13,
22,
4,
6
] |
For all the faults of different parts, what are all the decriptions of the skills required to fix them? List the name of the faults and the skill description. | SELECT T1.fault_short_name, T3.skill_description FROM part_faults AS T1 JOIN skills_required_to_fix AS T2 ON T1.part_fault_id = T2.part_fault_id JOIN skills AS T3 ON T2.skill_id = T3.skill_id | [
1890,
477,
262,
31025,
286,
1180,
3354,
11,
644,
389,
477,
262,
875,
1968,
507,
286,
262,
4678,
2672,
284,
4259,
606,
30,
7343,
262,
1438,
286,
262,
31025,
290,
262,
5032,
6764,
13,
46506,
309,
16,
13,
69,
1721,
62,
19509,
62,
367... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
31025,
286,
1180,
3354,
11,
644,
389,
477,
262,
875,
1968,
507,
286,
262,
4678,
2672,
284,
4259,
606,
30,
7343,
262,
1438,
286,
262,
31025,
290,
262,
5032,
6764,
13,
46506,
309,
16,
13,
69,
1721,
62,
19509,
62,
367... |
How much did the home team Hawthorn score? | SELECT "Home team score" FROM table_53982 WHERE "Home team" = 'hawthorn' | [
2437,
881,
750,
262,
1363,
1074,
41457,
1211,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
20,
2670,
6469,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
881,
750,
262,
1363,
1074,
41457,
1211,
4776,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
20,
2670,
6469,
33411,
366,
16060,
1074,
1,
796,
705,
26615,
400,
1211,
6
] |
What was the score when essendon was the home team? | SELECT "Home team score" FROM table_32576 WHERE "Home team" = 'essendon' | [
2061,
373,
262,
4776,
618,
3209,
43153,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
26582,
4304,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
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
] | [
2061,
373,
262,
4776,
618,
3209,
43153,
373,
262,
1363,
1074,
30,
46506,
366,
16060,
1074,
4776,
1,
16034,
3084,
62,
26582,
4304,
33411,
366,
16060,
1074,
1,
796,
705,
408,
43153,
6
] |
What is the date of the game where Inter Milan was the opponent. | SELECT date FROM table_name_90 WHERE opponent = "inter milan" | [
2061,
318,
262,
3128,
286,
262,
983,
810,
4225,
21574,
373,
262,
6125,
13,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
6125,
796,
366,
3849,
1465,
272,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
983,
810,
4225,
21574,
373,
262,
6125,
13,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
6125,
796,
366,
3849,
1465,
272,
1
] |
What team did the Heat play against at the TD Waterhouse Centre? | SELECT "Team" FROM table_35593 WHERE "Location Attendance" = 'td waterhouse centre' | [
2061,
1074,
750,
262,
12308,
711,
1028,
379,
262,
13320,
5638,
4803,
9072,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2327,
49051,
33411,
366,
14749,
46502,
590,
1,
796,
705,
8671,
1660,
4803,
7372,
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
] | [
2061,
1074,
750,
262,
12308,
711,
1028,
379,
262,
13320,
5638,
4803,
9072,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
2327,
49051,
33411,
366,
14749,
46502,
590,
1,
796,
705,
8671,
1660,
4803,
7372,
6
] |
What was the score of the game with Nathalie Tauziat as a partner? | SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat" | [
2061,
373,
262,
4776,
286,
262,
983,
351,
32607,
282,
494,
36849,
89,
5375,
355,
257,
5212,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
22,
33411,
41759,
796,
366,
77,
776,
282,
494,
256,
559,
89,
5375,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
262,
983,
351,
32607,
282,
494,
36849,
89,
5375,
355,
257,
5212,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
22,
33411,
41759,
796,
366,
77,
776,
282,
494,
256,
559,
89,
5375,
1
] |
in which years did he lead the race the least ? | SELECT "year" FROM table_203_339 WHERE "led" = (SELECT MIN("led") FROM table_203_339) | [
259,
543,
812,
750,
339,
1085,
262,
3234,
262,
1551,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
29626,
33411,
366,
992,
1,
796,
357,
46506,
20625,
7203,
992,
4943,
16034,
3084,
62,
22416,
62,
29626,
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
] | [
259,
543,
812,
750,
339,
1085,
262,
3234,
262,
1551,
5633,
46506,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
29626,
33411,
366,
992,
1,
796,
357,
46506,
20625,
7203,
992,
4943,
16034,
3084,
62,
22416,
62,
29626,
8
] |
Name the incumbent for virginia 18 | SELECT incumbent FROM table_2668387_18 WHERE district = "Virginia 18" | [
5376,
262,
23526,
329,
21772,
544,
1248,
46506,
23526,
16034,
3084,
62,
2075,
3104,
32220,
62,
1507,
33411,
4783,
796,
366,
41017,
1248,
1
] | [
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,
23526,
329,
21772,
544,
1248,
46506,
23526,
16034,
3084,
62,
2075,
3104,
32220,
62,
1507,
33411,
4783,
796,
366,
41017,
1248,
1
] |
Find all movies featuring ' Jason Robards ' and ' Woody Strode | SELECT movie.title FROM actor AS ACTOR_0, actor AS ACTOR_1, cast AS CAST_0, cast AS CAST_1, movie WHERE ACTOR_0.name = 'Woody Strode' AND ACTOR_1.name = 'Jason Robards' AND CAST_0.aid = ACTOR_0.aid AND CAST_1.aid = ACTOR_1.aid AND movie.mid = CAST_0.msid AND movie.mid = CAST_1.msid | [
16742,
477,
6918,
9593,
705,
8982,
3851,
1371,
705,
290,
705,
37684,
30183,
2934,
46506,
3807,
13,
7839,
16034,
8674,
7054,
11741,
1581,
62,
15,
11,
8674,
7054,
11741,
1581,
62,
16,
11,
3350,
7054,
327,
11262,
62,
15,
11,
3350,
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... | [
16742,
477,
6918,
9593,
705,
8982,
3851,
1371,
705,
290,
705,
37684,
30183,
2934,
46506,
3807,
13,
7839,
16034,
8674,
7054,
11741,
1581,
62,
15,
11,
8674,
7054,
11741,
1581,
62,
16,
11,
3350,
7054,
327,
11262,
62,
15,
11,
3350,
7054,
... |
What is the pick for Mickey Johnson with fewer than 4 rounds? | SELECT SUM("Pick") FROM table_9419 WHERE "Player" = 'mickey johnson' AND "Round" < '4' | [
2061,
318,
262,
2298,
329,
27232,
5030,
351,
7380,
621,
604,
9196,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
5824,
1129,
33411,
366,
14140,
1,
796,
705,
9383,
2539,
45610,
1559,
6,
5357,
366,
22685,
1,
1279,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2298,
329,
27232,
5030,
351,
7380,
621,
604,
9196,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
5824,
1129,
33411,
366,
14140,
1,
796,
705,
9383,
2539,
45610,
1559,
6,
5357,
366,
22685,
1,
1279,
705,
19,
6
] |
What was the max mach when the maximum speed was 3887? | SELECT "Max Mach" FROM table_24796 WHERE "Max speed (mph)" = '3887' | [
2061,
373,
262,
3509,
3235,
618,
262,
5415,
2866,
373,
43550,
22,
30,
46506,
366,
11518,
7080,
1,
16034,
3084,
62,
1731,
41060,
33411,
366,
11518,
2866,
357,
23335,
16725,
796,
705,
2548,
5774,
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,
373,
262,
3509,
3235,
618,
262,
5415,
2866,
373,
43550,
22,
30,
46506,
366,
11518,
7080,
1,
16034,
3084,
62,
1731,
41060,
33411,
366,
11518,
2866,
357,
23335,
16725,
796,
705,
2548,
5774,
6
] |
How much did the away team Melbourne score? | SELECT away_team AS score FROM table_name_64 WHERE away_team = "melbourne" | [
2437,
881,
750,
262,
1497,
1074,
14819,
4776,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
2414,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] | [
1,
1,
1,
1,
1,
1,
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,
750,
262,
1497,
1074,
14819,
4776,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
2414,
33411,
1497,
62,
15097,
796,
366,
17694,
12544,
1
] |
What is the highest number of men's championships of the university with 1 junior's and more than 2 total? | SELECT MAX("Men's") FROM table_7359 WHERE "Junior's" = '1' AND "Total" > '2' | [
2061,
318,
262,
4511,
1271,
286,
1450,
338,
27459,
286,
262,
6403,
351,
352,
13430,
338,
290,
517,
621,
362,
2472,
30,
46506,
25882,
7203,
10418,
338,
4943,
16034,
3084,
62,
22,
30743,
33411,
366,
22396,
1504,
338,
1,
796,
705,
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
] | [
2061,
318,
262,
4511,
1271,
286,
1450,
338,
27459,
286,
262,
6403,
351,
352,
13430,
338,
290,
517,
621,
362,
2472,
30,
46506,
25882,
7203,
10418,
338,
4943,
16034,
3084,
62,
22,
30743,
33411,
366,
22396,
1504,
338,
1,
796,
705,
16,
... |
Which model has a top speed of 231km/h (143mph)? | SELECT model FROM table_name_37 WHERE top_speed = "231km/h (143mph)" | [
13828,
2746,
468,
257,
1353,
2866,
286,
34598,
13276,
14,
71,
357,
21139,
23335,
19427,
46506,
2746,
16034,
3084,
62,
3672,
62,
2718,
33411,
1353,
62,
12287,
796,
366,
25667,
13276,
14,
71,
357,
21139,
23335,
16725
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2746,
468,
257,
1353,
2866,
286,
34598,
13276,
14,
71,
357,
21139,
23335,
19427,
46506,
2746,
16034,
3084,
62,
3672,
62,
2718,
33411,
1353,
62,
12287,
796,
366,
25667,
13276,
14,
71,
357,
21139,
23335,
16725
] |
Which institution does 'Katsuhiro Ueno' belong to? | SELECT DISTINCT t3.name FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t1.fname = "Katsuhiro" AND t1.lname = "Ueno" | [
13828,
9901,
857,
705,
42,
19231,
49907,
471,
23397,
6,
5594,
284,
30,
46506,
360,
8808,
1268,
4177,
256,
18,
13,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
7054,
256,
17,
6177,
256,
16,
13,
18439,
312,
796,
256,
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... | [
13828,
9901,
857,
705,
42,
19231,
49907,
471,
23397,
6,
5594,
284,
30,
46506,
360,
8808,
1268,
4177,
256,
18,
13,
3672,
16034,
7035,
7054,
256,
16,
32357,
1268,
7035,
1056,
7054,
256,
17,
6177,
256,
16,
13,
18439,
312,
796,
256,
17,... |
What are the Notes of the Mill Built in the 19th Century? | SELECT notes FROM table_name_27 WHERE built = "19th century" | [
2061,
389,
262,
11822,
286,
262,
9212,
28477,
287,
262,
678,
400,
13641,
30,
46506,
4710,
16034,
3084,
62,
3672,
62,
1983,
33411,
3170,
796,
366,
1129,
400,
4289,
1
] | [
1,
1,
1,
1,
1,
1,
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,
11822,
286,
262,
9212,
28477,
287,
262,
678,
400,
13641,
30,
46506,
4710,
16034,
3084,
62,
3672,
62,
1983,
33411,
3170,
796,
366,
1129,
400,
4289,
1
] |
Name the engine with entrant of larrousse f1 | SELECT "Engine" FROM table_67810 WHERE "Entrant" = 'larrousse f1' | [
5376,
262,
3113,
351,
920,
5250,
286,
26371,
7596,
325,
277,
16,
46506,
366,
13798,
1,
16034,
3084,
62,
30924,
940,
33411,
366,
14539,
5250,
1,
796,
705,
21681,
7596,
325,
277,
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
] | [
5376,
262,
3113,
351,
920,
5250,
286,
26371,
7596,
325,
277,
16,
46506,
366,
13798,
1,
16034,
3084,
62,
30924,
940,
33411,
366,
14539,
5250,
1,
796,
705,
21681,
7596,
325,
277,
16,
6
] |
Under what series was the 3.5 release? | SELECT series FROM table_16279520_1 WHERE release = "3.5" | [
9203,
644,
2168,
373,
262,
513,
13,
20,
2650,
30,
46506,
2168,
16034,
3084,
62,
1433,
1983,
3865,
1238,
62,
16,
33411,
2650,
796,
366,
18,
13,
20,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9203,
644,
2168,
373,
262,
513,
13,
20,
2650,
30,
46506,
2168,
16034,
3084,
62,
1433,
1983,
3865,
1238,
62,
16,
33411,
2650,
796,
366,
18,
13,
20,
1
] |
What NHL team drafted Rob Palmer? | SELECT nhl_team FROM table_1473672_6 WHERE player = "Rob Palmer" | [
2061,
9481,
1074,
15937,
3851,
18918,
30,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
20198,
2623,
4761,
62,
21,
33411,
2137,
796,
366,
14350,
18918,
1
] | [
1,
1,
1,
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,
9481,
1074,
15937,
3851,
18918,
30,
46506,
299,
18519,
62,
15097,
16034,
3084,
62,
20198,
2623,
4761,
62,
21,
33411,
2137,
796,
366,
14350,
18918,
1
] |
how many more seasons was marty brill head coach compared to tom conley ? | SELECT (SELECT COUNT("season") FROM table_203_814 WHERE "head coach" = 'marty brill') - (SELECT COUNT("season") FROM table_203_814 WHERE "head coach" = 'tom conley') | [
4919,
867,
517,
7028,
373,
11277,
88,
9547,
1182,
3985,
3688,
284,
16667,
369,
1636,
5633,
46506,
357,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
22416,
62,
23,
1415,
33411,
366,
2256,
3985,
1,
796,
705,
13822,
88,
9547,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
517,
7028,
373,
11277,
88,
9547,
1182,
3985,
3688,
284,
16667,
369,
1636,
5633,
46506,
357,
46506,
327,
28270,
7203,
6230,
4943,
16034,
3084,
62,
22416,
62,
23,
1415,
33411,
366,
2256,
3985,
1,
796,
705,
13822,
88,
9547,
11... |
In what Place was the Silver won by vladimir vesselov ( urs )? | SELECT place FROM table_name_3 WHERE silver = "vladimir vesselov ( urs )" | [
818,
644,
8474,
373,
262,
7698,
1839,
416,
410,
9435,
13057,
8837,
709,
357,
220,
1834,
1267,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
18,
33411,
8465,
796,
366,
85,
9435,
13057,
8837,
709,
357,
220,
1834,
1267,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
818,
644,
8474,
373,
262,
7698,
1839,
416,
410,
9435,
13057,
8837,
709,
357,
220,
1834,
1267,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
18,
33411,
8465,
796,
366,
85,
9435,
13057,
8837,
709,
357,
220,
1834,
1267,
1
] |
What is the number of the belarusian language? | SELECT "Number" FROM table_44755 WHERE "Language" = 'belarusian' | [
2061,
318,
262,
1271,
286,
262,
894,
20272,
666,
3303,
30,
46506,
366,
15057,
1,
16034,
3084,
62,
2598,
38172,
33411,
366,
32065,
1,
796,
705,
6667,
20272,
666,
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,
262,
1271,
286,
262,
894,
20272,
666,
3303,
30,
46506,
366,
15057,
1,
16034,
3084,
62,
2598,
38172,
33411,
366,
32065,
1,
796,
705,
6667,
20272,
666,
6
] |
Show 10 most viewed posts on SO. | SELECT TOP(10) AS ViewCount, Id AS "post_link" FROM Posts ORDER BY ViewCount DESC | [
15307,
838,
749,
9569,
6851,
319,
12809,
13,
46506,
28662,
7,
940,
8,
7054,
3582,
12332,
11,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
38678,
11050,
3582,
12332,
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
] | [
15307,
838,
749,
9569,
6851,
319,
12809,
13,
46506,
28662,
7,
940,
8,
7054,
3582,
12332,
11,
5121,
7054,
366,
7353,
62,
8726,
1,
16034,
12043,
38678,
11050,
3582,
12332,
22196,
34
] |
give me the number of patients whose diagnoses icd9 code is 40390? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "40390" | [
26535,
502,
262,
1271,
286,
3871,
3025,
40567,
14158,
67,
24,
2438,
318,
2319,
25964,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
14158,
67,
24,
2438,
318,
2319,
25964,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... |
Which character first appeared in Amazing Fantasy #15? | SELECT character_s_ FROM table_name_89 WHERE first_appearance = "amazing fantasy #15" | [
13828,
2095,
717,
4120,
287,
23181,
10982,
1303,
1314,
30,
46506,
2095,
62,
82,
62,
16034,
3084,
62,
3672,
62,
4531,
33411,
717,
62,
1324,
23435,
796,
366,
321,
4070,
8842,
1303,
1314,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2095,
717,
4120,
287,
23181,
10982,
1303,
1314,
30,
46506,
2095,
62,
82,
62,
16034,
3084,
62,
3672,
62,
4531,
33411,
717,
62,
1324,
23435,
796,
366,
321,
4070,
8842,
1303,
1314,
1
] |
Which player went to Michigan State? | SELECT player_name FROM table_10966926_2 WHERE college = "Michigan State" | [
13828,
2137,
1816,
284,
7055,
1812,
30,
46506,
2137,
62,
3672,
16034,
3084,
62,
14454,
36657,
2075,
62,
17,
33411,
4152,
796,
366,
40610,
1812,
1
] | [
1,
1,
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,
2137,
1816,
284,
7055,
1812,
30,
46506,
2137,
62,
3672,
16034,
3084,
62,
14454,
36657,
2075,
62,
17,
33411,
4152,
796,
366,
40610,
1812,
1
] |
US 3724 BALTIMORE to PHILADELPHIA what is the fare | 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 (((flight.airline_code = 'US') AND flight.flight_number = 3724) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADE... | [
2937,
5214,
1731,
347,
31429,
3955,
6965,
284,
9370,
4146,
2885,
3698,
11909,
3539,
644,
318,
262,
14505,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2937,
5214,
1731,
347,
31429,
3955,
6965,
284,
9370,
4146,
2885,
3698,
11909,
3539,
644,
318,
262,
14505,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
... |
tell me the number of products that give you 12 months of whiteness . | SELECT COUNT("model") FROM table_204_625 WHERE "last of whiteness" = 12 | [
33331,
502,
262,
1271,
286,
3186,
326,
1577,
345,
1105,
1933,
286,
20542,
9449,
764,
46506,
327,
28270,
7203,
19849,
4943,
16034,
3084,
62,
18638,
62,
26704,
33411,
366,
12957,
286,
20542,
9449,
1,
796,
1105
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3186,
326,
1577,
345,
1105,
1933,
286,
20542,
9449,
764,
46506,
327,
28270,
7203,
19849,
4943,
16034,
3084,
62,
18638,
62,
26704,
33411,
366,
12957,
286,
20542,
9449,
1,
796,
1105
] |
What is Postion, when Weight is greater than 220, and when Player is 'Travis Knight'? | SELECT position FROM table_name_28 WHERE weight > 220 AND player = "travis knight" | [
2061,
318,
2947,
295,
11,
618,
14331,
318,
3744,
621,
15629,
11,
290,
618,
7853,
318,
705,
51,
16956,
6700,
30960,
46506,
2292,
16034,
3084,
62,
3672,
62,
2078,
33411,
3463,
1875,
15629,
5357,
2137,
796,
366,
83,
16956,
22062,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2947,
295,
11,
618,
14331,
318,
3744,
621,
15629,
11,
290,
618,
7853,
318,
705,
51,
16956,
6700,
30960,
46506,
2292,
16034,
3084,
62,
3672,
62,
2078,
33411,
3463,
1875,
15629,
5357,
2137,
796,
366,
83,
16956,
22062,
1
] |
What was the date when the home team was Essendon? | SELECT date FROM table_name_9 WHERE home_team = "essendon" | [
2061,
373,
262,
3128,
618,
262,
1363,
1074,
373,
11985,
43153,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
1363,
62,
15097,
796,
366,
408,
43153,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
618,
262,
1363,
1074,
373,
11985,
43153,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
24,
33411,
1363,
62,
15097,
796,
366,
408,
43153,
1
] |
What lost has 528 as the points? | SELECT "Lost" FROM table_37169 WHERE "Points for" = '528' | [
2061,
2626,
468,
642,
2078,
355,
262,
2173,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
2718,
22172,
33411,
366,
40710,
329,
1,
796,
705,
49351,
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,
2626,
468,
642,
2078,
355,
262,
2173,
30,
46506,
366,
31042,
1,
16034,
3084,
62,
2718,
22172,
33411,
366,
40710,
329,
1,
796,
705,
49351,
6
] |
Easiest PreMajor course is taught by who ? | SELECT DISTINCT instructor.name, program_course.workload FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN program_course ON program_course.course_id = cour... | [
36,
292,
6386,
3771,
24206,
1781,
318,
7817,
416,
508,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36,
292,
6386,
3771,
24206,
1781,
318,
7817,
416,
508,
5633,
46506,
360,
8808,
1268,
4177,
21187,
13,
3672,
11,
1430,
62,
17319,
13,
1818,
2220,
16034,
21187,
3268,
21479,
32357,
1268,
6011,
62,
259,
7249,
273,
6177,
6011,
62,
259,
72... |
what is language of subject id 6983? | SELECT demographic.language FROM demographic WHERE demographic.subject_id = "6983" | [
10919,
318,
3303,
286,
2426,
4686,
39861,
18,
30,
46506,
16728,
13,
16129,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] | [
1,
1,
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,
3303,
286,
2426,
4686,
39861,
18,
30,
46506,
16728,
13,
16129,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
3388,
5999,
1
] |
Which Time/Retired has Laps smaller than 14, and a Rider of darren barton? | SELECT "Time/Retired" FROM table_58776 WHERE "Laps" < '14' AND "Rider" = 'darren barton' | [
13828,
3862,
14,
9781,
1202,
468,
406,
1686,
4833,
621,
1478,
11,
290,
257,
16414,
286,
288,
283,
918,
30539,
261,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
3365,
39509,
33411,
366,
43,
1686,
1,
1279,
705,
1415,
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
] | [
13828,
3862,
14,
9781,
1202,
468,
406,
1686,
4833,
621,
1478,
11,
290,
257,
16414,
286,
288,
283,
918,
30539,
261,
30,
46506,
366,
7575,
14,
9781,
1202,
1,
16034,
3084,
62,
3365,
39509,
33411,
366,
43,
1686,
1,
1279,
705,
1415,
6,
... |
how many patients whose lab test abnormal status is abnormal and lab test name is wbc, joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "WBC, Joint Fluid" | [
4919,
867,
3871,
3025,
2248,
1332,
18801,
3722,
318,
18801,
290,
2248,
1332,
1438,
318,
266,
15630,
11,
6466,
11711,
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,
2248,
1332,
18801,
3722,
318,
18801,
290,
2248,
1332,
1438,
318,
266,
15630,
11,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
What are the names of the GSIs for last semester 's DANCE 229 ? | SELECT DISTINCT student.firstname, student.lastname FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN gsi ON gsi.course_offering_id = course_offering.offering_id INNER JOIN student ON student.student_id = gsi.student_id INNER JOIN semester ON semester.semester_id = course... | [
2061,
389,
262,
3891,
286,
262,
26681,
3792,
329,
938,
24878,
705,
82,
360,
19240,
31064,
5633,
46506,
360,
8808,
1268,
4177,
3710,
13,
11085,
3672,
11,
3710,
13,
12957,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
3891,
286,
262,
26681,
3792,
329,
938,
24878,
705,
82,
360,
19240,
31064,
5633,
46506,
360,
8808,
1268,
4177,
3710,
13,
11085,
3672,
11,
3710,
13,
12957,
3672,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,... |
mention the admission type and death status of subject id 22999. | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "22999" | [
434,
295,
262,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
31064,
2079,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1828,
17032,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
434,
295,
262,
13938,
2099,
290,
1918,
3722,
286,
2426,
4686,
31064,
2079,
13,
46506,
16728,
13,
324,
3411,
62,
4906,
11,
16728,
13,
1069,
5111,
62,
32109,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1828,
17032,
1
] |
What is the date of the match located in Madrid, Esp? | SELECT date FROM table_name_69 WHERE location = "madrid, esp" | [
2061,
318,
262,
3128,
286,
262,
2872,
5140,
287,
14708,
11,
20386,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
4067,
796,
366,
9937,
6058,
11,
15024,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3128,
286,
262,
2872,
5140,
287,
14708,
11,
20386,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
4067,
796,
366,
9937,
6058,
11,
15024,
1
] |
Who was the away captain at Brisbane Cricket Ground? | SELECT "Away captain" FROM table_70552 WHERE "Venue" = 'brisbane cricket ground' | [
8241,
373,
262,
1497,
10654,
379,
26914,
34761,
13706,
30,
46506,
366,
32,
1014,
10654,
1,
16034,
3084,
62,
2154,
40427,
33411,
366,
37522,
518,
1,
796,
705,
15311,
20235,
18836,
2323,
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
] | [
8241,
373,
262,
1497,
10654,
379,
26914,
34761,
13706,
30,
46506,
366,
32,
1014,
10654,
1,
16034,
3084,
62,
2154,
40427,
33411,
366,
37522,
518,
1,
796,
705,
15311,
20235,
18836,
2323,
6
] |
How many values for Lost% occur when the value for drawn is 8 and less than 14 lost? | SELECT COUNT("Lost %") FROM table_74545 WHERE "Drawn" = '8' AND "Lost" < '14' | [
2437,
867,
3815,
329,
9164,
4,
3051,
618,
262,
1988,
329,
7428,
318,
807,
290,
1342,
621,
1478,
2626,
30,
46506,
327,
28270,
7203,
31042,
4064,
4943,
16034,
3084,
62,
50150,
2231,
33411,
366,
35,
5791,
1,
796,
705,
23,
6,
5357,
366,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
3815,
329,
9164,
4,
3051,
618,
262,
1988,
329,
7428,
318,
807,
290,
1342,
621,
1478,
2626,
30,
46506,
327,
28270,
7203,
31042,
4064,
4943,
16034,
3084,
62,
50150,
2231,
33411,
366,
35,
5791,
1,
796,
705,
23,
6,
5357,
366,... |
what is the maximum aircraft movements with airport being liverpool | SELECT MAX(aircraft_movements) FROM table_13836704_9 WHERE airport = "Liverpool" | [
10919,
318,
262,
5415,
6215,
8650,
351,
9003,
852,
300,
10864,
46506,
25882,
7,
958,
3323,
62,
21084,
902,
8,
16034,
3084,
62,
20107,
2623,
32869,
62,
24,
33411,
9003,
796,
366,
44232,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
5415,
6215,
8650,
351,
9003,
852,
300,
10864,
46506,
25882,
7,
958,
3323,
62,
21084,
902,
8,
16034,
3084,
62,
20107,
2623,
32869,
62,
24,
33411,
9003,
796,
366,
44232,
1
] |
Return the average price of products that have each category code in a bar chart. | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code | [
13615,
262,
2811,
2756,
286,
3186,
326,
423,
1123,
6536,
2438,
287,
257,
2318,
8262,
13,
46506,
1720,
62,
22872,
62,
8189,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
22872,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
262,
2811,
2756,
286,
3186,
326,
423,
1123,
6536,
2438,
287,
257,
2318,
8262,
13,
46506,
1720,
62,
22872,
62,
8189,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
18675,
44441,
11050,
1720,
62,
22872,
62,
8189
] |
When the Brewers score was 5-7, what was the lowest attendance? | SELECT MIN("Attendance") FROM table_67156 WHERE "Score" = '5-7' | [
2215,
262,
35295,
4776,
373,
642,
12,
22,
11,
644,
373,
262,
9016,
14858,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3134,
21599,
33411,
366,
26595,
1,
796,
705,
20,
12,
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
] | [
2215,
262,
35295,
4776,
373,
642,
12,
22,
11,
644,
373,
262,
9016,
14858,
30,
46506,
20625,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3134,
21599,
33411,
366,
26595,
1,
796,
705,
20,
12,
22,
6
] |
What is the sum of complement commander Valkenburg received? | SELECT COUNT("Complement") FROM table_9894 WHERE "Commander" = 'valkenburg' | [
2061,
318,
262,
2160,
286,
16829,
11561,
569,
971,
37036,
2722,
30,
46506,
327,
28270,
7203,
5377,
26908,
4943,
16034,
3084,
62,
4089,
5824,
33411,
366,
6935,
4066,
1,
796,
705,
85,
971,
37036,
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,
2160,
286,
16829,
11561,
569,
971,
37036,
2722,
30,
46506,
327,
28270,
7203,
5377,
26908,
4943,
16034,
3084,
62,
4089,
5824,
33411,
366,
6935,
4066,
1,
796,
705,
85,
971,
37036,
6
] |
Name the highest laps for maserati and +6 laps for grid more than 11 | SELECT MAX("Laps") FROM table_10172 WHERE "Constructor" = 'maserati' AND "Time/Retired" = '+6 laps' AND "Grid" > '11' | [
5376,
262,
4511,
24590,
329,
285,
6005,
7246,
290,
1343,
21,
24590,
329,
10706,
517,
621,
1367,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
8784,
4761,
33411,
366,
42316,
273,
1,
796,
705,
5356,
263,
7246,
6,
5357,
366,
7575,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4511,
24590,
329,
285,
6005,
7246,
290,
1343,
21,
24590,
329,
10706,
517,
621,
1367,
46506,
25882,
7203,
43,
1686,
4943,
16034,
3084,
62,
8784,
4761,
33411,
366,
42316,
273,
1,
796,
705,
5356,
263,
7246,
6,
5357,
366,
7575,... |
Average Time to Answer for a single user. | SELECT MAX(uss.userid) AS "user_link", AVG(uss.TTA) AS "average_time_to_answer" FROM (SELECT u.Id AS userid, p.Id, p.CreationDate AS acreat, p2.CreationDate AS qcreat, (CAST((JULIANDAY(CreationDate) - JULIANDAY(p2.CreationDate)) AS INT)) AS TTA, p.Score FROM Posts AS p INNER JOIN Posts AS p2 ON p.ParentId = p2.Id INNER... | [
26287,
3862,
284,
23998,
329,
257,
2060,
2836,
13,
46506,
25882,
7,
1046,
13,
7220,
312,
8,
7054,
366,
7220,
62,
8726,
1600,
35224,
7,
1046,
13,
51,
5603,
8,
7054,
366,
23913,
62,
2435,
62,
1462,
62,
41484,
1,
16034,
357,
46506,
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... | [
26287,
3862,
284,
23998,
329,
257,
2060,
2836,
13,
46506,
25882,
7,
1046,
13,
7220,
312,
8,
7054,
366,
7220,
62,
8726,
1600,
35224,
7,
1046,
13,
51,
5603,
8,
7054,
366,
23913,
62,
2435,
62,
1462,
62,
41484,
1,
16034,
357,
46506,
3... |
Where is Hip 4872? | SELECT constellation FROM table_name_38 WHERE designation = "hip 4872" | [
8496,
318,
29437,
4764,
4761,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
2548,
33411,
22566,
796,
366,
1056,
4764,
4761,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
318,
29437,
4764,
4761,
30,
46506,
38712,
16034,
3084,
62,
3672,
62,
2548,
33411,
22566,
796,
366,
1056,
4764,
4761,
1
] |
Name the youth classification for michael barry | SELECT youth_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry" | [
5376,
262,
6205,
17923,
329,
285,
40302,
2318,
563,
46506,
6205,
62,
4871,
2649,
16034,
3084,
62,
1954,
5824,
2231,
1415,
62,
1314,
33411,
8361,
62,
49449,
796,
366,
13256,
14488,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
6205,
17923,
329,
285,
40302,
2318,
563,
46506,
6205,
62,
4871,
2649,
16034,
3084,
62,
1954,
5824,
2231,
1415,
62,
1314,
33411,
8361,
62,
49449,
796,
366,
13256,
14488,
1
] |
What is the total blocks when there are less than 210 digs and the total attempts are more than 1116? | SELECT AVG(total_blocks) FROM table_name_78 WHERE digs < 210 AND total_attempts > 1116 | [
2061,
318,
262,
2472,
7021,
618,
612,
389,
1342,
621,
20064,
46561,
290,
262,
2472,
6370,
389,
517,
621,
13374,
21,
30,
46506,
35224,
7,
23350,
62,
27372,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
46561,
1279,
20064,
5357,
2472,
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
] | [
2061,
318,
262,
2472,
7021,
618,
612,
389,
1342,
621,
20064,
46561,
290,
262,
2472,
6370,
389,
517,
621,
13374,
21,
30,
46506,
35224,
7,
23350,
62,
27372,
8,
16034,
3084,
62,
3672,
62,
3695,
33411,
46561,
1279,
20064,
5357,
2472,
62,
... |
What is the highest difference for the team that had less than 0 draws? | SELECT MAX("Difference") FROM table_77961 WHERE "Drew" < '0' | [
2061,
318,
262,
4511,
3580,
329,
262,
1074,
326,
550,
1342,
621,
657,
14293,
30,
46506,
25882,
7203,
28813,
1945,
4943,
16034,
3084,
62,
3324,
4846,
16,
33411,
366,
35,
1809,
1,
1279,
705,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
4511,
3580,
329,
262,
1074,
326,
550,
1342,
621,
657,
14293,
30,
46506,
25882,
7203,
28813,
1945,
4943,
16034,
3084,
62,
3324,
4846,
16,
33411,
366,
35,
1809,
1,
1279,
705,
15,
6
] |
Who was Andrew and Georgie's guest when Jamie and John's guest was Amy Williams? | SELECT "Andrew and Georgies guest" FROM table_30959 WHERE "Jamie and Johns guest Dermot OLeary replaced Jamie Redknapp as team captain for one week in series 3, episode 8." = 'Amy Williams' | [
8241,
373,
6858,
290,
6850,
494,
338,
8319,
618,
17826,
290,
1757,
338,
8319,
373,
14235,
6484,
30,
46506,
366,
20508,
290,
6850,
444,
8319,
1,
16034,
3084,
62,
26895,
3270,
33411,
366,
48337,
290,
25824,
8319,
360,
7780,
313,
440,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8241,
373,
6858,
290,
6850,
494,
338,
8319,
618,
17826,
290,
1757,
338,
8319,
373,
14235,
6484,
30,
46506,
366,
20508,
290,
6850,
444,
8319,
1,
16034,
3084,
62,
26895,
3270,
33411,
366,
48337,
290,
25824,
8319,
360,
7780,
313,
440,
48... |
What is the Continent that also has the United States listed as a country? | SELECT "Continent" FROM table_44131 WHERE "Country" = 'united states' | [
2061,
318,
262,
45778,
326,
635,
468,
262,
1578,
1829,
5610,
355,
257,
1499,
30,
46506,
366,
4264,
7233,
1,
16034,
3084,
62,
2598,
22042,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
45778,
326,
635,
468,
262,
1578,
1829,
5610,
355,
257,
1499,
30,
46506,
366,
4264,
7233,
1,
16034,
3084,
62,
2598,
22042,
33411,
366,
33921,
1,
796,
705,
41187,
2585,
6
] |
How many lanes have a rank greater than 8? | SELECT SUM(lane) FROM table_name_25 WHERE rank > 8 | [
2437,
867,
15296,
423,
257,
4279,
3744,
621,
807,
30,
46506,
35683,
7,
33533,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
4279,
1875,
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,
1
] | [
2437,
867,
15296,
423,
257,
4279,
3744,
621,
807,
30,
46506,
35683,
7,
33533,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
4279,
1875,
807
] |
Who is the Opponent in the final after 1983 with an Outcome of runner-up? | SELECT "Opponent in the final" FROM table_42095 WHERE "Outcome" = 'runner-up' AND "Date" > '1983' | [
8241,
318,
262,
9385,
3471,
287,
262,
2457,
706,
13540,
351,
281,
3806,
2958,
286,
17490,
12,
929,
30,
46506,
366,
27524,
3471,
287,
262,
2457,
1,
16034,
3084,
62,
27211,
3865,
33411,
366,
7975,
2958,
1,
796,
705,
16737,
12,
929,
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
] | [
8241,
318,
262,
9385,
3471,
287,
262,
2457,
706,
13540,
351,
281,
3806,
2958,
286,
17490,
12,
929,
30,
46506,
366,
27524,
3471,
287,
262,
2457,
1,
16034,
3084,
62,
27211,
3865,
33411,
366,
7975,
2958,
1,
796,
705,
16737,
12,
929,
6,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.