instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Name the opponent with loss of sanderson (9-8) | SELECT opponent FROM table_name_80 WHERE loss = "sanderson (9-8)" | [
5376,
262,
6125,
351,
2994,
286,
6450,
882,
357,
24,
12,
23,
8,
46506,
6125,
16034,
3084,
62,
3672,
62,
1795,
33411,
2994,
796,
366,
38142,
882,
357,
24,
12,
23,
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
] | [
5376,
262,
6125,
351,
2994,
286,
6450,
882,
357,
24,
12,
23,
8,
46506,
6125,
16034,
3084,
62,
3672,
62,
1795,
33411,
2994,
796,
366,
38142,
882,
357,
24,
12,
23,
16725
] |
The hanja is for what province? | SELECT "Province" FROM table_72742 WHERE "Hanja" = '朔州' | [
464,
289,
272,
6592,
318,
329,
644,
8473,
30,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
47760,
3682,
33411,
366,
29919,
6592,
1,
796,
705,
17312,
242,
32432,
252,
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
] | [
464,
289,
272,
6592,
318,
329,
644,
8473,
30,
46506,
366,
15946,
924,
1,
16034,
3084,
62,
47760,
3682,
33411,
366,
29919,
6592,
1,
796,
705,
17312,
242,
32432,
252,
6
] |
What is the record when Tampa Bay is the visitor? | SELECT record FROM table_name_93 WHERE visitor = "tampa bay" | [
2061,
318,
262,
1700,
618,
15528,
4696,
318,
262,
21493,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
6052,
33411,
21493,
796,
366,
83,
13299,
15489,
1
] | [
1,
1,
1,
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,
1700,
618,
15528,
4696,
318,
262,
21493,
30,
46506,
1700,
16034,
3084,
62,
3672,
62,
6052,
33411,
21493,
796,
366,
83,
13299,
15489,
1
] |
give me the number of patients whose admission type is newborn and lab test fluid is cerebrospinal fluid (csf)? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "NEWBORN" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
23856,
290,
2248,
1332,
11711,
318,
6736,
7957,
2777,
1292,
11711,
357,
6359,
69,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
... |
What is the oklahoma has Bush from Nebraska in year 2004? | SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004" | [
2061,
318,
262,
12876,
9802,
468,
5511,
422,
18329,
287,
614,
5472,
30,
46506,
12876,
9802,
16034,
3084,
62,
3672,
62,
3901,
33411,
497,
17088,
796,
366,
50231,
1,
5357,
614,
796,
366,
15724,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12876,
9802,
468,
5511,
422,
18329,
287,
614,
5472,
30,
46506,
12876,
9802,
16034,
3084,
62,
3672,
62,
3901,
33411,
497,
17088,
796,
366,
50231,
1,
5357,
614,
796,
366,
15724,
1
] |
Which country is the director Roland Verhavert from? | SELECT country FROM table_name_30 WHERE director = "roland verhavert" | [
13828,
1499,
318,
262,
3437,
29761,
4643,
3099,
1851,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1270,
33411,
3437,
796,
366,
305,
1044,
3326,
3099,
1851,
1
] | [
1,
1,
1,
1,
1,
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,
318,
262,
3437,
29761,
4643,
3099,
1851,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1270,
33411,
3437,
796,
366,
305,
1044,
3326,
3099,
1851,
1
] |
What is the lowest number of silver owned by a nation that is not ranked number 1? | SELECT MIN(silver) FROM table_name_41 WHERE rank < 1 | [
2061,
318,
262,
9016,
1271,
286,
8465,
6898,
416,
257,
3277,
326,
318,
407,
10307,
1271,
352,
30,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
4279,
1279,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
8465,
6898,
416,
257,
3277,
326,
318,
407,
10307,
1271,
352,
30,
46506,
20625,
7,
40503,
8,
16034,
3084,
62,
3672,
62,
3901,
33411,
4279,
1279,
352
] |
what is the number of patients whose marital status is divorced and diagnoses long title is cerebral embolism with cerebral infarction? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "DIVORCED" AND diagnoses.long_title = "Cerebral embolism with cerebral infarction" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
40567,
890,
3670,
318,
31169,
4072,
349,
1042,
351,
31169,
1167,
283,
596,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
25107,
290,
40567,
890,
3670,
318,
31169,
4072,
349,
1042,
351,
31169,
1167,
283,
596,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1672... |
List the venues of debates in ascending order of the number of audience, and count them by a bar chart | SELECT Venue, COUNT(Venue) FROM debate GROUP BY Venue ORDER BY Num_of_Audience | [
8053,
262,
22276,
286,
15389,
287,
41988,
1502,
286,
262,
1271,
286,
5386,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
44441,
11050,
9932,
518,
38678,
11050,
31835,
62,
165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
22276,
286,
15389,
287,
41988,
1502,
286,
262,
1271,
286,
5386,
11,
290,
954,
606,
416,
257,
2318,
8262,
46506,
9932,
518,
11,
327,
28270,
7,
37522,
518,
8,
16034,
4384,
44441,
11050,
9932,
518,
38678,
11050,
31835,
62,
165... |
How many games are free of injury accidents? | SELECT COUNT(*) FROM game WHERE NOT id IN (SELECT game_id FROM injury_accident) | [
2437,
867,
1830,
389,
1479,
286,
5095,
17390,
30,
46506,
327,
28270,
7,
28104,
16034,
983,
33411,
5626,
4686,
3268,
357,
46506,
983,
62,
312,
16034,
5095,
62,
4134,
738,
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
] | [
2437,
867,
1830,
389,
1479,
286,
5095,
17390,
30,
46506,
327,
28270,
7,
28104,
16034,
983,
33411,
5626,
4686,
3268,
357,
46506,
983,
62,
312,
16034,
5095,
62,
4134,
738,
8
] |
What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006? | SELECT catalog FROM table_name_62 WHERE issued_title = "1958 miles" AND label = "sony" AND year < 2006 | [
2061,
318,
262,
1438,
286,
262,
18388,
4884,
351,
262,
3670,
286,
24648,
20404,
319,
262,
10184,
6167,
379,
257,
614,
3161,
284,
4793,
30,
46506,
18388,
16034,
3084,
62,
3672,
62,
5237,
33411,
4884,
62,
7839,
796,
366,
1129,
3365,
460... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18388,
4884,
351,
262,
3670,
286,
24648,
20404,
319,
262,
10184,
6167,
379,
257,
614,
3161,
284,
4793,
30,
46506,
18388,
16034,
3084,
62,
3672,
62,
5237,
33411,
4884,
62,
7839,
796,
366,
1129,
3365,
460... |
provide the number of patients younger than 30 years who have procedure icd9 code 3771. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "30" AND procedures.icd9_code = "3771" | [
15234,
485,
262,
1271,
286,
3871,
7099,
621,
1542,
812,
508,
423,
8771,
14158,
67,
24,
2438,
42163,
16,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
1271,
286,
3871,
7099,
621,
1542,
812,
508,
423,
8771,
14158,
67,
24,
2438,
42163,
16,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
... |
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the correlation between employee_id and salary in a scatter chart. | SELECT EMPLOYEE_ID, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
16096,
1022,
6538,
62,
312,
290,
9588,
287,
257,
41058,
8262,
13,
46506,
17228,
6489,
21414,
6500,
62,
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... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
905,
502,
546,
262,
16096,
1022,
6538,
62,
312,
290,
9588,
287,
257,
41058,
8262,
13,
46506,
17228,
6489,
21414,
6500,
62,
2... |
What team has less than 64 goals against, 101 goals for, and a Points 2 total of 63? | SELECT "Team" FROM table_47092 WHERE "Goals Against" < '64' AND "Points 2" = '63' AND "Goals For" = '101' | [
2061,
1074,
468,
1342,
621,
5598,
4661,
1028,
11,
8949,
4661,
329,
11,
290,
257,
11045,
362,
2472,
286,
8093,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
27790,
5892,
33411,
366,
5247,
874,
12914,
1,
1279,
705,
2414,
6,
5357,
366,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1074,
468,
1342,
621,
5598,
4661,
1028,
11,
8949,
4661,
329,
11,
290,
257,
11045,
362,
2472,
286,
8093,
30,
46506,
366,
15592,
1,
16034,
3084,
62,
27790,
5892,
33411,
366,
5247,
874,
12914,
1,
1279,
705,
2414,
6,
5357,
366,
40... |
WHich Tournament has a Finalist of marat safin (12)? | SELECT "Tournament" FROM table_50866 WHERE "Finalist" = 'marat safin (12)' | [
12418,
488,
9595,
468,
257,
8125,
396,
286,
1667,
265,
1932,
259,
357,
1065,
19427,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
33042,
2791,
33411,
366,
19006,
396,
1,
796,
705,
3876,
265,
1932,
259,
357,
1065,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12418,
488,
9595,
468,
257,
8125,
396,
286,
1667,
265,
1932,
259,
357,
1065,
19427,
46506,
366,
51,
5138,
1,
16034,
3084,
62,
33042,
2791,
33411,
366,
19006,
396,
1,
796,
705,
3876,
265,
1932,
259,
357,
1065,
33047
] |
Swimmer Aurore Mongel has what nationality? | SELECT nationality FROM table_name_88 WHERE name = "aurore mongel" | [
10462,
10957,
317,
1434,
260,
18428,
417,
468,
644,
29835,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3459,
33411,
1438,
796,
366,
559,
305,
260,
285,
506,
417,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10462,
10957,
317,
1434,
260,
18428,
417,
468,
644,
29835,
30,
46506,
29835,
16034,
3084,
62,
3672,
62,
3459,
33411,
1438,
796,
366,
559,
305,
260,
285,
506,
417,
1
] |
Which law school did judge sheila abdus-salaam attend, who was appointed in 2004? | SELECT "Law School Attended" FROM table_42779 WHERE "Appointed" > '2004' AND "Name" = 'judge sheila abdus-salaam' | [
13828,
1099,
1524,
750,
5052,
673,
10102,
450,
67,
385,
12,
82,
6081,
321,
5262,
11,
508,
373,
9899,
287,
5472,
30,
46506,
366,
16966,
3961,
3460,
1631,
1,
16034,
3084,
62,
42363,
3720,
33411,
366,
4677,
20909,
1,
1875,
705,
15724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1099,
1524,
750,
5052,
673,
10102,
450,
67,
385,
12,
82,
6081,
321,
5262,
11,
508,
373,
9899,
287,
5472,
30,
46506,
366,
16966,
3961,
3460,
1631,
1,
16034,
3084,
62,
42363,
3720,
33411,
366,
4677,
20909,
1,
1875,
705,
15724,
... |
Who had the most points in the game on November 12? | SELECT high_points FROM table_name_86 WHERE date = "november 12" | [
8241,
550,
262,
749,
2173,
287,
262,
983,
319,
3389,
1105,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
4521,
33411,
3128,
796,
366,
77,
3239,
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
] | [
8241,
550,
262,
749,
2173,
287,
262,
983,
319,
3389,
1105,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
4521,
33411,
3128,
796,
366,
77,
3239,
1105,
1
] |
What is the Date for Catalog of lp 5060? | SELECT "Date" FROM table_43266 WHERE "Catalog" = 'lp 5060' | [
2061,
318,
262,
7536,
329,
44515,
286,
300,
79,
2026,
1899,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3559,
25540,
33411,
366,
49015,
1,
796,
705,
34431,
2026,
1899,
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,
7536,
329,
44515,
286,
300,
79,
2026,
1899,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3559,
25540,
33411,
366,
49015,
1,
796,
705,
34431,
2026,
1899,
6
] |
What is the average Points, when Played is greater than 126? | SELECT AVG(points) FROM table_name_3 WHERE played > 126 | [
2061,
318,
262,
2811,
11045,
11,
618,
33101,
318,
3744,
621,
19710,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
2826,
1875,
19710
] | [
1,
1,
1,
1,
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,
11045,
11,
618,
33101,
318,
3744,
621,
19710,
30,
46506,
35224,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
2826,
1875,
19710
] |
What years did Tom Lehman win? | SELECT year_s__won FROM table_name_25 WHERE player = "tom lehman" | [
2061,
812,
750,
4186,
29921,
805,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
1495,
33411,
2137,
796,
366,
39532,
443,
71,
805,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
812,
750,
4186,
29921,
805,
1592,
30,
46506,
614,
62,
82,
834,
26502,
16034,
3084,
62,
3672,
62,
1495,
33411,
2137,
796,
366,
39532,
443,
71,
805,
1
] |
Do the classes on Friday include CLCIV 326 ? | SELECT DISTINCT course_offering.friday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course.department = 'CLCIV' AND course.number = 326 AND semester.semester = 'WN' AND semester.year = 2016 | [
5211,
262,
6097,
319,
3217,
2291,
327,
5639,
3824,
40660,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
8310,
2567,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
5211,
262,
6097,
319,
3217,
2291,
327,
5639,
3824,
40660,
5633,
46506,
360,
8808,
1268,
4177,
1781,
62,
2364,
1586,
13,
8310,
2567,
16034,
1781,
3268,
21479,
32357,
1268,
1781,
62,
2364,
1586,
6177,
1781,
13,
17319,
62,
312,
796,
1781,
... |
Which part one is class 7d? | SELECT "Part 1" FROM table_49226 WHERE "Class" = '7d' | [
13828,
636,
530,
318,
1398,
767,
67,
30,
46506,
366,
7841,
352,
1,
16034,
3084,
62,
2920,
24909,
33411,
366,
9487,
1,
796,
705,
22,
67,
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
] | [
13828,
636,
530,
318,
1398,
767,
67,
30,
46506,
366,
7841,
352,
1,
16034,
3084,
62,
2920,
24909,
33411,
366,
9487,
1,
796,
705,
22,
67,
6
] |
Aside from Prof. Oches , does anyone else teach Special Readings ? | SELECT DISTINCT course.department, course.name, course.number, instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.name LIKE '%Special Readings%' AND NOT instructor.name LIKE '%Oches%' AND offering_instructor.instructor_id = instruc... | [
32602,
422,
4415,
13,
440,
2052,
837,
857,
2687,
2073,
4545,
6093,
4149,
654,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
21187,
13,
3672,
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... | [
32602,
422,
4415,
13,
440,
2052,
837,
857,
2687,
2073,
4545,
6093,
4149,
654,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
21187,
13,
3672,
16034,
1781,
11,
1781,
62,
2364,
... |
What are the different types of video games? | SELECT DISTINCT gtype FROM video_games | [
2061,
389,
262,
1180,
3858,
286,
2008,
1830,
30,
46506,
360,
8808,
1268,
4177,
308,
4906,
16034,
2008,
62,
19966
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
389,
262,
1180,
3858,
286,
2008,
1830,
30,
46506,
360,
8808,
1268,
4177,
308,
4906,
16034,
2008,
62,
19966
] |
Hidden gems: Lowest viewed questions with score 50 or higher. | SELECT Posts.Id AS "post_link", Posts.OwnerUserId AS "user_link", Score, ViewCount, Score * 1000 / ViewCount AS "Score per Thousand Views" FROM Posts WHERE Score >= 50 AND PostTypeId = 1 ORDER BY ViewCount LIMIT 1000 | [
41691,
23685,
25,
7754,
395,
9569,
2683,
351,
4776,
2026,
393,
2440,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
15178,
11,
3582,
12332,
11,
15178,
1635,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
41691,
23685,
25,
7754,
395,
9569,
2683,
351,
4776,
2026,
393,
2440,
13,
46506,
12043,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
12043,
13,
42419,
12982,
7390,
7054,
366,
7220,
62,
8726,
1600,
15178,
11,
3582,
12332,
11,
15178,
1635,
... |
What is the title of the episode whose original airdate is April 23, 2010? | SELECT title FROM table_26982362_2 WHERE original_airdate = "April 23, 2010" | [
2061,
318,
262,
3670,
286,
262,
4471,
3025,
2656,
257,
1447,
378,
318,
3035,
2242,
11,
3050,
30,
46506,
3670,
16034,
3084,
62,
2075,
4089,
1954,
5237,
62,
17,
33411,
2656,
62,
958,
4475,
796,
366,
16784,
2242,
11,
3050,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
3670,
286,
262,
4471,
3025,
2656,
257,
1447,
378,
318,
3035,
2242,
11,
3050,
30,
46506,
3670,
16034,
3084,
62,
2075,
4089,
1954,
5237,
62,
17,
33411,
2656,
62,
958,
4475,
796,
366,
16784,
2242,
11,
3050,
1
] |
What was the attendance on August 8? | SELECT "Attendance" FROM table_69380 WHERE "Date" = 'august 8' | [
2061,
373,
262,
14858,
319,
2932,
807,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
3388,
23734,
33411,
366,
10430,
1,
796,
705,
7493,
436,
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
] | [
2061,
373,
262,
14858,
319,
2932,
807,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
3388,
23734,
33411,
366,
10430,
1,
796,
705,
7493,
436,
807,
6
] |
What was the result in the voting district Kentucky 2? | SELECT result FROM table_1342218_17 WHERE district = "Kentucky 2" | [
2061,
373,
262,
1255,
287,
262,
6709,
4783,
11867,
362,
30,
46506,
1255,
16034,
3084,
62,
19880,
1828,
1507,
62,
1558,
33411,
4783,
796,
366,
42265,
5309,
362,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
287,
262,
6709,
4783,
11867,
362,
30,
46506,
1255,
16034,
3084,
62,
19880,
1828,
1507,
62,
1558,
33411,
4783,
796,
366,
42265,
5309,
362,
1
] |
Show me about the distribution of Sex and the amount of Sex , and group by attribute Sex in a bar chart, and sort by the bars from high to low please. | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY Sex DESC | [
15307,
502,
546,
262,
6082,
286,
14419,
290,
262,
2033,
286,
14419,
837,
290,
1448,
416,
11688,
14419,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
9210,
422,
1029,
284,
1877,
3387,
13,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
502,
546,
262,
6082,
286,
14419,
290,
262,
2033,
286,
14419,
837,
290,
1448,
416,
11688,
14419,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
9210,
422,
1029,
284,
1877,
3387,
13,
46506,
14419,
11,
327,
28270,
7,
23398,
8,
1... |
how many patients whose ethnicity is black/african american and drug type is additive? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND prescriptions.drug_type = "ADDITIVE" | [
4919,
867,
3871,
3025,
26289,
318,
2042,
14,
1878,
37189,
45630,
272,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
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... | [
4919,
867,
3871,
3025,
26289,
318,
2042,
14,
1878,
37189,
45630,
272,
290,
2563,
2099,
318,
38298,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,... |
Which gatchaman has eagle riders as lukan? | SELECT gatchaman FROM table_17480471_3 WHERE eagle_riders = "Lukan" | [
13828,
308,
963,
10546,
468,
31176,
13750,
355,
300,
2724,
272,
30,
46506,
308,
963,
10546,
16034,
3084,
62,
1558,
22148,
38339,
62,
18,
33411,
31176,
62,
81,
4157,
796,
366,
43,
2724,
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,
1,
1,
1,
1,
1
] | [
13828,
308,
963,
10546,
468,
31176,
13750,
355,
300,
2724,
272,
30,
46506,
308,
963,
10546,
16034,
3084,
62,
1558,
22148,
38339,
62,
18,
33411,
31176,
62,
81,
4157,
796,
366,
43,
2724,
272,
1
] |
Which Programming has a Channel of 35.4? | SELECT programming FROM table_name_14 WHERE channel = 35.4 | [
13828,
30297,
468,
257,
11102,
286,
3439,
13,
19,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
1415,
33411,
6518,
796,
3439,
13,
19
] | [
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,
30297,
468,
257,
11102,
286,
3439,
13,
19,
30,
46506,
8300,
16034,
3084,
62,
3672,
62,
1415,
33411,
6518,
796,
3439,
13,
19
] |
what is the number of patients whose admission location is emergency room admit and year of birth is less than 2184? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.dob_year < "2184" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
614,
286,
4082,
318,
1342,
621,
362,
22883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
4067,
318,
6334,
2119,
9159,
290,
614,
286,
4082,
318,
1342,
621,
362,
22883,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,... |
Which Time has a Round larger than 1, and an Event of total fighting alliance 2? | SELECT "Time" FROM table_5031 WHERE "Round" > '1' AND "Event" = 'total fighting alliance 2' | [
13828,
3862,
468,
257,
10485,
4025,
621,
352,
11,
290,
281,
8558,
286,
2472,
4330,
12801,
362,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
1120,
3132,
33411,
366,
22685,
1,
1875,
705,
16,
6,
5357,
366,
9237,
1,
796,
705,
23350,
4330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
257,
10485,
4025,
621,
352,
11,
290,
281,
8558,
286,
2472,
4330,
12801,
362,
30,
46506,
366,
7575,
1,
16034,
3084,
62,
1120,
3132,
33411,
366,
22685,
1,
1875,
705,
16,
6,
5357,
366,
9237,
1,
796,
705,
23350,
4330,
... |
What is the date of birth for the player in the Inglewood club? | SELECT "D.O.B" FROM table_74036 WHERE "Club" = 'Inglewood' | [
2061,
318,
262,
3128,
286,
4082,
329,
262,
2137,
287,
262,
17589,
293,
3822,
3430,
30,
46506,
366,
35,
13,
46,
13,
33,
1,
16034,
3084,
62,
45598,
2623,
33411,
366,
42350,
1,
796,
705,
27682,
293,
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,
1,
1
] | [
2061,
318,
262,
3128,
286,
4082,
329,
262,
2137,
287,
262,
17589,
293,
3822,
3430,
30,
46506,
366,
35,
13,
46,
13,
33,
1,
16034,
3084,
62,
45598,
2623,
33411,
366,
42350,
1,
796,
705,
27682,
293,
3822,
6
] |
Find the titles of the papers that contain the word 'ML'. | SELECT title FROM papers WHERE title LIKE "%ML%" | [
16742,
262,
8714,
286,
262,
9473,
326,
3994,
262,
1573,
705,
5805,
4458,
46506,
3670,
16034,
9473,
33411,
3670,
34178,
36521,
5805,
39658
] | [
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,
8714,
286,
262,
9473,
326,
3994,
262,
1573,
705,
5805,
4458,
46506,
3670,
16034,
9473,
33411,
3670,
34178,
36521,
5805,
39658
] |
Name the chairman for iker casillas | SELECT "Chairman" FROM table_31118 WHERE "Captain" = 'Iker Casillas' | [
5376,
262,
8900,
329,
220,
18320,
6124,
25314,
46506,
366,
43189,
805,
1,
16034,
3084,
62,
36244,
1507,
33411,
366,
27898,
1,
796,
705,
40,
6122,
11294,
25314,
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,
262,
8900,
329,
220,
18320,
6124,
25314,
46506,
366,
43189,
805,
1,
16034,
3084,
62,
36244,
1507,
33411,
366,
27898,
1,
796,
705,
40,
6122,
11294,
25314,
6
] |
What co-singer has sukhwinder singh as the composer? | SELECT co_singer FROM table_name_26 WHERE composer = "sukhwinder singh" | [
2061,
763,
12,
82,
3889,
468,
424,
14636,
86,
5540,
1702,
71,
355,
262,
26777,
30,
46506,
763,
62,
82,
3889,
16034,
3084,
62,
3672,
62,
2075,
33411,
26777,
796,
366,
2385,
14636,
86,
5540,
1702,
71,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
763,
12,
82,
3889,
468,
424,
14636,
86,
5540,
1702,
71,
355,
262,
26777,
30,
46506,
763,
62,
82,
3889,
16034,
3084,
62,
3672,
62,
2075,
33411,
26777,
796,
366,
2385,
14636,
86,
5540,
1702,
71,
1
] |
what is the highest amount of passengers when there is a rank of 1? | SELECT MAX(total_passengers) FROM table_name_94 WHERE rank = 1 | [
10919,
318,
262,
4511,
2033,
286,
10405,
618,
612,
318,
257,
4279,
286,
352,
30,
46506,
25882,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
4279,
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,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
4511,
2033,
286,
10405,
618,
612,
318,
257,
4279,
286,
352,
30,
46506,
25882,
7,
23350,
62,
6603,
9302,
8,
16034,
3084,
62,
3672,
62,
5824,
33411,
4279,
796,
352
] |
has patient 69289 undergone a annuloplasty treatment in their first hospital visit? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'annuloplasty') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 69289 AND NOT admissions.dischtime... | [
10134,
5827,
8644,
27693,
29900,
257,
1529,
377,
20106,
7833,
3513,
287,
511,
717,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
4650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10134,
5827,
8644,
27693,
29900,
257,
1529,
377,
20106,
7833,
3513,
287,
511,
717,
4436,
3187,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
9021,
62,
291,
67,
33411,
9021,
62,
291,
67,
13,
291,
67,
24,
62,
8189,
796,
357,
4650... |
Find the number of students who is older than 20 in each dorm Plot them as bar chart, sort bars in asc order. | SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name ORDER BY dorm_name | [
16742,
262,
1271,
286,
2444,
508,
318,
4697,
621,
1160,
287,
1123,
18586,
28114,
606,
355,
2318,
8262,
11,
3297,
9210,
287,
10570,
1502,
13,
46506,
18586,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
13613,
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,
1... | [
16742,
262,
1271,
286,
2444,
508,
318,
4697,
621,
1160,
287,
1123,
18586,
28114,
606,
355,
2318,
8262,
11,
3297,
9210,
287,
10570,
1502,
13,
46506,
18586,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
13613,
7054,
309,
16,
32357,
1268,
1... |
Will there be a 1 -credit upper level class for Fall 2016 ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.credits = 1 AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Fall' AND seme... | [
8743,
612,
307,
257,
352,
532,
43082,
6727,
1241,
1398,
329,
7218,
1584,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8743,
612,
307,
257,
352,
532,
43082,
6727,
1241,
1398,
329,
7218,
1584,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
16034,
1781,
11,
1781,
62,
2364,
1586,
11,
1430,
62,
17319,
... |
What were the number of voters McCain had when Obama had 895? | SELECT "McCain#" FROM table_73223 WHERE "Obama#" = '895' | [
2061,
547,
262,
1271,
286,
4446,
14264,
550,
618,
2486,
550,
807,
3865,
30,
46506,
366,
30464,
391,
2,
1,
16034,
3084,
62,
4790,
22047,
33411,
366,
15948,
2,
1,
796,
705,
23,
3865,
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,
547,
262,
1271,
286,
4446,
14264,
550,
618,
2486,
550,
807,
3865,
30,
46506,
366,
30464,
391,
2,
1,
16034,
3084,
62,
4790,
22047,
33411,
366,
15948,
2,
1,
796,
705,
23,
3865,
6
] |
Which runner(s)-up had a Winning score of 13 (68-70-66-71=275) and a Margin of victory of 3 strokes? | SELECT "Runner(s)-up" FROM table_42331 WHERE "Margin of victory" = '3 strokes' AND "Winning score" = '–13 (68-70-66-71=275)' | [
13828,
17490,
7,
82,
13219,
929,
550,
257,
40983,
4776,
286,
1511,
357,
3104,
12,
2154,
12,
2791,
12,
4869,
28,
23195,
8,
290,
257,
11899,
259,
286,
5373,
286,
513,
29483,
30,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17490,
7,
82,
13219,
929,
550,
257,
40983,
4776,
286,
1511,
357,
3104,
12,
2154,
12,
2791,
12,
4869,
28,
23195,
8,
290,
257,
11899,
259,
286,
5373,
286,
513,
29483,
30,
46506,
366,
49493,
7,
82,
13219,
929,
1,
16034,
3084,
... |
What is the sum of Goals win an Average larger than 1? | SELECT COUNT("Goals") FROM table_61696 WHERE "Average" > '1' | [
2061,
318,
262,
2160,
286,
28510,
1592,
281,
13475,
4025,
621,
352,
30,
46506,
327,
28270,
7203,
5247,
874,
4943,
16034,
3084,
62,
44214,
4846,
33411,
366,
26287,
1,
1875,
705,
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
] | [
2061,
318,
262,
2160,
286,
28510,
1592,
281,
13475,
4025,
621,
352,
30,
46506,
327,
28270,
7203,
5247,
874,
4943,
16034,
3084,
62,
44214,
4846,
33411,
366,
26287,
1,
1875,
705,
16,
6
] |
What was the lowest pick number for the Boston Celtics? | SELECT MIN(pick) FROM table_name_5 WHERE team = "boston celtics" | [
2061,
373,
262,
9016,
2298,
1271,
329,
262,
6182,
24116,
30,
46506,
20625,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
1074,
796,
366,
65,
5744,
269,
2120,
873,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
2298,
1271,
329,
262,
6182,
24116,
30,
46506,
20625,
7,
27729,
8,
16034,
3084,
62,
3672,
62,
20,
33411,
1074,
796,
366,
65,
5744,
269,
2120,
873,
1
] |
What district is incumbent albert rains from? | SELECT district FROM table_1341897_3 WHERE incumbent = "Albert Rains" | [
2061,
4783,
318,
23526,
435,
4835,
29424,
422,
30,
46506,
4783,
16034,
3084,
62,
19880,
1507,
5607,
62,
18,
33411,
23526,
796,
366,
42590,
371,
1299,
1
] | [
1,
1,
1,
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,
4783,
318,
23526,
435,
4835,
29424,
422,
30,
46506,
4783,
16034,
3084,
62,
19880,
1507,
5607,
62,
18,
33411,
23526,
796,
366,
42590,
371,
1299,
1
] |
What are the Lyrics (l) / Music (m) when the draw was 5? | SELECT lyrics__l____music__m_ FROM table_name_60 WHERE draw = 5 | [
2061,
389,
262,
406,
14279,
357,
75,
8,
1220,
7849,
357,
76,
8,
618,
262,
3197,
373,
642,
30,
46506,
15844,
834,
75,
1427,
28965,
834,
76,
62,
16034,
3084,
62,
3672,
62,
1899,
33411,
3197,
796,
642
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
406,
14279,
357,
75,
8,
1220,
7849,
357,
76,
8,
618,
262,
3197,
373,
642,
30,
46506,
15844,
834,
75,
1427,
28965,
834,
76,
62,
16034,
3084,
62,
3672,
62,
1899,
33411,
3197,
796,
642
] |
how many patients underwent immobiliz/wound attn nec during the same hospital encounter after they had been diagnosed with cardiogenic shock, until 2 years ago? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title =... | [
4919,
867,
3871,
25289,
47800,
528,
14,
86,
633,
708,
77,
27576,
1141,
262,
976,
4436,
8791,
706,
484,
550,
587,
14641,
351,
2657,
72,
15147,
6380,
11,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
25289,
47800,
528,
14,
86,
633,
708,
77,
27576,
1141,
262,
976,
4436,
8791,
706,
484,
550,
587,
14641,
351,
2657,
72,
15147,
6380,
11,
1566,
362,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
... |
What is the sum of rounds that has a pick of 9 and is named jim pyburn? | SELECT SUM("Round") FROM table_77232 WHERE "Pick" = '9' AND "Name" = 'jim pyburn' | [
2061,
318,
262,
2160,
286,
9196,
326,
468,
257,
2298,
286,
860,
290,
318,
3706,
474,
320,
12972,
10899,
30,
46506,
35683,
7203,
22685,
4943,
16034,
3084,
62,
3324,
24339,
33411,
366,
31686,
1,
796,
705,
24,
6,
5357,
366,
5376,
1,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2160,
286,
9196,
326,
468,
257,
2298,
286,
860,
290,
318,
3706,
474,
320,
12972,
10899,
30,
46506,
35683,
7203,
22685,
4943,
16034,
3084,
62,
3324,
24339,
33411,
366,
31686,
1,
796,
705,
24,
6,
5357,
366,
5376,
1,
79... |
What percentage did chris wright receive? | SELECT percentage FROM table_name_23 WHERE candidate = "chris wright" | [
2061,
5873,
750,
442,
2442,
1319,
432,
3328,
30,
46506,
5873,
16034,
3084,
62,
3672,
62,
1954,
33411,
4540,
796,
366,
354,
2442,
1319,
432,
1
] | [
1,
1,
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,
5873,
750,
442,
2442,
1319,
432,
3328,
30,
46506,
5873,
16034,
3084,
62,
3672,
62,
1954,
33411,
4540,
796,
366,
354,
2442,
1319,
432,
1
] |
When was the incident in Pol-E Khomri? | SELECT "Date" FROM table_71249 WHERE "Location" = 'pol-e khomri' | [
2215,
373,
262,
4519,
287,
2165,
12,
36,
5311,
296,
380,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
49517,
2920,
33411,
366,
14749,
1,
796,
705,
16104,
12,
68,
479,
26452,
380,
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,
373,
262,
4519,
287,
2165,
12,
36,
5311,
296,
380,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
49517,
2920,
33411,
366,
14749,
1,
796,
705,
16104,
12,
68,
479,
26452,
380,
6
] |
What is the capital for the state that has the largest city of Burlington? | SELECT capital FROM table_name_27 WHERE largest_city = "burlington" | [
2061,
318,
262,
3139,
329,
262,
1181,
326,
468,
262,
4387,
1748,
286,
37090,
30,
46506,
3139,
16034,
3084,
62,
3672,
62,
1983,
33411,
4387,
62,
19205,
796,
366,
6236,
17299,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3139,
329,
262,
1181,
326,
468,
262,
4387,
1748,
286,
37090,
30,
46506,
3139,
16034,
3084,
62,
3672,
62,
1983,
33411,
4387,
62,
19205,
796,
366,
6236,
17299,
1
] |
what is the lowest grid when the laps is more than 7 and the driver is rubens barrichello? | SELECT MIN("Grid") FROM table_51932 WHERE "Laps" > '7' AND "Driver" = 'rubens barrichello' | [
10919,
318,
262,
9016,
10706,
618,
262,
24590,
318,
517,
621,
767,
290,
262,
4639,
318,
6437,
641,
31853,
31373,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
47785,
2624,
33411,
366,
43,
1686,
1,
1875,
705,
22,
6,
5357,
366,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
9016,
10706,
618,
262,
24590,
318,
517,
621,
767,
290,
262,
4639,
318,
6437,
641,
31853,
31373,
30,
46506,
20625,
7203,
41339,
4943,
16034,
3084,
62,
47785,
2624,
33411,
366,
43,
1686,
1,
1875,
705,
22,
6,
5357,
366,
... |
What is Scott Hoch with a Score of 66 Country? | SELECT "Country" FROM table_46752 WHERE "Score" = '66' AND "Player" = 'scott hoch' | [
2061,
318,
4746,
367,
5374,
351,
257,
15178,
286,
7930,
12946,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
3510,
43665,
33411,
366,
26595,
1,
796,
705,
2791,
6,
5357,
366,
14140,
1,
796,
705,
1416,
1252,
289,
5374,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4746,
367,
5374,
351,
257,
15178,
286,
7930,
12946,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
3510,
43665,
33411,
366,
26595,
1,
796,
705,
2791,
6,
5357,
366,
14140,
1,
796,
705,
1416,
1252,
289,
5374,
6
] |
how many patients have stayed in the hospital for more than 14 days with the primary disease colangitis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.days_stay > "14" | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
1478,
1528,
351,
262,
4165,
4369,
951,
648,
11815,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
423,
9658,
287,
262,
4436,
329,
517,
621,
1478,
1528,
351,
262,
4165,
4369,
951,
648,
11815,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
... |
Count the number of patients who stayed in room 112. | SELECT COUNT(patient) FROM stay WHERE room = 112 | [
12332,
262,
1271,
286,
3871,
508,
9658,
287,
2119,
13539,
13,
46506,
327,
28270,
7,
26029,
8,
16034,
2652,
33411,
2119,
796,
13539
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
12332,
262,
1271,
286,
3871,
508,
9658,
287,
2119,
13539,
13,
46506,
327,
28270,
7,
26029,
8,
16034,
2652,
33411,
2119,
796,
13539
] |
Show the number of delegates in each committee with a bar chart, and show by the Committee in ascending. | SELECT Committee, COUNT(Committee) FROM election GROUP BY Committee ORDER BY Committee | [
15307,
262,
1271,
286,
15265,
287,
1123,
5583,
351,
257,
2318,
8262,
11,
290,
905,
416,
262,
4606,
287,
41988,
13,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
44441,
11050,
4606,
38678,
11050,
4606
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
15265,
287,
1123,
5583,
351,
257,
2318,
8262,
11,
290,
905,
416,
262,
4606,
287,
41988,
13,
46506,
4606,
11,
327,
28270,
7,
6935,
2979,
8,
16034,
3071,
44441,
11050,
4606,
38678,
11050,
4606
] |
Which courses offer 13 credits in regards to the RELIGION 200 -level ? | SELECT DISTINCT department, name, number FROM course WHERE credits = 13 AND department = 'RELIGION' AND number < 200 + 100 AND number >= 200 | [
13828,
10902,
2897,
1511,
10824,
287,
13957,
284,
262,
29749,
3528,
2849,
939,
532,
5715,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
1511,
5357,
5011,
796,
705,
16448,
3528,
2849,
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
] | [
13828,
10902,
2897,
1511,
10824,
287,
13957,
284,
262,
29749,
3528,
2849,
939,
532,
5715,
5633,
46506,
360,
8808,
1268,
4177,
5011,
11,
1438,
11,
1271,
16034,
1781,
33411,
10824,
796,
1511,
5357,
5011,
796,
705,
16448,
3528,
2849,
6,
53... |
what difference is there in patient 20166's weight second measured on the first hospital visit compared to the first value measured on the first hospital visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20166 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartev... | [
10919,
3580,
318,
612,
287,
5827,
1584,
21,
338,
3463,
1218,
8630,
319,
262,
717,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
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... | [
10919,
3580,
318,
612,
287,
5827,
1584,
21,
338,
3463,
1218,
8630,
319,
262,
717,
4436,
3187,
3688,
284,
262,
717,
1988,
8630,
319,
262,
717,
4436,
3187,
30,
46506,
357,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
334... |
what flights leave PITTSBURGH 7 5 after 1900 and arrive in SAN FRANCISCO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_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... | [
10919,
13956,
2666,
49040,
4694,
38926,
17511,
767,
642,
706,
21489,
290,
9240,
287,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
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,
13956,
2666,
49040,
4694,
38926,
17511,
767,
642,
706,
21489,
290,
9240,
287,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
6... |
What is T8 Place Player Scott Hoch's Score? | SELECT score FROM table_name_26 WHERE place = "t8" AND player = "scott hoch" | [
2061,
318,
309,
23,
8474,
7853,
4746,
367,
5374,
338,
15178,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2075,
33411,
1295,
796,
366,
83,
23,
1,
5357,
2137,
796,
366,
1416,
1252,
289,
5374,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
23,
8474,
7853,
4746,
367,
5374,
338,
15178,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
2075,
33411,
1295,
796,
366,
83,
23,
1,
5357,
2137,
796,
366,
1416,
1252,
289,
5374,
1
] |
Which institution was founded in 1932? | SELECT institution FROM table_27816698_2 WHERE founded = 1932 | [
13828,
9901,
373,
9393,
287,
32471,
30,
46506,
9901,
16034,
3084,
62,
25870,
1433,
39357,
62,
17,
33411,
9393,
796,
32471
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
9901,
373,
9393,
287,
32471,
30,
46506,
9901,
16034,
3084,
62,
25870,
1433,
39357,
62,
17,
33411,
9393,
796,
32471
] |
What are the active pixels of the cantare model? | SELECT "Active Pixels" FROM table_76484 WHERE "Model" = 'cantare' | [
2061,
389,
262,
4075,
17848,
286,
262,
18548,
533,
2746,
30,
46506,
366,
13739,
350,
14810,
1,
16034,
3084,
62,
22,
2414,
5705,
33411,
366,
17633,
1,
796,
705,
66,
415,
533,
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,
389,
262,
4075,
17848,
286,
262,
18548,
533,
2746,
30,
46506,
366,
13739,
350,
14810,
1,
16034,
3084,
62,
22,
2414,
5705,
33411,
366,
17633,
1,
796,
705,
66,
415,
533,
6
] |
Find the number of the dates of the tests taken with result 'Pass', show total number from high to low order. | SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" GROUP BY date_test_taken ORDER BY COUNT(date_test_taken) DESC | [
16742,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
905,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
62,
83,
1685,
8,
16034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
262,
1271,
286,
262,
9667,
286,
262,
5254,
2077,
351,
1255,
705,
14478,
3256,
905,
2472,
1271,
422,
1029,
284,
1877,
1502,
13,
46506,
3128,
62,
9288,
62,
83,
1685,
11,
327,
28270,
7,
4475,
62,
9288,
62,
83,
1685,
8,
16034,
... |
provide the number of patients whose days of hospital stay is greater than 4 and drug code is enal25i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "4" AND prescriptions.formulary_drug_cd = "ENAL25I" | [
15234,
485,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
2563,
2438,
318,
551,
282,
1495,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
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... | [
15234,
485,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
604,
290,
2563,
2438,
318,
551,
282,
1495,
72,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
3... |
What was the purse when the trainer was Aidan O'Brien? | SELECT "Purse" FROM table_6130 WHERE "Trainer" = 'aidan o''brien' | [
2061,
373,
262,
27517,
618,
262,
21997,
373,
22225,
272,
440,
6,
20118,
30,
46506,
366,
47,
12321,
1,
16034,
3084,
62,
5333,
1270,
33411,
366,
2898,
10613,
1,
796,
705,
1698,
272,
267,
7061,
65,
15355,
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,
373,
262,
27517,
618,
262,
21997,
373,
22225,
272,
440,
6,
20118,
30,
46506,
366,
47,
12321,
1,
16034,
3084,
62,
5333,
1270,
33411,
366,
2898,
10613,
1,
796,
705,
1698,
272,
267,
7061,
65,
15355,
6
] |
Which track was used on September 12, 1981? | SELECT "Track" FROM table_25291 WHERE "Date" = 'September 12, 1981' | [
13828,
2610,
373,
973,
319,
2693,
1105,
11,
14745,
30,
46506,
366,
24802,
1,
16034,
3084,
62,
1495,
33551,
33411,
366,
10430,
1,
796,
705,
17543,
1105,
11,
14745,
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
] | [
13828,
2610,
373,
973,
319,
2693,
1105,
11,
14745,
30,
46506,
366,
24802,
1,
16034,
3084,
62,
1495,
33551,
33411,
366,
10430,
1,
796,
705,
17543,
1105,
11,
14745,
6
] |
What is the smallest number of spikes for players with a weight of 83 and height over 190? | SELECT MIN("Spike") FROM table_42408 WHERE "Weight" = '83' AND "Height" > '190' | [
2061,
318,
262,
18197,
1271,
286,
27198,
329,
1938,
351,
257,
3463,
286,
9698,
290,
6001,
625,
19884,
30,
46506,
20625,
7203,
4561,
522,
4943,
16034,
3084,
62,
40090,
2919,
33411,
366,
25844,
1,
796,
705,
5999,
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
] | [
2061,
318,
262,
18197,
1271,
286,
27198,
329,
1938,
351,
257,
3463,
286,
9698,
290,
6001,
625,
19884,
30,
46506,
20625,
7203,
4561,
522,
4943,
16034,
3084,
62,
40090,
2919,
33411,
366,
25844,
1,
796,
705,
5999,
6,
5357,
366,
23106,
1,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, visualize a bar chart about the distribution of first_name and manager_id , and display in asc by the Y-axis please. | SELECT FIRST_NAME, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
4706,
62,
312,
837,
290,
3359,
287,
10570,
416,
262,
575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
38350,
257,
2318,
8262,
546,
262,
6082,
286,
717,
62,
3672,
290,
4706,
62,
312,
837,
290,
3359,
287,
10570,
416,
262,
575,
... |
Give me a histogram for how many registed students do each course have? List course name and the number of their registered students?, rank by the y axis from high to low. | SELECT course_name, COUNT(*) FROM Students AS T1 JOIN Student_Course_Registrations AS T2 ON T1.student_id = T2.student_id JOIN Courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id ORDER BY COUNT(*) DESC | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
4214,
276,
2444,
466,
1123,
1781,
423,
30,
7343,
1781,
1438,
290,
262,
1271,
286,
511,
6823,
2444,
21747,
4279,
416,
262,
331,
16488,
422,
1029,
284,
1877,
13,
46506,
1781,
62,
3672,
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... | [
23318,
502,
257,
1554,
21857,
329,
703,
867,
4214,
276,
2444,
466,
1123,
1781,
423,
30,
7343,
1781,
1438,
290,
262,
1271,
286,
511,
6823,
2444,
21747,
4279,
416,
262,
331,
16488,
422,
1029,
284,
1877,
13,
46506,
1781,
62,
3672,
11,
... |
give me the number of patients whose days of hospital stay is greater than 5 and diagnoses short title is personality disorder nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "5" AND diagnoses.short_title = "Personality disorder NOS" | [
26535,
502,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
642,
290,
40567,
1790,
3670,
318,
8806,
8967,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
286,
4436,
2652,
318,
3744,
621,
642,
290,
40567,
1790,
3670,
318,
8806,
8967,
43630,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005? | SELECT "Pre-Race Host" FROM table_57268 WHERE "Lap-by-lap" = 'mike joy' AND "Year" = '2005' | [
8241,
373,
262,
3771,
12,
35157,
14504,
618,
4995,
14087,
373,
262,
26944,
12,
1525,
12,
37796,
287,
262,
6280,
5075,
30,
46506,
366,
6719,
12,
35157,
14504,
1,
16034,
3084,
62,
3553,
25022,
33411,
366,
43,
499,
12,
1525,
12,
37796,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3771,
12,
35157,
14504,
618,
4995,
14087,
373,
262,
26944,
12,
1525,
12,
37796,
287,
262,
6280,
5075,
30,
46506,
366,
6719,
12,
35157,
14504,
1,
16034,
3084,
62,
3553,
25022,
33411,
366,
43,
499,
12,
1525,
12,
37796,
... |
which two chips have the most flash size ? | SELECT "chip" FROM table_204_416 WHERE "flash size" = (SELECT MAX("flash size") FROM table_204_416) | [
4758,
734,
12014,
423,
262,
749,
7644,
2546,
5633,
46506,
366,
35902,
1,
16034,
3084,
62,
18638,
62,
35218,
33411,
366,
34167,
2546,
1,
796,
357,
46506,
25882,
7203,
34167,
2546,
4943,
16034,
3084,
62,
18638,
62,
35218,
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
] | [
4758,
734,
12014,
423,
262,
749,
7644,
2546,
5633,
46506,
366,
35902,
1,
16034,
3084,
62,
18638,
62,
35218,
33411,
366,
34167,
2546,
1,
796,
357,
46506,
25882,
7203,
34167,
2546,
4943,
16034,
3084,
62,
18638,
62,
35218,
8
] |
When none (new seat) is the first elected who are the candidates? | SELECT "Candidates" FROM table_3187 WHERE "First elected" = 'None (New seat)' | [
2215,
4844,
357,
3605,
5852,
8,
318,
262,
717,
7018,
508,
389,
262,
5871,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
18,
23451,
33411,
366,
5962,
7018,
1,
796,
705,
14202,
357,
3791,
5852,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
4844,
357,
3605,
5852,
8,
318,
262,
717,
7018,
508,
389,
262,
5871,
30,
46506,
366,
41572,
37051,
1,
16034,
3084,
62,
18,
23451,
33411,
366,
5962,
7018,
1,
796,
705,
14202,
357,
3791,
5852,
33047
] |
What episode number in the series had a production code of 3x7554? | SELECT MIN(no_in_series) FROM table_22347090_6 WHERE production_code = "3X7554" | [
2061,
4471,
1271,
287,
262,
2168,
550,
257,
3227,
2438,
286,
513,
87,
2425,
4051,
30,
46506,
20625,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
1828,
2682,
2154,
3829,
62,
21,
33411,
3227,
62,
8189,
796,
366,
18,
55,
2425,
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
] | [
2061,
4471,
1271,
287,
262,
2168,
550,
257,
3227,
2438,
286,
513,
87,
2425,
4051,
30,
46506,
20625,
7,
3919,
62,
259,
62,
25076,
8,
16034,
3084,
62,
1828,
2682,
2154,
3829,
62,
21,
33411,
3227,
62,
8189,
796,
366,
18,
55,
2425,
40... |
List the number of the name of technicians whose team is not 'NYY', order by the X-axis in desc. | SELECT Name, COUNT(Name) FROM technician WHERE Team <> "NYY" GROUP BY Name ORDER BY Name DESC | [
8053,
262,
1271,
286,
262,
1438,
286,
33519,
3025,
1074,
318,
407,
705,
12805,
56,
3256,
1502,
416,
262,
1395,
12,
22704,
287,
1715,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
33024,
33411,
4816,
1279,
29,
366,
12805,
56,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
262,
1271,
286,
262,
1438,
286,
33519,
3025,
1074,
318,
407,
705,
12805,
56,
3256,
1502,
416,
262,
1395,
12,
22704,
287,
1715,
13,
46506,
6530,
11,
327,
28270,
7,
5376,
8,
16034,
33024,
33411,
4816,
1279,
29,
366,
12805,
56,
1... |
What are all the schools that use the colors maroon and white | SELECT "School" FROM table_1270 WHERE "Colors" = 'Maroon and White' | [
2061,
389,
477,
262,
4266,
326,
779,
262,
7577,
1667,
2049,
290,
2330,
46506,
366,
26130,
1,
16034,
3084,
62,
1065,
2154,
33411,
366,
5216,
669,
1,
796,
705,
7676,
2049,
290,
2635,
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,
389,
477,
262,
4266,
326,
779,
262,
7577,
1667,
2049,
290,
2330,
46506,
366,
26130,
1,
16034,
3084,
62,
1065,
2154,
33411,
366,
5216,
669,
1,
796,
705,
7676,
2049,
290,
2635,
6
] |
Who were the partners during times that harry johnson hazel hotchkiss wightman was the opponent? | SELECT "Partner" FROM table_24243 WHERE "Opponents" = 'Harry Johnson Hazel Hotchkiss Wightman' | [
8241,
547,
262,
4887,
1141,
1661,
326,
3971,
563,
45610,
1559,
11595,
417,
3024,
354,
41304,
266,
432,
805,
373,
262,
6125,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
1731,
26660,
33411,
366,
27524,
3906,
1,
796,
705,
18308,
5030... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
547,
262,
4887,
1141,
1661,
326,
3971,
563,
45610,
1559,
11595,
417,
3024,
354,
41304,
266,
432,
805,
373,
262,
6125,
30,
46506,
366,
7841,
1008,
1,
16034,
3084,
62,
1731,
26660,
33411,
366,
27524,
3906,
1,
796,
705,
18308,
5030... |
Nam ethe place for pat perez | SELECT place FROM table_name_43 WHERE player = "pat perez" | [
45,
321,
304,
1169,
1295,
329,
1458,
279,
567,
89,
46506,
1295,
16034,
3084,
62,
3672,
62,
3559,
33411,
2137,
796,
366,
8071,
279,
567,
89,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
45,
321,
304,
1169,
1295,
329,
1458,
279,
567,
89,
46506,
1295,
16034,
3084,
62,
3672,
62,
3559,
33411,
2137,
796,
366,
8071,
279,
567,
89,
1
] |
Get the SO users from China created after 2017-01-01. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%china%' OR UPPER(Location) LIKE '%China%' AND CreationDate >= '2017-01-01' ORDER BY Reputation DESC | [
3855,
262,
12809,
2985,
422,
2807,
2727,
706,
2177,
12,
486,
12,
486,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3855,
262,
12809,
2985,
422,
2807,
2727,
706,
2177,
12,
486,
12,
486,
13,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
1432,
7094,
22196,
34,
8,
7054,
25113,
1600,
5121,
7054,
366,
7220,
62,
8726,
1600,
14... |
What was the final score in game 38? | SELECT "Score" FROM table_21239 WHERE "Game" = '38' | [
2061,
373,
262,
2457,
4776,
287,
983,
4353,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
21777,
2670,
33411,
366,
8777,
1,
796,
705,
2548,
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
] | [
2061,
373,
262,
2457,
4776,
287,
983,
4353,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
21777,
2670,
33411,
366,
8777,
1,
796,
705,
2548,
6
] |
What district has 213 constituents? | SELECT COUNT(district) FROM table_29785324_5 WHERE constituency_no = 213 | [
2061,
4783,
468,
28658,
22573,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
1959,
3695,
4310,
1731,
62,
20,
33411,
28280,
62,
3919,
796,
28658
] | [
1,
1,
1,
1,
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,
4783,
468,
28658,
22573,
30,
46506,
327,
28270,
7,
17080,
2012,
8,
16034,
3084,
62,
1959,
3695,
4310,
1731,
62,
20,
33411,
28280,
62,
3919,
796,
28658
] |
Tags with highest average answer scores. | SELECT t.TagName, COUNT(a.Id) AS NumAnswers, SUM(a.Score) AS TotalScore, AVG(a.Score + 0.0) AS AvgScore FROM Posts AS a JOIN Posts AS q ON a.ParentId = q.Id JOIN PostTags AS pt ON pt.PostId = q.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE a.PostTypeId = 2 GROUP BY t.TagName, t.Id HAVING COUNT(q.Id) >= 1000 ORDER BY AvgSc... | [
36142,
351,
4511,
2811,
3280,
8198,
13,
46506,
256,
13,
24835,
5376,
11,
327,
28270,
7,
64,
13,
7390,
8,
7054,
31835,
2025,
37848,
11,
35683,
7,
64,
13,
26595,
8,
7054,
7472,
26595,
11,
35224,
7,
64,
13,
26595,
1343,
657,
13,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36142,
351,
4511,
2811,
3280,
8198,
13,
46506,
256,
13,
24835,
5376,
11,
327,
28270,
7,
64,
13,
7390,
8,
7054,
31835,
2025,
37848,
11,
35683,
7,
64,
13,
26595,
8,
7054,
7472,
26595,
11,
35224,
7,
64,
13,
26595,
1343,
657,
13,
15,
... |
I want the lowest points for tries of 39 and goals more than 0 | SELECT MIN(points) FROM table_name_1 WHERE tries = 39 AND goals > 0 | [
40,
765,
262,
9016,
2173,
329,
8404,
286,
5014,
290,
4661,
517,
621,
657,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
8404,
796,
5014,
5357,
4661,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
40,
765,
262,
9016,
2173,
329,
8404,
286,
5014,
290,
4661,
517,
621,
657,
46506,
20625,
7,
13033,
8,
16034,
3084,
62,
3672,
62,
16,
33411,
8404,
796,
5014,
5357,
4661,
1875,
657
] |
For those employees who did not have any job in the past, for employee_id, hire_date, visualize the trend, I want to display in desc by the x-axis. | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY HIRE_DATE DESC | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
329,
6538,
62,
312,
11,
11078,
62,
4475,
11,
38350,
262,
5182,
11,
314,
765,
284,
3359,
287,
1715,
416,
262,
2124,
12,
22704,
13,
46506,
36210,
2200,
62,
35,
6158... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
329,
6538,
62,
312,
11,
11078,
62,
4475,
11,
38350,
262,
5182,
11,
314,
765,
284,
3359,
287,
1715,
416,
262,
2124,
12,
22704,
13,
46506,
36210,
2200,
62,
35,
6158... |
how many top 3 finishes does gordeeva have ? | SELECT COUNT(*) FROM table_204_492 WHERE "position" <= 3 | [
4919,
867,
1353,
513,
20271,
857,
308,
585,
1453,
6862,
423,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40256,
33411,
366,
9150,
1,
19841,
513
] | [
1,
1,
1,
1,
1,
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,
1353,
513,
20271,
857,
308,
585,
1453,
6862,
423,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
40256,
33411,
366,
9150,
1,
19841,
513
] |
does patient 50065 have the result of his or her microbiology test since 2101? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 50065) AND STRFTIME('%y', microbiologyevents.charttime) >= '2101' | [
22437,
5827,
5323,
2996,
423,
262,
1255,
286,
465,
393,
607,
24559,
1435,
1332,
1201,
2310,
486,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
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... | [
22437,
5827,
5323,
2996,
423,
262,
1255,
286,
465,
393,
607,
24559,
1435,
1332,
1201,
2310,
486,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,... |
What was the date for the game after week 16? | SELECT "Date" FROM table_65679 WHERE "Week" > '16' | [
2061,
373,
262,
3128,
329,
262,
983,
706,
1285,
1467,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2996,
37601,
33411,
366,
20916,
1,
1875,
705,
1433,
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,
373,
262,
3128,
329,
262,
983,
706,
1285,
1467,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
2996,
37601,
33411,
366,
20916,
1,
1875,
705,
1433,
6
] |
So for 500 -level courses , are any offered in Fall or Winter ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'WN' AND semester.year = 2017)) AND course.course_id = course_offering.course_id AND course.department = 'department0... | [
2396,
329,
5323,
532,
5715,
10902,
837,
389,
597,
4438,
287,
7218,
393,
10633,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2396,
329,
5323,
532,
5715,
10902,
837,
389,
597,
4438,
287,
7218,
393,
10633,
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,
... |
What agency does Anderson Clayton Anderson work for? | SELECT "Agency" FROM table_939 WHERE "Astronaut" = 'Anderson Clayton Anderson' | [
2061,
4086,
857,
9918,
32108,
9918,
670,
329,
30,
46506,
366,
32,
4949,
1,
16034,
3084,
62,
24,
2670,
33411,
366,
33751,
1313,
2306,
1,
796,
705,
42991,
32108,
9918,
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,
4086,
857,
9918,
32108,
9918,
670,
329,
30,
46506,
366,
32,
4949,
1,
16034,
3084,
62,
24,
2670,
33411,
366,
33751,
1313,
2306,
1,
796,
705,
42991,
32108,
9918,
6
] |
How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals? | SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11 | [
2437,
867,
8465,
28057,
547,
1839,
416,
262,
18399,
7,
82,
8,
326,
550,
517,
621,
1105,
3869,
28057,
290,
1367,
22101,
28057,
30,
46506,
8465,
16034,
3084,
62,
3672,
62,
4051,
33411,
3869,
1875,
1105,
5357,
22101,
796,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8465,
28057,
547,
1839,
416,
262,
18399,
7,
82,
8,
326,
550,
517,
621,
1105,
3869,
28057,
290,
1367,
22101,
28057,
30,
46506,
8465,
16034,
3084,
62,
3672,
62,
4051,
33411,
3869,
1875,
1105,
5357,
22101,
796,
1367
] |
What is the chemical class for ri? | SELECT chemical_class FROM table_name_33 WHERE formula = "ri" | [
2061,
318,
262,
5931,
1398,
329,
374,
72,
30,
46506,
5931,
62,
4871,
16034,
3084,
62,
3672,
62,
2091,
33411,
10451,
796,
366,
380,
1
] | [
1,
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,
5931,
1398,
329,
374,
72,
30,
46506,
5931,
62,
4871,
16034,
3084,
62,
3672,
62,
2091,
33411,
10451,
796,
366,
380,
1
] |
What was the Billboard peak for the album released on February 2, 1976 by MCA? | SELECT "Billboard peak" FROM table_64121 WHERE "Label" = 'mca' AND "Date of release" = 'february 2, 1976' | [
2061,
373,
262,
36229,
9103,
329,
262,
5062,
2716,
319,
3945,
362,
11,
15408,
416,
337,
8141,
30,
46506,
366,
17798,
3526,
9103,
1,
16034,
3084,
62,
2414,
19244,
33411,
366,
33986,
1,
796,
705,
76,
6888,
6,
5357,
366,
10430,
286,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
36229,
9103,
329,
262,
5062,
2716,
319,
3945,
362,
11,
15408,
416,
337,
8141,
30,
46506,
366,
17798,
3526,
9103,
1,
16034,
3084,
62,
2414,
19244,
33411,
366,
33986,
1,
796,
705,
76,
6888,
6,
5357,
366,
10430,
286,
26... |
What country was the woman from who was born 1976-07-23 and became a grandmaster in 1991? | SELECT "Country" FROM table_45250 WHERE "Date" = '1991' AND "Birth Date" = '1976-07-23' | [
2061,
1499,
373,
262,
2415,
422,
508,
373,
4642,
15408,
12,
2998,
12,
1954,
290,
2627,
257,
4490,
9866,
287,
10249,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2231,
9031,
33411,
366,
10430,
1,
796,
705,
24529,
6,
5357,
366,
38480,
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
] | [
2061,
1499,
373,
262,
2415,
422,
508,
373,
4642,
15408,
12,
2998,
12,
1954,
290,
2627,
257,
4490,
9866,
287,
10249,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
2231,
9031,
33411,
366,
10430,
1,
796,
705,
24529,
6,
5357,
366,
38480,
7... |
What is the average number of laps for the driver Piero Taruffi? | SELECT AVG(laps) FROM table_name_50 WHERE driver = "piero taruffi" | [
2061,
318,
262,
2811,
1271,
286,
24590,
329,
262,
4639,
13762,
78,
14110,
1648,
72,
30,
46506,
35224,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
4639,
796,
366,
79,
959,
78,
13422,
1648,
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
] | [
2061,
318,
262,
2811,
1271,
286,
24590,
329,
262,
4639,
13762,
78,
14110,
1648,
72,
30,
46506,
35224,
7,
75,
1686,
8,
16034,
3084,
62,
3672,
62,
1120,
33411,
4639,
796,
366,
79,
959,
78,
13422,
1648,
72,
1
] |
Show the number of cities in each country with a bar chart, and sort x-axis in descending order. | SELECT T2.Name, COUNT(T2.Name) FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID GROUP BY T2.Name ORDER BY T2.Name DESC | [
15307,
262,
1271,
286,
4736,
287,
1123,
1499,
351,
257,
2318,
8262,
11,
290,
3297,
2124,
12,
22704,
287,
31491,
1502,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
51,
17,
13,
5376,
8,
16034,
1748,
7054,
309,
16,
32357,
1268,
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,
1271,
286,
4736,
287,
1123,
1499,
351,
257,
2318,
8262,
11,
290,
3297,
2124,
12,
22704,
287,
31491,
1502,
13,
46506,
309,
17,
13,
5376,
11,
327,
28270,
7,
51,
17,
13,
5376,
8,
16034,
1748,
7054,
309,
16,
32357,
1268,
7... |
how long was w.b. kingsmill club president ? | SELECT "year" - "year" FROM table_203_639 WHERE "name" = 'w.b. kingsmill' | [
4919,
890,
373,
266,
13,
65,
13,
21557,
17805,
3430,
1893,
5633,
46506,
366,
1941,
1,
532,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
21,
2670,
33411,
366,
3672,
1,
796,
705,
86,
13,
65,
13,
21557,
17805,
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
] | [
4919,
890,
373,
266,
13,
65,
13,
21557,
17805,
3430,
1893,
5633,
46506,
366,
1941,
1,
532,
366,
1941,
1,
16034,
3084,
62,
22416,
62,
21,
2670,
33411,
366,
3672,
1,
796,
705,
86,
13,
65,
13,
21557,
17805,
6
] |
Give the neames of wines with prices below 50 and with appelations in Monterey county. | SELECT T2.name FROM appellations AS T1 JOIN wine AS T2 ON T1.appelation = T2.appelation WHERE T1.county = "Monterey" AND T2.price < 50 | [
23318,
262,
497,
1047,
286,
30680,
351,
4536,
2174,
2026,
290,
351,
598,
417,
602,
287,
5575,
48023,
7968,
13,
46506,
309,
17,
13,
3672,
16034,
24781,
602,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
1324,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
23318,
262,
497,
1047,
286,
30680,
351,
4536,
2174,
2026,
290,
351,
598,
417,
602,
287,
5575,
48023,
7968,
13,
46506,
309,
17,
13,
3672,
16034,
24781,
602,
7054,
309,
16,
32357,
1268,
8237,
7054,
309,
17,
6177,
309,
16,
13,
1324,
41... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.