instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
Which Silver has a Total smaller than 2 and a Rank larger than 8 | SELECT MIN("Silver") FROM table_7671 WHERE "Total" < '2' AND "Rank" > '8' | [
13828,
7698,
468,
257,
7472,
4833,
621,
362,
290,
257,
10916,
4025,
621,
807,
46506,
20625,
7203,
26766,
4943,
16034,
3084,
62,
32059,
16,
33411,
366,
14957,
1,
1279,
705,
17,
6,
5357,
366,
27520,
1,
1875,
705,
23,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
7698,
468,
257,
7472,
4833,
621,
362,
290,
257,
10916,
4025,
621,
807,
46506,
20625,
7203,
26766,
4943,
16034,
3084,
62,
32059,
16,
33411,
366,
14957,
1,
1279,
705,
17,
6,
5357,
366,
27520,
1,
1875,
705,
23,
6
] |
what is admission location of subject id 3343? | SELECT demographic.admission_location FROM demographic WHERE demographic.subject_id = "3343" | [
10919,
318,
13938,
4067,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] | [
1,
1,
1,
1,
1,
1,
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,
13938,
4067,
286,
2426,
4686,
513,
32118,
30,
46506,
16728,
13,
324,
3411,
62,
24886,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2091,
3559,
1
] |
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of first_name and department_id , I want to order bars from low to high order please. | SELECT FIRST_NAME, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY FIRST_NAME | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
717,
62,
3672,
290,
5011,
62,
312,
837,
314,
765,
284,
1502,
9210,
422,
1877,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4409,
508,
466,
407,
670,
287,
13346,
351,
11663,
326,
423,
220,
2340,
1022,
1802,
290,
939,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
717,
62,
3672,
290,
5011,
62,
312,
837,
314,
765,
284,
1502,
9210,
422,
1877,
284,
... |
Who won third place in season four? | SELECT "Third place" FROM table_72774 WHERE "Season" = 'Four' | [
8241,
1839,
2368,
1295,
287,
1622,
1440,
30,
46506,
366,
22747,
1295,
1,
16034,
3084,
62,
47760,
4524,
33411,
366,
18960,
1,
796,
705,
15137,
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
] | [
8241,
1839,
2368,
1295,
287,
1622,
1440,
30,
46506,
366,
22747,
1295,
1,
16034,
3084,
62,
47760,
4524,
33411,
366,
18960,
1,
796,
705,
15137,
6
] |
What kind of hand guards are associated with a rear sight of A1 and stock of A2? | SELECT hand_guards FROM table_12834315_8 WHERE rear_sight = "A1" AND stock = "A2" | [
2061,
1611,
286,
1021,
10942,
389,
3917,
351,
257,
8286,
6504,
286,
317,
16,
290,
4283,
286,
317,
17,
30,
46506,
1021,
62,
33427,
16034,
3084,
62,
12762,
2682,
27936,
62,
23,
33411,
8286,
62,
18627,
796,
366,
32,
16,
1,
5357,
4283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1611,
286,
1021,
10942,
389,
3917,
351,
257,
8286,
6504,
286,
317,
16,
290,
4283,
286,
317,
17,
30,
46506,
1021,
62,
33427,
16034,
3084,
62,
12762,
2682,
27936,
62,
23,
33411,
8286,
62,
18627,
796,
366,
32,
16,
1,
5357,
4283,
... |
A bar chart shows the distribution of meter_400 and meter_100 , rank X in descending order. | SELECT meter_400, meter_100 FROM swimmer ORDER BY meter_400 DESC | [
32,
2318,
8262,
2523,
262,
6082,
286,
16430,
62,
7029,
290,
16430,
62,
3064,
837,
4279,
1395,
287,
31491,
1502,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
2523,
262,
6082,
286,
16430,
62,
7029,
290,
16430,
62,
3064,
837,
4279,
1395,
287,
31491,
1502,
13,
46506,
16430,
62,
7029,
11,
16430,
62,
3064,
16034,
9422,
647,
38678,
11050,
16430,
62,
7029,
22196,
34
] |
severe anemia | SELECT * FROM table_test_6 WHERE anemia = 1 | [
43070,
281,
22859,
46506,
1635,
16034,
3084,
62,
9288,
62,
21,
33411,
281,
22859,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43070,
281,
22859,
46506,
1635,
16034,
3084,
62,
9288,
62,
21,
33411,
281,
22859,
796,
352
] |
Which institution has more than 19,020 students in london with a research funding of more than 7,734? | SELECT "Institution" FROM table_38743 WHERE "Total Number of Students" > '19,020' AND "Location" = 'london' AND "Research Funding (\u00a3,000)" > '7,734' | [
13828,
9901,
468,
517,
621,
678,
11,
33618,
2444,
287,
300,
3391,
351,
257,
2267,
4918,
286,
517,
621,
767,
11,
22,
2682,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
32220,
3559,
33411,
366,
14957,
7913,
286,
14882,
1,
1875,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
13828,
9901,
468,
517,
621,
678,
11,
33618,
2444,
287,
300,
3391,
351,
257,
2267,
4918,
286,
517,
621,
767,
11,
22,
2682,
30,
46506,
366,
6310,
2738,
1,
16034,
3084,
62,
32220,
3559,
33411,
366,
14957,
7913,
286,
14882,
1,
1875,
705... |
What is the lowest value for bronze with a total of 3 and a value for silver greater than 1 while the value of gold is smaller than 1? | SELECT MIN("Bronze") FROM table_31794 WHERE "Total" = '3' AND "Silver" > '1' AND "Gold" < '1' | [
2061,
318,
262,
9016,
1988,
329,
22101,
351,
257,
2472,
286,
513,
290,
257,
1988,
329,
8465,
3744,
621,
352,
981,
262,
1988,
286,
3869,
318,
4833,
621,
352,
30,
46506,
20625,
7203,
18760,
2736,
4943,
16034,
3084,
62,
34125,
5824,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1988,
329,
22101,
351,
257,
2472,
286,
513,
290,
257,
1988,
329,
8465,
3744,
621,
352,
981,
262,
1988,
286,
3869,
318,
4833,
621,
352,
30,
46506,
20625,
7203,
18760,
2736,
4943,
16034,
3084,
62,
34125,
5824,
3341... |
What county had 915 third party voters? | SELECT county FROM table_20278716_2 WHERE others__number = 915 | [
2061,
7968,
550,
860,
1314,
2368,
2151,
4446,
30,
46506,
7968,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
1854,
834,
17618,
796,
860,
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
] | [
2061,
7968,
550,
860,
1314,
2368,
2151,
4446,
30,
46506,
7968,
16034,
3084,
62,
1238,
1983,
5774,
1433,
62,
17,
33411,
1854,
834,
17618,
796,
860,
1314
] |
Show different carriers of phones together with the number of phones with each carrier Plot them as bar chart, show from low to high by the the total number please. | SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier ORDER BY COUNT(*) | [
15307,
1180,
16651,
286,
9512,
1978,
351,
262,
1271,
286,
9512,
351,
1123,
11920,
28114,
606,
355,
2318,
8262,
11,
905,
422,
1877,
284,
1029,
416,
262,
262,
2472,
1271,
3387,
13,
46506,
30252,
11,
327,
28270,
7,
28104,
16034,
3072,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
16651,
286,
9512,
1978,
351,
262,
1271,
286,
9512,
351,
1123,
11920,
28114,
606,
355,
2318,
8262,
11,
905,
422,
1877,
284,
1029,
416,
262,
262,
2472,
1271,
3387,
13,
46506,
30252,
11,
327,
28270,
7,
28104,
16034,
3072,
44... |
On what date is there a score1 of 2 - 4 with the opponent Chelsea under 18s? | SELECT date FROM table_name_69 WHERE score1 = "2 - 4" AND opponent = "chelsea under 18s" | [
2202,
644,
3128,
318,
612,
257,
4776,
16,
286,
362,
532,
604,
351,
262,
6125,
12147,
739,
1248,
82,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
4776,
16,
796,
366,
17,
532,
604,
1,
5357,
6125,
796,
366,
29232,
8583,
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
] | [
2202,
644,
3128,
318,
612,
257,
4776,
16,
286,
362,
532,
604,
351,
262,
6125,
12147,
739,
1248,
82,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3388,
33411,
4776,
16,
796,
366,
17,
532,
604,
1,
5357,
6125,
796,
366,
29232,
8583,
7... |
What is the number of emergency hospital admitted patients who take sodium polystyrene sulfonate? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug = "Sodium Polystyrene Sulfonate" | [
2061,
318,
262,
1271,
286,
6334,
4436,
6848,
3871,
508,
1011,
21072,
7514,
34365,
25924,
22443,
261,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
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... | [
2061,
318,
262,
1271,
286,
6334,
4436,
6848,
3871,
508,
1011,
21072,
7514,
34365,
25924,
22443,
261,
378,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,... |
Which date has time (GMT) of 23:34? | SELECT date FROM table_name_45 WHERE time___gmt__ = "23:34" | [
13828,
3128,
468,
640,
357,
49424,
8,
286,
2242,
25,
2682,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2231,
33411,
640,
17569,
70,
16762,
834,
796,
366,
1954,
25,
2682,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
3128,
468,
640,
357,
49424,
8,
286,
2242,
25,
2682,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
2231,
33411,
640,
17569,
70,
16762,
834,
796,
366,
1954,
25,
2682,
1
] |
during the previous year, how many patients were prescribed with gabapentin 300 mg cap? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'gabapentin 300 mg cap' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | [
42122,
262,
2180,
614,
11,
703,
867,
3871,
547,
14798,
351,
308,
397,
499,
31371,
5867,
10527,
1451,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
42122,
262,
2180,
614,
11,
703,
867,
3871,
547,
14798,
351,
308,
397,
499,
31371,
5867,
10527,
1451,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
403,
1557,
538,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
20850,
31712,
... |
when was the last time patient 90663 had a foley output today. | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 90663)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'fole... | [
12518,
373,
262,
938,
640,
5827,
4101,
45791,
550,
257,
11511,
1636,
5072,
1909,
13,
46506,
38701,
1133,
85,
658,
13,
40926,
2435,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12518,
373,
262,
938,
640,
5827,
4101,
45791,
550,
257,
11511,
1636,
5072,
1909,
13,
46506,
38701,
1133,
85,
658,
13,
40926,
2435,
16034,
38701,
1133,
85,
658,
33411,
38701,
1133,
85,
658,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,... |
Who is The Author of zhou clarke zhang? | SELECT name FROM table_name_56 WHERE authors = "zhou clarke zhang" | [
8241,
318,
383,
6434,
286,
1976,
15710,
10212,
365,
1976,
33255,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3980,
33411,
7035,
796,
366,
38536,
10212,
365,
1976,
33255,
1
] | [
1,
1,
1,
1,
1,
1,
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,
383,
6434,
286,
1976,
15710,
10212,
365,
1976,
33255,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
3980,
33411,
7035,
796,
366,
38536,
10212,
365,
1976,
33255,
1
] |
provide the number of patients whose year of death is less than or equal to 2155 and drug name is cyanocobalamin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2155.0" AND prescriptions.drug = "Cyanocobalamin" | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
18742,
290,
2563,
1438,
318,
36818,
420,
2572,
5669,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
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,
1... | [
15234,
485,
262,
1271,
286,
3871,
3025,
614,
286,
1918,
318,
1342,
621,
393,
4961,
284,
362,
18742,
290,
2563,
1438,
318,
36818,
420,
2572,
5669,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
1... |
State with highest average math score | SELECT state FROM ndecoreexcel_math_grade8 ORDER BY average_scale_score DESC LIMIT 1 | [
9012,
351,
4511,
2811,
10688,
4776,
46506,
1181,
16034,
299,
12501,
382,
1069,
5276,
62,
11018,
62,
9526,
23,
38678,
11050,
2811,
62,
9888,
62,
26675,
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
] | [
9012,
351,
4511,
2811,
10688,
4776,
46506,
1181,
16034,
299,
12501,
382,
1069,
5276,
62,
11018,
62,
9526,
23,
38678,
11050,
2811,
62,
9888,
62,
26675,
22196,
34,
27564,
2043,
352
] |
Number of Posts per User. This is a query that returns the number of posts per user in descending order | SELECT COUNT(*) FROM Posts WHERE CreationDate >= DATEFROMPARTS(2013, 3, 1) | [
15057,
286,
12043,
583,
11787,
13,
770,
318,
257,
12405,
326,
5860,
262,
1271,
286,
6851,
583,
2836,
287,
31491,
1502,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
21582,
10430,
18189,
360,
6158,
10913,
2662,
27082,
4694,
7,
6390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15057,
286,
12043,
583,
11787,
13,
770,
318,
257,
12405,
326,
5860,
262,
1271,
286,
6851,
583,
2836,
287,
31491,
1502,
46506,
327,
28270,
7,
28104,
16034,
12043,
33411,
21582,
10430,
18189,
360,
6158,
10913,
2662,
27082,
4694,
7,
6390,
... |
what is the total number of player where years for rockets is 1975-79 | SELECT COUNT(player) FROM table_11734041_20 WHERE years_for_rockets = "1975-79" | [
10919,
318,
262,
2472,
1271,
286,
2137,
810,
812,
329,
20293,
318,
15231,
12,
3720,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
4790,
1821,
3901,
62,
1238,
33411,
812,
62,
1640,
62,
10823,
1039,
796,
366,
38449,
12,
3720,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
1271,
286,
2137,
810,
812,
329,
20293,
318,
15231,
12,
3720,
46506,
327,
28270,
7,
7829,
8,
16034,
3084,
62,
1157,
4790,
1821,
3901,
62,
1238,
33411,
812,
62,
1640,
62,
10823,
1039,
796,
366,
38449,
12,
3720,
... |
Which System has an Actual Version 9.0? | SELECT system FROM table_name_15 WHERE actual_version = "9.0" | [
13828,
4482,
468,
281,
33520,
10628,
860,
13,
15,
30,
46506,
1080,
16034,
3084,
62,
3672,
62,
1314,
33411,
4036,
62,
9641,
796,
366,
24,
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
] | [
13828,
4482,
468,
281,
33520,
10628,
860,
13,
15,
30,
46506,
1080,
16034,
3084,
62,
3672,
62,
1314,
33411,
4036,
62,
9641,
796,
366,
24,
13,
15,
1
] |
Which Office has a Party of dem, and a First Elected of 1991 ? | SELECT office FROM table_name_2 WHERE party = "dem" AND first_elected = "1991†" | [
13828,
4452,
468,
257,
3615,
286,
1357,
11,
290,
257,
3274,
5903,
276,
286,
10249,
5633,
46506,
2607,
16034,
3084,
62,
3672,
62,
17,
33411,
2151,
796,
366,
9536,
1,
5357,
717,
62,
28604,
796,
366,
24529,
33912,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
468,
257,
3615,
286,
1357,
11,
290,
257,
3274,
5903,
276,
286,
10249,
5633,
46506,
2607,
16034,
3084,
62,
3672,
62,
17,
33411,
2151,
796,
366,
9536,
1,
5357,
717,
62,
28604,
796,
366,
24529,
33912,
1
] |
Show the starting years shared by technicians from team 'CLE' and 'CWS'. | SELECT starting_year FROM technician WHERE team = "CLE" INTERSECT SELECT starting_year FROM technician WHERE team = "CWS" | [
15307,
262,
3599,
812,
4888,
416,
33519,
422,
1074,
705,
29931,
6,
290,
705,
34,
19416,
4458,
46506,
3599,
62,
1941,
16034,
33024,
33411,
1074,
796,
366,
29931,
1,
17828,
4877,
9782,
33493,
3599,
62,
1941,
16034,
33024,
33411,
1074,
796... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
3599,
812,
4888,
416,
33519,
422,
1074,
705,
29931,
6,
290,
705,
34,
19416,
4458,
46506,
3599,
62,
1941,
16034,
33024,
33411,
1074,
796,
366,
29931,
1,
17828,
4877,
9782,
33493,
3599,
62,
1941,
16034,
33024,
33411,
1074,
796... |
Which Date has a Game of game 3? | SELECT date FROM table_name_90 WHERE game = "game 3" | [
13828,
7536,
468,
257,
3776,
286,
983,
513,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
983,
796,
366,
6057,
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
] | [
13828,
7536,
468,
257,
3776,
286,
983,
513,
30,
46506,
3128,
16034,
3084,
62,
3672,
62,
3829,
33411,
983,
796,
366,
6057,
513,
1
] |
What was the record on April 10? | SELECT "Record" FROM table_50368 WHERE "Date" = 'april 10' | [
2061,
373,
262,
1700,
319,
3035,
838,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
1120,
27412,
33411,
366,
10430,
1,
796,
705,
499,
22379,
838,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1700,
319,
3035,
838,
30,
46506,
366,
23739,
1,
16034,
3084,
62,
1120,
27412,
33411,
366,
10430,
1,
796,
705,
499,
22379,
838,
6
] |
For those employees who did not have any job in the past, a bar chart shows the distribution of hire_date and the sum of manager_id bin hire_date by time. | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
1890,
883,
4409,
508,
750,
407,
423,
597,
1693,
287,
262,
1613,
11,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
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,
257,
2318,
8262,
2523,
262,
6082,
286,
11078,
62,
4475,
290,
262,
2160,
286,
4706,
62,
312,
9874,
11078,
62,
4475,
416,
640,
13,
46506,
36210,
2200,
62,
35,
6158,
... |
How many times was the date of vacancy 14 february 2011? | SELECT COUNT("Position in table") FROM table_26693 WHERE "Date of vacancy" = '14 February 2011' | [
2437,
867,
1661,
373,
262,
3128,
286,
39836,
1478,
730,
65,
3728,
2813,
30,
46506,
327,
28270,
7203,
26545,
287,
3084,
4943,
16034,
3084,
62,
2075,
48528,
33411,
366,
10430,
286,
39836,
1,
796,
705,
1415,
3945,
2813,
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
] | [
2437,
867,
1661,
373,
262,
3128,
286,
39836,
1478,
730,
65,
3728,
2813,
30,
46506,
327,
28270,
7203,
26545,
287,
3084,
4943,
16034,
3084,
62,
2075,
48528,
33411,
366,
10430,
286,
39836,
1,
796,
705,
1415,
3945,
2813,
6
] |
For each competition, count the number of matches, and rank in desc by the X-axis. | SELECT Competition, COUNT(*) FROM match GROUP BY Competition ORDER BY Competition DESC | [
1890,
1123,
5449,
11,
954,
262,
1271,
286,
7466,
11,
290,
4279,
287,
1715,
416,
262,
1395,
12,
22704,
13,
46506,
27348,
11,
327,
28270,
7,
28104,
16034,
2872,
44441,
11050,
27348,
38678,
11050,
27348,
22196,
34
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1890,
1123,
5449,
11,
954,
262,
1271,
286,
7466,
11,
290,
4279,
287,
1715,
416,
262,
1395,
12,
22704,
13,
46506,
27348,
11,
327,
28270,
7,
28104,
16034,
2872,
44441,
11050,
27348,
38678,
11050,
27348,
22196,
34
] |
What chassis did the BRM V8 engine have? | SELECT "Chassis" FROM table_15734 WHERE "Engine" = 'brm v8' | [
2061,
24587,
750,
262,
11177,
44,
569,
23,
3113,
423,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
18458,
2682,
33411,
366,
13798,
1,
796,
705,
1671,
76,
410,
23,
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,
24587,
750,
262,
11177,
44,
569,
23,
3113,
423,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
18458,
2682,
33411,
366,
13798,
1,
796,
705,
1671,
76,
410,
23,
6
] |
How many stories have a height less than 138 meters with a completion date in 1971? | SELECT stories FROM table_name_53 WHERE height__m_ < 138 AND year_of_completion = 1971 | [
2437,
867,
3923,
423,
257,
6001,
1342,
621,
21503,
10700,
351,
257,
11939,
3128,
287,
16382,
30,
46506,
3923,
16034,
3084,
62,
3672,
62,
4310,
33411,
6001,
834,
76,
62,
1279,
21503,
5357,
614,
62,
1659,
62,
785,
24547,
796,
16382
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3923,
423,
257,
6001,
1342,
621,
21503,
10700,
351,
257,
11939,
3128,
287,
16382,
30,
46506,
3923,
16034,
3084,
62,
3672,
62,
4310,
33411,
6001,
834,
76,
62,
1279,
21503,
5357,
614,
62,
1659,
62,
785,
24547,
796,
16382
] |
What is the date of the GC competition when the opponents are 1. FC Nuremberg? | SELECT "Date" FROM table_51612 WHERE "Opponents" = '1. fc nuremberg' AND "Competition" = 'gc' | [
2061,
318,
262,
3128,
286,
262,
20145,
5449,
618,
262,
7691,
389,
352,
13,
10029,
399,
495,
47369,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
47493,
1065,
33411,
366,
27524,
3906,
1,
796,
705,
16,
13,
277,
66,
299,
495,
47369,
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
] | [
2061,
318,
262,
3128,
286,
262,
20145,
5449,
618,
262,
7691,
389,
352,
13,
10029,
399,
495,
47369,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
47493,
1065,
33411,
366,
27524,
3906,
1,
796,
705,
16,
13,
277,
66,
299,
495,
47369,
6,
... |
show me the flights arriving at DAL from other airports | SELECT DISTINCT flight.flight_id FROM airport, airport_service, city, flight WHERE airport.airport_code = 'DAL' AND city.city_code = airport_service.city_code AND flight.from_airport = airport_service.airport_code AND flight.to_airport = airport.airport_code | [
12860,
502,
262,
13956,
14820,
379,
360,
1847,
422,
584,
22600,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
35,
1847,
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... | [
12860,
502,
262,
13956,
14820,
379,
360,
1847,
422,
584,
22600,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
9003,
13,
958,
634,
62,
8189,
796,
705,
35,
1847,
6... |
what's the results of week 12? | SELECT "Result" FROM table_49286 WHERE "Week" = '12' | [
10919,
338,
262,
2482,
286,
1285,
1105,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2920,
27033,
33411,
366,
20916,
1,
796,
705,
1065,
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
] | [
10919,
338,
262,
2482,
286,
1285,
1105,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
2920,
27033,
33411,
366,
20916,
1,
796,
705,
1065,
6
] |
What is the order number where the song choice is 'l'appuntamento'? | SELECT "Order #" FROM table_27623 WHERE "Song choice" = 'L''appuntamento' | [
2061,
318,
262,
1502,
1271,
810,
262,
3496,
3572,
318,
705,
75,
6,
1324,
2797,
3263,
78,
30960,
46506,
366,
18743,
1303,
1,
16034,
3084,
62,
27988,
1954,
33411,
366,
44241,
3572,
1,
796,
705,
43,
7061,
1324,
2797,
3263,
78,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1502,
1271,
810,
262,
3496,
3572,
318,
705,
75,
6,
1324,
2797,
3263,
78,
30960,
46506,
366,
18743,
1303,
1,
16034,
3084,
62,
27988,
1954,
33411,
366,
44241,
3572,
1,
796,
705,
43,
7061,
1324,
2797,
3263,
78,
6
] |
What is the outcome with marina erakovic as opponent? | SELECT outcome FROM table_name_37 WHERE opponent = "marina erakovic" | [
2061,
318,
262,
8055,
351,
1667,
1437,
1931,
461,
17215,
355,
6125,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
2718,
33411,
6125,
796,
366,
3876,
1437,
1931,
461,
17215,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
8055,
351,
1667,
1437,
1931,
461,
17215,
355,
6125,
30,
46506,
8055,
16034,
3084,
62,
3672,
62,
2718,
33411,
6125,
796,
366,
3876,
1437,
1931,
461,
17215,
1
] |
What is the lowest density of serravalle scrivia? | SELECT MIN(density__inhabitants_km_2__) FROM table_name_87 WHERE city = "serravalle scrivia" | [
2061,
318,
262,
9016,
12109,
286,
1055,
430,
2100,
293,
629,
380,
8869,
30,
46506,
20625,
7,
43337,
834,
259,
5976,
270,
1187,
62,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
1748,
796,
366,
2655,
430,
2100,
293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12109,
286,
1055,
430,
2100,
293,
629,
380,
8869,
30,
46506,
20625,
7,
43337,
834,
259,
5976,
270,
1187,
62,
13276,
62,
17,
834,
8,
16034,
3084,
62,
3672,
62,
5774,
33411,
1748,
796,
366,
2655,
430,
2100,
293,
... |
For those employees who was hired before 2002-06-21, return a bar chart about the distribution of job_id and the sum of manager_id , and group by attribute job_id. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID | [
1890,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
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,
883,
4409,
508,
373,
9657,
878,
6244,
12,
3312,
12,
2481,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1693,
62,
312,
290,
262,
2160,
286,
4706,
62,
312,
837,
290,
1448,
416,
11688,
1693,
62,
312,
13,
46506,
449,
9864,
62... |
what are the four most frequent lab tests that a patient had within 2 months after receiving percu abdominal drainage in the last year? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
10919,
389,
262,
1440,
749,
10792,
2248,
5254,
326,
257,
5827,
550,
1626,
362,
1933,
706,
6464,
583,
27399,
32692,
37664,
287,
262,
938,
614,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
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... | [
10919,
389,
262,
1440,
749,
10792,
2248,
5254,
326,
257,
5827,
550,
1626,
362,
1933,
706,
6464,
583,
27399,
32692,
37664,
287,
262,
938,
614,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
2... |
airports in NEW YORK | SELECT DISTINCT airport.airport_code FROM airport, airport_service, city WHERE airport.airport_code = airport_service.airport_code AND city.city_code = airport_service.city_code AND city.city_name = 'NEW YORK' | [
958,
3742,
287,
12682,
28154,
46506,
360,
8808,
1268,
4177,
9003,
13,
958,
634,
62,
8189,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
1748,
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... | [
958,
3742,
287,
12682,
28154,
46506,
360,
8808,
1268,
4177,
9003,
13,
958,
634,
62,
8189,
16034,
9003,
11,
9003,
62,
15271,
11,
1748,
33411,
9003,
13,
958,
634,
62,
8189,
796,
9003,
62,
15271,
13,
958,
634,
62,
8189,
5357,
1748,
13,... |
Name the BUSHI when it has kenny omega of yang (7:27) | SELECT bushi FROM table_name_45 WHERE kenny_omega = "yang (7:27)" | [
5376,
262,
43949,
25374,
618,
340,
468,
479,
11870,
37615,
286,
331,
648,
357,
22,
25,
1983,
8,
46506,
1323,
5303,
16034,
3084,
62,
3672,
62,
2231,
33411,
479,
11870,
62,
462,
4908,
796,
366,
17859,
357,
22,
25,
1983,
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,
1,
1,
1,
1
] | [
5376,
262,
43949,
25374,
618,
340,
468,
479,
11870,
37615,
286,
331,
648,
357,
22,
25,
1983,
8,
46506,
1323,
5303,
16034,
3084,
62,
3672,
62,
2231,
33411,
479,
11870,
62,
462,
4908,
796,
366,
17859,
357,
22,
25,
1983,
16725
] |
Find the number of members of club 'Pen and Paper Gaming'. | SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming" | [
16742,
262,
1271,
286,
1866,
286,
3430,
705,
25553,
290,
14962,
14426,
4458,
46506,
327,
28270,
7,
28104,
16034,
3430,
7054,
256,
16,
32357,
1268,
2888,
62,
1659,
62,
18664,
7054,
256,
17,
6177,
256,
16,
13,
18664,
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... | [
16742,
262,
1271,
286,
1866,
286,
3430,
705,
25553,
290,
14962,
14426,
4458,
46506,
327,
28270,
7,
28104,
16034,
3430,
7054,
256,
16,
32357,
1268,
2888,
62,
1659,
62,
18664,
7054,
256,
17,
6177,
256,
16,
13,
18664,
312,
796,
256,
17,
... |
Please show the names of the buildings whose status is 'on-hold', in ascending order of stories. | SELECT name FROM buildings WHERE status = "on-hold" ORDER BY stories | [
5492,
905,
262,
3891,
286,
262,
6832,
3025,
3722,
318,
705,
261,
12,
2946,
3256,
287,
41988,
1502,
286,
3923,
13,
46506,
1438,
16034,
6832,
33411,
3722,
796,
366,
261,
12,
2946,
1,
38678,
11050,
3923
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5492,
905,
262,
3891,
286,
262,
6832,
3025,
3722,
318,
705,
261,
12,
2946,
3256,
287,
41988,
1502,
286,
3923,
13,
46506,
1438,
16034,
6832,
33411,
3722,
796,
366,
261,
12,
2946,
1,
38678,
11050,
3923
] |
What is the source of the move from Port Vale? | SELECT "Source" FROM table_14630 WHERE "Moving from" = 'port vale' | [
2061,
318,
262,
2723,
286,
262,
1445,
422,
4347,
31832,
30,
46506,
366,
7416,
1,
16034,
3084,
62,
20964,
1270,
33411,
366,
33622,
422,
1,
796,
705,
634,
410,
1000,
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,
2723,
286,
262,
1445,
422,
4347,
31832,
30,
46506,
366,
7416,
1,
16034,
3084,
62,
20964,
1270,
33411,
366,
33622,
422,
1,
796,
705,
634,
410,
1000,
6
] |
select * from Users where Id= 113. | SELECT * FROM Users WHERE Id = 113 | [
19738,
1635,
422,
18987,
810,
5121,
28,
17318,
13,
46506,
1635,
16034,
18987,
33411,
5121,
796,
17318
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
1635,
422,
18987,
810,
5121,
28,
17318,
13,
46506,
1635,
16034,
18987,
33411,
5121,
796,
17318
] |
What is the birthdate of Robert Esche? | SELECT birthdate FROM table_name_39 WHERE name = "robert esche" | [
2061,
318,
262,
4082,
4475,
286,
5199,
412,
15952,
30,
46506,
4082,
4475,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
305,
4835,
42833,
1
] | [
1,
1,
1,
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,
4082,
4475,
286,
5199,
412,
15952,
30,
46506,
4082,
4475,
16034,
3084,
62,
3672,
62,
2670,
33411,
1438,
796,
366,
305,
4835,
42833,
1
] |
what is the average water % for mulberry ? | SELECT "water %" FROM table_203_729 WHERE "township" = 'mulberry' | [
10919,
318,
262,
2811,
1660,
4064,
329,
35971,
8396,
5633,
46506,
366,
7050,
4064,
1,
16034,
3084,
62,
22416,
62,
48555,
33411,
366,
12735,
6720,
1,
796,
705,
76,
377,
8396,
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
] | [
10919,
318,
262,
2811,
1660,
4064,
329,
35971,
8396,
5633,
46506,
366,
7050,
4064,
1,
16034,
3084,
62,
22416,
62,
48555,
33411,
366,
12735,
6720,
1,
796,
705,
76,
377,
8396,
6
] |
Visualize the relationship between ACC_Percent and All_Games_Percent , and group by attribute ACC_Regular_Season. | SELECT ACC_Percent, All_Games_Percent FROM basketball_match GROUP BY ACC_Regular_Season | [
36259,
1096,
262,
2776,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
2776,
1022,
15859,
62,
31905,
290,
1439,
62,
24474,
62,
31905,
837,
290,
1448,
416,
11688,
15859,
62,
40164,
62,
18960,
13,
46506,
15859,
62,
31905,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
15699,
44441,
11050,... |
Find dates and attendance for exhibitions that happened in 2004, show me the comparison of attendance by date, list names in descending order. | SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 ORDER BY Date DESC | [
16742,
9667,
290,
14858,
329,
48130,
326,
3022,
287,
5472,
11,
905,
502,
262,
7208,
286,
14858,
416,
3128,
11,
1351,
3891,
287,
31491,
1502,
13,
46506,
309,
16,
13,
10430,
11,
309,
16,
13,
8086,
437,
590,
16034,
17127,
62,
22105,
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... | [
16742,
9667,
290,
14858,
329,
48130,
326,
3022,
287,
5472,
11,
905,
502,
262,
7208,
286,
14858,
416,
3128,
11,
1351,
3891,
287,
31491,
1502,
13,
46506,
309,
16,
13,
10430,
11,
309,
16,
13,
8086,
437,
590,
16034,
17127,
62,
22105,
70... |
What is the average number of wins of the year with less than 5 top 10s, a winning of $39,190 and less than 2 starts? | SELECT AVG(wins) FROM table_name_17 WHERE top_10 < 5 AND winnings = "$39,190" AND starts < 2 | [
2061,
318,
262,
2811,
1271,
286,
7864,
286,
262,
614,
351,
1342,
621,
642,
1353,
838,
82,
11,
257,
5442,
286,
720,
2670,
11,
19782,
290,
1342,
621,
362,
4940,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1558,
3341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7864,
286,
262,
614,
351,
1342,
621,
642,
1353,
838,
82,
11,
257,
5442,
286,
720,
2670,
11,
19782,
290,
1342,
621,
362,
4940,
30,
46506,
35224,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
1558,
3341... |
what is the two year survival rate of patients who were prescribed with metoprolol tartrate after the gastrointest hemorr nos? | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | [
10919,
318,
262,
734,
614,
9441,
2494,
286,
3871,
508,
547,
14798,
351,
1138,
404,
3225,
349,
35842,
4873,
706,
262,
33131,
600,
395,
42000,
81,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
15697,
42243,
352,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
734,
614,
9441,
2494,
286,
3871,
508,
547,
14798,
351,
1138,
404,
3225,
349,
35842,
4873,
706,
262,
33131,
600,
395,
42000,
81,
43630,
30,
46506,
35683,
7,
34,
11159,
42099,
3871,
13,
67,
375,
3180,
15697,
42243,
352,... |
What tournament was at the 2011 Cincinnati Masters? | SELECT "2011" FROM table_15228 WHERE "Tournament" = 'cincinnati masters' | [
2061,
7756,
373,
379,
262,
2813,
16137,
15812,
30,
46506,
366,
9804,
1,
16034,
3084,
62,
1314,
23815,
33411,
366,
51,
5138,
1,
796,
705,
66,
15130,
18159,
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,
7756,
373,
379,
262,
2813,
16137,
15812,
30,
46506,
366,
9804,
1,
16034,
3084,
62,
1314,
23815,
33411,
366,
51,
5138,
1,
796,
705,
66,
15130,
18159,
6
] |
tell me the test that was last given to patient 29410 in 11/2102? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 29410) AND STRFTIME('%y-%m', labevents.charttime) = '2102-11' ORDER BY labevents.charttime DESC LIMIT 1) | [
33331,
502,
262,
1332,
326,
373,
938,
1813,
284,
5827,
2808,
33289,
287,
1367,
14,
17,
15377,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1332,
326,
373,
938,
1813,
284,
5827,
2808,
33289,
287,
1367,
14,
17,
15377,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
357,
46506,
22... |
D&D family views vs total views. | WITH results AS (SELECT (SELECT SUM(ViewCount) FROM Posts WHERE PostTypeId = 1 AND (Posts.Tags LIKE '%dnd%' OR Posts.Tags LIKE '%pathfinder%' OR Posts.Tags LIKE '%dungeons-and-dragons%')) AS DndViews, (SELECT SUM(ViewCount) FROM Posts WHERE PostTypeId = 1) AS TotalViews) SELECT DndViews, TotalViews, (DndViews * 1.0 / T... | [
35,
5,
35,
1641,
5009,
3691,
2472,
5009,
13,
54,
10554,
2482,
7054,
357,
46506,
357,
46506,
35683,
7,
7680,
12332,
8,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
357,
21496,
13,
36142,
34178,
705,
4,
67,
358,
4,
6,
6375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35,
5,
35,
1641,
5009,
3691,
2472,
5009,
13,
54,
10554,
2482,
7054,
357,
46506,
357,
46506,
35683,
7,
7680,
12332,
8,
16034,
12043,
33411,
2947,
6030,
7390,
796,
352,
5357,
357,
21496,
13,
36142,
34178,
705,
4,
67,
358,
4,
6,
6375,
... |
where was the game site when the opponent was san diego chargers? | SELECT game_site FROM table_name_52 WHERE opponent = "san diego chargers" | [
3003,
373,
262,
983,
2524,
618,
262,
6125,
373,
5336,
4656,
2188,
2609,
364,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
4309,
33411,
6125,
796,
366,
12807,
4656,
2188,
2609,
364,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
3003,
373,
262,
983,
2524,
618,
262,
6125,
373,
5336,
4656,
2188,
2609,
364,
30,
46506,
983,
62,
15654,
16034,
3084,
62,
3672,
62,
4309,
33411,
6125,
796,
366,
12807,
4656,
2188,
2609,
364,
1
] |
how many unmarried patients have dialys route of drug administration? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "SINGLE" AND prescriptions.route = "DIALYS" | [
4919,
867,
39183,
3871,
423,
5980,
893,
6339,
286,
2563,
3662,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
3409... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
39183,
3871,
423,
5980,
893,
6339,
286,
2563,
3662,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
18108,
76,
62,
312,
796,
3409... |
What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4? | SELECT AVG("Administrative Panel") FROM table_43280 WHERE "Cultural and Educational Panel" > '1' AND "Industrial and Commercial Panel" < '4' | [
2061,
318,
262,
11553,
6103,
2811,
618,
262,
6467,
290,
9856,
6103,
318,
3744,
621,
352,
290,
262,
7593,
290,
5068,
6103,
1342,
621,
604,
30,
46506,
35224,
7203,
41862,
13260,
18810,
4943,
16034,
3084,
62,
45331,
1795,
33411,
366,
34,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
11553,
6103,
2811,
618,
262,
6467,
290,
9856,
6103,
318,
3744,
621,
352,
290,
262,
7593,
290,
5068,
6103,
1342,
621,
604,
30,
46506,
35224,
7203,
41862,
13260,
18810,
4943,
16034,
3084,
62,
45331,
1795,
33411,
366,
34,
... |
SELECT * FROM users WHERE id < 0 ORDER BY id;. | SELECT * FROM Users WHERE Id < 0 ORDER BY Id | [
46506,
1635,
16034,
2985,
33411,
4686,
1279,
657,
38678,
11050,
4686,
26,
13,
46506,
1635,
16034,
18987,
33411,
5121,
1279,
657,
38678,
11050,
5121
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
46506,
1635,
16034,
2985,
33411,
4686,
1279,
657,
38678,
11050,
4686,
26,
13,
46506,
1635,
16034,
18987,
33411,
5121,
1279,
657,
38678,
11050,
5121
] |
What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0? | SELECT MAX(other) FROM table_name_28 WHERE us_open_cup > 0 AND concacaf = 0 | [
2061,
318,
262,
4511,
1988,
329,
3819,
326,
468,
39962,
2246,
8579,
1988,
286,
657,
257,
471,
13,
50,
13,
4946,
5454,
4025,
621,
657,
30,
46506,
25882,
7,
847,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
514,
62,
9654,
62,
25244,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1988,
329,
3819,
326,
468,
39962,
2246,
8579,
1988,
286,
657,
257,
471,
13,
50,
13,
4946,
5454,
4025,
621,
657,
30,
46506,
25882,
7,
847,
8,
16034,
3084,
62,
3672,
62,
2078,
33411,
514,
62,
9654,
62,
25244,
1... |
what is the total rank on airdate march 30, 2011? | SELECT COUNT(rank_timeslot_) FROM table_27987623_4 WHERE airdate = "March 30, 2011" | [
10919,
318,
262,
2472,
4279,
319,
257,
1447,
378,
9960,
1542,
11,
2813,
30,
46506,
327,
28270,
7,
43027,
62,
22355,
26487,
62,
8,
16034,
3084,
62,
1983,
4089,
4304,
1954,
62,
19,
33411,
257,
1447,
378,
796,
366,
16192,
1542,
11,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
2472,
4279,
319,
257,
1447,
378,
9960,
1542,
11,
2813,
30,
46506,
327,
28270,
7,
43027,
62,
22355,
26487,
62,
8,
16034,
3084,
62,
1983,
4089,
4304,
1954,
62,
19,
33411,
257,
1447,
378,
796,
366,
16192,
1542,
11,
281... |
What is the total of the game that the team was @ new york? | SELECT COUNT("Game") FROM table_44155 WHERE "Team" = '@ new york' | [
2061,
318,
262,
2472,
286,
262,
983,
326,
262,
1074,
373,
2488,
649,
331,
967,
30,
46506,
327,
28270,
7203,
8777,
4943,
16034,
3084,
62,
2598,
18742,
33411,
366,
15592,
1,
796,
705,
31,
649,
331,
967,
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,
2472,
286,
262,
983,
326,
262,
1074,
373,
2488,
649,
331,
967,
30,
46506,
327,
28270,
7203,
8777,
4943,
16034,
3084,
62,
2598,
18742,
33411,
366,
15592,
1,
796,
705,
31,
649,
331,
967,
6
] |
what is the number of government health insurance who had inpatient hospital admission? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Government" AND demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" | [
10919,
318,
262,
1271,
286,
1230,
1535,
5096,
508,
550,
287,
26029,
4436,
13938,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
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
] | [
10919,
318,
262,
1271,
286,
1230,
1535,
5096,
508,
550,
287,
26029,
4436,
13938,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
1040,
3874,
796,
366,
28848,
1,
5357,
16728... |
What is the name of a building in Courbevoie built before 1973? | SELECT name FROM table_name_96 WHERE year_built < 1973 AND city = "courbevoie" | [
2061,
318,
262,
1438,
286,
257,
2615,
287,
2734,
1350,
13038,
494,
3170,
878,
15674,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4846,
33411,
614,
62,
18780,
1279,
15674,
5357,
1748,
796,
366,
43220,
1350,
13038,
494,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
257,
2615,
287,
2734,
1350,
13038,
494,
3170,
878,
15674,
30,
46506,
1438,
16034,
3084,
62,
3672,
62,
4846,
33411,
614,
62,
18780,
1279,
15674,
5357,
1748,
796,
366,
43220,
1350,
13038,
494,
1
] |
Where were jamie cox & scott kremerskothen paired? | SELECT venue FROM table_name_24 WHERE batsmen = "jamie cox & scott kremerskothen" | [
8496,
547,
16853,
494,
763,
87,
1222,
629,
1252,
479,
2787,
364,
74,
313,
831,
20312,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1731,
33411,
19553,
3653,
796,
366,
39159,
494,
763,
87,
1222,
629,
1252,
479,
2787,
364,
74,
313,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
547,
16853,
494,
763,
87,
1222,
629,
1252,
479,
2787,
364,
74,
313,
831,
20312,
30,
46506,
14359,
16034,
3084,
62,
3672,
62,
1731,
33411,
19553,
3653,
796,
366,
39159,
494,
763,
87,
1222,
629,
1252,
479,
2787,
364,
74,
313,
83... |
give me the number of patients whose age is less than 80 and lab test fluid is joint fluid? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "80" AND lab.fluid = "Joint Fluid" | [
26535,
502,
262,
1271,
286,
3871,
3025,
2479,
318,
1342,
621,
4019,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
318,
1342,
621,
4019,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
... |
tell me the gender of 27038? | SELECT patients.gender FROM patients WHERE patients.subject_id = 27038 | [
33331,
502,
262,
5279,
286,
20479,
2548,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
20479,
2548
] | [
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,
5279,
286,
20479,
2548,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
20479,
2548
] |
TOP 500 programming languages. | SELECT T.TagName, T.Count FROM Tags AS T ORDER BY T.Count DESC LIMIT 5000 | [
35222,
5323,
8300,
8950,
13,
46506,
309,
13,
24835,
5376,
11,
309,
13,
12332,
16034,
44789,
7054,
309,
38678,
11050,
309,
13,
12332,
22196,
34,
27564,
2043,
23336
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
35222,
5323,
8300,
8950,
13,
46506,
309,
13,
24835,
5376,
11,
309,
13,
12332,
16034,
44789,
7054,
309,
38678,
11050,
309,
13,
12332,
22196,
34,
27564,
2043,
23336
] |
Which school did Herb Williams go to? | SELECT "School/Club Team" FROM table_15866 WHERE "Player" = 'Herb Williams' | [
13828,
1524,
750,
34858,
6484,
467,
284,
30,
46506,
366,
26130,
14,
42350,
4816,
1,
16034,
3084,
62,
21273,
2791,
33411,
366,
14140,
1,
796,
705,
9360,
65,
6484,
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,
1524,
750,
34858,
6484,
467,
284,
30,
46506,
366,
26130,
14,
42350,
4816,
1,
16034,
3084,
62,
21273,
2791,
33411,
366,
14140,
1,
796,
705,
9360,
65,
6484,
6
] |
How many artists were there for the show thoroughly modern millie? | SELECT COUNT(artist) FROM table_28140141_1 WHERE show = "Thoroughly Modern Millie" | [
2437,
867,
7912,
547,
612,
329,
262,
905,
13770,
3660,
3939,
494,
30,
46506,
327,
28270,
7,
49016,
8,
16034,
3084,
62,
2078,
1415,
486,
3901,
62,
16,
33411,
905,
796,
366,
817,
7985,
306,
12495,
9212,
494,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7912,
547,
612,
329,
262,
905,
13770,
3660,
3939,
494,
30,
46506,
327,
28270,
7,
49016,
8,
16034,
3084,
62,
2078,
1415,
486,
3901,
62,
16,
33411,
905,
796,
366,
817,
7985,
306,
12495,
9212,
494,
1
] |
Name the runs conceded where overs bowled is 53 | SELECT COUNT("Runs Conceded") FROM table_72706 WHERE "Overs Bowled" = '53' | [
5376,
262,
4539,
24684,
810,
10753,
9563,
992,
318,
7192,
46506,
327,
28270,
7203,
10987,
82,
1482,
771,
276,
4943,
16034,
3084,
62,
47760,
3312,
33411,
366,
46,
690,
9740,
992,
1,
796,
705,
4310,
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
] | [
5376,
262,
4539,
24684,
810,
10753,
9563,
992,
318,
7192,
46506,
327,
28270,
7203,
10987,
82,
1482,
771,
276,
4943,
16034,
3084,
62,
47760,
3312,
33411,
366,
46,
690,
9740,
992,
1,
796,
705,
4310,
6
] |
what is the difference between the points earned by cordoba and the points earned by cd villarrobledo ? | SELECT ABS((SELECT "points" FROM table_204_135 WHERE "club" = 'cordoba cf') - (SELECT "points" FROM table_204_135 WHERE "club" = 'cd villarrobledo')) | [
10919,
318,
262,
3580,
1022,
262,
2173,
7366,
416,
15050,
19981,
290,
262,
2173,
7366,
416,
22927,
4489,
34852,
9342,
78,
5633,
46506,
29950,
19510,
46506,
366,
13033,
1,
16034,
3084,
62,
18638,
62,
17059,
33411,
366,
18664,
1,
796,
705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
3580,
1022,
262,
2173,
7366,
416,
15050,
19981,
290,
262,
2173,
7366,
416,
22927,
4489,
34852,
9342,
78,
5633,
46506,
29950,
19510,
46506,
366,
13033,
1,
16034,
3084,
62,
18638,
62,
17059,
33411,
366,
18664,
1,
796,
705... |
show me all fares from NEW YORK to MIAMI leaving on a TUESDAY | 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, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND DAYS_1.day_name = '... | [
12860,
502,
477,
33164,
422,
12682,
28154,
284,
15789,
43870,
4305,
319,
257,
309,
35409,
26442,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
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... | [
12860,
502,
477,
33164,
422,
12682,
28154,
284,
15789,
43870,
4305,
319,
257,
309,
35409,
26442,
46506,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,... |
How many innings for the player with an average of 22.61? | SELECT "Innings" FROM table_74326 WHERE "Average" = '22.61' | [
2437,
867,
16267,
329,
262,
2137,
351,
281,
2811,
286,
2534,
13,
5333,
30,
46506,
366,
818,
23400,
1,
16034,
3084,
62,
22,
3559,
2075,
33411,
366,
26287,
1,
796,
705,
1828,
13,
5333,
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
] | [
2437,
867,
16267,
329,
262,
2137,
351,
281,
2811,
286,
2534,
13,
5333,
30,
46506,
366,
818,
23400,
1,
16034,
3084,
62,
22,
3559,
2075,
33411,
366,
26287,
1,
796,
705,
1828,
13,
5333,
6
] |
give me the number of patients who have diagnoses icd9 code 5570 and are less than 77 years. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "77" AND diagnoses.icd9_code = "5570" | [
26535,
502,
262,
1271,
286,
3871,
508,
423,
40567,
14158,
67,
24,
2438,
5996,
2154,
290,
389,
1342,
621,
8541,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
508,
423,
40567,
14158,
67,
24,
2438,
5996,
2154,
290,
389,
1342,
621,
8541,
812,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
... |
Name the max for prohibition. | SELECT MAX("For Prohibition") FROM table_17410 | [
5376,
262,
3509,
329,
19548,
13,
46506,
25882,
7203,
1890,
43091,
4943,
16034,
3084,
62,
22985,
940
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
3509,
329,
19548,
13,
46506,
25882,
7203,
1890,
43091,
4943,
16034,
3084,
62,
22985,
940
] |
What was the final score for the game played against @ Milwaukee? | SELECT "Score" FROM table_48466 WHERE "Team" = '@ milwaukee' | [
2061,
373,
262,
2457,
4776,
329,
262,
983,
2826,
1028,
2488,
16629,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34137,
2791,
33411,
366,
15592,
1,
796,
705,
31,
1465,
15428,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2457,
4776,
329,
262,
983,
2826,
1028,
2488,
16629,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
34137,
2791,
33411,
366,
15592,
1,
796,
705,
31,
1465,
15428,
6
] |
What year has an issue price of $697.95? | SELECT COUNT("Year") FROM table_58378 WHERE "Issue Price" = '$697.95' | [
2061,
614,
468,
281,
2071,
2756,
286,
720,
40035,
13,
3865,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3365,
30695,
33411,
366,
45147,
7886,
1,
796,
705,
3,
40035,
13,
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,
614,
468,
281,
2071,
2756,
286,
720,
40035,
13,
3865,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3365,
30695,
33411,
366,
45147,
7886,
1,
796,
705,
3,
40035,
13,
3865,
6
] |
Which country scored 69-67-69-70=275? | SELECT country FROM table_name_22 WHERE score = 69 - 67 - 69 - 70 = 275 | [
13828,
1499,
7781,
8644,
12,
3134,
12,
3388,
12,
2154,
28,
23195,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1828,
33411,
4776,
796,
8644,
532,
8275,
532,
8644,
532,
4317,
796,
25829
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7781,
8644,
12,
3134,
12,
3388,
12,
2154,
28,
23195,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
1828,
33411,
4776,
796,
8644,
532,
8275,
532,
8644,
532,
4317,
796,
25829
] |
how long did colin clarke coach the puerto rico islanders for ? | SELECT "until" - "from" FROM table_204_832 WHERE "name" = 'colin clarke' AND "club" = 'puerto rico islanders' | [
4919,
890,
750,
951,
259,
10212,
365,
3985,
262,
47574,
13806,
374,
3713,
7022,
364,
329,
5633,
46506,
366,
28446,
1,
532,
366,
6738,
1,
16034,
3084,
62,
18638,
62,
23,
2624,
33411,
366,
3672,
1,
796,
705,
4033,
259,
10212,
365,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
750,
951,
259,
10212,
365,
3985,
262,
47574,
13806,
374,
3713,
7022,
364,
329,
5633,
46506,
366,
28446,
1,
532,
366,
6738,
1,
16034,
3084,
62,
18638,
62,
23,
2624,
33411,
366,
3672,
1,
796,
705,
4033,
259,
10212,
365,
6,
... |
Which area is the one where I 've earned the most C+ 's ? | SELECT DISTINCT DERIVED_TABLEalias0.DERIVED_FIELDalias1 FROM (SELECT AREAalias0.area, COUNT(*) INNER JOIN student_record ON student_record.course_id = AREAalias0.course_id WHERE student_record.grade LIKE 'C+' AND student_record.student_id = 1 GROUP BY AREAalias0.area) AS DERIVED_TABLEalias0 WHERE DERIVED_TABLEalias0.DE... | [
13828,
1989,
318,
262,
530,
810,
314,
705,
303,
7366,
262,
749,
327,
10,
705,
82,
5633,
46506,
360,
8808,
1268,
4177,
360,
1137,
3824,
1961,
62,
38148,
26011,
15,
13,
14418,
3824,
1961,
62,
44603,
26011,
16,
16034,
357,
46506,
15986,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1989,
318,
262,
530,
810,
314,
705,
303,
7366,
262,
749,
327,
10,
705,
82,
5633,
46506,
360,
8808,
1268,
4177,
360,
1137,
3824,
1961,
62,
38148,
26011,
15,
13,
14418,
3824,
1961,
62,
44603,
26011,
16,
16034,
357,
46506,
15986,
... |
How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes? | SELECT COUNT(grid) FROM table_name_20 WHERE constructor = "talbot-lago - talbot" AND laps < 83 AND driver = "johnny claes" | [
2437,
867,
50000,
423,
257,
28407,
273,
286,
3305,
13645,
12,
75,
3839,
532,
3305,
13645,
11,
257,
406,
1686,
739,
9698,
11,
290,
257,
4639,
286,
45610,
3281,
26435,
274,
30,
46506,
327,
28270,
7,
25928,
8,
16034,
3084,
62,
3672,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
50000,
423,
257,
28407,
273,
286,
3305,
13645,
12,
75,
3839,
532,
3305,
13645,
11,
257,
406,
1686,
739,
9698,
11,
290,
257,
4639,
286,
45610,
3281,
26435,
274,
30,
46506,
327,
28270,
7,
25928,
8,
16034,
3084,
62,
3672,
62... |
Show me about the distribution of All_Neutral and All_Games_Percent in a bar chart, list by the names in desc. | SELECT All_Neutral, All_Games_Percent FROM basketball_match ORDER BY All_Neutral DESC | [
15307,
502,
546,
262,
6082,
286,
1439,
62,
8199,
6815,
290,
1439,
62,
24474,
62,
31905,
287,
257,
2318,
8262,
11,
1351,
416,
262,
3891,
287,
1715,
13,
46506,
1439,
62,
8199,
6815,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1439,
62,
8199,
6815,
290,
1439,
62,
24474,
62,
31905,
287,
257,
2318,
8262,
11,
1351,
416,
262,
3891,
287,
1715,
13,
46506,
1439,
62,
8199,
6815,
11,
1439,
62,
24474,
62,
31905,
16034,
9669,
62,
156... |
how many face values are there on the chart ? | SELECT COUNT("face value") FROM table_204_44 | [
4919,
867,
1986,
3815,
389,
612,
319,
262,
8262,
5633,
46506,
327,
28270,
7203,
2550,
1988,
4943,
16034,
3084,
62,
18638,
62,
2598
] | [
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,
1986,
3815,
389,
612,
319,
262,
8262,
5633,
46506,
327,
28270,
7203,
2550,
1988,
4943,
16034,
3084,
62,
18638,
62,
2598
] |
what was the score on june 16? | SELECT score FROM table_name_77 WHERE date = "june 16" | [
10919,
373,
262,
4776,
319,
474,
1726,
1467,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
3128,
796,
366,
73,
1726,
1467,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
373,
262,
4776,
319,
474,
1726,
1467,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3324,
33411,
3128,
796,
366,
73,
1726,
1467,
1
] |
give me the number of patients whose primary disease is chest pain and procedure icd9 code is 3521? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "CHEST PAIN" AND procedures.icd9_code = "3521" | [
26535,
502,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
2481,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
4165,
4369,
318,
7721,
2356,
290,
8771,
14158,
67,
24,
2438,
318,
3439,
2481,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
What are the different product names? What is the average product price for each of them? | SELECT product_name, AVG(product_price) FROM products GROUP BY product_name | [
2061,
389,
262,
1180,
1720,
3891,
30,
1867,
318,
262,
2811,
1720,
2756,
329,
1123,
286,
606,
30,
46506,
1720,
62,
3672,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
3186,
44441,
11050,
1720,
62,
3672
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1180,
1720,
3891,
30,
1867,
318,
262,
2811,
1720,
2756,
329,
1123,
286,
606,
30,
46506,
1720,
62,
3672,
11,
35224,
7,
11167,
62,
20888,
8,
16034,
3186,
44441,
11050,
1720,
62,
3672
] |
Which money is the highest one that has a To par of 1, and a Score of 73-70-73-71=287? | SELECT MAX("Money ( $ )") FROM table_8917 WHERE "To par" = '–1' AND "Score" = '73-70-73-71=287' | [
13828,
1637,
318,
262,
4511,
530,
326,
468,
257,
1675,
1582,
286,
352,
11,
290,
257,
15178,
286,
8854,
12,
2154,
12,
4790,
12,
4869,
28,
27800,
30,
46506,
25882,
7203,
26788,
357,
720,
1267,
4943,
16034,
3084,
62,
4531,
1558,
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... | [
13828,
1637,
318,
262,
4511,
530,
326,
468,
257,
1675,
1582,
286,
352,
11,
290,
257,
15178,
286,
8854,
12,
2154,
12,
4790,
12,
4869,
28,
27800,
30,
46506,
25882,
7203,
26788,
357,
720,
1267,
4943,
16034,
3084,
62,
4531,
1558,
33411,
... |
Which Away team scored 12.17 (89) when the crowd was larger than 17,000? | SELECT "Away team" FROM table_33051 WHERE "Crowd" > '17,000' AND "Away team score" = '12.17 (89)' | [
13828,
21986,
1074,
7781,
1105,
13,
1558,
357,
4531,
8,
618,
262,
4315,
373,
4025,
621,
1596,
11,
830,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
26073,
4349,
33411,
366,
34,
3986,
1,
1875,
705,
1558,
11,
830,
6,
5357,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
21986,
1074,
7781,
1105,
13,
1558,
357,
4531,
8,
618,
262,
4315,
373,
4025,
621,
1596,
11,
830,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
26073,
4349,
33411,
366,
34,
3986,
1,
1875,
705,
1558,
11,
830,
6,
5357,
36... |
which of the universities was founded first ? | SELECT "school" FROM table_203_721 ORDER BY "founded" LIMIT 1 | [
4758,
286,
262,
11155,
373,
9393,
717,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
22416,
62,
22,
2481,
38678,
11050,
366,
27060,
1,
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
] | [
4758,
286,
262,
11155,
373,
9393,
717,
5633,
46506,
366,
14347,
1,
16034,
3084,
62,
22416,
62,
22,
2481,
38678,
11050,
366,
27060,
1,
27564,
2043,
352
] |
Name the grand prix with a driver of Michael Schumacher and a round of 7? | SELECT grand_prix FROM table_1137696_3 WHERE winning_driver = "Michael Schumacher" AND fastest_lap = "Michael Schumacher" AND round = 7 | [
5376,
262,
4490,
1293,
87,
351,
257,
4639,
286,
3899,
3059,
388,
3493,
290,
257,
2835,
286,
767,
30,
46506,
4490,
62,
3448,
87,
16034,
3084,
62,
1157,
2718,
38205,
62,
18,
33411,
5442,
62,
26230,
796,
366,
13256,
3059,
388,
3493,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4490,
1293,
87,
351,
257,
4639,
286,
3899,
3059,
388,
3493,
290,
257,
2835,
286,
767,
30,
46506,
4490,
62,
3448,
87,
16034,
3084,
62,
1157,
2718,
38205,
62,
18,
33411,
5442,
62,
26230,
796,
366,
13256,
3059,
388,
3493,
1,... |
When was the private/baptist school founded? | SELECT "Founded" FROM table_28403 WHERE "Type" = 'Private/Baptist' | [
2215,
373,
262,
2839,
14,
65,
2373,
396,
1524,
9393,
30,
46506,
366,
37,
6302,
1,
16034,
3084,
62,
2078,
31552,
33411,
366,
6030,
1,
796,
705,
29067,
14,
33,
2373,
396,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
2839,
14,
65,
2373,
396,
1524,
9393,
30,
46506,
366,
37,
6302,
1,
16034,
3084,
62,
2078,
31552,
33411,
366,
6030,
1,
796,
705,
29067,
14,
33,
2373,
396,
6
] |
Which player has a position of FW? | SELECT player FROM table_name_25 WHERE pos = "fw" | [
13828,
2137,
468,
257,
2292,
286,
48849,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1495,
33411,
1426,
796,
366,
44482,
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,
468,
257,
2292,
286,
48849,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
1495,
33411,
1426,
796,
366,
44482,
1
] |
What is the venue that Saint Joseph's University hosted at? | SELECT "Venue" FROM table_32392 WHERE "Host" = 'saint joseph''s university' | [
2061,
318,
262,
14359,
326,
9281,
7212,
338,
2059,
12007,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
32637,
5892,
33411,
366,
17932,
1,
796,
705,
82,
2913,
474,
577,
746,
7061,
82,
6403,
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,
14359,
326,
9281,
7212,
338,
2059,
12007,
379,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
32637,
5892,
33411,
366,
17932,
1,
796,
705,
82,
2913,
474,
577,
746,
7061,
82,
6403,
6
] |
What nationality has a ranking less than 7 with tony stenson as the name? | SELECT "Nationality" FROM table_79777 WHERE "Ranking" < '7' AND "Name" = 'tony stenson' | [
2061,
29835,
468,
257,
12759,
1342,
621,
767,
351,
256,
1647,
336,
19069,
355,
262,
1438,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3720,
29331,
33411,
366,
49,
15230,
1,
1279,
705,
22,
6,
5357,
366,
5376,
1,
796,
705,
1122,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29835,
468,
257,
12759,
1342,
621,
767,
351,
256,
1647,
336,
19069,
355,
262,
1438,
30,
46506,
366,
16186,
414,
1,
16034,
3084,
62,
3720,
29331,
33411,
366,
49,
15230,
1,
1279,
705,
22,
6,
5357,
366,
5376,
1,
796,
705,
1122,
... |
the last year what are the three most common diagnoses? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '... | [
1169,
938,
614,
644,
389,
262,
1115,
749,
2219,
40567,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1169,
938,
614,
644,
389,
262,
1115,
749,
2219,
40567,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62,
47356,
4629,
13,
291,
67,
24,
62,
8... |
Who had the highest assists on March 18? | SELECT "High assists" FROM table_72849 WHERE "Date" = 'March 18' | [
8241,
550,
262,
4511,
13648,
319,
2805,
1248,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
48524,
2920,
33411,
366,
10430,
1,
796,
705,
16192,
1248,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
550,
262,
4511,
13648,
319,
2805,
1248,
30,
46506,
366,
11922,
13648,
1,
16034,
3084,
62,
48524,
2920,
33411,
366,
10430,
1,
796,
705,
16192,
1248,
6
] |
how many of the asian patients were treated with neo*po*mct oil? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug = "NEO*PO*MCT Oil" | [
4919,
867,
286,
262,
355,
666,
3871,
547,
5716,
351,
19102,
9,
7501,
9,
76,
310,
3056,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
286,
262,
355,
666,
3871,
547,
5716,
351,
19102,
9,
7501,
9,
76,
310,
3056,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
34092,
6177,
16728,
13,
181... |
how many elective hospital admission patients were born before the year 2076? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dob_year < "2076" | [
4919,
867,
1742,
425,
4436,
13938,
3871,
547,
4642,
878,
262,
614,
1160,
4304,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
36,
16779,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1742,
425,
4436,
13938,
3871,
547,
4642,
878,
262,
614,
1160,
4304,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
324,
3411,
62,
4906,
796,
366,
36,
16779,
9... |
what are the four most common diagnosis of patients with age 40s during a year before? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | [
10919,
389,
262,
1440,
749,
2219,
13669,
286,
3871,
351,
2479,
2319,
82,
1141,
257,
614,
878,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
389,
262,
1440,
749,
2219,
13669,
286,
3871,
351,
2479,
2319,
82,
1141,
257,
614,
878,
30,
46506,
288,
62,
291,
67,
62,
47356,
4629,
13,
19509,
62,
7839,
16034,
288,
62,
291,
67,
62,
47356,
4629,
33411,
288,
62,
291,
67,
62... |
Which Margin of victory has a Runner(s)-up of dave barr? | SELECT "Margin of victory" FROM table_38519 WHERE "Runner(s)-up" = 'dave barr' | [
13828,
11899,
259,
286,
5373,
468,
257,
21529,
7,
82,
13219,
929,
286,
288,
1015,
29069,
30,
46506,
366,
24428,
259,
286,
5373,
1,
16034,
3084,
62,
27203,
1129,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
67,
1015,
29069,
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
] | [
13828,
11899,
259,
286,
5373,
468,
257,
21529,
7,
82,
13219,
929,
286,
288,
1015,
29069,
30,
46506,
366,
24428,
259,
286,
5373,
1,
16034,
3084,
62,
27203,
1129,
33411,
366,
49493,
7,
82,
13219,
929,
1,
796,
705,
67,
1015,
29069,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.