instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
flights from INDIANAPOLIS to SEATTLE | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'INDIANAPOLIS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'S... | [
2704,
2337,
422,
24413,
16868,
2969,
3535,
1797,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2704,
2337,
422,
24413,
16868,
2969,
3535,
1797,
284,
7946,
1404,
14990,
33635,
16779,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15271,
7054,
316... |
What game was the record 2-3? | SELECT COUNT(game) FROM table_17355408_12 WHERE record = "2-3" | [
2061,
983,
373,
262,
1700,
362,
12,
18,
30,
46506,
327,
28270,
7,
6057,
8,
16034,
3084,
62,
1558,
28567,
26200,
62,
1065,
33411,
1700,
796,
366,
17,
12,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
983,
373,
262,
1700,
362,
12,
18,
30,
46506,
327,
28270,
7,
6057,
8,
16034,
3084,
62,
1558,
28567,
26200,
62,
1065,
33411,
1700,
796,
366,
17,
12,
18,
1
] |
Name the high rebounds for td garden 18,624 | SELECT "High Rebounds" FROM table_25458 WHERE "Arena Attendance" = 'TD Garden 18,624' | [
5376,
262,
1029,
18841,
329,
41560,
11376,
1248,
11,
21,
1731,
46506,
366,
11922,
15652,
3733,
1,
16034,
3084,
62,
1495,
29334,
33411,
366,
43199,
64,
46502,
590,
1,
796,
705,
21016,
11652,
1248,
11,
21,
1731,
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
] | [
5376,
262,
1029,
18841,
329,
41560,
11376,
1248,
11,
21,
1731,
46506,
366,
11922,
15652,
3733,
1,
16034,
3084,
62,
1495,
29334,
33411,
366,
43199,
64,
46502,
590,
1,
796,
705,
21016,
11652,
1248,
11,
21,
1731,
6
] |
Which host team won on a final scoreline of 13-10? | SELECT host_team FROM table_name_55 WHERE final_score = "13-10" | [
13828,
2583,
1074,
1839,
319,
257,
2457,
4776,
1370,
286,
1511,
12,
940,
30,
46506,
2583,
62,
15097,
16034,
3084,
62,
3672,
62,
2816,
33411,
2457,
62,
26675,
796,
366,
1485,
12,
940,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2583,
1074,
1839,
319,
257,
2457,
4776,
1370,
286,
1511,
12,
940,
30,
46506,
2583,
62,
15097,
16034,
3084,
62,
3672,
62,
2816,
33411,
2457,
62,
26675,
796,
366,
1485,
12,
940,
1
] |
what is ethnicity of subject id 2560? | SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = "2560" | [
10919,
318,
26289,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
38546,
414,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
26289,
286,
2426,
4686,
1679,
1899,
30,
46506,
16728,
13,
38546,
414,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
1495,
1899,
1
] |
What are the High points for Team @ portland? | SELECT high_points FROM table_name_75 WHERE team = "@ portland" | [
2061,
389,
262,
3334,
2173,
329,
4816,
2488,
2493,
1044,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
2425,
33411,
1074,
796,
44212,
2493,
1044,
1
] | [
1,
1,
1,
1,
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,
3334,
2173,
329,
4816,
2488,
2493,
1044,
30,
46506,
1029,
62,
13033,
16034,
3084,
62,
3672,
62,
2425,
33411,
1074,
796,
44212,
2493,
1044,
1
] |
If the average is 1.2803, what is the total points maximum? | SELECT MAX(total_pts) FROM table_22011138_7 WHERE avg = "1.2803" | [
1532,
262,
2811,
318,
352,
13,
21033,
18,
11,
644,
318,
262,
2472,
2173,
5415,
30,
46506,
25882,
7,
23350,
62,
457,
82,
8,
16034,
3084,
62,
17,
1264,
1157,
2548,
62,
22,
33411,
42781,
796,
366,
16,
13,
21033,
18,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1532,
262,
2811,
318,
352,
13,
21033,
18,
11,
644,
318,
262,
2472,
2173,
5415,
30,
46506,
25882,
7,
23350,
62,
457,
82,
8,
16034,
3084,
62,
17,
1264,
1157,
2548,
62,
22,
33411,
42781,
796,
366,
16,
13,
21033,
18,
1
] |
What positions are in the Chicago bulls? | SELECT position FROM table_name_27 WHERE team = "chicago bulls" | [
2061,
6116,
389,
287,
262,
4842,
40317,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1983,
33411,
1074,
796,
366,
354,
4549,
40317,
1
] | [
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,
6116,
389,
287,
262,
4842,
40317,
30,
46506,
2292,
16034,
3084,
62,
3672,
62,
1983,
33411,
1074,
796,
366,
354,
4549,
40317,
1
] |
how many NW flights leave ST. PAUL | SELECT COUNT(DISTINCT flight.flight_id) FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'ST. PAUL' AND flight.airline_code = 'NW' AND flight.from_airport = airport_service.airport_code | [
4919,
867,
21966,
13956,
2666,
3563,
13,
8147,
6239,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
8,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21966,
13956,
2666,
3563,
13,
8147,
6239,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
8,
16034,
9003,
62,
15271,
11,
1748,
11,
5474,
33411,
1748,
13,
19205,
62,
8189,
796,
9003,
62,
15271,
13,
19... |
What college did the Cincinnati Bengals' player come from? | SELECT college FROM table_12165999_1 WHERE afl_team = "Cincinnati Bengals" | [
2061,
4152,
750,
262,
16137,
24037,
6,
2137,
1282,
422,
30,
46506,
4152,
16034,
3084,
62,
1065,
20986,
17032,
62,
16,
33411,
257,
2704,
62,
15097,
796,
366,
34,
15130,
24037,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
4152,
750,
262,
16137,
24037,
6,
2137,
1282,
422,
30,
46506,
4152,
16034,
3084,
62,
1065,
20986,
17032,
62,
16,
33411,
257,
2704,
62,
15097,
796,
366,
34,
15130,
24037,
1
] |
When the pole is larger than 0 and the podium is less than 44, with a race number less than 16, what is the FLap? | SELECT flap FROM table_name_79 WHERE pole > 0 AND podium < 44 AND race < 16 | [
2215,
262,
16825,
318,
4025,
621,
657,
290,
262,
27941,
318,
1342,
621,
5846,
11,
351,
257,
3234,
1271,
1342,
621,
1467,
11,
644,
318,
262,
9977,
499,
30,
46506,
37699,
16034,
3084,
62,
3672,
62,
3720,
33411,
16825,
1875,
657,
5357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
16825,
318,
4025,
621,
657,
290,
262,
27941,
318,
1342,
621,
5846,
11,
351,
257,
3234,
1271,
1342,
621,
1467,
11,
644,
318,
262,
9977,
499,
30,
46506,
37699,
16034,
3084,
62,
3672,
62,
3720,
33411,
16825,
1875,
657,
5357,
... |
what was the top five most commonly prescribed drugs since 2104? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE STRFTIME('%y', medication.drugstarttime) >= '2104' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 5 | [
10919,
373,
262,
1353,
1936,
749,
8811,
14798,
5010,
1201,
362,
13464,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
373,
262,
1353,
1936,
749,
8811,
14798,
5010,
1201,
362,
13464,
30,
46506,
256,
16,
13,
30349,
3672,
16034,
357,
46506,
14103,
13,
30349,
3672,
11,
360,
24290,
62,
49,
15154,
3419,
28729,
357,
12532,
1137,
11050,
327,
28270,
7,
... |
how many days have passed since patient 007-15837 had a d5w intake for the first time on the current intensive care unit visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | [
4919,
867,
1528,
423,
3804,
1201,
5827,
3571,
22,
12,
21273,
2718,
550,
257,
288,
20,
86,
10337,
329,
262,
717,
640,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1528,
423,
3804,
1201,
5827,
3571,
22,
12,
21273,
2718,
550,
257,
288,
20,
86,
10337,
329,
262,
717,
640,
319,
262,
1459,
18590,
1337,
4326,
3187,
30,
46506,
352,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39... |
Which opponent lost with pitcher Kinney (0-1)? | SELECT "Opponent" FROM table_67852 WHERE "Loss" = 'kinney (0-1)' | [
13828,
6125,
2626,
351,
18086,
16645,
1681,
357,
15,
12,
16,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
30924,
4309,
33411,
366,
43,
793,
1,
796,
705,
5116,
1681,
357,
15,
12,
16,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
6125,
2626,
351,
18086,
16645,
1681,
357,
15,
12,
16,
19427,
46506,
366,
27524,
3471,
1,
16034,
3084,
62,
30924,
4309,
33411,
366,
43,
793,
1,
796,
705,
5116,
1681,
357,
15,
12,
16,
33047
] |
there is a microbiology test result for patient 2238 since 2 years ago? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2238) AND DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year') | [
8117,
318,
257,
24559,
1435,
1332,
1255,
329,
5827,
362,
23721,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
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... | [
8117,
318,
257,
24559,
1435,
1332,
1255,
329,
5827,
362,
23721,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
24559,
1435,
31534,
33411,
24559,
1435,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,... |
What was the chassis of Emilio de Villota in 1981? | SELECT "Chassis" FROM table_68591 WHERE "Year" > '1981' | [
2061,
373,
262,
24587,
286,
44272,
952,
390,
9757,
4265,
287,
14745,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
3104,
48952,
33411,
366,
17688,
1,
1875,
705,
35411,
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,
373,
262,
24587,
286,
44272,
952,
390,
9757,
4265,
287,
14745,
30,
46506,
366,
1925,
20297,
1,
16034,
3084,
62,
3104,
48952,
33411,
366,
17688,
1,
1875,
705,
35411,
6
] |
whats the sex of patient 68641? | SELECT patients.gender FROM patients WHERE patients.subject_id = 68641 | [
1929,
1381,
262,
1714,
286,
5827,
8257,
42759,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
8257,
42759
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1929,
1381,
262,
1714,
286,
5827,
8257,
42759,
30,
46506,
3871,
13,
8388,
16034,
3871,
33411,
3871,
13,
32796,
62,
312,
796,
8257,
42759
] |
When is the sankrit how many western names are there? | SELECT COUNT("Western name") FROM table_22516 WHERE "Sanskrit" = 'धनुष' | [
2215,
318,
262,
30895,
799,
703,
867,
8830,
3891,
389,
612,
30,
46506,
327,
28270,
7203,
24227,
1438,
4943,
16034,
3084,
62,
18182,
1433,
33411,
366,
50,
34738,
799,
1,
796,
705,
11976,
100,
11976,
101,
24231,
223,
11976,
115,
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
] | [
2215,
318,
262,
30895,
799,
703,
867,
8830,
3891,
389,
612,
30,
46506,
327,
28270,
7203,
24227,
1438,
4943,
16034,
3084,
62,
18182,
1433,
33411,
366,
50,
34738,
799,
1,
796,
705,
11976,
100,
11976,
101,
24231,
223,
11976,
115,
6
] |
What is Power (kW), when Coverage (Transmitter Site) is 'Lucena'? | SELECT "Power (kW)" FROM table_8145 WHERE "Coverage (Transmitter site)" = 'lucena' | [
2061,
318,
4333,
357,
74,
54,
828,
618,
33998,
357,
8291,
37974,
14413,
8,
318,
705,
22946,
8107,
30960,
46506,
366,
13434,
357,
74,
54,
16725,
16034,
3084,
62,
23,
18781,
33411,
366,
7222,
1857,
357,
8291,
37974,
2524,
16725,
796,
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
] | [
2061,
318,
4333,
357,
74,
54,
828,
618,
33998,
357,
8291,
37974,
14413,
8,
318,
705,
22946,
8107,
30960,
46506,
366,
13434,
357,
74,
54,
16725,
16034,
3084,
62,
23,
18781,
33411,
366,
7222,
1857,
357,
8291,
37974,
2524,
16725,
796,
70... |
Name the loss with save of || 23,391 ||17-18||? | SELECT loss FROM table_name_86 WHERE save = "|| 23,391 ||17-18||" | [
5376,
262,
2994,
351,
3613,
286,
8614,
2242,
11,
37710,
8614,
1558,
12,
1507,
15886,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
4521,
33411,
3613,
796,
366,
15886,
2242,
11,
37710,
8614,
1558,
12,
1507,
15886,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2994,
351,
3613,
286,
8614,
2242,
11,
37710,
8614,
1558,
12,
1507,
15886,
30,
46506,
2994,
16034,
3084,
62,
3672,
62,
4521,
33411,
3613,
796,
366,
15886,
2242,
11,
37710,
8614,
1558,
12,
1507,
15886,
1
] |
What was the venue where Carlton was the away team? | SELECT "Venue" FROM table_33779 WHERE "Away team" = 'carlton' | [
2061,
373,
262,
14359,
810,
44348,
373,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
40393,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14359,
810,
44348,
373,
262,
1497,
1074,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
2091,
40393,
33411,
366,
32,
1014,
1074,
1,
796,
705,
66,
7063,
1122,
6
] |
calculate the number of female patients with drug code epo4i. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "EPO4I" | [
9948,
3129,
378,
262,
1271,
286,
4048,
3871,
351,
2563,
2438,
2462,
78,
19,
72,
13,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9948,
3129,
378,
262,
1271,
286,
4048,
3871,
351,
2563,
2438,
2462,
78,
19,
72,
13,
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,
... |
Who scored the most points when the Bucks played against Houston? | SELECT "High points" FROM table_29945 WHERE "Team" = 'Houston' | [
8241,
7781,
262,
749,
2173,
618,
262,
29751,
2826,
1028,
6995,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
22579,
2231,
33411,
366,
15592,
1,
796,
705,
33387,
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
] | [
8241,
7781,
262,
749,
2173,
618,
262,
29751,
2826,
1028,
6995,
30,
46506,
366,
11922,
2173,
1,
16034,
3084,
62,
22579,
2231,
33411,
366,
15592,
1,
796,
705,
33387,
6
] |
How many people live where there are 118% of people have phones? | SELECT population FROM table_name_88 WHERE _number_of_phones_as__percentage_of_population = 118 | [
2437,
867,
661,
2107,
810,
612,
389,
19035,
4,
286,
661,
423,
9512,
30,
46506,
3265,
16034,
3084,
62,
3672,
62,
3459,
33411,
4808,
17618,
62,
1659,
62,
9708,
62,
292,
834,
25067,
496,
62,
1659,
62,
39748,
796,
19035
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
661,
2107,
810,
612,
389,
19035,
4,
286,
661,
423,
9512,
30,
46506,
3265,
16034,
3084,
62,
3672,
62,
3459,
33411,
4808,
17618,
62,
1659,
62,
9708,
62,
292,
834,
25067,
496,
62,
1659,
62,
39748,
796,
19035
] |
Show all the activity names and the number of faculty involved in each activity Show bar chart, and list by the Y in descending. | SELECT activity_name, COUNT(*) FROM Activity AS T1 JOIN Faculty_Participates_in AS T2 ON T1.actid = T2.actid GROUP BY T1.actid ORDER BY COUNT(*) DESC | [
15307,
477,
262,
3842,
3891,
290,
262,
1271,
286,
12829,
2950,
287,
1123,
3842,
5438,
2318,
8262,
11,
290,
1351,
416,
262,
575,
287,
31491,
13,
46506,
3842,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
24641,
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... | [
15307,
477,
262,
3842,
3891,
290,
262,
1271,
286,
12829,
2950,
287,
1123,
3842,
5438,
2318,
8262,
11,
290,
1351,
416,
262,
575,
287,
31491,
13,
46506,
3842,
62,
3672,
11,
327,
28270,
7,
28104,
16034,
24641,
7054,
309,
16,
32357,
1268,... |
Show the id of each employee and the number of document destruction authorised by that employee. Show scatter chart. | SELECT Destruction_Authorised_by_Employee_ID, COUNT(*) FROM Documents_to_be_Destroyed GROUP BY Destruction_Authorised_by_Employee_ID | [
15307,
262,
4686,
286,
1123,
6538,
290,
262,
1271,
286,
3188,
8166,
39019,
416,
326,
6538,
13,
5438,
41058,
8262,
13,
46506,
25034,
62,
13838,
1417,
62,
1525,
62,
29733,
1453,
62,
2389,
11,
327,
28270,
7,
28104,
16034,
33267,
62,
1462... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4686,
286,
1123,
6538,
290,
262,
1271,
286,
3188,
8166,
39019,
416,
326,
6538,
13,
5438,
41058,
8262,
13,
46506,
25034,
62,
13838,
1417,
62,
1525,
62,
29733,
1453,
62,
2389,
11,
327,
28270,
7,
28104,
16034,
33267,
62,
1462... |
Who is the winner of the race in Burkina Faso? | SELECT winner FROM table_name_60 WHERE location = "burkina faso" | [
8241,
318,
262,
8464,
286,
262,
3234,
287,
37940,
1437,
38971,
78,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1899,
33411,
4067,
796,
366,
6236,
74,
1437,
277,
292,
78,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
318,
262,
8464,
286,
262,
3234,
287,
37940,
1437,
38971,
78,
30,
46506,
8464,
16034,
3084,
62,
3672,
62,
1899,
33411,
4067,
796,
366,
6236,
74,
1437,
277,
292,
78,
1
] |
What is the Equatorial bulge of the Body: Earth? | SELECT "Equatorial bulge" FROM table_36796 WHERE "Body" = 'earth' | [
2061,
318,
262,
7889,
21592,
4807,
469,
286,
262,
12290,
25,
3668,
30,
46506,
366,
23588,
21592,
4807,
469,
1,
16034,
3084,
62,
2623,
41060,
33411,
366,
25842,
1,
796,
705,
16442,
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,
7889,
21592,
4807,
469,
286,
262,
12290,
25,
3668,
30,
46506,
366,
23588,
21592,
4807,
469,
1,
16034,
3084,
62,
2623,
41060,
33411,
366,
25842,
1,
796,
705,
16442,
6
] |
let me know the birth date of patient kelly gallardo. | SELECT demographic.dob FROM demographic WHERE demographic.name = "Kelly Gallardo" | [
1616,
502,
760,
262,
4082,
3128,
286,
5827,
885,
12810,
7976,
13109,
13,
46506,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1616,
502,
760,
262,
4082,
3128,
286,
5827,
885,
12810,
7976,
13109,
13,
46506,
16728,
13,
67,
672,
16034,
16728,
33411,
16728,
13,
3672,
796,
366,
34831,
7096,
13109,
1
] |
What is the Conference for the 1967 68 season? | SELECT conference FROM table_name_71 WHERE season = "1967–68" | [
2061,
318,
262,
8785,
329,
262,
15904,
8257,
1622,
30,
46506,
4495,
16034,
3084,
62,
3672,
62,
4869,
33411,
1622,
796,
366,
42830,
1906,
3104,
1
] | [
1,
1,
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,
8785,
329,
262,
15904,
8257,
1622,
30,
46506,
4495,
16034,
3084,
62,
3672,
62,
4869,
33411,
1622,
796,
366,
42830,
1906,
3104,
1
] |
What is Stadium, when Stadium Capacity is '10,000', and when Team is 'KF Drita'? | SELECT "Stadium" FROM table_60891 WHERE "Stadium capacity" = '10,000' AND "Team" = 'kf drita' | [
2061,
318,
10499,
11,
618,
10499,
29765,
318,
705,
940,
11,
830,
3256,
290,
618,
4816,
318,
705,
42,
37,
360,
799,
64,
30960,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
1899,
4531,
16,
33411,
366,
1273,
6271,
5339,
1,
796,
705,
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,
1,
1,
1
] | [
2061,
318,
10499,
11,
618,
10499,
29765,
318,
705,
940,
11,
830,
3256,
290,
618,
4816,
318,
705,
42,
37,
360,
799,
64,
30960,
46506,
366,
1273,
6271,
1,
16034,
3084,
62,
1899,
4531,
16,
33411,
366,
1273,
6271,
5339,
1,
796,
705,
9... |
what is the only year to feature a university level team challenge ? | SELECT "season" FROM table_203_185 WHERE NOT "university level" IS NULL | [
10919,
318,
262,
691,
614,
284,
3895,
257,
6403,
1241,
1074,
4427,
5633,
46506,
366,
6230,
1,
16034,
3084,
62,
22416,
62,
21652,
33411,
5626,
366,
403,
1608,
1241,
1,
3180,
15697
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
691,
614,
284,
3895,
257,
6403,
1241,
1074,
4427,
5633,
46506,
366,
6230,
1,
16034,
3084,
62,
22416,
62,
21652,
33411,
5626,
366,
403,
1608,
1241,
1,
3180,
15697
] |
What is the name of the away captain when Hugh Trumble was the home captain and the result was Aus by 32 runs? | SELECT away_captain FROM table_name_65 WHERE home_captain = "hugh trumble" AND result = "aus by 32 runs" | [
2061,
318,
262,
1438,
286,
262,
1497,
10654,
618,
25464,
833,
10344,
373,
262,
1363,
10654,
290,
262,
1255,
373,
27545,
416,
3933,
4539,
30,
46506,
1497,
62,
27144,
391,
16034,
3084,
62,
3672,
62,
2996,
33411,
1363,
62,
27144,
391,
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,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1438,
286,
262,
1497,
10654,
618,
25464,
833,
10344,
373,
262,
1363,
10654,
290,
262,
1255,
373,
27545,
416,
3933,
4539,
30,
46506,
1497,
62,
27144,
391,
16034,
3084,
62,
3672,
62,
2996,
33411,
1363,
62,
27144,
391,
79... |
Is art school public or private? | SELECT "Control" FROM table_23893 WHERE "Type" = 'Art school' | [
3792,
1242,
1524,
1171,
393,
2839,
30,
46506,
366,
15988,
1,
16034,
3084,
62,
1954,
49682,
33411,
366,
6030,
1,
796,
705,
8001,
1524,
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
] | [
3792,
1242,
1524,
1171,
393,
2839,
30,
46506,
366,
15988,
1,
16034,
3084,
62,
1954,
49682,
33411,
366,
6030,
1,
796,
705,
8001,
1524,
6
] |
Name the IATA with a City of budapest? | SELECT iata FROM table_name_3 WHERE city = "budapest" | [
5376,
262,
314,
13563,
351,
257,
2254,
286,
3600,
35746,
30,
46506,
1312,
1045,
16034,
3084,
62,
3672,
62,
18,
33411,
1748,
796,
366,
65,
463,
35746,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
314,
13563,
351,
257,
2254,
286,
3600,
35746,
30,
46506,
1312,
1045,
16034,
3084,
62,
3672,
62,
18,
33411,
1748,
796,
366,
65,
463,
35746,
1
] |
What is the Other b when the FA Cup shows 3 (17)? | SELECT other_b FROM table_name_96 WHERE fa_cup = "3 (17)" | [
2061,
318,
262,
3819,
275,
618,
262,
9677,
5454,
2523,
513,
357,
1558,
19427,
46506,
584,
62,
65,
16034,
3084,
62,
3672,
62,
4846,
33411,
24685,
62,
25244,
796,
366,
18,
357,
1558,
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
] | [
2061,
318,
262,
3819,
275,
618,
262,
9677,
5454,
2523,
513,
357,
1558,
19427,
46506,
584,
62,
65,
16034,
3084,
62,
3672,
62,
4846,
33411,
24685,
62,
25244,
796,
366,
18,
357,
1558,
16725
] |
What incumbent was a federalist that was first elected in 1803? | SELECT "Incumbent" FROM table_28922 WHERE "Party" = 'Federalist' AND "First elected" = '1803' | [
2061,
23526,
373,
257,
2717,
396,
326,
373,
717,
7018,
287,
1248,
3070,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
27693,
1828,
33411,
366,
33553,
1,
796,
705,
24099,
396,
6,
5357,
366,
5962,
7018,
1,
796,
705,
1507,
3070... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23526,
373,
257,
2717,
396,
326,
373,
717,
7018,
287,
1248,
3070,
30,
46506,
366,
25517,
2178,
298,
1,
16034,
3084,
62,
27693,
1828,
33411,
366,
33553,
1,
796,
705,
24099,
396,
6,
5357,
366,
5962,
7018,
1,
796,
705,
1507,
3070... |
Name the sinhalese for manthai west | SELECT MAX(sinhalese) FROM table_24574438_1 WHERE ds_division = "Manthai West" | [
5376,
262,
7813,
71,
2040,
68,
329,
582,
400,
1872,
7421,
46506,
25882,
7,
31369,
71,
2040,
68,
8,
16034,
3084,
62,
1731,
3553,
2598,
2548,
62,
16,
33411,
288,
82,
62,
21426,
796,
366,
5124,
400,
1872,
2688,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7813,
71,
2040,
68,
329,
582,
400,
1872,
7421,
46506,
25882,
7,
31369,
71,
2040,
68,
8,
16034,
3084,
62,
1731,
3553,
2598,
2548,
62,
16,
33411,
288,
82,
62,
21426,
796,
366,
5124,
400,
1872,
2688,
1
] |
What's the Hangul/Japanese of Boys Over Flowers that's drama? | SELECT "Hangul / Japanese" FROM table_64508 WHERE "Genre" = 'drama' AND "Title" = 'boys over flowers' | [
2061,
338,
262,
24300,
377,
14,
25324,
286,
17528,
3827,
30036,
326,
338,
10512,
30,
46506,
366,
39,
648,
377,
1220,
4960,
1,
16034,
3084,
62,
2414,
33042,
33411,
366,
13746,
260,
1,
796,
705,
67,
20058,
6,
5357,
366,
19160,
1,
796,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
24300,
377,
14,
25324,
286,
17528,
3827,
30036,
326,
338,
10512,
30,
46506,
366,
39,
648,
377,
1220,
4960,
1,
16034,
3084,
62,
2414,
33042,
33411,
366,
13746,
260,
1,
796,
705,
67,
20058,
6,
5357,
366,
19160,
1,
796,... |
Which location has the top amount of 'Drugs' crime conducted? | SELECT location FROM greatermanchestercrime WHERE type LIKE "%Drug%" GROUP BY location ORDER BY COUNT(*) DESC LIMIT 1 | [
13828,
4067,
468,
262,
1353,
2033,
286,
705,
37943,
82,
6,
4065,
5952,
30,
46506,
4067,
16034,
1049,
2224,
35983,
28126,
33411,
2099,
34178,
36521,
37943,
39658,
44441,
11050,
4067,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4067,
468,
262,
1353,
2033,
286,
705,
37943,
82,
6,
4065,
5952,
30,
46506,
4067,
16034,
1049,
2224,
35983,
28126,
33411,
2099,
34178,
36521,
37943,
39658,
44441,
11050,
4067,
38678,
11050,
327,
28270,
7,
28104,
22196,
34,
27564,
20... |
What driver has under 53 laps, a grid smaller than 14, and a time/retired of differential? | SELECT "Driver" FROM table_55090 WHERE "Laps" < '53' AND "Grid" < '14' AND "Time/Retired" = 'differential' | [
2061,
4639,
468,
739,
7192,
24590,
11,
257,
10706,
4833,
621,
1478,
11,
290,
257,
640,
14,
1186,
1202,
286,
22577,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
22730,
3829,
33411,
366,
43,
1686,
1,
1279,
705,
4310,
6,
5357,
366,
41339... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4639,
468,
739,
7192,
24590,
11,
257,
10706,
4833,
621,
1478,
11,
290,
257,
640,
14,
1186,
1202,
286,
22577,
30,
46506,
366,
32103,
1,
16034,
3084,
62,
22730,
3829,
33411,
366,
43,
1686,
1,
1279,
705,
4310,
6,
5357,
366,
41339... |
what is diagnoses icd9 code and diagnoses long title of subject id 18372? | SELECT diagnoses.icd9_code, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "18372" | [
10919,
318,
40567,
14158,
67,
24,
2438,
290,
40567,
890,
3670,
286,
2426,
4686,
1248,
36720,
30,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
1507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40567,
14158,
67,
24,
2438,
290,
40567,
890,
3670,
286,
2426,
4686,
1248,
36720,
30,
46506,
40567,
13,
291,
67,
24,
62,
8189,
11,
40567,
13,
6511,
62,
7839,
16034,
40567,
33411,
40567,
13,
32796,
62,
312,
796,
366,
1507,
... |
What is the 2012 value with a 1.3 in 2010 and a 3.6 in 2008? | SELECT 2012 FROM table_name_67 WHERE 2010 = "1.3" AND 2008 = "3.6" | [
2061,
318,
262,
2321,
1988,
351,
257,
352,
13,
18,
287,
3050,
290,
257,
513,
13,
21,
287,
3648,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
3134,
33411,
3050,
796,
366,
16,
13,
18,
1,
5357,
3648,
796,
366,
18,
13,
21,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2321,
1988,
351,
257,
352,
13,
18,
287,
3050,
290,
257,
513,
13,
21,
287,
3648,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
3134,
33411,
3050,
796,
366,
16,
13,
18,
1,
5357,
3648,
796,
366,
18,
13,
21,
1
] |
Return a pie chart on how many students are affected by each allergy type? | SELECT AllergyType, COUNT(*) FROM Has_Allergy AS T1 JOIN Allergy_Type AS T2 ON T1.Allergy = T2.Allergy GROUP BY T2.AllergyType | [
13615,
257,
2508,
8262,
319,
703,
867,
2444,
389,
5676,
416,
1123,
36197,
2099,
30,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
7875,
62,
3237,
26079,
7054,
309,
16,
32357,
1268,
1439,
26079,
62,
6030,
7054,
309,
17,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13615,
257,
2508,
8262,
319,
703,
867,
2444,
389,
5676,
416,
1123,
36197,
2099,
30,
46506,
1439,
26079,
6030,
11,
327,
28270,
7,
28104,
16034,
7875,
62,
3237,
26079,
7054,
309,
16,
32357,
1268,
1439,
26079,
62,
6030,
7054,
309,
17,
61... |
The nth question (ordered by CreationDate). | WITH ordered AS (SELECT ROW_NUMBER() OVER (ORDER BY CreationDate) AS rownumber, Id, CreationDate, Title, Score, OwnerUserId, Tags, ViewCount, AnswerCount, FavoriteCount FROM Posts AS q WHERE PostTypeId = 1) SELECT rownumber, Id AS "post_link", CreationDate, Title, Score, OwnerUserId AS "user_link", Tags, ViewCount, Ans... | [
464,
299,
400,
1808,
357,
24071,
416,
21582,
10430,
737,
54,
10554,
6149,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
21582,
10430,
8,
7054,
686,
675,
4494,
11,
5121,
11,
21582,
10430,
11,
11851,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
299,
400,
1808,
357,
24071,
416,
21582,
10430,
737,
54,
10554,
6149,
7054,
357,
46506,
371,
3913,
62,
41359,
13246,
3419,
28729,
357,
12532,
1137,
11050,
21582,
10430,
8,
7054,
686,
675,
4494,
11,
5121,
11,
21582,
10430,
11,
11851,... |
What was the result of the game with the record of 3-1? | SELECT "Result" FROM table_2350 WHERE "Record" = '3-1' | [
2061,
373,
262,
1255,
286,
262,
983,
351,
262,
1700,
286,
513,
12,
16,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1954,
1120,
33411,
366,
23739,
1,
796,
705,
18,
12,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
1255,
286,
262,
983,
351,
262,
1700,
286,
513,
12,
16,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1954,
1120,
33411,
366,
23739,
1,
796,
705,
18,
12,
16,
6
] |
What School is in the kio kio area? | SELECT "Name" FROM table_70697 WHERE "Area" = 'kio kio' | [
2061,
3961,
318,
287,
262,
479,
952,
479,
952,
1989,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2154,
40035,
33411,
366,
30547,
1,
796,
705,
74,
952,
479,
952,
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,
3961,
318,
287,
262,
479,
952,
479,
952,
1989,
30,
46506,
366,
5376,
1,
16034,
3084,
62,
2154,
40035,
33411,
366,
30547,
1,
796,
705,
74,
952,
479,
952,
6
] |
WHich Score has a Date on november 11? | SELECT score FROM table_name_30 WHERE date = "november 11" | [
12418,
488,
15178,
468,
257,
7536,
319,
645,
303,
1916,
1367,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1270,
33411,
3128,
796,
366,
77,
3239,
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
] | [
12418,
488,
15178,
468,
257,
7536,
319,
645,
303,
1916,
1367,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
1270,
33411,
3128,
796,
366,
77,
3239,
1367,
1
] |
Loss of peavy (4 3) is what score? | SELECT "Score" FROM table_35975 WHERE "Loss" = 'peavy (4–3)' | [
43,
793,
286,
613,
2830,
357,
19,
513,
8,
318,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
30743,
2425,
33411,
366,
43,
793,
1,
796,
705,
431,
2830,
357,
19,
1906,
18,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43,
793,
286,
613,
2830,
357,
19,
513,
8,
318,
644,
4776,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
30743,
2425,
33411,
366,
43,
793,
1,
796,
705,
431,
2830,
357,
19,
1906,
18,
33047
] |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and the average of price , and group by attribute name, display total number in descending order. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2756,
837,
290,
1448,
416,
11688,
1438,
11,
3359,
2472,
1271,
287,
31491,
1502,
13,
46506,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1441,
257,
2318,
8262,
546,
262,
6082,
286,
1438,
290,
262,
2811,
286,
2756,
837,
290,
1448,
416,
11688,
1438,
11,
3359,
2472,
1271,
287,
31491,
1502,
13,
46506,
309,
... |
What's Kaia Kanepi's Sd? | SELECT MIN(sd) FROM table_27615896_20 WHERE player = "Kaia Kanepi" | [
2061,
338,
11611,
544,
14248,
538,
72,
338,
311,
67,
30,
46506,
20625,
7,
21282,
8,
16034,
3084,
62,
27988,
1314,
48712,
62,
1238,
33411,
2137,
796,
366,
37281,
544,
14248,
538,
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
] | [
2061,
338,
11611,
544,
14248,
538,
72,
338,
311,
67,
30,
46506,
20625,
7,
21282,
8,
16034,
3084,
62,
27988,
1314,
48712,
62,
1238,
33411,
2137,
796,
366,
37281,
544,
14248,
538,
72,
1
] |
What numbered episode of the season was titled 'Beaver says Good-Bye'? | SELECT "No. in season" FROM table_20807 WHERE "Title" = 'Beaver Says Good-bye' | [
2061,
25840,
4471,
286,
262,
1622,
373,
11946,
705,
3856,
8770,
1139,
4599,
12,
3886,
68,
30960,
46506,
366,
2949,
13,
287,
1622,
1,
16034,
3084,
62,
1238,
36928,
33411,
366,
19160,
1,
796,
705,
3856,
8770,
28628,
4599,
12,
16390,
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,
25840,
4471,
286,
262,
1622,
373,
11946,
705,
3856,
8770,
1139,
4599,
12,
3886,
68,
30960,
46506,
366,
2949,
13,
287,
1622,
1,
16034,
3084,
62,
1238,
36928,
33411,
366,
19160,
1,
796,
705,
3856,
8770,
28628,
4599,
12,
16390,
6
] |
What is the latest year a ride opened that was manufactured by Zamperla, was a convoy ride, and had a name of Tiny Truckers? | SELECT MAX(opened_in) FROM table_name_93 WHERE manufacture = "zamperla" AND type = "convoy ride" AND ride_name = "tiny truckers" | [
2061,
318,
262,
3452,
614,
257,
6594,
4721,
326,
373,
15943,
416,
38343,
525,
5031,
11,
373,
257,
32860,
6594,
11,
290,
550,
257,
1438,
286,
20443,
24892,
364,
30,
46506,
25882,
7,
26350,
62,
259,
8,
16034,
3084,
62,
3672,
62,
6052,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3452,
614,
257,
6594,
4721,
326,
373,
15943,
416,
38343,
525,
5031,
11,
373,
257,
32860,
6594,
11,
290,
550,
257,
1438,
286,
20443,
24892,
364,
30,
46506,
25882,
7,
26350,
62,
259,
8,
16034,
3084,
62,
3672,
62,
6052,... |
What 10:00 has party of five as 9:30? | SELECT "10:00" FROM table_35757 WHERE "9:30" = 'party of five' | [
2061,
838,
25,
405,
468,
2151,
286,
1936,
355,
860,
25,
1270,
30,
46506,
366,
940,
25,
405,
1,
16034,
3084,
62,
2327,
39251,
33411,
366,
24,
25,
1270,
1,
796,
705,
10608,
286,
1936,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
838,
25,
405,
468,
2151,
286,
1936,
355,
860,
25,
1270,
30,
46506,
366,
940,
25,
405,
1,
16034,
3084,
62,
2327,
39251,
33411,
366,
24,
25,
1270,
1,
796,
705,
10608,
286,
1936,
6
] |
What country won in 1993? | SELECT "Country" FROM table_43215 WHERE "Year(s) won" = '1993' | [
2061,
1499,
1839,
287,
9656,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
45331,
1314,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
24465,
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,
1499,
1839,
287,
9656,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
45331,
1314,
33411,
366,
17688,
7,
82,
8,
1839,
1,
796,
705,
24465,
6
] |
why type of genre was peter maxwell davies ' work that was the same as emil petrovics | SELECT "genre" FROM table_204_969 WHERE "composer" = 'peter maxwell davies' | [
22850,
2099,
286,
12121,
373,
279,
2357,
3509,
4053,
288,
615,
444,
705,
670,
326,
373,
262,
976,
355,
795,
346,
4273,
18657,
873,
46506,
366,
35850,
1,
16034,
3084,
62,
18638,
62,
38819,
33411,
366,
785,
1930,
263,
1,
796,
705,
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,
1
] | [
22850,
2099,
286,
12121,
373,
279,
2357,
3509,
4053,
288,
615,
444,
705,
670,
326,
373,
262,
976,
355,
795,
346,
4273,
18657,
873,
46506,
366,
35850,
1,
16034,
3084,
62,
18638,
62,
38819,
33411,
366,
785,
1930,
263,
1,
796,
705,
79,... |
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'? | SELECT product, chromosome, porphyria FROM enzyme WHERE location = 'Cytosol' | [
2061,
318,
262,
1720,
11,
34348,
290,
16964,
6883,
7496,
3519,
284,
262,
29120,
543,
1011,
1245,
379,
262,
4067,
705,
20418,
83,
418,
349,
30960,
46506,
1720,
11,
34348,
11,
16964,
6883,
7496,
16034,
27679,
33411,
4067,
796,
705,
20418,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1720,
11,
34348,
290,
16964,
6883,
7496,
3519,
284,
262,
29120,
543,
1011,
1245,
379,
262,
4067,
705,
20418,
83,
418,
349,
30960,
46506,
1720,
11,
34348,
11,
16964,
6883,
7496,
16034,
27679,
33411,
4067,
796,
705,
20418,... |
What are the easiest classes for when you need to fulfill Other requirements ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Other%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_c... | [
2061,
389,
262,
16638,
6097,
329,
618,
345,
761,
284,
14658,
3819,
5359,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
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,
1... | [
2061,
389,
262,
16638,
6097,
329,
618,
345,
761,
284,
14658,
3819,
5359,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
1430,
62,
17319,
13,
1818,
2220,
11,
1430,
62,
17319,
1... |
what number of patients whose admission type is elective were born before the year 2078? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.dob_year < "2078" | [
10919,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
547,
4642,
878,
262,
614,
1160,
3695,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
547,
4642,
878,
262,
614,
1160,
3695,
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,
... |
What's the statue for an against above 22? | SELECT status FROM table_name_68 WHERE against > 22 | [
2061,
338,
262,
15207,
329,
281,
1028,
2029,
2534,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3104,
33411,
1028,
1875,
2534
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
338,
262,
15207,
329,
281,
1028,
2029,
2534,
30,
46506,
3722,
16034,
3084,
62,
3672,
62,
3104,
33411,
1028,
1875,
2534
] |
What was the attendance where the record was 8-4? | SELECT MIN(attendance) FROM table_name_3 WHERE record = "8-4" | [
2061,
373,
262,
14858,
810,
262,
1700,
373,
807,
12,
19,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
1700,
796,
366,
23,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
14858,
810,
262,
1700,
373,
807,
12,
19,
30,
46506,
20625,
7,
1078,
437,
590,
8,
16034,
3084,
62,
3672,
62,
18,
33411,
1700,
796,
366,
23,
12,
19,
1
] |
What is the result for opponent TCU? | SELECT "Result" FROM table_12758 WHERE "Opponent#" = 'tcu' | [
2061,
318,
262,
1255,
329,
6125,
44914,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1065,
38569,
33411,
366,
27524,
3471,
2,
1,
796,
705,
23047,
84,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
1255,
329,
6125,
44914,
30,
46506,
366,
23004,
1,
16034,
3084,
62,
1065,
38569,
33411,
366,
27524,
3471,
2,
1,
796,
705,
23047,
84,
6
] |
Plot how many date from by grouped by date from as a bar graph, and I want to list in descending by the total number. | SELECT date_from, COUNT(date_from) FROM Project_Staff ORDER BY COUNT(date_from) DESC | [
43328,
703,
867,
3128,
422,
416,
32824,
416,
3128,
422,
355,
257,
2318,
4823,
11,
290,
314,
765,
284,
1351,
287,
31491,
416,
262,
2472,
1271,
13,
46506,
3128,
62,
6738,
11,
327,
28270,
7,
4475,
62,
6738,
8,
16034,
4935,
62,
31449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
43328,
703,
867,
3128,
422,
416,
32824,
416,
3128,
422,
355,
257,
2318,
4823,
11,
290,
314,
765,
284,
1351,
287,
31491,
416,
262,
2472,
1271,
13,
46506,
3128,
62,
6738,
11,
327,
28270,
7,
4475,
62,
6738,
8,
16034,
4935,
62,
31449,
... |
List categories that have at least two books after year 1989. | SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category HAVING COUNT(*) >= 2 | [
8053,
9376,
326,
423,
379,
1551,
734,
3835,
706,
614,
11104,
13,
46506,
6536,
16034,
1492,
62,
18664,
33411,
32914,
1875,
11104,
44441,
11050,
6536,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
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,
1,
1,
1,
1
] | [
8053,
9376,
326,
423,
379,
1551,
734,
3835,
706,
614,
11104,
13,
46506,
6536,
16034,
1492,
62,
18664,
33411,
32914,
1875,
11104,
44441,
11050,
6536,
367,
10116,
2751,
327,
28270,
7,
28104,
18189,
362
] |
what is the laps when the time/retired is turbo and the grid is less than 14? | SELECT "Laps" FROM table_55466 WHERE "Time/Retired" = 'turbo' AND "Grid" < '14' | [
10919,
318,
262,
24590,
618,
262,
640,
14,
1186,
1202,
318,
29292,
290,
262,
10706,
318,
1342,
621,
1478,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
2816,
42199,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
36590,
2127,
6,
5357... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
318,
262,
24590,
618,
262,
640,
14,
1186,
1202,
318,
29292,
290,
262,
10706,
318,
1342,
621,
1478,
30,
46506,
366,
43,
1686,
1,
16034,
3084,
62,
2816,
42199,
33411,
366,
7575,
14,
9781,
1202,
1,
796,
705,
36590,
2127,
6,
5357... |
What is the lowest round of the Kitchener Rangers (OHA)? | SELECT MIN(round) FROM table_name_97 WHERE college_junior_club_team__league_ = "kitchener rangers (oha)" | [
2061,
318,
262,
9016,
2835,
286,
262,
22541,
263,
13804,
357,
46,
7801,
19427,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
796,
366,
15813,
6607,
263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2835,
286,
262,
22541,
263,
13804,
357,
46,
7801,
19427,
46506,
20625,
7,
744,
8,
16034,
3084,
62,
3672,
62,
5607,
33411,
4152,
62,
29741,
1504,
62,
18664,
62,
15097,
834,
19316,
62,
796,
366,
15813,
6607,
263,
... |
Who was the owner of Give a Toast after 1985? | SELECT owner FROM table_name_43 WHERE year > 1985 AND winner = "give a toast" | [
8241,
373,
262,
4870,
286,
13786,
257,
46831,
706,
12863,
30,
46506,
4870,
16034,
3084,
62,
3672,
62,
3559,
33411,
614,
1875,
12863,
5357,
8464,
796,
366,
26535,
257,
27805,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
4870,
286,
13786,
257,
46831,
706,
12863,
30,
46506,
4870,
16034,
3084,
62,
3672,
62,
3559,
33411,
614,
1875,
12863,
5357,
8464,
796,
366,
26535,
257,
27805,
1
] |
ilm of taukukauppiaat has how many total number of years? | SELECT COUNT("Year") FROM table_67189 WHERE "Film" = 'taukukauppiaat' | [
346,
76,
286,
256,
559,
74,
2724,
559,
381,
544,
265,
468,
703,
867,
2472,
1271,
286,
812,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3134,
23362,
33411,
366,
39750,
1,
796,
705,
83,
559,
74,
2724,
559,
381,
544,
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
] | [
346,
76,
286,
256,
559,
74,
2724,
559,
381,
544,
265,
468,
703,
867,
2472,
1271,
286,
812,
30,
46506,
327,
28270,
7203,
17688,
4943,
16034,
3084,
62,
3134,
23362,
33411,
366,
39750,
1,
796,
705,
83,
559,
74,
2724,
559,
381,
544,
2... |
What time slots have a 6.3 rating | SELECT "Time slot (EST)" FROM table_16559 WHERE "Rating" = '6.3' | [
2061,
640,
17314,
423,
257,
718,
13,
18,
7955,
46506,
366,
7575,
10852,
357,
6465,
16725,
16034,
3084,
62,
1433,
38605,
33411,
366,
29321,
1,
796,
705,
21,
13,
18,
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,
640,
17314,
423,
257,
718,
13,
18,
7955,
46506,
366,
7575,
10852,
357,
6465,
16725,
16034,
3084,
62,
1433,
38605,
33411,
366,
29321,
1,
796,
705,
21,
13,
18,
6
] |
How many INTs are there with an average of 0 and more than 7 Sacks? | SELECT SUM("INT'S") FROM table_6300 WHERE "Average" = '0' AND "Sacks" > '7' | [
2437,
867,
17828,
82,
389,
612,
351,
281,
2811,
286,
657,
290,
517,
621,
767,
311,
4595,
30,
46506,
35683,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
5066,
405,
33411,
366,
26287,
1,
796,
705,
15,
6,
5357,
366,
50,
4595,
1,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2437,
867,
17828,
82,
389,
612,
351,
281,
2811,
286,
657,
290,
517,
621,
767,
311,
4595,
30,
46506,
35683,
7203,
12394,
6,
50,
4943,
16034,
3084,
62,
5066,
405,
33411,
366,
26287,
1,
796,
705,
15,
6,
5357,
366,
50,
4595,
1,
1875,
... |
What city has Sky Tower? | SELECT "City" FROM table_32453 WHERE "Name" = 'sky tower' | [
2061,
1748,
468,
5274,
8765,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
33916,
4310,
33411,
366,
5376,
1,
796,
705,
15688,
10580,
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
] | [
2061,
1748,
468,
5274,
8765,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
33916,
4310,
33411,
366,
5376,
1,
796,
705,
15688,
10580,
6
] |
What is the sub-parish for the church names H yanger Kyrkje? | SELECT sub_parish__sogn_ FROM table_178389_1 WHERE church_name = "Høyanger kyrkje" | [
2061,
318,
262,
850,
12,
1845,
680,
329,
262,
4928,
3891,
367,
331,
2564,
42748,
74,
18015,
30,
46506,
850,
62,
1845,
680,
834,
82,
2360,
62,
16034,
3084,
62,
23188,
29769,
62,
16,
33411,
4928,
62,
3672,
796,
366,
39,
24172,
88,
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
] | [
2061,
318,
262,
850,
12,
1845,
680,
329,
262,
4928,
3891,
367,
331,
2564,
42748,
74,
18015,
30,
46506,
850,
62,
1845,
680,
834,
82,
2360,
62,
16034,
3084,
62,
23188,
29769,
62,
16,
33411,
4928,
62,
3672,
796,
366,
39,
24172,
88,
2... |
what is the number of patients whose days of hospital stay is greater than 2 and lab test name is prostate specific antigen? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "2" AND lab.label = "Prostate Specific Antigen" | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
290,
2248,
1332,
1438,
318,
26711,
2176,
50059,
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... | [
10919,
318,
262,
1271,
286,
3871,
3025,
1528,
286,
4436,
2652,
318,
3744,
621,
362,
290,
2248,
1332,
1438,
318,
26711,
2176,
50059,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
2147... |
how much changed in arterial bp [systolic] for patient 23929 last measured on the last intensive care unit visit compared to the value first measured on the last intensive care unit 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 = 23929) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | [
4919,
881,
3421,
287,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
32817,
1959,
938,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
3688,
284,
262,
1988,
717,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
881,
3421,
287,
30675,
498,
275,
79,
685,
1837,
301,
4160,
60,
329,
5827,
32817,
1959,
938,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
3688,
284,
262,
1988,
717,
8630,
319,
262,
938,
18590,
1337,
4326,
3187,
30,
46506,
357,
... |
Which assets have 2 parts and have less than 2 fault logs? List the asset id and detail. | SELECT T1.asset_id, T1.asset_details FROM assets AS T1 JOIN asset_parts AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) = 2 INTERSECT SELECT T1.asset_id, T1.asset_details FROM assets AS T1 JOIN fault_log AS T2 ON T1.asset_id = T2.asset_id GROUP BY T1.asset_id HAVING COUNT(*) < 2 | [
13828,
6798,
423,
362,
3354,
290,
423,
1342,
621,
362,
8046,
17259,
30,
7343,
262,
11171,
4686,
290,
3703,
13,
46506,
309,
16,
13,
562,
316,
62,
312,
11,
309,
16,
13,
562,
316,
62,
36604,
16034,
6798,
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... | [
13828,
6798,
423,
362,
3354,
290,
423,
1342,
621,
362,
8046,
17259,
30,
7343,
262,
11171,
4686,
290,
3703,
13,
46506,
309,
16,
13,
562,
316,
62,
312,
11,
309,
16,
13,
562,
316,
62,
36604,
16034,
6798,
7054,
309,
16,
32357,
1268,
1... |
renal disease | SELECT * FROM table_train_177 WHERE renal_disease = 1 | [
918,
282,
4369,
46506,
1635,
16034,
3084,
62,
27432,
62,
22413,
33411,
44375,
62,
67,
786,
589,
796,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
918,
282,
4369,
46506,
1635,
16034,
3084,
62,
27432,
62,
22413,
33411,
44375,
62,
67,
786,
589,
796,
352
] |
When are the birthdays of customer who are classified as 'Good Customer' status, and count them by a line chart, and could you list by the date_of_birth from low to high? | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY date_of_birth | [
2215,
389,
262,
4082,
12545,
286,
6491,
508,
389,
10090,
355,
705,
10248,
22092,
6,
3722,
11,
290,
954,
606,
416,
257,
1627,
8262,
11,
290,
714,
345,
1351,
416,
262,
3128,
62,
1659,
62,
24280,
422,
1877,
284,
1029,
30,
46506,
3128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
262,
4082,
12545,
286,
6491,
508,
389,
10090,
355,
705,
10248,
22092,
6,
3722,
11,
290,
954,
606,
416,
257,
1627,
8262,
11,
290,
714,
345,
1351,
416,
262,
3128,
62,
1659,
62,
24280,
422,
1877,
284,
1029,
30,
46506,
3128,
... |
For each Orange county campus, report the number of degrees granted after 2000. | SELECT T1.campus, SUM(T2.degrees) FROM campuses AS T1 JOIN degrees AS T2 ON T1.id = T2.campus WHERE T1.county = "Orange" AND T2.year >= 2000 GROUP BY T1.campus | [
1890,
1123,
11942,
7968,
7611,
11,
989,
262,
1271,
286,
7370,
7520,
706,
4751,
13,
46506,
309,
16,
13,
43842,
11,
35683,
7,
51,
17,
13,
13500,
6037,
8,
16034,
23003,
7054,
309,
16,
32357,
1268,
7370,
7054,
309,
17,
6177,
309,
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... | [
1890,
1123,
11942,
7968,
7611,
11,
989,
262,
1271,
286,
7370,
7520,
706,
4751,
13,
46506,
309,
16,
13,
43842,
11,
35683,
7,
51,
17,
13,
13500,
6037,
8,
16034,
23003,
7054,
309,
16,
32357,
1268,
7370,
7054,
309,
17,
6177,
309,
16,
... |
Who was the runner-up on 5 aug 1990? | SELECT runner_up FROM table_name_67 WHERE date = "5 aug 1990" | [
8241,
373,
262,
17490,
12,
929,
319,
642,
16339,
6303,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
3134,
33411,
3128,
796,
366,
20,
16339,
6303,
1
] | [
1,
1,
1,
1,
1,
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,
17490,
12,
929,
319,
642,
16339,
6303,
30,
46506,
17490,
62,
929,
16034,
3084,
62,
3672,
62,
3134,
33411,
3128,
796,
366,
20,
16339,
6303,
1
] |
What was the date of the game that was played against the away team of York City? | SELECT "Attendance" FROM table_38642 WHERE "Away team" = 'york city' | [
2061,
373,
262,
3128,
286,
262,
983,
326,
373,
2826,
1028,
262,
1497,
1074,
286,
1971,
2254,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
41290,
33411,
366,
32,
1014,
1074,
1,
796,
705,
88,
967,
1748,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
3128,
286,
262,
983,
326,
373,
2826,
1028,
262,
1497,
1074,
286,
1971,
2254,
30,
46506,
366,
8086,
437,
590,
1,
16034,
3084,
62,
2548,
41290,
33411,
366,
32,
1014,
1074,
1,
796,
705,
88,
967,
1748,
6
] |
among patients treated with base drug, how many of them had mild intellect disability? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Mild intellect disabilty" AND prescriptions.drug_type = "BASE" | [
35131,
3871,
5716,
351,
2779,
2563,
11,
703,
867,
286,
606,
550,
11607,
7654,
14013,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
35131,
3871,
5716,
351,
2779,
2563,
11,
703,
867,
286,
606,
550,
11607,
7654,
14013,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
6177,
16728,
13,
18108,
... |
What record was set when the result/game was montreal 20 @ ottawa 10? | SELECT "Type of Record" FROM table_24362 WHERE "Result/Games" = 'Montreal 20 @ Ottawa 10' | [
2061,
1700,
373,
900,
618,
262,
1255,
14,
6057,
373,
40689,
5305,
1160,
2488,
267,
926,
6909,
838,
30,
46506,
366,
6030,
286,
13266,
1,
16034,
3084,
62,
1731,
35667,
33411,
366,
23004,
14,
24474,
1,
796,
705,
26031,
5305,
1160,
2488,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1700,
373,
900,
618,
262,
1255,
14,
6057,
373,
40689,
5305,
1160,
2488,
267,
926,
6909,
838,
30,
46506,
366,
6030,
286,
13266,
1,
16034,
3084,
62,
1731,
35667,
33411,
366,
23004,
14,
24474,
1,
796,
705,
26031,
5305,
1160,
2488,
... |
What is the Total for the Player who won after 1983 with less than 4 To par? | SELECT AVG("Total") FROM table_41509 WHERE "To par" < '4' AND "Year won" > '1983' | [
2061,
318,
262,
7472,
329,
262,
7853,
508,
1839,
706,
13540,
351,
1342,
621,
604,
1675,
1582,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
3901,
29022,
33411,
366,
2514,
1582,
1,
1279,
705,
19,
6,
5357,
366,
17688,
1839,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
7472,
329,
262,
7853,
508,
1839,
706,
13540,
351,
1342,
621,
604,
1675,
1582,
30,
46506,
35224,
7203,
14957,
4943,
16034,
3084,
62,
3901,
29022,
33411,
366,
2514,
1582,
1,
1279,
705,
19,
6,
5357,
366,
17688,
1839,
1,
... |
What is the maximum 2002 figure when 2008 is 19.5, 2006 is less than 24.5 and 1999 is 18.3? | SELECT MAX(2002) FROM table_name_38 WHERE 2008 > 19.5 AND 2006 < 24.5 AND 1999 = 18.3 | [
2061,
318,
262,
5415,
6244,
3785,
618,
3648,
318,
678,
13,
20,
11,
4793,
318,
1342,
621,
1987,
13,
20,
290,
7358,
318,
1248,
13,
18,
30,
46506,
25882,
7,
16942,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
3648,
1875,
678,
13,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5415,
6244,
3785,
618,
3648,
318,
678,
13,
20,
11,
4793,
318,
1342,
621,
1987,
13,
20,
290,
7358,
318,
1248,
13,
18,
30,
46506,
25882,
7,
16942,
8,
16034,
3084,
62,
3672,
62,
2548,
33411,
3648,
1875,
678,
13,
20,
... |
Are 500 -level courses offered for the Fall or Winter terms ? | 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... | [
8491,
5323,
532,
5715,
10902,
4438,
329,
262,
7218,
393,
10633,
2846,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
62,
2364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
8491,
5323,
532,
5715,
10902,
4438,
329,
262,
7218,
393,
10633,
2846,
5633,
46506,
360,
8808,
1268,
4177,
1781,
13,
10378,
1823,
11,
1781,
13,
3672,
11,
1781,
13,
17618,
11,
24878,
13,
325,
6880,
353,
16034,
1781,
11,
1781,
62,
2364,
... |
Who were the partners in 2012? | SELECT partner FROM table_2259502_2 WHERE year = 2012 | [
8241,
547,
262,
4887,
287,
2321,
30,
46506,
5212,
16034,
3084,
62,
18182,
31027,
17,
62,
17,
33411,
614,
796,
2321
] | [
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,
287,
2321,
30,
46506,
5212,
16034,
3084,
62,
18182,
31027,
17,
62,
17,
33411,
614,
796,
2321
] |
Largest gap in score between question and answer. | SELECT q.Id AS "post_link", a.Id AS "post_link", q.Score, a.Score, a.Score - q.Score AS gap FROM Posts AS q INNER JOIN (SELECT Id, ParentId, Score, PostTypeId, OwnerUserId FROM Posts WHERE PostTypeId = 2) AS a ON q.Id = a.ParentId INNER JOIN Users AS u ON u.Id = a.OwnerUserId WHERE q.PostTypeId = 1 AND (a.Score > q.Sco... | [
43,
853,
395,
7625,
287,
4776,
1022,
1808,
290,
3280,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
26595,
11,
257,
13,
26595,
11,
257,
13,
26595,
532,
10662,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
43,
853,
395,
7625,
287,
4776,
1022,
1808,
290,
3280,
13,
46506,
10662,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
257,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
10662,
13,
26595,
11,
257,
13,
26595,
11,
257,
13,
26595,
532,
10662,... |
How many patients with a lab test category of blood gas are diagnosed with icd9 code v1000? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V1000" AND lab."CATEGORY" = "Blood Gas" | [
2437,
867,
3871,
351,
257,
2248,
1332,
6536,
286,
2910,
3623,
389,
14641,
351,
14158,
67,
24,
2438,
410,
12825,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
867,
3871,
351,
257,
2248,
1332,
6536,
286,
2910,
3623,
389,
14641,
351,
14158,
67,
24,
2438,
410,
12825,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
4056... |
list the ids of patients who were diagnosed with pressure ulcer,stage iii until 2 years ago. | SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'pressure ulcer,stage iii') AND DATETIME(diagnoses_icd.charttime) <= DATETI... | [
4868,
262,
220,
2340,
286,
3871,
508,
547,
14641,
351,
3833,
14856,
2189,
11,
14247,
46955,
1566,
362,
812,
2084,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
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... | [
4868,
262,
220,
2340,
286,
3871,
508,
547,
14641,
351,
3833,
14856,
2189,
11,
14247,
46955,
1566,
362,
812,
2084,
13,
46506,
25349,
13,
32796,
62,
312,
16034,
25349,
33411,
25349,
13,
18108,
76,
62,
312,
3268,
357,
46506,
40567,
62,
2... |
What is the attendance in week 4? | SELECT AVG("Attendance") FROM table_34499 WHERE "Week" = '4' | [
2061,
318,
262,
14858,
287,
1285,
604,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
33535,
2079,
33411,
366,
20916,
1,
796,
705,
19,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
14858,
287,
1285,
604,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
33535,
2079,
33411,
366,
20916,
1,
796,
705,
19,
6
] |
When the death is none what is the number of major hurricanes? | SELECT COUNT(number_of_major_hurricanes) FROM table_2930244_3 WHERE deaths = "None" | [
2215,
262,
1918,
318,
4844,
644,
318,
262,
1271,
286,
1688,
40370,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
22478,
62,
48349,
24881,
8,
16034,
3084,
62,
1959,
1270,
25707,
62,
18,
33411,
7040,
796,
366,
14202,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
262,
1918,
318,
4844,
644,
318,
262,
1271,
286,
1688,
40370,
30,
46506,
327,
28270,
7,
17618,
62,
1659,
62,
22478,
62,
48349,
24881,
8,
16034,
3084,
62,
1959,
1270,
25707,
62,
18,
33411,
7040,
796,
366,
14202,
1
] |
count the number of patients who have been given the procedure for a rt heart cardiac cath two or more times until 2101. | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'rt heart cardiac cath... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
1813,
262,
8771,
329,
257,
374,
83,
2612,
26077,
32171,
734,
393,
517,
1661,
1566,
2310,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
9127,
262,
1271,
286,
3871,
508,
423,
587,
1813,
262,
8771,
329,
257,
374,
83,
2612,
26077,
32171,
734,
393,
517,
1661,
1566,
2310,
486,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
16,
13,
32796,
62,
312,
8,
16034,
357,
4... |
How many locations does the team Newcastle Jets come from? | SELECT COUNT("Location") FROM table_17916 WHERE "Team" = 'Newcastle Jets' | [
2437,
867,
7064,
857,
262,
1074,
22410,
14728,
1282,
422,
30,
46506,
327,
28270,
7203,
14749,
4943,
16034,
3084,
62,
21738,
1433,
33411,
366,
15592,
1,
796,
705,
3791,
18676,
14728,
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
] | [
2437,
867,
7064,
857,
262,
1074,
22410,
14728,
1282,
422,
30,
46506,
327,
28270,
7203,
14749,
4943,
16034,
3084,
62,
21738,
1433,
33411,
366,
15592,
1,
796,
705,
3791,
18676,
14728,
6
] |
Who had the fastest lap(s) when stefan wilson had the pole? | SELECT "Fastest lap" FROM table_74411 WHERE "Pole position" = 'Stefan Wilson' | [
8241,
550,
262,
14162,
14779,
7,
82,
8,
618,
336,
891,
272,
39716,
1559,
550,
262,
16825,
30,
46506,
366,
22968,
395,
14779,
1,
16034,
3084,
62,
22,
2598,
1157,
33411,
366,
47,
2305,
2292,
1,
796,
705,
7447,
24408,
8127,
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
] | [
8241,
550,
262,
14162,
14779,
7,
82,
8,
618,
336,
891,
272,
39716,
1559,
550,
262,
16825,
30,
46506,
366,
22968,
395,
14779,
1,
16034,
3084,
62,
22,
2598,
1157,
33411,
366,
47,
2305,
2292,
1,
796,
705,
7447,
24408,
8127,
6
] |
Highest number of comments on a post. | SELECT 'site:///a/' + CAST(p.Id AS TEXT) + '/4918|' + CAST(p.Id AS TEXT) AS pLink, COUNT(*) AS cCount FROM Comments AS c LEFT JOIN Posts AS p ON c.PostId = p.Id GROUP BY p.Id HAVING '##limit?30##' <= COUNT(*) ORDER BY 2 DESC | [
36124,
3634,
1271,
286,
3651,
319,
257,
1281,
13,
46506,
705,
15654,
1378,
14,
64,
14,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
1343,
31051,
2920,
1507,
91,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
7054,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36124,
3634,
1271,
286,
3651,
319,
257,
1281,
13,
46506,
705,
15654,
1378,
14,
64,
14,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
1343,
31051,
2920,
1507,
91,
6,
1343,
327,
11262,
7,
79,
13,
7390,
7054,
40383,
8,
7054,
... |
what country had the most top 10 finishers in the men 's 15 kilometre classical ? | SELECT "country" FROM table_204_81 WHERE id <= 10 GROUP BY "country" ORDER BY COUNT(*) DESC LIMIT 1 | [
10919,
1499,
550,
262,
749,
1353,
838,
957,
39116,
287,
262,
1450,
705,
82,
1315,
11866,
260,
15993,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
6659,
33411,
4686,
19841,
838,
44441,
11050,
366,
19315,
1,
38678,
11050,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
1499,
550,
262,
749,
1353,
838,
957,
39116,
287,
262,
1450,
705,
82,
1315,
11866,
260,
15993,
5633,
46506,
366,
19315,
1,
16034,
3084,
62,
18638,
62,
6659,
33411,
4686,
19841,
838,
44441,
11050,
366,
19315,
1,
38678,
11050,
327,
... |
Which Avg/G has a Gain of 1,839? | SELECT SUM(avg_g) FROM table_name_93 WHERE gain = 1 OFFSET 839 | [
13828,
33455,
14,
38,
468,
257,
21686,
286,
352,
11,
23,
2670,
30,
46506,
35683,
7,
615,
70,
62,
70,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
4461,
796,
352,
3963,
10652,
2767,
807,
2670
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
33455,
14,
38,
468,
257,
21686,
286,
352,
11,
23,
2670,
30,
46506,
35683,
7,
615,
70,
62,
70,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
4461,
796,
352,
3963,
10652,
2767,
807,
2670
] |
did dextrose 50%, docusate sodium 100 mg po caps, or enoxaparin be prescribed for patient 006-47576 on their current hospital encounter? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-47576' AND patient.hospitaldischargetime IS NULL)) AND medication.drug... | [
20839,
390,
742,
13698,
2026,
7441,
2205,
385,
378,
21072,
1802,
10527,
745,
11022,
11,
393,
551,
1140,
499,
17714,
307,
14798,
329,
5827,
3571,
21,
12,
32576,
4304,
319,
511,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
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... | [
20839,
390,
742,
13698,
2026,
7441,
2205,
385,
378,
21072,
1802,
10527,
745,
11022,
11,
393,
551,
1140,
499,
17714,
307,
14798,
329,
5827,
3571,
21,
12,
32576,
4304,
319,
511,
1459,
4436,
8791,
30,
46506,
327,
28270,
7,
28104,
1875,
6... |
give me the number of patients whose marital status is widowed and drug route is oral? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.marital_status = "WIDOWED" AND prescriptions.route = "ORAL" | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
2563,
6339,
318,
12886,
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... | [
26535,
502,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
2563,
6339,
318,
12886,
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 open cup was after 1993? | SELECT "Open Cup" FROM table_53223 WHERE "Year" > '1993' | [
13828,
1280,
6508,
373,
706,
9656,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
4310,
22047,
33411,
366,
17688,
1,
1875,
705,
24465,
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
] | [
13828,
1280,
6508,
373,
706,
9656,
30,
46506,
366,
11505,
5454,
1,
16034,
3084,
62,
4310,
22047,
33411,
366,
17688,
1,
1875,
705,
24465,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.