instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
give the number of patients whose discharge location is left against medical advice and procedure short title is int insert dual-cham dev. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" AND procedures.short_title = "Int insert dual-cham dev" | [
26535,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
5608,
290,
8771,
1790,
3670,
318,
493,
7550,
10668,
12,
49869,
1614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
1271,
286,
3871,
3025,
17655,
4067,
318,
1364,
1028,
3315,
5608,
290,
8771,
1790,
3670,
318,
493,
7550,
10668,
12,
49869,
1614,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
32... |
how many hours have passed since patient 027-136480 was given his first pulmonary embolism diagnosis during the current hospital visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', diagnosis.diagnosistime)) FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-13648... | [
4919,
867,
2250,
423,
3804,
1201,
5827,
657,
1983,
12,
1485,
2414,
1795,
373,
1813,
465,
717,
45105,
4072,
349,
1042,
13669,
1141,
262,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2250,
423,
3804,
1201,
5827,
657,
1983,
12,
1485,
2414,
1795,
373,
1813,
465,
717,
45105,
4072,
349,
1042,
13669,
1141,
262,
1459,
4436,
3187,
30,
46506,
1987,
1635,
357,
18601,
9792,
12789,
10786,
4,
73,
3256,
327,
39237,
... |
how many competitors were from russia ? | SELECT COUNT("athlete") FROM table_204_712 WHERE "nationality" = 'russia' | [
4919,
867,
13861,
547,
422,
374,
31269,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
49517,
33411,
366,
14648,
414,
1,
796,
705,
81,
31269,
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
] | [
4919,
867,
13861,
547,
422,
374,
31269,
5633,
46506,
327,
28270,
7203,
776,
5807,
4943,
16034,
3084,
62,
18638,
62,
49517,
33411,
366,
14648,
414,
1,
796,
705,
81,
31269,
6
] |
Name the builder for number 3 | SELECT "Builder" FROM table_39513 WHERE "Number" = '3' | [
5376,
262,
27098,
329,
1271,
513,
46506,
366,
32875,
1,
16034,
3084,
62,
31010,
1485,
33411,
366,
15057,
1,
796,
705,
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
] | [
5376,
262,
27098,
329,
1271,
513,
46506,
366,
32875,
1,
16034,
3084,
62,
31010,
1485,
33411,
366,
15057,
1,
796,
705,
18,
6
] |
When was a game played where the away team is St Kilda? | SELECT "Date" FROM table_53068 WHERE "Away team" = 'st kilda' | [
2215,
373,
257,
983,
2826,
810,
262,
1497,
1074,
318,
520,
509,
27281,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38612,
3104,
33411,
366,
32,
1014,
1074,
1,
796,
705,
301,
479,
27281,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
257,
983,
2826,
810,
262,
1497,
1074,
318,
520,
509,
27281,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
38612,
3104,
33411,
366,
32,
1014,
1074,
1,
796,
705,
301,
479,
27281,
6
] |
Show all card type codes and the number of cards in each type. | SELECT card_type_code, COUNT(*) FROM customers_cards GROUP BY card_type_code | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
4297,
62,
27761,
44441,
11050,
2657,
62,
4906,
62,
8189
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
477,
2657,
2099,
12416,
290,
262,
1271,
286,
4116,
287,
1123,
2099,
13,
46506,
2657,
62,
4906,
62,
8189,
11,
327,
28270,
7,
28104,
16034,
4297,
62,
27761,
44441,
11050,
2657,
62,
4906,
62,
8189
] |
Which Events is the highest one that has a Top-5 larger than 5, and a Top-10 larger than 28? | SELECT MAX(events) FROM table_name_93 WHERE top_5 > 5 AND top_10 > 28 | [
13828,
18715,
318,
262,
4511,
530,
326,
468,
257,
5849,
12,
20,
4025,
621,
642,
11,
290,
257,
5849,
12,
940,
4025,
621,
2579,
30,
46506,
25882,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
1353,
62,
20,
1875,
642,
5357,
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
] | [
13828,
18715,
318,
262,
4511,
530,
326,
468,
257,
5849,
12,
20,
4025,
621,
642,
11,
290,
257,
5849,
12,
940,
4025,
621,
2579,
30,
46506,
25882,
7,
31534,
8,
16034,
3084,
62,
3672,
62,
6052,
33411,
1353,
62,
20,
1875,
642,
5357,
13... |
return me the number of authors who have cooperated with ' H. V. Jagadish ' . | SELECT COUNT(DISTINCT (AUTHOR_0.name)) FROM author AS AUTHOR_0, author AS AUTHOR_1, publication, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_1.name = 'H. V. Jagadish' AND WRITES_0.aid = AUTHOR_0.aid AND WRITES_0.pid = publication.pid AND WRITES_1.aid = AUTHOR_1.aid AND WRITES_1.pid = publication.pid | [
7783,
502,
262,
1271,
286,
7035,
508,
423,
6788,
515,
351,
705,
367,
13,
569,
13,
35687,
48563,
705,
764,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
357,
32,
24318,
1581,
62,
15,
13,
3672,
4008,
16034,
1772,
7054,
44746,
62,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
7783,
502,
262,
1271,
286,
7035,
508,
423,
6788,
515,
351,
705,
367,
13,
569,
13,
35687,
48563,
705,
764,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
357,
32,
24318,
1581,
62,
15,
13,
3672,
4008,
16034,
1772,
7054,
44746,
62,
15,
... |
What year was Mother's Live remix created? | SELECT SUM("Year") FROM table_6755 WHERE "Version" = 'mother''s live remix' | [
2061,
614,
373,
10584,
338,
7547,
34471,
2727,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
21,
38172,
33411,
366,
14815,
1,
796,
705,
13552,
7061,
82,
2107,
34471,
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,
614,
373,
10584,
338,
7547,
34471,
2727,
30,
46506,
35683,
7203,
17688,
4943,
16034,
3084,
62,
21,
38172,
33411,
366,
14815,
1,
796,
705,
13552,
7061,
82,
2107,
34471,
6
] |
Visualize a bar chart for how many hours do the students spend studying in each department?, and I want to list by the Y-axis in asc. | SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE ORDER BY SUM(STU_HRS) | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2250,
466,
262,
2444,
4341,
11065,
287,
1123,
5011,
21747,
290,
314,
765,
284,
1351,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
2257,
52,
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... | [
36259,
1096,
257,
2318,
8262,
329,
703,
867,
2250,
466,
262,
2444,
4341,
11065,
287,
1123,
5011,
21747,
290,
314,
765,
284,
1351,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
5550,
11571,
62,
34,
16820,
11,
35683,
7,
2257,
52,
6... |
What is the attendance for the game against the Kansas City Chiefs earlier than week 13? | SELECT AVG("Attendance") FROM table_78612 WHERE "Opponent" = 'kansas city chiefs' AND "Week" < '13' | [
2061,
318,
262,
14858,
329,
262,
983,
1028,
262,
9470,
2254,
18733,
2961,
621,
1285,
1511,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3695,
43610,
33411,
366,
27524,
3471,
1,
796,
705,
74,
6618,
1748,
30217,
6,
535... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
329,
262,
983,
1028,
262,
9470,
2254,
18733,
2961,
621,
1285,
1511,
30,
46506,
35224,
7203,
8086,
437,
590,
4943,
16034,
3084,
62,
3695,
43610,
33411,
366,
27524,
3471,
1,
796,
705,
74,
6618,
1748,
30217,
6,
535... |
count the number of patients who were admitted before 2124 and had hematology lab test category. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2124" AND lab."CATEGORY" = "Hematology" | [
9127,
262,
1271,
286,
3871,
508,
547,
6848,
878,
362,
17464,
290,
550,
339,
6759,
1435,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
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... | [
9127,
262,
1271,
286,
3871,
508,
547,
6848,
878,
362,
17464,
290,
550,
339,
6759,
1435,
2248,
1332,
6536,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
2248,
6177... |
What score has 1998 as the year? | SELECT score FROM table_name_82 WHERE year = 1998 | [
2061,
4776,
468,
7795,
355,
262,
614,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6469,
33411,
614,
796,
7795
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
4776,
468,
7795,
355,
262,
614,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
6469,
33411,
614,
796,
7795
] |
Return me a bar chart to show the frequency of the year attribute by binning into a weekday interval, and I want to display Y-axis in asc order. | SELECT year, COUNT(year) FROM home_game ORDER BY COUNT(year) | [
13615,
502,
257,
2318,
8262,
284,
905,
262,
8373,
286,
262,
614,
11688,
416,
9874,
768,
656,
257,
28269,
16654,
11,
290,
314,
765,
284,
3359,
575,
12,
22704,
287,
10570,
1502,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
1363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
502,
257,
2318,
8262,
284,
905,
262,
8373,
286,
262,
614,
11688,
416,
9874,
768,
656,
257,
28269,
16654,
11,
290,
314,
765,
284,
3359,
575,
12,
22704,
287,
10570,
1502,
13,
46506,
614,
11,
327,
28270,
7,
1941,
8,
16034,
1363,... |
What is the games average with less than 3.8 in rating and less than 9 yards? | SELECT AVG("Games") FROM table_13363 WHERE "Rating" < '3.8' AND "Yards" < '9' | [
2061,
318,
262,
1830,
2811,
351,
1342,
621,
513,
13,
23,
287,
7955,
290,
1342,
621,
860,
5695,
30,
46506,
35224,
7203,
24474,
4943,
16034,
3084,
62,
1485,
35447,
33411,
366,
29321,
1,
1279,
705,
18,
13,
23,
6,
5357,
366,
56,
1371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1830,
2811,
351,
1342,
621,
513,
13,
23,
287,
7955,
290,
1342,
621,
860,
5695,
30,
46506,
35224,
7203,
24474,
4943,
16034,
3084,
62,
1485,
35447,
33411,
366,
29321,
1,
1279,
705,
18,
13,
23,
6,
5357,
366,
56,
1371,
... |
What is the name of the department that has the largest number of students enrolled? | SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
318,
262,
1438,
286,
262,
5011,
326,
468,
262,
4387,
1271,
286,
2444,
18724,
30,
46506,
309,
19,
13,
2934,
457,
62,
3672,
16034,
42715,
7054,
309,
16,
32357,
1268,
14627,
7054,
309,
17,
6177,
309,
16,
13,
4871,
62,
8189,
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,
1,
1,
1,
1,
1... | [
2061,
318,
262,
1438,
286,
262,
5011,
326,
468,
262,
4387,
1271,
286,
2444,
18724,
30,
46506,
309,
19,
13,
2934,
457,
62,
3672,
16034,
42715,
7054,
309,
16,
32357,
1268,
14627,
7054,
309,
17,
6177,
309,
16,
13,
4871,
62,
8189,
796,
... |
Draw a bar chart of name versus height | SELECT Name, Height FROM people | [
25302,
257,
2318,
8262,
286,
1438,
9051,
6001,
46506,
6530,
11,
27280,
16034,
661
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
25302,
257,
2318,
8262,
286,
1438,
9051,
6001,
46506,
6530,
11,
27280,
16034,
661
] |
give me the number of patients whose gender is f and procedure short title is drug detoxification? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "Drug detoxification" | [
26535,
502,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
8771,
1790,
3670,
318,
2563,
44674,
2649,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
26535,
502,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
8771,
1790,
3670,
318,
2563,
44674,
2649,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268,
9021,
6177,
1... |
who has the most years won of players who missed the cut ? | SELECT "player" FROM table_203_327 ORDER BY "year(s) won" DESC LIMIT 1 | [
8727,
468,
262,
749,
812,
1839,
286,
1938,
508,
6825,
262,
2005,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
34159,
38678,
11050,
366,
1941,
7,
82,
8,
1839,
1,
22196,
34,
27564,
2043,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
468,
262,
749,
812,
1839,
286,
1938,
508,
6825,
262,
2005,
5633,
46506,
366,
7829,
1,
16034,
3084,
62,
22416,
62,
34159,
38678,
11050,
366,
1941,
7,
82,
8,
1839,
1,
22196,
34,
27564,
2043,
352
] |
Show me about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home in a bar chart, and rank x-axis in descending order. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC | [
15307,
502,
546,
262,
6082,
286,
1439,
62,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
287,
257,
2318,
8262,
11,
290,
4279,
2124,
12,
22704,
287,
31491,
1502,
13,
46506,
1439,
62,
16060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16060,
290,
262,
2160,
286,
4816,
62,
2389,
837,
290,
1448,
416,
11688,
1439,
62,
16060,
287,
257,
2318,
8262,
11,
290,
4279,
2124,
12,
22704,
287,
31491,
1502,
13,
46506,
1439,
62,
16060,
... |
Which Years in Orlando has a School/Club Team of kentucky? | SELECT years_in_orlando FROM table_name_96 WHERE school_club_team = "kentucky" | [
13828,
13212,
287,
13117,
468,
257,
3961,
14,
42350,
4816,
286,
479,
298,
5309,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
4846,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
74,
298,
5309,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13212,
287,
13117,
468,
257,
3961,
14,
42350,
4816,
286,
479,
298,
5309,
30,
46506,
812,
62,
259,
62,
273,
11993,
16034,
3084,
62,
3672,
62,
4846,
33411,
1524,
62,
18664,
62,
15097,
796,
366,
74,
298,
5309,
1
] |
When ends won were below 57 but stolen ends are more than 14, what's the highest blank ends found? | SELECT MAX("Blank Ends") FROM table_43951 WHERE "Stolen Ends" > '14' AND "Ends Won" < '57' | [
2215,
5645,
1839,
547,
2174,
7632,
475,
9909,
5645,
389,
517,
621,
1478,
11,
644,
338,
262,
4511,
9178,
5645,
1043,
30,
46506,
25882,
7203,
3629,
962,
46756,
4943,
16034,
3084,
62,
47106,
4349,
33411,
366,
1273,
8622,
46756,
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,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
5645,
1839,
547,
2174,
7632,
475,
9909,
5645,
389,
517,
621,
1478,
11,
644,
338,
262,
4511,
9178,
5645,
1043,
30,
46506,
25882,
7203,
3629,
962,
46756,
4943,
16034,
3084,
62,
47106,
4349,
33411,
366,
1273,
8622,
46756,
1,
1875,
... |
which driver did not score less than 7 points ? | SELECT "driver" FROM table_204_788 WHERE "points" >= 7 | [
4758,
4639,
750,
407,
4776,
1342,
621,
767,
2173,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
18638,
62,
22,
3459,
33411,
366,
13033,
1,
18189,
767
] | [
1,
1,
1,
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,
4639,
750,
407,
4776,
1342,
621,
767,
2173,
5633,
46506,
366,
26230,
1,
16034,
3084,
62,
18638,
62,
22,
3459,
33411,
366,
13033,
1,
18189,
767
] |
find the age and gender of subject id 76508. | SELECT demographic.age, demographic.gender FROM demographic WHERE demographic.subject_id = "76508" | [
19796,
262,
2479,
290,
5279,
286,
2426,
4686,
8684,
33042,
13,
46506,
16728,
13,
496,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
4304,
33042,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19796,
262,
2479,
290,
5279,
286,
2426,
4686,
8684,
33042,
13,
46506,
16728,
13,
496,
11,
16728,
13,
8388,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
4304,
33042,
1
] |
Name the team with laps of 97 and grid of 3 | SELECT team FROM table_name_79 WHERE laps = 97 AND grid = 3 | [
5376,
262,
1074,
351,
24590,
286,
10111,
290,
10706,
286,
513,
46506,
1074,
16034,
3084,
62,
3672,
62,
3720,
33411,
24590,
796,
10111,
5357,
10706,
796,
513
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
1074,
351,
24590,
286,
10111,
290,
10706,
286,
513,
46506,
1074,
16034,
3084,
62,
3672,
62,
3720,
33411,
24590,
796,
10111,
5357,
10706,
796,
513
] |
What are the enrollment dates of all the tests that have result 'Pass', and count them by a bar chart | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" | [
2061,
389,
262,
20753,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
14478,
3256,
290,
954,
606,
416,
257,
2318,
8262,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
28270,
7,
4475,
62,
1659,
62,
268,
3225,
434,
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... | [
2061,
389,
262,
20753,
9667,
286,
477,
262,
5254,
326,
423,
1255,
705,
14478,
3256,
290,
954,
606,
416,
257,
2318,
8262,
46506,
3128,
62,
1659,
62,
268,
3225,
434,
11,
327,
28270,
7,
4475,
62,
1659,
62,
268,
3225,
434,
8,
16034,
1... |
Which home team has a crowd larger than 25,000? | SELECT "Home team" FROM table_11568 WHERE "Crowd" > '25,000' | [
13828,
1363,
1074,
468,
257,
4315,
4025,
621,
1679,
11,
830,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
15363,
3104,
33411,
366,
34,
3986,
1,
1875,
705,
1495,
11,
830,
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
] | [
13828,
1363,
1074,
468,
257,
4315,
4025,
621,
1679,
11,
830,
30,
46506,
366,
16060,
1074,
1,
16034,
3084,
62,
15363,
3104,
33411,
366,
34,
3986,
1,
1875,
705,
1495,
11,
830,
6
] |
Name the most touchdowns for field goals being 1 | SELECT MAX("Touchdowns") FROM table_72525 WHERE "Field goals" = '1' | [
5376,
262,
749,
17692,
329,
2214,
4661,
852,
352,
46506,
25882,
7203,
35211,
30371,
4943,
16034,
3084,
62,
45151,
1495,
33411,
366,
15878,
4661,
1,
796,
705,
16,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
5376,
262,
749,
17692,
329,
2214,
4661,
852,
352,
46506,
25882,
7203,
35211,
30371,
4943,
16034,
3084,
62,
45151,
1495,
33411,
366,
15878,
4661,
1,
796,
705,
16,
6
] |
show me times for COACH flights between BOSTON and BALTIMORE on wednesday | SELECT DISTINCT flight.departure_time FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE (... | [
12860,
502,
1661,
329,
7375,
16219,
13956,
1022,
347,
10892,
1340,
290,
347,
31429,
3955,
6965,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
12860,
502,
1661,
329,
7375,
16219,
13956,
1022,
347,
10892,
1340,
290,
347,
31429,
3955,
6965,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
10378,
433,
495,
62,
2435,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
... |
what is the cheapest fare between BOSTON and SAN FRANCISCO | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | [
10919,
318,
262,
28918,
14505,
1022,
347,
10892,
1340,
290,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
28918,
14505,
1022,
347,
10892,
1340,
290,
37376,
8782,
20940,
37719,
14058,
16779,
360,
8808,
1268,
4177,
14505,
13,
9496,
62,
312,
16034,
9003,
62,
15271,
7054,
31600,
15490,
62,
35009,
27389,
62,
15,
11,
9003,
62,
15... |
timothy truman worked on what books | SELECT book_title FROM table_1420954_1 WHERE artist_s_ = "Timothy Truman" | [
16514,
14863,
491,
3778,
3111,
319,
644,
3835,
46506,
1492,
62,
7839,
16034,
3084,
62,
1415,
1238,
48372,
62,
16,
33411,
6802,
62,
82,
62,
796,
366,
14967,
14863,
33027,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16514,
14863,
491,
3778,
3111,
319,
644,
3835,
46506,
1492,
62,
7839,
16034,
3084,
62,
1415,
1238,
48372,
62,
16,
33411,
6802,
62,
82,
62,
796,
366,
14967,
14863,
33027,
1
] |
how many patients are diagnosed for the primary disease bowel obstruction and died in or before 2168? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.dod_year <= "2168.0" | [
4919,
867,
3871,
389,
14641,
329,
262,
4165,
4369,
35711,
28118,
290,
3724,
287,
393,
878,
362,
14656,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
4919,
867,
3871,
389,
14641,
329,
262,
4165,
4369,
35711,
28118,
290,
3724,
287,
393,
878,
362,
14656,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
47356,
5958,
796,
366... |
count the number of patients whose gender is f and admission type is elective? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.admission_type = "ELECTIVE" | [
9127,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
13938,
2099,
318,
1742,
425,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9127,
262,
1271,
286,
3871,
3025,
5279,
318,
277,
290,
13938,
2099,
318,
1742,
425,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
33411,
16728,
13,
8388,
796,
366,
37,
1,
5357,
16728,
13... |
what is the result for the week higher than 7 on november 4, 1979? | SELECT result FROM table_name_16 WHERE week > 7 AND date = "november 4, 1979" | [
10919,
318,
262,
1255,
329,
262,
1285,
2440,
621,
767,
319,
645,
303,
1916,
604,
11,
13521,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1433,
33411,
1285,
1875,
767,
5357,
3128,
796,
366,
77,
3239,
604,
11,
13521,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1255,
329,
262,
1285,
2440,
621,
767,
319,
645,
303,
1916,
604,
11,
13521,
30,
46506,
1255,
16034,
3084,
62,
3672,
62,
1433,
33411,
1285,
1875,
767,
5357,
3128,
796,
366,
77,
3239,
604,
11,
13521,
1
] |
who is the opponent listed after wku ? | SELECT "opponent" FROM table_204_436 WHERE id = (SELECT id FROM table_204_436 WHERE "opponent" = 'wku') + 1 | [
8727,
318,
262,
6125,
5610,
706,
266,
23063,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
18638,
62,
43690,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
43690,
33411,
366,
10365,
3471,
1,
796,
705,
86,
23063,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8727,
318,
262,
6125,
5610,
706,
266,
23063,
5633,
46506,
366,
10365,
3471,
1,
16034,
3084,
62,
18638,
62,
43690,
33411,
4686,
796,
357,
46506,
4686,
16034,
3084,
62,
18638,
62,
43690,
33411,
366,
10365,
3471,
1,
796,
705,
86,
23063,
... |
were any towers established before the year 1800 ? | SELECT (SELECT COUNT(*) FROM table_203_665 WHERE "established" < 1800) > 0 | [
22474,
597,
18028,
4920,
878,
262,
614,
21431,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
36879,
33411,
366,
27718,
1,
1279,
21431,
8,
1875,
657
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
22474,
597,
18028,
4920,
878,
262,
614,
21431,
5633,
46506,
357,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
22416,
62,
36879,
33411,
366,
27718,
1,
1279,
21431,
8,
1875,
657
] |
Which Opponent had a Score of 6-3, 6-2? | SELECT opponent FROM table_name_67 WHERE score = "6-3, 6-2" | [
13828,
9385,
3471,
550,
257,
15178,
286,
718,
12,
18,
11,
718,
12,
17,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3134,
33411,
4776,
796,
366,
21,
12,
18,
11,
718,
12,
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
] | [
13828,
9385,
3471,
550,
257,
15178,
286,
718,
12,
18,
11,
718,
12,
17,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
3134,
33411,
4776,
796,
366,
21,
12,
18,
11,
718,
12,
17,
1
] |
What is Swimmer, when Year is less than 2011, and when Time is '53.06'? | SELECT swimmer FROM table_name_64 WHERE year < 2011 AND time = "53.06" | [
2061,
318,
2451,
10957,
11,
618,
6280,
318,
1342,
621,
2813,
11,
290,
618,
3862,
318,
705,
4310,
13,
3312,
30960,
46506,
9422,
647,
16034,
3084,
62,
3672,
62,
2414,
33411,
614,
1279,
2813,
5357,
640,
796,
366,
4310,
13,
3312,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2451,
10957,
11,
618,
6280,
318,
1342,
621,
2813,
11,
290,
618,
3862,
318,
705,
4310,
13,
3312,
30960,
46506,
9422,
647,
16034,
3084,
62,
3672,
62,
2414,
33411,
614,
1279,
2813,
5357,
640,
796,
366,
4310,
13,
3312,
1
] |
how many times did patient 021-196241 during this year go to the icu? | SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-196241') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | [
4919,
867,
1661,
750,
5827,
657,
2481,
12,
25272,
28872,
1141,
428,
614,
467,
284,
262,
14158,
84,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
20850,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
13948,
1005... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1661,
750,
5827,
657,
2481,
12,
25272,
28872,
1141,
428,
614,
467,
284,
262,
14158,
84,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
20850,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
26029,
13948,
1005... |
Name the replacced by with ascoli | SELECT "Replaced by" FROM table_1639 WHERE "Team" = 'Ascoli' | [
5376,
262,
2186,
330,
771,
416,
351,
355,
4033,
72,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
1433,
2670,
33411,
366,
15592,
1,
796,
705,
32,
1416,
11106,
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
] | [
5376,
262,
2186,
330,
771,
416,
351,
355,
4033,
72,
46506,
366,
3041,
21820,
416,
1,
16034,
3084,
62,
1433,
2670,
33411,
366,
15592,
1,
796,
705,
32,
1416,
11106,
6
] |
What is the sum number of evening gown stats for New Jersey when the interview was less than 9.344? | SELECT COUNT("Evening Gown") FROM table_11398 WHERE "State" = 'new jersey' AND "Interview" < '9.344' | [
2061,
318,
262,
2160,
1271,
286,
6180,
33323,
9756,
329,
968,
8221,
618,
262,
2720,
373,
1342,
621,
860,
13,
33535,
30,
46506,
327,
28270,
7203,
6104,
278,
402,
593,
4943,
16034,
3084,
62,
1157,
31952,
33411,
366,
9012,
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
] | [
2061,
318,
262,
2160,
1271,
286,
6180,
33323,
9756,
329,
968,
8221,
618,
262,
2720,
373,
1342,
621,
860,
13,
33535,
30,
46506,
327,
28270,
7203,
6104,
278,
402,
593,
4943,
16034,
3084,
62,
1157,
31952,
33411,
366,
9012,
1,
796,
705,
... |
Which competition has a Goal of deacon 10/10, and a Score of 40 12? | SELECT "Competition" FROM table_56166 WHERE "Goals" = 'deacon 10/10' AND "Score" = '40–12' | [
13828,
5449,
468,
257,
25376,
286,
390,
7807,
838,
14,
940,
11,
290,
257,
15178,
286,
2319,
1105,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
3980,
23055,
33411,
366,
5247,
874,
1,
796,
705,
2934,
7807,
838,
14,
940,
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,
1,
1
] | [
13828,
5449,
468,
257,
25376,
286,
390,
7807,
838,
14,
940,
11,
290,
257,
15178,
286,
2319,
1105,
30,
46506,
366,
7293,
15620,
1,
16034,
3084,
62,
3980,
23055,
33411,
366,
5247,
874,
1,
796,
705,
2934,
7807,
838,
14,
940,
6,
5357,
... |
Where did north melbourne play while away? | SELECT "Venue" FROM table_58584 WHERE "Away team" = 'north melbourne' | [
8496,
750,
5093,
7758,
12544,
711,
981,
1497,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3365,
46352,
33411,
366,
32,
1014,
1074,
1,
796,
705,
43588,
7758,
12544,
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
] | [
8496,
750,
5093,
7758,
12544,
711,
981,
1497,
30,
46506,
366,
37522,
518,
1,
16034,
3084,
62,
3365,
46352,
33411,
366,
32,
1014,
1074,
1,
796,
705,
43588,
7758,
12544,
6
] |
How many points were scored by Rolla Bigelow? | SELECT points FROM table_14342480_7 WHERE player = "Rolla Bigelow" | [
2437,
867,
2173,
547,
7781,
416,
8299,
64,
4403,
417,
322,
30,
46506,
2173,
16034,
3084,
62,
1415,
2682,
1731,
1795,
62,
22,
33411,
2137,
796,
366,
26869,
64,
4403,
417,
322,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2173,
547,
7781,
416,
8299,
64,
4403,
417,
322,
30,
46506,
2173,
16034,
3084,
62,
1415,
2682,
1731,
1795,
62,
22,
33411,
2137,
796,
366,
26869,
64,
4403,
417,
322,
1
] |
what measurement does the contestant from sindelfingen have? | SELECT "Measurements (in cm)" FROM table_3565 WHERE "City" = 'Sindelfingen' | [
10919,
15558,
857,
262,
44047,
422,
264,
521,
7046,
36795,
423,
30,
46506,
366,
47384,
902,
357,
259,
12067,
16725,
16034,
3084,
62,
2327,
2996,
33411,
366,
14941,
1,
796,
705,
50,
521,
7046,
36795,
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
] | [
10919,
15558,
857,
262,
44047,
422,
264,
521,
7046,
36795,
423,
30,
46506,
366,
47384,
902,
357,
259,
12067,
16725,
16034,
3084,
62,
2327,
2996,
33411,
366,
14941,
1,
796,
705,
50,
521,
7046,
36795,
6
] |
Give the proportion of what is the project id and detail for the project with at least two documents? | SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID | [
23318,
262,
9823,
286,
644,
318,
262,
1628,
4686,
290,
3703,
329,
262,
1628,
351,
379,
1551,
734,
4963,
30,
46506,
309,
16,
13,
16775,
62,
24259,
11,
309,
16,
13,
16775,
62,
2389,
16034,
29898,
7054,
309,
16,
32357,
1268,
33267,
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
] | [
23318,
262,
9823,
286,
644,
318,
262,
1628,
4686,
290,
3703,
329,
262,
1628,
351,
379,
1551,
734,
4963,
30,
46506,
309,
16,
13,
16775,
62,
24259,
11,
309,
16,
13,
16775,
62,
2389,
16034,
29898,
7054,
309,
16,
32357,
1268,
33267,
705... |
What is the market income per capita of the county with the 9.4% poverty rate? | SELECT market_income_per_capita FROM table_22815568_2 WHERE poverty_rate = "9.4%" | [
2061,
318,
262,
1910,
3739,
583,
21344,
286,
262,
7968,
351,
262,
860,
13,
19,
4,
8098,
2494,
30,
46506,
1910,
62,
12519,
62,
525,
62,
11128,
5350,
16034,
3084,
62,
23815,
18742,
3104,
62,
17,
33411,
8098,
62,
4873,
796,
366,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1910,
3739,
583,
21344,
286,
262,
7968,
351,
262,
860,
13,
19,
4,
8098,
2494,
30,
46506,
1910,
62,
12519,
62,
525,
62,
11128,
5350,
16034,
3084,
62,
23815,
18742,
3104,
62,
17,
33411,
8098,
62,
4873,
796,
366,
24,
... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the headquarter , and group by attribute headquarter, and show total number of code in ascending order. | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
2438,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
905,
2472,
1271,
286,
2438,
287,
41988,
1502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2160,
286,
2438,
625,
262,
1182,
24385,
837,
290,
1448,
416,
11688,
1182,
24385,
11,
290,
905,
2472,
1271,
286,
2438,
287,
41988,
1502,
... |
When curtis strange had a to par +1, what was his score? | SELECT score FROM table_name_42 WHERE to_par = "+1" AND player = "curtis strange" | [
2215,
1090,
48010,
6283,
550,
257,
284,
1582,
1343,
16,
11,
644,
373,
465,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3682,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
2137,
796,
366,
66,
3325,
271,
6283,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1090,
48010,
6283,
550,
257,
284,
1582,
1343,
16,
11,
644,
373,
465,
4776,
30,
46506,
4776,
16034,
3084,
62,
3672,
62,
3682,
33411,
284,
62,
1845,
796,
43825,
16,
1,
5357,
2137,
796,
366,
66,
3325,
271,
6283,
1
] |
What country was Danissa Zurek from? | SELECT country FROM table_25461827_2 WHERE contestant = "Danissa Zurek" | [
2061,
1499,
373,
6035,
13808,
1168,
495,
74,
422,
30,
46506,
1499,
16034,
3084,
62,
1495,
3510,
1507,
1983,
62,
17,
33411,
44047,
796,
366,
21174,
13808,
1168,
495,
74,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
373,
6035,
13808,
1168,
495,
74,
422,
30,
46506,
1499,
16034,
3084,
62,
1495,
3510,
1507,
1983,
62,
17,
33411,
44047,
796,
366,
21174,
13808,
1168,
495,
74,
1
] |
How many accounts are opened in each day? Bin the account open day by weekday in a bar chart, and sort by the Y-axis in asc. | SELECT date_account_opened, COUNT(date_account_opened) FROM Accounts ORDER BY COUNT(date_account_opened) | [
2437,
867,
5504,
389,
4721,
287,
1123,
1110,
30,
20828,
262,
1848,
1280,
1110,
416,
28269,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
3128,
62,
23317,
62,
26350,
11,
327,
28270,
7,
4475,
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
] | [
2437,
867,
5504,
389,
4721,
287,
1123,
1110,
30,
20828,
262,
1848,
1280,
1110,
416,
28269,
287,
257,
2318,
8262,
11,
290,
3297,
416,
262,
575,
12,
22704,
287,
10570,
13,
46506,
3128,
62,
23317,
62,
26350,
11,
327,
28270,
7,
4475,
62... |
Name the broadcast day and timings for tv saitama | SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama" | [
5376,
262,
7025,
1110,
290,
4628,
654,
329,
31557,
473,
270,
1689,
46506,
7025,
62,
820,
62,
392,
62,
16514,
654,
834,
259,
62,
73,
301,
834,
16034,
3084,
62,
21536,
4304,
27033,
62,
17,
33411,
7025,
62,
27349,
796,
366,
6849,
311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7025,
1110,
290,
4628,
654,
329,
31557,
473,
270,
1689,
46506,
7025,
62,
820,
62,
392,
62,
16514,
654,
834,
259,
62,
73,
301,
834,
16034,
3084,
62,
21536,
4304,
27033,
62,
17,
33411,
7025,
62,
27349,
796,
366,
6849,
311,
... |
What are the most common types of interactions between enzymes and medicine, and how many types are there? | SELECT interaction_type, COUNT(*) FROM medicine_enzyme_interaction GROUP BY interaction_type ORDER BY COUNT(*) DESC LIMIT 1 | [
2061,
389,
262,
749,
2219,
3858,
286,
12213,
1022,
29120,
290,
9007,
11,
290,
703,
867,
3858,
389,
612,
30,
46506,
10375,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
9007,
62,
268,
24266,
62,
3849,
2673,
44441,
11050,
10375,
62,
4906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
749,
2219,
3858,
286,
12213,
1022,
29120,
290,
9007,
11,
290,
703,
867,
3858,
389,
612,
30,
46506,
10375,
62,
4906,
11,
327,
28270,
7,
28104,
16034,
9007,
62,
268,
24266,
62,
3849,
2673,
44441,
11050,
10375,
62,
4906,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of revenue over the founder , and group by attribute founder, and I want to rank in descending by the x axis. | SELECT Founder, AVG(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
2124,
16488,
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... | [
1890,
883,
4406,
422,
262,
3186,
290,
1123,
1720,
338,
11554,
11,
1577,
502,
262,
7208,
546,
262,
2811,
286,
6426,
625,
262,
9119,
837,
290,
1448,
416,
11688,
9119,
11,
290,
314,
765,
284,
4279,
287,
31491,
416,
262,
2124,
16488,
13... |
Where was the Undercard of Stevenson/Bellew? | SELECT location FROM table_25840200_1 WHERE notes = "Undercard of Stevenson/Bellew" | [
8496,
373,
262,
4698,
9517,
286,
38681,
14,
12193,
293,
86,
30,
46506,
4067,
16034,
3084,
62,
25600,
1821,
2167,
62,
16,
33411,
4710,
796,
366,
9203,
9517,
286,
38681,
14,
12193,
293,
86,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8496,
373,
262,
4698,
9517,
286,
38681,
14,
12193,
293,
86,
30,
46506,
4067,
16034,
3084,
62,
25600,
1821,
2167,
62,
16,
33411,
4710,
796,
366,
9203,
9517,
286,
38681,
14,
12193,
293,
86,
1
] |
What date did the red wings play against the visitors, buffalo? | SELECT "Date" FROM table_46334 WHERE "Visitor" = 'buffalo' | [
2061,
3128,
750,
262,
2266,
12098,
711,
1028,
262,
9692,
11,
45019,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3510,
31380,
33411,
366,
15854,
2072,
1,
796,
705,
36873,
7335,
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,
3128,
750,
262,
2266,
12098,
711,
1028,
262,
9692,
11,
45019,
30,
46506,
366,
10430,
1,
16034,
3084,
62,
3510,
31380,
33411,
366,
15854,
2072,
1,
796,
705,
36873,
7335,
6
] |
had patient 022-43717 been prescribed a prescription of any drug? | 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 = '022-43717')) | [
18108,
5827,
657,
1828,
12,
43284,
1558,
587,
14798,
257,
15077,
286,
597,
2563,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
18108,
5827,
657,
1828,
12,
43284,
1558,
587,
14798,
257,
15077,
286,
597,
2563,
30,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
14103,
33411,
14103,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
13,
26029,
20850,
31712,
312,
... |
What is the sum of credit value of courses with more than one prerequisite for each department? Return a bar chart, and sort by the y axis in desc please. | SELECT dept_name, SUM(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name ORDER BY SUM(credits) DESC | [
2061,
318,
262,
2160,
286,
3884,
1988,
286,
10902,
351,
517,
621,
530,
43119,
329,
1123,
5011,
30,
8229,
257,
2318,
8262,
11,
290,
3297,
416,
262,
331,
16488,
287,
1715,
3387,
13,
46506,
390,
457,
62,
3672,
11,
35683,
7,
66,
20696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
2160,
286,
3884,
1988,
286,
10902,
351,
517,
621,
530,
43119,
329,
1123,
5011,
30,
8229,
257,
2318,
8262,
11,
290,
3297,
416,
262,
331,
16488,
287,
1715,
3387,
13,
46506,
390,
457,
62,
3672,
11,
35683,
7,
66,
20696,
... |
Which team had a rank under 4 with a time of 1:14.04.88? | SELECT team FROM table_name_69 WHERE rank < 4 AND time = "1:14.04.88" | [
13828,
1074,
550,
257,
4279,
739,
604,
351,
257,
640,
286,
352,
25,
1415,
13,
3023,
13,
3459,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3388,
33411,
4279,
1279,
604,
5357,
640,
796,
366,
16,
25,
1415,
13,
3023,
13,
3459,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1074,
550,
257,
4279,
739,
604,
351,
257,
640,
286,
352,
25,
1415,
13,
3023,
13,
3459,
30,
46506,
1074,
16034,
3084,
62,
3672,
62,
3388,
33411,
4279,
1279,
604,
5357,
640,
796,
366,
16,
25,
1415,
13,
3023,
13,
3459,
1
] |
What country was the player who was 11 off par from? | SELECT country FROM table_name_88 WHERE to_par = 11 | [
2061,
1499,
373,
262,
2137,
508,
373,
1367,
572,
1582,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3459,
33411,
284,
62,
1845,
796,
1367
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
1499,
373,
262,
2137,
508,
373,
1367,
572,
1582,
422,
30,
46506,
1499,
16034,
3084,
62,
3672,
62,
3459,
33411,
284,
62,
1845,
796,
1367
] |
What was the total in Brooklyn when Manhattan was 3,139? | SELECT brooklyn FROM table_1108394_6 WHERE manhattan = "3,139" | [
2061,
373,
262,
2472,
287,
12232,
618,
13458,
373,
513,
11,
20219,
30,
46506,
1379,
482,
6213,
16034,
3084,
62,
11442,
23,
34626,
62,
21,
33411,
582,
12904,
796,
366,
18,
11,
20219,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2472,
287,
12232,
618,
13458,
373,
513,
11,
20219,
30,
46506,
1379,
482,
6213,
16034,
3084,
62,
11442,
23,
34626,
62,
21,
33411,
582,
12904,
796,
366,
18,
11,
20219,
1
] |
How many outcomes occur on the date of January 31, 2010? | SELECT COUNT("Outcome") FROM table_3511 WHERE "Date" = 'January 31, 2010' | [
2437,
867,
10906,
3051,
319,
262,
3128,
286,
3269,
3261,
11,
3050,
30,
46506,
327,
28270,
7203,
7975,
2958,
4943,
16034,
3084,
62,
2327,
1157,
33411,
366,
10430,
1,
796,
705,
21339,
3261,
11,
3050,
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
] | [
2437,
867,
10906,
3051,
319,
262,
3128,
286,
3269,
3261,
11,
3050,
30,
46506,
327,
28270,
7203,
7975,
2958,
4943,
16034,
3084,
62,
2327,
1157,
33411,
366,
10430,
1,
796,
705,
21339,
3261,
11,
3050,
6
] |
may i have a listing of flights from MINNEAPOLIS to LONG BEACH CALIFORNIA on wednesday | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LONG BEACH' AND date_day.day_number = 23 AND date_day.month_number... | [
11261,
1312,
423,
257,
13487,
286,
13956,
422,
20625,
12161,
2969,
3535,
1797,
284,
44533,
9348,
16219,
33290,
5064,
30649,
3539,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
3160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
11261,
1312,
423,
257,
13487,
286,
13956,
422,
20625,
12161,
2969,
3535,
1797,
284,
44533,
9348,
16219,
33290,
5064,
30649,
3539,
319,
29445,
3462,
46506,
360,
8808,
1268,
4177,
5474,
13,
22560,
62,
312,
16034,
9003,
62,
15271,
7054,
3160... |
I need to take a class this semester that will be a prerequisite for most other classes . | SELECT COUNT(DISTINCT COURSE_PREREQUISITEalias0.course_id), COURSEalias0.department, COURSEalias0.name, COURSEalias0.number FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course AS COURSEalias1, course_offering AS COURSE_OFFERINGali... | [
40,
761,
284,
1011,
257,
1398,
428,
24878,
326,
481,
307,
257,
43119,
329,
749,
584,
6097,
764,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
37384,
5188,
62,
4805,
9338,
10917,
1797,
12709,
26011,
15,
13,
17319,
62,
312,
828,
37384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
40,
761,
284,
1011,
257,
1398,
428,
24878,
326,
481,
307,
257,
43119,
329,
749,
584,
6097,
764,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
37384,
5188,
62,
4805,
9338,
10917,
1797,
12709,
26011,
15,
13,
17319,
62,
312,
828,
37384,
... |
what was the four most frequent medicines that were prescribed in the same hospital visit to the male patients aged 20s after they had been diagnosed with acute kidney failure nos in 2104? | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_... | [
10919,
373,
262,
1440,
749,
10792,
23533,
326,
547,
14798,
287,
262,
976,
4436,
3187,
284,
262,
4257,
3871,
9722,
1160,
82,
706,
484,
550,
587,
14641,
351,
14352,
21919,
5287,
43630,
287,
362,
13464,
30,
46506,
256,
18,
13,
30349,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1440,
749,
10792,
23533,
326,
547,
14798,
287,
262,
976,
4436,
3187,
284,
262,
4257,
3871,
9722,
1160,
82,
706,
484,
550,
587,
14641,
351,
14352,
21919,
5287,
43630,
287,
362,
13464,
30,
46506,
256,
18,
13,
30349,
160... |
what is the number of patients whose marital status is widowed and diagnoses icd9 code is 4295? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.marital_status = "WIDOWED" AND diagnoses.icd9_code = "4295" | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
40567,
14158,
67,
24,
2438,
318,
604,
25710,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
29555,
3722,
318,
9214,
6972,
290,
40567,
14158,
67,
24,
2438,
318,
604,
25710,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
12... |
Write a query that will show just the User ID and Text of a comment by a single user. You may choose. | SELECT UserId, Text FROM Comments WHERE Text LIKE '@Yvette%' | [
16594,
257,
12405,
326,
481,
905,
655,
262,
11787,
4522,
290,
8255,
286,
257,
2912,
416,
257,
2060,
2836,
13,
921,
743,
3853,
13,
46506,
11787,
7390,
11,
8255,
16034,
19502,
33411,
8255,
34178,
705,
31,
56,
33573,
4,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
16594,
257,
12405,
326,
481,
905,
655,
262,
11787,
4522,
290,
8255,
286,
257,
2912,
416,
257,
2060,
2836,
13,
921,
743,
3853,
13,
46506,
11787,
7390,
11,
8255,
16034,
19502,
33411,
8255,
34178,
705,
31,
56,
33573,
4,
6
] |
Get all tags for cooking. | SELECT TagName, 'count' FROM Tags WHERE 'count' <= 10 ORDER BY Count DESC | [
3855,
477,
15940,
329,
10801,
13,
46506,
17467,
5376,
11,
705,
9127,
6,
16034,
44789,
33411,
705,
9127,
6,
19841,
838,
38678,
11050,
2764,
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
] | [
3855,
477,
15940,
329,
10801,
13,
46506,
17467,
5376,
11,
705,
9127,
6,
16034,
44789,
33411,
705,
9127,
6,
19841,
838,
38678,
11050,
2764,
22196,
34
] |
What is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126? | SELECT COUNT("Rank (Pakistan)") FROM table_54098 WHERE "World Rank" < '11' AND "Height (m)" < '8126' | [
2061,
318,
262,
10916,
357,
38485,
8,
286,
262,
8598,
326,
468,
257,
2159,
10916,
4833,
621,
1367,
290,
257,
27280,
4833,
621,
807,
19420,
30,
46506,
327,
28270,
7203,
27520,
357,
38485,
8,
4943,
16034,
3084,
62,
35005,
4089,
33411,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
10916,
357,
38485,
8,
286,
262,
8598,
326,
468,
257,
2159,
10916,
4833,
621,
1367,
290,
257,
27280,
4833,
621,
807,
19420,
30,
46506,
327,
28270,
7203,
27520,
357,
38485,
8,
4943,
16034,
3084,
62,
35005,
4089,
33411,
3... |
What nasl club won several titles with leeds united? | SELECT "NASL club(s)" FROM table_2932 WHERE "Accolades (Pre-NASL)" = 'Won several titles with Leeds United' | [
2061,
25221,
75,
3430,
1839,
1811,
8714,
351,
443,
5379,
16503,
30,
46506,
366,
18293,
43,
3430,
7,
82,
16725,
16034,
3084,
62,
1959,
2624,
33411,
366,
17320,
349,
2367,
357,
6719,
12,
18293,
43,
16725,
796,
705,
54,
261,
1811,
8714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25221,
75,
3430,
1839,
1811,
8714,
351,
443,
5379,
16503,
30,
46506,
366,
18293,
43,
3430,
7,
82,
16725,
16034,
3084,
62,
1959,
2624,
33411,
366,
17320,
349,
2367,
357,
6719,
12,
18293,
43,
16725,
796,
705,
54,
261,
1811,
8714,
... |
until 1 year ago, when was the last hospital admission time of patient 006-149778? | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-149778' AND DATETIME(patient.hospitaladmittime) <= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime DESC LIMIT 1 | [
28446,
352,
614,
2084,
11,
618,
373,
262,
938,
4436,
13938,
640,
286,
5827,
3571,
21,
12,
19442,
39761,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
19442,
39761,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
28446,
352,
614,
2084,
11,
618,
373,
262,
938,
4436,
13938,
640,
286,
5827,
3571,
21,
12,
19442,
39761,
30,
46506,
5827,
13,
49257,
324,
20124,
524,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,
796,
705,
28041,
12,
19442,
39761,... |
Who was the match against at the PRIDE 31 event? | SELECT opponent FROM table_name_70 WHERE event = "pride 31" | [
8241,
373,
262,
2872,
1028,
379,
262,
4810,
14114,
3261,
1785,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2154,
33411,
1785,
796,
366,
1050,
485,
3261,
1
] | [
1,
1,
1,
1,
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,
2872,
1028,
379,
262,
4810,
14114,
3261,
1785,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2154,
33411,
1785,
796,
366,
1050,
485,
3261,
1
] |
To whom do I answer. | SELECT Questions.Score AS Q_score, Questions.Id AS "post_link", Questions.Body AS Q_text, Answers.Score AS A_score, Answers.Body AS A_text, Questions.Tags AS "tags", Questions.OwnerUserId AS "user_link" FROM Posts AS Questions, Posts AS Answers WHERE Questions.PostTypeId = 1 AND Answers.PostTypeId = 2 AND Answers.Paren... | [
2514,
4150,
466,
314,
3280,
13,
46506,
20396,
13,
26595,
7054,
1195,
62,
26675,
11,
20396,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
20396,
13,
25842,
7054,
1195,
62,
5239,
11,
42612,
13,
26595,
7054,
317,
62,
26675,
11,
42612,
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... | [
2514,
4150,
466,
314,
3280,
13,
46506,
20396,
13,
26595,
7054,
1195,
62,
26675,
11,
20396,
13,
7390,
7054,
366,
7353,
62,
8726,
1600,
20396,
13,
25842,
7054,
1195,
62,
5239,
11,
42612,
13,
26595,
7054,
317,
62,
26675,
11,
42612,
13,
... |
What year has Stacy as the category and award of Best Reality Star in Social Media? | SELECT MIN(year) FROM table_name_10 WHERE category = "stacy" AND awards = "best reality star in social media" | [
2061,
614,
468,
49523,
355,
262,
6536,
290,
5764,
286,
6705,
22520,
2907,
287,
5483,
6343,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
6536,
796,
366,
301,
1590,
1,
5357,
13304,
796,
366,
13466,
3950,
3491,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
49523,
355,
262,
6536,
290,
5764,
286,
6705,
22520,
2907,
287,
5483,
6343,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
940,
33411,
6536,
796,
366,
301,
1590,
1,
5357,
13304,
796,
366,
13466,
3950,
3491,
... |
What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4? | SELECT MIN("Bike No") FROM table_48571 WHERE "Driver / Passenger" = 'joris hendrickx / kaspars liepins' AND "Position" < '4' | [
2061,
318,
262,
9016,
26397,
1400,
11,
618,
12434,
1220,
47239,
318,
449,
37279,
14666,
5557,
87,
1220,
509,
5126,
945,
12060,
49556,
11,
290,
618,
23158,
318,
1342,
621,
604,
30,
46506,
20625,
7203,
33,
522,
1400,
4943,
16034,
3084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
318,
262,
9016,
26397,
1400,
11,
618,
12434,
1220,
47239,
318,
449,
37279,
14666,
5557,
87,
1220,
509,
5126,
945,
12060,
49556,
11,
290,
618,
23158,
318,
1342,
621,
604,
30,
46506,
20625,
7203,
33,
522,
1400,
4943,
16034,
3084,
... |
What was the sum of January values with a record of 27-12-3 for a game less than 42? | SELECT SUM("January") FROM table_5515 WHERE "Record" = '27-12-3' AND "Game" < '42' | [
2061,
373,
262,
2160,
286,
3269,
3815,
351,
257,
1700,
286,
2681,
12,
1065,
12,
18,
329,
257,
983,
1342,
621,
5433,
30,
46506,
35683,
7203,
21339,
4943,
16034,
3084,
62,
2816,
1314,
33411,
366,
23739,
1,
796,
705,
1983,
12,
1065,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2160,
286,
3269,
3815,
351,
257,
1700,
286,
2681,
12,
1065,
12,
18,
329,
257,
983,
1342,
621,
5433,
30,
46506,
35683,
7203,
21339,
4943,
16034,
3084,
62,
2816,
1314,
33411,
366,
23739,
1,
796,
705,
1983,
12,
1065,
12... |
What affiliation has an owned since larger than 1991, and also has a channel (tv/rf) of 42? | SELECT affiliation FROM table_name_58 WHERE owned_since > 1991 AND channel___tv___rf__ = "42" | [
2061,
26218,
468,
281,
6898,
1201,
4025,
621,
10249,
11,
290,
635,
468,
257,
6518,
357,
14981,
14,
41871,
8,
286,
5433,
30,
46506,
26218,
16034,
3084,
62,
3672,
62,
3365,
33411,
6898,
62,
20777,
1875,
10249,
5357,
6518,
17569,
14981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26218,
468,
281,
6898,
1201,
4025,
621,
10249,
11,
290,
635,
468,
257,
6518,
357,
14981,
14,
41871,
8,
286,
5433,
30,
46506,
26218,
16034,
3084,
62,
3672,
62,
3365,
33411,
6898,
62,
20777,
1875,
10249,
5357,
6518,
17569,
14981,
... |
What's Albufeira's assist/pass? | SELECT assist_pass FROM table_name_22 WHERE location = "albufeira" | [
2061,
338,
17399,
3046,
68,
8704,
338,
3342,
14,
6603,
30,
46506,
3342,
62,
6603,
16034,
3084,
62,
3672,
62,
1828,
33411,
4067,
796,
366,
282,
29325,
68,
8704,
1
] | [
1,
1,
1,
1,
1,
1,
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,
17399,
3046,
68,
8704,
338,
3342,
14,
6603,
30,
46506,
3342,
62,
6603,
16034,
3084,
62,
3672,
62,
1828,
33411,
4067,
796,
366,
282,
29325,
68,
8704,
1
] |
What is the relationship between People_ID and Clean_Jerk ? | SELECT People_ID, Clean_Jerk FROM body_builder | [
2061,
318,
262,
2776,
1022,
4380,
62,
2389,
290,
5985,
62,
41,
9587,
5633,
46506,
4380,
62,
2389,
11,
5985,
62,
41,
9587,
16034,
1767,
62,
38272
] | [
1,
1,
1,
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,
2776,
1022,
4380,
62,
2389,
290,
5985,
62,
41,
9587,
5633,
46506,
4380,
62,
2389,
11,
5985,
62,
41,
9587,
16034,
1767,
62,
38272
] |
Which airport has perth as the city? | SELECT airport FROM table_name_39 WHERE city = "perth" | [
13828,
9003,
468,
583,
400,
355,
262,
1748,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
2670,
33411,
1748,
796,
366,
525,
400,
1
] | [
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,
9003,
468,
583,
400,
355,
262,
1748,
30,
46506,
9003,
16034,
3084,
62,
3672,
62,
2670,
33411,
1748,
796,
366,
525,
400,
1
] |
What was radio mexicana's website? | SELECT website FROM table_name_22 WHERE brand = "radio mexicana" | [
2061,
373,
5243,
502,
87,
291,
2271,
338,
3052,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
1828,
33411,
4508,
796,
366,
37004,
502,
87,
291,
2271,
1
] | [
1,
1,
1,
1,
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,
5243,
502,
87,
291,
2271,
338,
3052,
30,
46506,
3052,
16034,
3084,
62,
3672,
62,
1828,
33411,
4508,
796,
366,
37004,
502,
87,
291,
2271,
1
] |
What was the average round when he had a 3-0 record? | SELECT AVG(round) FROM table_name_18 WHERE record = "3-0" | [
2061,
373,
262,
2811,
2835,
618,
339,
550,
257,
513,
12,
15,
1700,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
1700,
796,
366,
18,
12,
15,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
2811,
2835,
618,
339,
550,
257,
513,
12,
15,
1700,
30,
46506,
35224,
7,
744,
8,
16034,
3084,
62,
3672,
62,
1507,
33411,
1700,
796,
366,
18,
12,
15,
1
] |
What is the 2010 population of the municipality with 31 barangays? | SELECT "Population (2010)" FROM table_27794 WHERE "No. of Barangays" = '31' | [
2061,
318,
262,
3050,
3265,
286,
262,
27264,
351,
3261,
2318,
648,
592,
30,
46506,
366,
45251,
357,
10333,
16725,
16034,
3084,
62,
1983,
50242,
33411,
366,
2949,
13,
286,
2409,
648,
592,
1,
796,
705,
3132,
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,
3050,
3265,
286,
262,
27264,
351,
3261,
2318,
648,
592,
30,
46506,
366,
45251,
357,
10333,
16725,
16034,
3084,
62,
1983,
50242,
33411,
366,
2949,
13,
286,
2409,
648,
592,
1,
796,
705,
3132,
6
] |
Which Former Team has a Pick larger than 20? | SELECT "Former Team" FROM table_8851 WHERE "Pick" > '20' | [
13828,
14466,
4816,
468,
257,
12346,
4025,
621,
1160,
30,
46506,
366,
14282,
4816,
1,
16034,
3084,
62,
3459,
4349,
33411,
366,
31686,
1,
1875,
705,
1238,
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
] | [
13828,
14466,
4816,
468,
257,
12346,
4025,
621,
1160,
30,
46506,
366,
14282,
4816,
1,
16034,
3084,
62,
3459,
4349,
33411,
366,
31686,
1,
1875,
705,
1238,
6
] |
Show weight from each date of birth, and I want to rank in asc by the y axis please. | SELECT Date_of_Birth, Weight FROM people ORDER BY Weight | [
15307,
3463,
422,
1123,
3128,
286,
4082,
11,
290,
314,
765,
284,
4279,
287,
10570,
416,
262,
331,
16488,
3387,
13,
46506,
7536,
62,
1659,
62,
38480,
11,
14331,
16034,
661,
38678,
11050,
14331
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3463,
422,
1123,
3128,
286,
4082,
11,
290,
314,
765,
284,
4279,
287,
10570,
416,
262,
331,
16488,
3387,
13,
46506,
7536,
62,
1659,
62,
38480,
11,
14331,
16034,
661,
38678,
11050,
14331
] |
If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c? | SELECT coordinate_velocity_v_dx_dt_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 2 hyperbolic radians" | [
1532,
262,
262,
4006,
14,
17143,
2357,
318,
5801,
414,
286,
362,
8718,
65,
4160,
2511,
1547,
11,
644,
318,
262,
20435,
15432,
410,
44332,
14,
28664,
287,
4991,
286,
269,
30,
46506,
20435,
62,
626,
11683,
62,
85,
62,
34350,
62,
28664... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
4006,
14,
17143,
2357,
318,
5801,
414,
286,
362,
8718,
65,
4160,
2511,
1547,
11,
644,
318,
262,
20435,
15432,
410,
44332,
14,
28664,
287,
4991,
286,
269,
30,
46506,
20435,
62,
626,
11683,
62,
85,
62,
34350,
62,
28664... |
Name the score for 30 january 2013 | SELECT score FROM table_name_24 WHERE date = "30 january 2013" | [
5376,
262,
4776,
329,
1542,
42897,
2838,
2211,
46506,
4776,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
1270,
42897,
2838,
2211,
1
] | [
1,
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,
4776,
329,
1542,
42897,
2838,
2211,
46506,
4776,
16034,
3084,
62,
3672,
62,
1731,
33411,
3128,
796,
366,
1270,
42897,
2838,
2211,
1
] |
Which System's Name is Gemulator? | SELECT "System" FROM table_53113 WHERE "Name" = 'gemulator' | [
13828,
4482,
338,
6530,
318,
15669,
8927,
30,
46506,
366,
11964,
1,
16034,
3084,
62,
4310,
16616,
33411,
366,
5376,
1,
796,
705,
24090,
8927,
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
] | [
13828,
4482,
338,
6530,
318,
15669,
8927,
30,
46506,
366,
11964,
1,
16034,
3084,
62,
4310,
16616,
33411,
366,
5376,
1,
796,
705,
24090,
8927,
6
] |
What's the lowest place for song 'starac i more' with draw over 13? | SELECT MIN("Place") FROM table_11274 WHERE "Song" = 'starac i more' AND "Draw" > '13' | [
2061,
338,
262,
9016,
1295,
329,
3496,
705,
7364,
330,
1312,
517,
6,
351,
3197,
625,
1511,
30,
46506,
20625,
7203,
27271,
4943,
16034,
3084,
62,
14686,
4524,
33411,
366,
44241,
1,
796,
705,
7364,
330,
1312,
517,
6,
5357,
366,
25302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9016,
1295,
329,
3496,
705,
7364,
330,
1312,
517,
6,
351,
3197,
625,
1511,
30,
46506,
20625,
7203,
27271,
4943,
16034,
3084,
62,
14686,
4524,
33411,
366,
44241,
1,
796,
705,
7364,
330,
1312,
517,
6,
5357,
366,
25302,
... |
Find the name and budget of departments whose budgets are more than the average budget. | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) | [
16742,
262,
1438,
290,
4466,
286,
13346,
3025,
21011,
389,
517,
621,
262,
2811,
4466,
13,
46506,
390,
457,
62,
3672,
11,
4466,
16034,
5011,
33411,
4466,
1875,
357,
46506,
35224,
7,
37315,
8,
16034,
5011,
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
] | [
16742,
262,
1438,
290,
4466,
286,
13346,
3025,
21011,
389,
517,
621,
262,
2811,
4466,
13,
46506,
390,
457,
62,
3672,
11,
4466,
16034,
5011,
33411,
4466,
1875,
357,
46506,
35224,
7,
37315,
8,
16034,
5011,
8
] |
What is Team, when High Points is 'Rashard Lewis (18)'? | SELECT "Team" FROM table_49000 WHERE "High points" = 'rashard lewis (18)' | [
2061,
318,
4816,
11,
618,
3334,
11045,
318,
705,
49,
1077,
446,
10174,
357,
1507,
8,
30960,
46506,
366,
15592,
1,
16034,
3084,
62,
2920,
830,
33411,
366,
11922,
2173,
1,
796,
705,
81,
1077,
446,
443,
86,
271,
357,
1507,
33047
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
4816,
11,
618,
3334,
11045,
318,
705,
49,
1077,
446,
10174,
357,
1507,
8,
30960,
46506,
366,
15592,
1,
16034,
3084,
62,
2920,
830,
33411,
366,
11922,
2173,
1,
796,
705,
81,
1077,
446,
443,
86,
271,
357,
1507,
33047
] |
Who was Richmond's away team opponent? | SELECT away_team FROM table_name_10 WHERE home_team = "richmond" | [
8241,
373,
16940,
338,
1497,
1074,
6125,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
940,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] | [
1,
1,
1,
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,
16940,
338,
1497,
1074,
6125,
30,
46506,
1497,
62,
15097,
16034,
3084,
62,
3672,
62,
940,
33411,
1363,
62,
15097,
796,
366,
7527,
6327,
1
] |
Show the different countries and the number of members from each. | SELECT country, COUNT(*) FROM member GROUP BY country | [
15307,
262,
1180,
2678,
290,
262,
1271,
286,
1866,
422,
1123,
13,
46506,
1499,
11,
327,
28270,
7,
28104,
16034,
2888,
44441,
11050,
1499
] | [
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,
1180,
2678,
290,
262,
1271,
286,
1866,
422,
1123,
13,
46506,
1499,
11,
327,
28270,
7,
28104,
16034,
2888,
44441,
11050,
1499
] |
Who wrote the episode titled 'An Old-fashioned Piano Party'? | SELECT "Written by" FROM table_74207 WHERE "Title" = 'An Old-Fashioned Piano Party' | [
8241,
2630,
262,
4471,
11946,
705,
2025,
5706,
12,
28776,
46605,
3615,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
4524,
22745,
33411,
366,
19160,
1,
796,
705,
2025,
5706,
12,
37,
5880,
276,
46605,
3615,
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
] | [
8241,
2630,
262,
4471,
11946,
705,
2025,
5706,
12,
28776,
46605,
3615,
30960,
46506,
366,
25354,
416,
1,
16034,
3084,
62,
4524,
22745,
33411,
366,
19160,
1,
796,
705,
2025,
5706,
12,
37,
5880,
276,
46605,
3615,
6
] |
what was the last value of patient 12775's magnesium laboratory test since 11 months ago? | SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 12775) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'magnesium') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(), '-11 m... | [
10919,
373,
262,
938,
1988,
286,
5827,
18112,
2425,
338,
33525,
14010,
1332,
1201,
1367,
1933,
2084,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
938,
1988,
286,
5827,
18112,
2425,
338,
33525,
14010,
1332,
1201,
1367,
1933,
2084,
30,
46506,
2248,
31534,
13,
2100,
84,
44709,
16034,
2248,
31534,
33411,
2248,
31534,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
1... |
cardiogenic shock or symptomatic hypotension or sitting sbp < 95 mmhg | SELECT * FROM table_test_24 WHERE cardiogenic_shock = 1 OR symptomatic_hypotension = 1 OR systolic_blood_pressure_sbp < 95 | [
9517,
72,
15147,
6380,
393,
6585,
13730,
8813,
3004,
393,
5586,
264,
46583,
1279,
6957,
8085,
71,
70,
46506,
1635,
16034,
3084,
62,
9288,
62,
1731,
33411,
2657,
72,
15147,
62,
39563,
796,
352,
6375,
6585,
13730,
62,
36362,
313,
3004,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
9517,
72,
15147,
6380,
393,
6585,
13730,
8813,
3004,
393,
5586,
264,
46583,
1279,
6957,
8085,
71,
70,
46506,
1635,
16034,
3084,
62,
9288,
62,
1731,
33411,
2657,
72,
15147,
62,
39563,
796,
352,
6375,
6585,
13730,
62,
36362,
313,
3004,
... |
What is the screen size and pixel amount of model p5000 when the dimensions are 98 64.5 41? | SELECT "Screen size,pixels" FROM table_32080 WHERE "Dimensions W\u00d7H\u00d7D (mm)" = '98×64.5×41' AND "Model" = 'p5000' | [
2061,
318,
262,
3159,
2546,
290,
17465,
2033,
286,
2746,
279,
27641,
618,
262,
15225,
389,
9661,
5598,
13,
20,
6073,
30,
46506,
366,
23901,
2546,
11,
79,
14810,
1,
16034,
3084,
62,
19504,
1795,
33411,
366,
29271,
5736,
370,
59,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3159,
2546,
290,
17465,
2033,
286,
2746,
279,
27641,
618,
262,
15225,
389,
9661,
5598,
13,
20,
6073,
30,
46506,
366,
23901,
2546,
11,
79,
14810,
1,
16034,
3084,
62,
19504,
1795,
33411,
366,
29271,
5736,
370,
59,
84,
... |
What was the score when Richmond was the opponent? | SELECT "Score" FROM table_31666 WHERE "Opponent" = 'richmond' | [
2061,
373,
262,
4776,
618,
16940,
373,
262,
6125,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33400,
2791,
33411,
366,
27524,
3471,
1,
796,
705,
7527,
6327,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
262,
4776,
618,
16940,
373,
262,
6125,
30,
46506,
366,
26595,
1,
16034,
3084,
62,
33400,
2791,
33411,
366,
27524,
3471,
1,
796,
705,
7527,
6327,
6
] |
What was the destination of the season won by Anwar Syed? | SELECT destination FROM table_20026849_1 WHERE winner = "Anwar Syed" | [
2061,
373,
262,
10965,
286,
262,
1622,
1839,
416,
1052,
5767,
1632,
276,
30,
46506,
10965,
16034,
3084,
62,
2167,
25022,
2920,
62,
16,
33411,
8464,
796,
366,
2025,
5767,
1632,
276,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10965,
286,
262,
1622,
1839,
416,
1052,
5767,
1632,
276,
30,
46506,
10965,
16034,
3084,
62,
2167,
25022,
2920,
62,
16,
33411,
8464,
796,
366,
2025,
5767,
1632,
276,
1
] |
What is the total number of laps that were completed in 1949? | SELECT COUNT("Laps") FROM table_14659 WHERE "Year" = '1949' | [
2061,
318,
262,
2472,
1271,
286,
24590,
326,
547,
5668,
287,
24977,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
1415,
36445,
33411,
366,
17688,
1,
796,
705,
1129,
2920,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2472,
1271,
286,
24590,
326,
547,
5668,
287,
24977,
30,
46506,
327,
28270,
7203,
43,
1686,
4943,
16034,
3084,
62,
1415,
36445,
33411,
366,
17688,
1,
796,
705,
1129,
2920,
6
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.