instruction stringlengths 0 1.06k | response stringlengths 2 3.61k | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|
What player has a total of 297? | SELECT player FROM table_name_87 WHERE total = 297 | [
2061,
2137,
468,
257,
2472,
286,
41103,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5774,
33411,
2472,
796,
41103
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2137,
468,
257,
2472,
286,
41103,
30,
46506,
2137,
16034,
3084,
62,
3672,
62,
5774,
33411,
2472,
796,
41103
] |
what are the number of matches that happened in japan ? | SELECT COUNT(*) FROM table_204_684 WHERE "location:" = 'japan' | [
10919,
389,
262,
1271,
286,
7466,
326,
3022,
287,
474,
2674,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41580,
33411,
366,
24886,
11097,
796,
705,
73,
2674,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
10919,
389,
262,
1271,
286,
7466,
326,
3022,
287,
474,
2674,
5633,
46506,
327,
28270,
7,
28104,
16034,
3084,
62,
18638,
62,
41580,
33411,
366,
24886,
11097,
796,
705,
73,
2674,
6
] |
Which opponent has a date of July 7? | SELECT opponent FROM table_name_35 WHERE date = "july 7" | [
13828,
6125,
468,
257,
3128,
286,
2901,
767,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2327,
33411,
3128,
796,
366,
73,
2062,
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
] | [
13828,
6125,
468,
257,
3128,
286,
2901,
767,
30,
46506,
6125,
16034,
3084,
62,
3672,
62,
2327,
33411,
3128,
796,
366,
73,
2062,
767,
1
] |
What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents? | SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id | [
2061,
389,
262,
3891,
286,
262,
4409,
508,
39019,
262,
8166,
290,
262,
4409,
508,
6572,
262,
11188,
4963,
30,
46506,
309,
17,
13,
7033,
1453,
62,
3672,
11,
309,
18,
13,
7033,
1453,
62,
3672,
16034,
33267,
62,
1462,
62,
1350,
62,
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... | [
2061,
389,
262,
3891,
286,
262,
4409,
508,
39019,
262,
8166,
290,
262,
4409,
508,
6572,
262,
11188,
4963,
30,
46506,
309,
17,
13,
7033,
1453,
62,
3672,
11,
309,
18,
13,
7033,
1453,
62,
3672,
16034,
33267,
62,
1462,
62,
1350,
62,
4... |
What Grid had 14 laps completed? | SELECT AVG(grid) FROM table_name_64 WHERE laps = 14 | [
2061,
24846,
550,
1478,
24590,
5668,
30,
46506,
35224,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
24590,
796,
1478
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
24846,
550,
1478,
24590,
5668,
30,
46506,
35224,
7,
25928,
8,
16034,
3084,
62,
3672,
62,
2414,
33411,
24590,
796,
1478
] |
for patients who received endosc control gast hem since 3 years ago, what are the top four most frequent lab tests that followed within 2 months? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i... | [
1640,
3871,
508,
2722,
886,
17500,
1630,
21956,
16869,
1201,
513,
812,
2084,
11,
644,
389,
262,
1353,
1440,
749,
10792,
2248,
5254,
326,
3940,
1626,
362,
1933,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1640,
3871,
508,
2722,
886,
17500,
1630,
21956,
16869,
1201,
513,
812,
2084,
11,
644,
389,
262,
1353,
1440,
749,
10792,
2248,
5254,
326,
3940,
1626,
362,
1933,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
... |
A bar chart for what are the number of the countries of mountains with height bigger than 5000?, and show from high to low by the total number. | SELECT Country, COUNT(Country) FROM mountain WHERE Height > 5000 GROUP BY Country ORDER BY COUNT(Country) DESC | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
2678,
286,
12269,
351,
6001,
5749,
621,
23336,
21747,
290,
905,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
13,
46506,
12946,
11,
327,
28270,
7,
33921,
8,
16034,
8598,
33411,
27280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32,
2318,
8262,
329,
644,
389,
262,
1271,
286,
262,
2678,
286,
12269,
351,
6001,
5749,
621,
23336,
21747,
290,
905,
422,
1029,
284,
1877,
416,
262,
2472,
1271,
13,
46506,
12946,
11,
327,
28270,
7,
33921,
8,
16034,
8598,
33411,
27280,
... |
What party is incumbent virgil chapman from? | SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman" | [
2061,
2151,
318,
23526,
5709,
37718,
28022,
805,
422,
30,
46506,
2151,
16034,
3084,
62,
19880,
1828,
2091,
62,
1558,
33411,
23526,
796,
366,
53,
343,
37718,
29045,
1
] | [
1,
1,
1,
1,
1,
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,
2151,
318,
23526,
5709,
37718,
28022,
805,
422,
30,
46506,
2151,
16034,
3084,
62,
19880,
1828,
2091,
62,
1558,
33411,
23526,
796,
366,
53,
343,
37718,
29045,
1
] |
total appearances by masakatsu miyamoto ? | SELECT "total" FROM table_203_456 WHERE "player" = 'masakatsu miyamoto' | [
23350,
11057,
416,
12422,
461,
19231,
285,
7745,
25384,
5633,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
29228,
33411,
366,
7829,
1,
796,
705,
5356,
461,
19231,
285,
7745,
25384,
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
] | [
23350,
11057,
416,
12422,
461,
19231,
285,
7745,
25384,
5633,
46506,
366,
23350,
1,
16034,
3084,
62,
22416,
62,
29228,
33411,
366,
7829,
1,
796,
705,
5356,
461,
19231,
285,
7745,
25384,
6
] |
what is the number of patients whose admission type is elective and diagnoses short title is intracerebral hemorrhage? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.short_title = "Intracerebral hemorrhage" | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
40567,
1790,
3670,
318,
9913,
558,
260,
24427,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
10919,
318,
262,
1271,
286,
3871,
3025,
13938,
2099,
318,
1742,
425,
290,
40567,
1790,
3670,
318,
9913,
558,
260,
24427,
42203,
496,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
214... |
Which city has a venue of the Arco Arena? | SELECT "City" FROM table_63725 WHERE "Venue" = 'arco arena' | [
13828,
1748,
468,
257,
14359,
286,
262,
943,
1073,
10937,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
21,
2718,
1495,
33411,
366,
37522,
518,
1,
796,
705,
283,
1073,
13478,
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
] | [
13828,
1748,
468,
257,
14359,
286,
262,
943,
1073,
10937,
30,
46506,
366,
14941,
1,
16034,
3084,
62,
21,
2718,
1495,
33411,
366,
37522,
518,
1,
796,
705,
283,
1073,
13478,
6
] |
How much rep would I have if there were no rep cap? [FIXED]. By Joel Coehoorn in this answer: http://meta.stackoverflow.com/questions/42121/is-there-a-script-tool-to-calculate-the-rep-as-if-there-were-no-cap
Edited to use a specified User ID. | SELECT SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN VoteTypeId = 2 THEN 10 WHEN VoteTypeId = 3 THEN -2 ELSE 0 END) - Reputation AS LostRep, 1.0 - (Reputation * 1.0 / SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN VoteTypeId = 2 THEN 10 WHEN VoteTypeId = 3 THEN -2 ELSE 0 END)) AS "lostrep%" FROM Votes AS v INNER JOIN Posts AS p... | [
2437,
881,
1128,
561,
314,
423,
611,
612,
547,
645,
1128,
1451,
30,
685,
47084,
1961,
4083,
2750,
18623,
1766,
68,
8873,
1211,
287,
428,
3280,
25,
2638,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
3682,
19244,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2437,
881,
1128,
561,
314,
423,
611,
612,
547,
645,
1128,
1451,
30,
685,
47084,
1961,
4083,
2750,
18623,
1766,
68,
8873,
1211,
287,
428,
3280,
25,
2638,
1378,
28961,
13,
25558,
2502,
11125,
13,
785,
14,
6138,
507,
14,
3682,
19244,
1... |
How many white/russian patients had drug withdrawal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE - RUSSIAN" AND diagnoses.long_title = "Drug withdrawal" | [
2437,
867,
2330,
14,
81,
31562,
3871,
550,
2563,
15220,
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,
76,
62,
312,
796,
40567,
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... | [
2437,
867,
2330,
14,
81,
31562,
3871,
550,
2563,
15220,
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,
76,
62,
312,
796,
40567,
13,
... |
What occupation does Mary Louise Lorefice have? | SELECT "Occupation" FROM table_55680 WHERE "Candidate" = 'mary louise lorefice' | [
2061,
13755,
857,
5335,
31774,
15639,
69,
501,
423,
30,
46506,
366,
47658,
341,
1,
16034,
3084,
62,
2816,
37397,
33411,
366,
41572,
20540,
1,
796,
705,
6874,
21081,
786,
24044,
69,
501,
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,
13755,
857,
5335,
31774,
15639,
69,
501,
423,
30,
46506,
366,
47658,
341,
1,
16034,
3084,
62,
2816,
37397,
33411,
366,
41572,
20540,
1,
796,
705,
6874,
21081,
786,
24044,
69,
501,
6
] |
how many patients whose diagnoses short title is acute nephritis nec and lab test fluid is joint fluid? | 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.short_title = "Acute nephritis NEC" AND lab.fluid = "Joint Fluid" | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
14352,
497,
746,
27398,
27576,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3025,
40567,
1790,
3670,
318,
14352,
497,
746,
27398,
27576,
290,
2248,
1332,
11711,
318,
6466,
11711,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
1268... |
Which models can perform flops(@ 200mhz) is 3.2 | SELECT "Model" FROM table_19312 WHERE "GFLOPS(@ 200MHz)" = '3.2' | [
13828,
4981,
460,
1620,
781,
2840,
7,
31,
939,
76,
32179,
8,
318,
513,
13,
17,
46506,
366,
17633,
1,
16034,
3084,
62,
24943,
1065,
33411,
366,
38,
3697,
30737,
7,
31,
939,
25983,
16725,
796,
705,
18,
13,
17,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
4981,
460,
1620,
781,
2840,
7,
31,
939,
76,
32179,
8,
318,
513,
13,
17,
46506,
366,
17633,
1,
16034,
3084,
62,
24943,
1065,
33411,
366,
38,
3697,
30737,
7,
31,
939,
25983,
16725,
796,
705,
18,
13,
17,
6
] |
Which Country has a Score of 69, and a Player of mick soli? | SELECT "Country" FROM table_44099 WHERE "Score" = '69' AND "Player" = 'mick soli' | [
13828,
12946,
468,
257,
15178,
286,
8644,
11,
290,
257,
7853,
286,
285,
624,
1540,
72,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
25644,
2079,
33411,
366,
26595,
1,
796,
705,
3388,
6,
5357,
366,
14140,
1,
796,
705,
76,
624,
1540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12946,
468,
257,
15178,
286,
8644,
11,
290,
257,
7853,
286,
285,
624,
1540,
72,
30,
46506,
366,
33921,
1,
16034,
3084,
62,
25644,
2079,
33411,
366,
26595,
1,
796,
705,
3388,
6,
5357,
366,
14140,
1,
796,
705,
76,
624,
1540,
... |
When the second intermediate period of egypt is the ubaid period in mesopotamia how many early calcolithics are there? | SELECT COUNT(early_chalcolithic) FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Second Intermediate Period of Egypt" | [
2215,
262,
1218,
19898,
2278,
286,
304,
6022,
318,
262,
20967,
1698,
2278,
287,
18842,
43372,
49442,
703,
867,
1903,
2386,
4033,
342,
873,
389,
612,
30,
46506,
327,
28270,
7,
11458,
62,
38009,
4033,
342,
291,
8,
16034,
3084,
62,
1954,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1218,
19898,
2278,
286,
304,
6022,
318,
262,
20967,
1698,
2278,
287,
18842,
43372,
49442,
703,
867,
1903,
2386,
4033,
342,
873,
389,
612,
30,
46506,
327,
28270,
7,
11458,
62,
38009,
4033,
342,
291,
8,
16034,
3084,
62,
1954,... |
Name the losing bonus for 27 | SELECT "Losing bonus" FROM table_72334 WHERE "Tries for" = '27' | [
5376,
262,
6078,
7202,
329,
2681,
46506,
366,
43,
2752,
7202,
1,
16034,
3084,
62,
22,
1954,
2682,
33411,
366,
51,
1678,
329,
1,
796,
705,
1983,
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
] | [
5376,
262,
6078,
7202,
329,
2681,
46506,
366,
43,
2752,
7202,
1,
16034,
3084,
62,
22,
1954,
2682,
33411,
366,
51,
1678,
329,
1,
796,
705,
1983,
6
] |
provide the daily average sao2 of patient 022-78423, during this hospital visit. | SELECT AVG(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-78423' AND patient.hospitaldischargetime IS NULL)) AN... | [
15234,
485,
262,
4445,
2811,
473,
78,
17,
286,
5827,
657,
1828,
12,
37688,
1954,
11,
1141,
428,
4436,
3187,
13,
46506,
35224,
7,
85,
1287,
41007,
291,
13,
82,
5488,
17,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
262,
4445,
2811,
473,
78,
17,
286,
5827,
657,
1828,
12,
37688,
1954,
11,
1141,
428,
4436,
3187,
13,
46506,
35224,
7,
85,
1287,
41007,
291,
13,
82,
5488,
17,
8,
16034,
9204,
41007,
291,
33411,
9204,
41007,
291,
13,
26029,... |
What was the role in the chipmunk adventure? | SELECT role FROM table_name_53 WHERE title = "the chipmunk adventure" | [
2061,
373,
262,
2597,
287,
262,
11594,
76,
2954,
8855,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
4310,
33411,
3670,
796,
366,
1169,
11594,
76,
2954,
8855,
1
] | [
1,
1,
1,
1,
1,
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,
2597,
287,
262,
11594,
76,
2954,
8855,
30,
46506,
2597,
16034,
3084,
62,
3672,
62,
4310,
33411,
3670,
796,
366,
1169,
11594,
76,
2954,
8855,
1
] |
what the last height of patient 9038 during their first hospital encounter. | 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 = 9038 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartevents.item... | [
10919,
262,
938,
6001,
286,
5827,
4101,
2548,
1141,
511,
717,
4436,
8791,
13,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
938,
6001,
286,
5827,
4101,
2548,
1141,
511,
717,
4436,
8791,
13,
46506,
8262,
31534,
13,
2100,
84,
44709,
16034,
8262,
31534,
33411,
8262,
31534,
13,
291,
436,
323,
62,
312,
3268,
357,
46506,
14158,
436,
592,
13,
291,
436... |
What is Pole Position, when Circuit is Adelaide Street Circuit, and when Winning Team is Piccola Scuderia Corse? | SELECT "Pole Position" FROM table_41992 WHERE "Circuit" = 'adelaide street circuit' AND "Winning team" = 'piccola scuderia corse' | [
2061,
318,
29385,
23158,
11,
618,
13588,
318,
27139,
3530,
13588,
11,
290,
618,
40983,
4816,
318,
15085,
4033,
64,
1446,
463,
5142,
2744,
325,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
19,
23847,
33411,
366,
31560,
5013,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29385,
23158,
11,
618,
13588,
318,
27139,
3530,
13588,
11,
290,
618,
40983,
4816,
318,
15085,
4033,
64,
1446,
463,
5142,
2744,
325,
30,
46506,
366,
47,
2305,
23158,
1,
16034,
3084,
62,
19,
23847,
33411,
366,
31560,
5013,
1,... |
had patient 022-140336 had stool output since 08/02/2105. | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-140336')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutp... | [
18108,
5827,
657,
1828,
12,
15187,
29211,
550,
38753,
5072,
1201,
8487,
14,
2999,
14,
17,
13348,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15187,
29211,
550,
38753,
5072,
1201,
8487,
14,
2999,
14,
17,
13348,
13,
46506,
327,
28270,
7,
28104,
1875,
657,
16034,
10337,
22915,
33411,
10337,
22915,
13,
26029,
20850,
31712,
312,
3268,
357,
46506,
5827,
... |
when was the first time patient 78221 was prescribed medicine via po route until 08/2101? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 78221) AND prescriptions.route = 'po' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2101-08' ORDER BY prescriptions.startdate LIMIT 1 | [
12518,
373,
262,
717,
640,
5827,
8699,
26115,
373,
14798,
9007,
2884,
745,
6339,
1566,
8487,
14,
2481,
486,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
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... | [
12518,
373,
262,
717,
640,
5827,
8699,
26115,
373,
14798,
9007,
2884,
745,
6339,
1566,
8487,
14,
2481,
486,
30,
46506,
34092,
13,
9688,
4475,
16034,
34092,
33411,
34092,
13,
18108,
76,
62,
312,
3268,
357,
46506,
25349,
13,
18108,
76,
... |
What is the date of birth of every customer whose status code is 'Good Customer', and count them by a line chart | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' | [
2061,
318,
262,
3128,
286,
4082,
286,
790,
6491,
3025,
3722,
2438,
318,
705,
10248,
22092,
3256,
290,
954,
606,
416,
257,
1627,
8262,
46506,
3128,
62,
1659,
62,
24280,
11,
327,
28270,
7,
4475,
62,
1659,
62,
24280,
8,
16034,
36707,
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
] | [
2061,
318,
262,
3128,
286,
4082,
286,
790,
6491,
3025,
3722,
2438,
318,
705,
10248,
22092,
3256,
290,
954,
606,
416,
257,
1627,
8262,
46506,
3128,
62,
1659,
62,
24280,
11,
327,
28270,
7,
4475,
62,
1659,
62,
24280,
8,
16034,
36707,
3... |
Show the names of authors from college 'Florida' or 'Temple | SELECT Author FROM submission WHERE College = "Florida" OR College = "Temple" | [
15307,
262,
3891,
286,
7035,
422,
4152,
705,
31135,
6,
393,
705,
12966,
1154,
46506,
6434,
16034,
14498,
33411,
5535,
796,
366,
31135,
1,
6375,
5535,
796,
366,
12966,
1154,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
262,
3891,
286,
7035,
422,
4152,
705,
31135,
6,
393,
705,
12966,
1154,
46506,
6434,
16034,
14498,
33411,
5535,
796,
366,
31135,
1,
6375,
5535,
796,
366,
12966,
1154,
1
] |
how many patients died in the same month after having been diagnosed in 2105 with signs and symptoms of sepsis (sirs)? | SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'signs and symptoms of sepsis (sirs)') AS t1 GROUP BY t1.uniquepi... | [
4919,
867,
3871,
3724,
287,
262,
976,
1227,
706,
1719,
587,
14641,
287,
362,
13348,
351,
5895,
290,
7460,
286,
384,
862,
271,
357,
82,
17062,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
312,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
4919,
867,
3871,
3724,
287,
262,
976,
1227,
706,
1719,
587,
14641,
287,
362,
13348,
351,
5895,
290,
7460,
286,
384,
862,
271,
357,
82,
17062,
19427,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
256,
17,
13,
403,
1557,
538,
312,
8,
... |
What year is dayton in class AAAA? | SELECT "School Year" FROM table_19995 WHERE "Class AAAA" = 'Dayton' | [
2061,
614,
318,
1110,
1122,
287,
1398,
25734,
32,
30,
46506,
366,
26130,
6280,
1,
16034,
3084,
62,
18946,
20,
33411,
366,
9487,
25734,
32,
1,
796,
705,
12393,
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
] | [
2061,
614,
318,
1110,
1122,
287,
1398,
25734,
32,
30,
46506,
366,
26130,
6280,
1,
16034,
3084,
62,
18946,
20,
33411,
366,
9487,
25734,
32,
1,
796,
705,
12393,
1122,
6
] |
WHAT IS THE 2012 PERFORMANCE FOR THE MADRID MASTERS? | SELECT 2012 FROM table_name_25 WHERE tournament = "madrid masters" | [
32971,
3180,
3336,
2321,
19878,
13775,
10725,
5222,
7473,
3336,
45878,
49,
2389,
337,
11262,
4877,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
1495,
33411,
7756,
796,
366,
9937,
6058,
18159,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
32971,
3180,
3336,
2321,
19878,
13775,
10725,
5222,
7473,
3336,
45878,
49,
2389,
337,
11262,
4877,
30,
46506,
2321,
16034,
3084,
62,
3672,
62,
1495,
33411,
7756,
796,
366,
9937,
6058,
18159,
1
] |
How much is vinculum when the parentheses are 0.(81)? | SELECT "Vinculum" FROM table_36620 WHERE "Parentheses" = '0.(81)' | [
2437,
881,
318,
410,
1939,
14452,
618,
262,
46672,
389,
657,
12195,
6659,
19427,
46506,
366,
53,
1939,
14452,
1,
16034,
3084,
62,
32459,
1238,
33411,
366,
24546,
39815,
1,
796,
705,
15,
12195,
6659,
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
] | [
2437,
881,
318,
410,
1939,
14452,
618,
262,
46672,
389,
657,
12195,
6659,
19427,
46506,
366,
53,
1939,
14452,
1,
16034,
3084,
62,
32459,
1238,
33411,
366,
24546,
39815,
1,
796,
705,
15,
12195,
6659,
33047
] |
what was the marital status of patient 20251 during the last hospital visit? | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 20251 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | [
10919,
373,
262,
29555,
3722,
286,
5827,
1160,
28072,
1141,
262,
938,
4436,
3187,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1160,
28072,
5357,
5626,
25349,
13,
6381,
354,
2435,
318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29555,
3722,
286,
5827,
1160,
28072,
1141,
262,
938,
4436,
3187,
30,
46506,
25349,
13,
3876,
1287,
62,
13376,
16034,
25349,
33411,
25349,
13,
32796,
62,
312,
796,
1160,
28072,
5357,
5626,
25349,
13,
6381,
354,
2435,
318... |
When (river garry) is the hr name how many builts are there? | SELECT COUNT("Built") FROM table_22643 WHERE "HR name" = '(River Garry)' | [
2215,
357,
38291,
5482,
563,
8,
318,
262,
39436,
1438,
703,
867,
809,
50076,
389,
612,
30,
46506,
327,
28270,
7203,
39582,
4943,
16034,
3084,
62,
1828,
41813,
33411,
366,
17184,
1438,
1,
796,
29513,
42204,
45354,
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
] | [
2215,
357,
38291,
5482,
563,
8,
318,
262,
39436,
1438,
703,
867,
809,
50076,
389,
612,
30,
46506,
327,
28270,
7203,
39582,
4943,
16034,
3084,
62,
1828,
41813,
33411,
366,
17184,
1438,
1,
796,
29513,
42204,
45354,
33047
] |
What is the frequency of 104.3 business radio? | SELECT "Frequency" FROM table_36864 WHERE "Name" = '104.3 business radio' | [
2061,
318,
262,
8373,
286,
14436,
13,
18,
1597,
5243,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
27412,
2414,
33411,
366,
5376,
1,
796,
705,
13464,
13,
18,
1597,
5243,
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,
8373,
286,
14436,
13,
18,
1597,
5243,
30,
46506,
366,
37,
28707,
1,
16034,
3084,
62,
27412,
2414,
33411,
366,
5376,
1,
796,
705,
13464,
13,
18,
1597,
5243,
6
] |
what is the least draw when the place is higher than 4? | SELECT MIN(draw) FROM table_name_62 WHERE place > 4 | [
10919,
318,
262,
1551,
3197,
618,
262,
1295,
318,
2440,
621,
604,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1295,
1875,
604
] | [
1,
1,
1,
1,
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,
1551,
3197,
618,
262,
1295,
318,
2440,
621,
604,
30,
46506,
20625,
7,
19334,
8,
16034,
3084,
62,
3672,
62,
5237,
33411,
1295,
1875,
604
] |
Give me the comparison about meter_100 over the meter_500 . | SELECT meter_500, meter_100 FROM swimmer | [
23318,
502,
262,
7208,
546,
16430,
62,
3064,
625,
262,
16430,
62,
4059,
764,
46506,
16430,
62,
4059,
11,
16430,
62,
3064,
16034,
9422,
647
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
16430,
62,
3064,
625,
262,
16430,
62,
4059,
764,
46506,
16430,
62,
4059,
11,
16430,
62,
3064,
16034,
9422,
647
] |
What is Kirk Triplett's Place? | SELECT place FROM table_name_66 WHERE player = "kirk triplett" | [
2061,
318,
13855,
19817,
926,
338,
8474,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2791,
33411,
2137,
796,
366,
74,
14232,
15055,
926,
1
] | [
1,
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,
13855,
19817,
926,
338,
8474,
30,
46506,
1295,
16034,
3084,
62,
3672,
62,
2791,
33411,
2137,
796,
366,
74,
14232,
15055,
926,
1
] |
What is Branding, when Callsign is 'DXED-TV'? | SELECT "Branding" FROM table_8144 WHERE "Callsign" = 'dxed-tv' | [
2061,
318,
13512,
278,
11,
618,
4889,
12683,
318,
705,
36227,
1961,
12,
6849,
30960,
46506,
366,
9414,
27225,
1,
16034,
3084,
62,
23,
18444,
33411,
366,
34,
5691,
570,
1,
796,
705,
34350,
276,
12,
14981,
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,
13512,
278,
11,
618,
4889,
12683,
318,
705,
36227,
1961,
12,
6849,
30960,
46506,
366,
9414,
27225,
1,
16034,
3084,
62,
23,
18444,
33411,
366,
34,
5691,
570,
1,
796,
705,
34350,
276,
12,
14981,
6
] |
Give me the comparison about the sum of meter_100 over the Nationality , and group by attribute Nationality. | SELECT Nationality, SUM(meter_100) FROM swimmer GROUP BY Nationality | [
23318,
502,
262,
7208,
546,
262,
2160,
286,
16430,
62,
3064,
625,
262,
2351,
414,
837,
290,
1448,
416,
11688,
2351,
414,
13,
46506,
2351,
414,
11,
35683,
7,
27231,
62,
3064,
8,
16034,
9422,
647,
44441,
11050,
2351,
414
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23318,
502,
262,
7208,
546,
262,
2160,
286,
16430,
62,
3064,
625,
262,
2351,
414,
837,
290,
1448,
416,
11688,
2351,
414,
13,
46506,
2351,
414,
11,
35683,
7,
27231,
62,
3064,
8,
16034,
9422,
647,
44441,
11050,
2351,
414
] |
calculate the duration of stay during patient 022-3289's last stay in the intensive care unit. | SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-3289') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | [
9948,
3129,
378,
262,
9478,
286,
2652,
1141,
5827,
657,
1828,
12,
18,
27693,
338,
938,
2652,
287,
262,
18590,
1337,
4326,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9478,
286,
2652,
1141,
5827,
657,
1828,
12,
18,
27693,
338,
938,
2652,
287,
262,
18590,
1337,
4326,
13,
46506,
19269,
9792,
12789,
10786,
4,
73,
3256,
5827,
13,
20850,
6381,
354,
7641,
524,
8,
532,
19269,
9792,
... |
What is the most recent year with a position of 3rd? | SELECT MAX("Year") FROM table_8782 WHERE "Position" = '3rd' | [
2061,
318,
262,
749,
2274,
614,
351,
257,
2292,
286,
513,
4372,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
23,
46519,
33411,
366,
26545,
1,
796,
705,
18,
4372,
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,
318,
262,
749,
2274,
614,
351,
257,
2292,
286,
513,
4372,
30,
46506,
25882,
7203,
17688,
4943,
16034,
3084,
62,
23,
46519,
33411,
366,
26545,
1,
796,
705,
18,
4372,
6
] |
Sum - Number of Answer - Android. | SELECT COUNT(P.ViewCount) FROM Posts AS P WHERE NOT P.Tags LIKE '%android%' | [
13065,
532,
7913,
286,
23998,
532,
5565,
13,
46506,
327,
28270,
7,
47,
13,
7680,
12332,
8,
16034,
12043,
7054,
350,
33411,
5626,
350,
13,
36142,
34178,
705,
4,
19411,
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
] | [
13065,
532,
7913,
286,
23998,
532,
5565,
13,
46506,
327,
28270,
7,
47,
13,
7680,
12332,
8,
16034,
12043,
7054,
350,
33411,
5626,
350,
13,
36142,
34178,
705,
4,
19411,
4,
6
] |
evidence of active, clinically significant and unstable gastrointestinal, renal, hepatic, endocrine or cardiovascular system disease. | SELECT * FROM table_train_131 WHERE gastrointestinal_disease = 1 OR renal_disease = 1 OR hepatic_disease = 1 OR endocrine_disease = 1 OR cardiovascular_disease = 1 | [
46817,
286,
4075,
11,
36688,
2383,
290,
21354,
40887,
11,
44375,
11,
47585,
1512,
11,
886,
38658,
393,
21134,
1080,
4369,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
22042,
33411,
40887,
62,
67,
786,
589,
796,
352,
6375,
44375,
62,
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... | [
46817,
286,
4075,
11,
36688,
2383,
290,
21354,
40887,
11,
44375,
11,
47585,
1512,
11,
886,
38658,
393,
21134,
1080,
4369,
13,
46506,
1635,
16034,
3084,
62,
27432,
62,
22042,
33411,
40887,
62,
67,
786,
589,
796,
352,
6375,
44375,
62,
6... |
What was the rainfall by volume in Huetar Atlantico where the rainfall depth (mm/year) was 3527? | SELECT "Rainfall by volume (km 3 /year)" FROM table_28221 WHERE "Rainfall by depth (mm/year)" = '3527' | [
2061,
373,
262,
25807,
416,
6115,
287,
11256,
316,
283,
5234,
415,
3713,
810,
262,
25807,
6795,
357,
3020,
14,
1941,
8,
373,
3439,
1983,
30,
46506,
366,
31443,
7207,
416,
6115,
357,
13276,
513,
1220,
1941,
16725,
16034,
3084,
62,
2078... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25807,
416,
6115,
287,
11256,
316,
283,
5234,
415,
3713,
810,
262,
25807,
6795,
357,
3020,
14,
1941,
8,
373,
3439,
1983,
30,
46506,
366,
31443,
7207,
416,
6115,
357,
13276,
513,
1220,
1941,
16725,
16034,
3084,
62,
2078... |
What is the lowest number of losses for a team with more than 0 wins? | SELECT MIN("Losses") FROM table_39497 WHERE "Wins" > '0' | [
2061,
318,
262,
9016,
1271,
286,
9089,
329,
257,
1074,
351,
517,
621,
657,
7864,
30,
46506,
20625,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
2670,
38073,
33411,
366,
54,
1040,
1,
1875,
705,
15,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
9016,
1271,
286,
9089,
329,
257,
1074,
351,
517,
621,
657,
7864,
30,
46506,
20625,
7203,
43,
793,
274,
4943,
16034,
3084,
62,
2670,
38073,
33411,
366,
54,
1040,
1,
1875,
705,
15,
6
] |
What date did Jamie McMurray win the race? | SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray" | [
2061,
3128,
750,
17826,
15359,
333,
2433,
1592,
262,
3234,
30,
46506,
3128,
16034,
3084,
62,
23188,
20943,
1828,
62,
16,
33411,
4639,
796,
366,
48337,
15359,
333,
2433,
1
] | [
1,
1,
1,
1,
1,
1,
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,
17826,
15359,
333,
2433,
1592,
262,
3234,
30,
46506,
3128,
16034,
3084,
62,
23188,
20943,
1828,
62,
16,
33411,
4639,
796,
366,
48337,
15359,
333,
2433,
1
] |
What was Mu's title? | SELECT "Title" FROM table_45178 WHERE "Name" = 'mu' | [
2061,
373,
8252,
338,
3670,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2231,
23188,
33411,
366,
5376,
1,
796,
705,
30300,
6
] | [
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,
8252,
338,
3670,
30,
46506,
366,
19160,
1,
16034,
3084,
62,
2231,
23188,
33411,
366,
5376,
1,
796,
705,
30300,
6
] |
how many hospital visits have patient 002-56853 done since 2 years ago? | SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '002-56853' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-2 year') | [
4919,
867,
4436,
11864,
423,
5827,
3571,
17,
12,
49211,
4310,
1760,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
13948,
10057,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
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... | [
4919,
867,
4436,
11864,
423,
5827,
3571,
17,
12,
49211,
4310,
1760,
1201,
362,
812,
2084,
30,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
5827,
13,
26029,
13948,
10057,
31712,
312,
8,
16034,
5827,
33411,
5827,
13,
403,
1557,
538,
312,... |
besides david aaron kessler , what other person was in office under bill clinton ? | SELECT "name" FROM table_203_559 WHERE "name" <> 'david aaron kessler, m.d' AND "president served under" = 'bill clinton' | [
65,
11788,
21970,
257,
8045,
479,
33730,
837,
644,
584,
1048,
373,
287,
2607,
739,
2855,
537,
2371,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
38605,
33411,
366,
3672,
1,
1279,
29,
705,
67,
8490,
257,
8045,
479,
33730,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
65,
11788,
21970,
257,
8045,
479,
33730,
837,
644,
584,
1048,
373,
287,
2607,
739,
2855,
537,
2371,
5633,
46506,
366,
3672,
1,
16034,
3084,
62,
22416,
62,
38605,
33411,
366,
3672,
1,
1279,
29,
705,
67,
8490,
257,
8045,
479,
33730,
1... |
Can you tell me the lowest Wins that has the Ballarat FL of daylesford, and the Byes smaller than 1? | SELECT MIN(wins) FROM table_name_71 WHERE ballarat_fl = "daylesford" AND byes < 1 | [
6090,
345,
1560,
502,
262,
9016,
24423,
326,
468,
262,
6932,
34174,
9977,
286,
1110,
829,
3841,
11,
290,
262,
2750,
274,
4833,
621,
352,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
2613,
34174,
62,
2704... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
6090,
345,
1560,
502,
262,
9016,
24423,
326,
468,
262,
6932,
34174,
9977,
286,
1110,
829,
3841,
11,
290,
262,
2750,
274,
4833,
621,
352,
30,
46506,
20625,
7,
86,
1040,
8,
16034,
3084,
62,
3672,
62,
4869,
33411,
2613,
34174,
62,
2704... |
What were the investment earnings in the year that State and Federal taxes were $13,999,169? | SELECT "Investment Earnings" FROM table_51365 WHERE "State & Federal" = '13,999,169' | [
2061,
547,
262,
4896,
12042,
287,
262,
614,
326,
1812,
290,
5618,
5704,
547,
720,
1485,
11,
17032,
11,
22172,
30,
46506,
366,
19070,
434,
22535,
654,
1,
16034,
3084,
62,
48645,
2996,
33411,
366,
9012,
1222,
5618,
1,
796,
705,
1485,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
547,
262,
4896,
12042,
287,
262,
614,
326,
1812,
290,
5618,
5704,
547,
720,
1485,
11,
17032,
11,
22172,
30,
46506,
366,
19070,
434,
22535,
654,
1,
16034,
3084,
62,
48645,
2996,
33411,
366,
9012,
1222,
5618,
1,
796,
705,
1485,
... |
How many picks had a round smaller than 6 and an overall bigger than 153? | SELECT SUM("Pick") FROM table_45886 WHERE "Round" < '6' AND "Overall" > '153' | [
2437,
867,
11103,
550,
257,
2835,
4833,
621,
718,
290,
281,
4045,
5749,
621,
24652,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
2231,
44980,
33411,
366,
22685,
1,
1279,
705,
21,
6,
5357,
366,
16350,
1,
1875,
705,
21395,
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
] | [
2437,
867,
11103,
550,
257,
2835,
4833,
621,
718,
290,
281,
4045,
5749,
621,
24652,
30,
46506,
35683,
7203,
31686,
4943,
16034,
3084,
62,
2231,
44980,
33411,
366,
22685,
1,
1279,
705,
21,
6,
5357,
366,
16350,
1,
1875,
705,
21395,
6
] |
What is the 2004 tournament that has a Q1 of 2011? | SELECT 2004 FROM table_name_10 WHERE 2011 = "q1" | [
2061,
318,
262,
5472,
7756,
326,
468,
257,
1195,
16,
286,
2813,
30,
46506,
5472,
16034,
3084,
62,
3672,
62,
940,
33411,
2813,
796,
366,
80,
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
] | [
2061,
318,
262,
5472,
7756,
326,
468,
257,
1195,
16,
286,
2813,
30,
46506,
5472,
16034,
3084,
62,
3672,
62,
940,
33411,
2813,
796,
366,
80,
16,
1
] |
Which Term end has a Political Party of balli komb tar, and a Born-Died of 1905 1972? | SELECT "Term end" FROM table_9446 WHERE "Political Party" = 'balli kombëtar' AND "Born-Died" = '1905–1972' | [
13828,
35118,
886,
468,
257,
14611,
3615,
286,
2613,
72,
479,
2381,
13422,
11,
290,
257,
18889,
12,
35,
798,
286,
37166,
16101,
30,
46506,
366,
40596,
886,
1,
16034,
3084,
62,
24,
27260,
33411,
366,
35443,
3615,
1,
796,
705,
1894,
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
] | [
13828,
35118,
886,
468,
257,
14611,
3615,
286,
2613,
72,
479,
2381,
13422,
11,
290,
257,
18889,
12,
35,
798,
286,
37166,
16101,
30,
46506,
366,
40596,
886,
1,
16034,
3084,
62,
24,
27260,
33411,
366,
35443,
3615,
1,
796,
705,
1894,
7... |
Display the serial numbers for the players who play at the center. | SELECT no FROM table_23670057_4 WHERE position = "Center" | [
23114,
262,
11389,
3146,
329,
262,
1938,
508,
711,
379,
262,
3641,
13,
46506,
645,
16034,
3084,
62,
1954,
3134,
405,
3553,
62,
19,
33411,
2292,
796,
366,
23656,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
23114,
262,
11389,
3146,
329,
262,
1938,
508,
711,
379,
262,
3641,
13,
46506,
645,
16034,
3084,
62,
1954,
3134,
405,
3553,
62,
19,
33411,
2292,
796,
366,
23656,
1
] |
When was the last year when Katharine Hepburn won? | SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn" | [
2215,
373,
262,
938,
614,
618,
18341,
34569,
32308,
10899,
1839,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
14549,
796,
366,
74,
776,
34569,
47585,
10899,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2215,
373,
262,
938,
614,
618,
18341,
34569,
32308,
10899,
1839,
30,
46506,
25882,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
1238,
33411,
14549,
796,
366,
74,
776,
34569,
47585,
10899,
1
] |
Return a bar chart about the distribution of Sex and the sum of Height , and group by attribute Sex, and could you display from low to high by the y axis? | SELECT Sex, SUM(Height) FROM people GROUP BY Sex ORDER BY SUM(Height) | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
290,
714,
345,
3359,
422,
1877,
284,
1029,
416,
262,
331,
16488,
30,
46506,
14419,
11,
35683,
7,
23106,
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
] | [
13615,
257,
2318,
8262,
546,
262,
6082,
286,
14419,
290,
262,
2160,
286,
27280,
837,
290,
1448,
416,
11688,
14419,
11,
290,
714,
345,
3359,
422,
1877,
284,
1029,
416,
262,
331,
16488,
30,
46506,
14419,
11,
35683,
7,
23106,
8,
16034,
... |
Show different publishers together with the number of publications they have. | SELECT publisher, COUNT(*) FROM publication GROUP BY publisher | [
15307,
1180,
17604,
1978,
351,
262,
1271,
286,
16125,
484,
423,
13,
46506,
9991,
11,
327,
28270,
7,
28104,
16034,
9207,
44441,
11050,
9991
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
15307,
1180,
17604,
1978,
351,
262,
1271,
286,
16125,
484,
423,
13,
46506,
9991,
11,
327,
28270,
7,
28104,
16034,
9207,
44441,
11050,
9991
] |
Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? | SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24" | [
13828,
6280,
318,
262,
9016,
530,
326,
468,
281,
13548,
5807,
286,
1317,
385,
294,
282,
9038,
11,
290,
257,
3862,
286,
2242,
25,
2078,
25,
1731,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4304,
33411,
16076,
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
] | [
13828,
6280,
318,
262,
9016,
530,
326,
468,
281,
13548,
5807,
286,
1317,
385,
294,
282,
9038,
11,
290,
257,
3862,
286,
2242,
25,
2078,
25,
1731,
30,
46506,
20625,
7,
1941,
8,
16034,
3084,
62,
3672,
62,
4304,
33411,
16076,
796,
366,
... |
Tags With Most number of unanswered questions in the descending order. The below query will find the tags and corresponding count of unanswered questions. The tags will be ordered in the descending order i.e., the tag with most number of unanswered questions will be at the top, followed by second next tag etc. | SELECT t.TagName, COUNT(q.Id) AS countofUnAnsweredQuestions FROM Posts AS q INNER JOIN PostTags AS pt ON pt.PostId = q.Id INNER JOIN Tags AS t ON pt.TagId = t.Id WHERE (SELECT COUNT(*) FROM Posts AS a WHERE a.ParentId = q.Id AND a.Score > 0) = 0 AND q.CommunityOwnedDate IS NULL AND q.ClosedDate IS NULL AND q.ParentId I... | [
36142,
2080,
4042,
1271,
286,
34001,
2683,
287,
262,
31491,
1502,
13,
383,
2174,
12405,
481,
1064,
262,
15940,
290,
11188,
954,
286,
34001,
2683,
13,
383,
15940,
481,
307,
6149,
287,
262,
31491,
1502,
1312,
13,
68,
1539,
262,
7621,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36142,
2080,
4042,
1271,
286,
34001,
2683,
287,
262,
31491,
1502,
13,
383,
2174,
12405,
481,
1064,
262,
15940,
290,
11188,
954,
286,
34001,
2683,
13,
383,
15940,
481,
307,
6149,
287,
262,
31491,
1502,
1312,
13,
68,
1539,
262,
7621,
35... |
What is the id and last name of the driver with the longest laptime? | SELECT T1.driverid, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid ORDER BY T2.milliseconds DESC LIMIT 1 | [
2061,
318,
262,
4686,
290,
938,
1438,
286,
262,
4639,
351,
262,
14069,
10882,
524,
30,
46506,
309,
16,
13,
26230,
312,
11,
309,
16,
13,
82,
700,
480,
16034,
6643,
7054,
309,
16,
32357,
1268,
10882,
999,
7054,
309,
17,
6177,
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,
1... | [
2061,
318,
262,
4686,
290,
938,
1438,
286,
262,
4639,
351,
262,
14069,
10882,
524,
30,
46506,
309,
16,
13,
26230,
312,
11,
309,
16,
13,
82,
700,
480,
16034,
6643,
7054,
309,
16,
32357,
1268,
10882,
999,
7054,
309,
17,
6177,
309,
1... |
Show the different headquarters and number of companies at each headquarter, and I want to show y axis in descending order. | SELECT Headquarters, COUNT(*) FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC | [
15307,
262,
1180,
10043,
290,
1271,
286,
2706,
379,
1123,
1182,
24385,
11,
290,
314,
765,
284,
905,
331,
16488,
287,
31491,
1502,
13,
46506,
32193,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
32193,
38678,
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
] | [
15307,
262,
1180,
10043,
290,
1271,
286,
2706,
379,
1123,
1182,
24385,
11,
290,
314,
765,
284,
905,
331,
16488,
287,
31491,
1502,
13,
46506,
32193,
11,
327,
28270,
7,
28104,
16034,
1664,
44441,
11050,
32193,
38678,
11050,
327,
28270,
7,... |
How many weeks was France at #1? | SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE country = "France" | [
2437,
867,
2745,
373,
4881,
379,
1303,
16,
30,
46506,
25882,
7,
732,
2573,
62,
265,
834,
17618,
16,
8,
16034,
3084,
62,
1983,
2598,
1065,
940,
62,
1065,
33411,
1499,
796,
366,
28572,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2745,
373,
4881,
379,
1303,
16,
30,
46506,
25882,
7,
732,
2573,
62,
265,
834,
17618,
16,
8,
16034,
3084,
62,
1983,
2598,
1065,
940,
62,
1065,
33411,
1499,
796,
366,
28572,
1
] |
What series number is the episode with production code bdf101? | SELECT MAX("Series #") FROM table_30222 WHERE "Production code" = 'BDF101' | [
2061,
2168,
1271,
318,
262,
4471,
351,
3227,
2438,
275,
7568,
8784,
30,
46506,
25882,
7203,
27996,
1303,
4943,
16034,
3084,
62,
1270,
23148,
33411,
366,
35027,
2438,
1,
796,
705,
33,
8068,
8784,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
2168,
1271,
318,
262,
4471,
351,
3227,
2438,
275,
7568,
8784,
30,
46506,
25882,
7203,
27996,
1303,
4943,
16034,
3084,
62,
1270,
23148,
33411,
366,
35027,
2438,
1,
796,
705,
33,
8068,
8784,
6
] |
what were the top five most frequently performed lab tests among patients aged 40s since 3 years ago? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t1.itemid FROM (SELECT labevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 40 AND 49) AND DATETIME(labevents.chartti... | [
10919,
547,
262,
1353,
1936,
749,
6777,
6157,
2248,
5254,
1871,
3871,
9722,
2319,
82,
1201,
513,
812,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
547,
262,
1353,
1936,
749,
6777,
6157,
2248,
5254,
1871,
3871,
9722,
2319,
82,
1201,
513,
812,
2084,
30,
46506,
288,
62,
23912,
23814,
13,
18242,
16034,
288,
62,
23912,
23814,
33411,
288,
62,
23912,
23814,
13,
9186,
312,
3268,
... |
What method did the match at Club Med Sandpiper have? | SELECT method FROM table_name_88 WHERE venue = "club med sandpiper" | [
2061,
2446,
750,
262,
2872,
379,
6289,
2019,
3837,
79,
9346,
423,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3459,
33411,
14359,
796,
366,
18664,
1117,
6450,
79,
9346,
1
] | [
1,
1,
1,
1,
1,
1,
1,
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,
2446,
750,
262,
2872,
379,
6289,
2019,
3837,
79,
9346,
423,
30,
46506,
2446,
16034,
3084,
62,
3672,
62,
3459,
33411,
14359,
796,
366,
18664,
1117,
6450,
79,
9346,
1
] |
What was Team Dnepr's position in 2006? | SELECT position_in_2006 FROM table_name_77 WHERE team = "dnepr" | [
2061,
373,
4816,
360,
77,
538,
81,
338,
2292,
287,
4793,
30,
46506,
2292,
62,
259,
62,
13330,
16034,
3084,
62,
3672,
62,
3324,
33411,
1074,
796,
366,
32656,
538,
81,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
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,
4816,
360,
77,
538,
81,
338,
2292,
287,
4793,
30,
46506,
2292,
62,
259,
62,
13330,
16034,
3084,
62,
3672,
62,
3324,
33411,
1074,
796,
366,
32656,
538,
81,
1
] |
Which school is in Raleigh, NC? | SELECT school FROM table_name_23 WHERE hometown = "raleigh, nc" | [
13828,
1524,
318,
287,
34520,
11,
8823,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
1954,
33411,
20994,
796,
366,
81,
30729,
11,
299,
66,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
13828,
1524,
318,
287,
34520,
11,
8823,
30,
46506,
1524,
16034,
3084,
62,
3672,
62,
1954,
33411,
20994,
796,
366,
81,
30729,
11,
299,
66,
1
] |
how many episodes had their original airdate in february ? | SELECT COUNT("episode number") FROM table_201_24 WHERE "original airdate" = 2 | [
4919,
867,
8640,
550,
511,
2656,
257,
1447,
378,
287,
730,
65,
3728,
5633,
46506,
327,
28270,
7203,
38668,
1271,
4943,
16034,
3084,
62,
1264,
62,
1731,
33411,
366,
14986,
257,
1447,
378,
1,
796,
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,
1,
1
] | [
4919,
867,
8640,
550,
511,
2656,
257,
1447,
378,
287,
730,
65,
3728,
5633,
46506,
327,
28270,
7203,
38668,
1271,
4943,
16034,
3084,
62,
1264,
62,
1731,
33411,
366,
14986,
257,
1447,
378,
1,
796,
362
] |
What is the Year of submission of the Film The Art of Crying? | SELECT MIN("Year") FROM table_46109 WHERE "English title" = 'the art of crying' | [
2061,
318,
262,
6280,
286,
14498,
286,
262,
13741,
383,
3683,
286,
8152,
278,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
3510,
14454,
33411,
366,
15823,
3670,
1,
796,
705,
1169,
1242,
286,
13774,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
6280,
286,
14498,
286,
262,
13741,
383,
3683,
286,
8152,
278,
30,
46506,
20625,
7203,
17688,
4943,
16034,
3084,
62,
3510,
14454,
33411,
366,
15823,
3670,
1,
796,
705,
1169,
1242,
286,
13774,
6
] |
What is NK Rijeka's away score? | SELECT "Away" FROM table_5969 WHERE "Club" = 'nk rijeka' | [
2061,
318,
46465,
371,
2926,
38001,
338,
1497,
4776,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
3270,
3388,
33411,
366,
42350,
1,
796,
705,
77,
74,
374,
2926,
38001,
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,
318,
46465,
371,
2926,
38001,
338,
1497,
4776,
30,
46506,
366,
32,
1014,
1,
16034,
3084,
62,
3270,
3388,
33411,
366,
42350,
1,
796,
705,
77,
74,
374,
2926,
38001,
6
] |
Find all the songs produced by artists with first name 'Marianne'. | SELECT T3.title FROM performance AS T1 JOIN band AS T2 ON T1.bandmate = T2.id JOIN songs AS T3 ON T3.songid = T1.songid WHERE T2.firstname = "Marianne" | [
16742,
477,
262,
7259,
4635,
416,
7912,
351,
717,
1438,
705,
44,
3699,
710,
4458,
46506,
309,
18,
13,
7839,
16034,
2854,
7054,
309,
16,
32357,
1268,
4097,
7054,
309,
17,
6177,
309,
16,
13,
3903,
9830,
796,
309,
17,
13,
312,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
16742,
477,
262,
7259,
4635,
416,
7912,
351,
717,
1438,
705,
44,
3699,
710,
4458,
46506,
309,
18,
13,
7839,
16034,
2854,
7054,
309,
16,
32357,
1268,
4097,
7054,
309,
17,
6177,
309,
16,
13,
3903,
9830,
796,
309,
17,
13,
312,
32357,
... |
what is the number of communities established after 1900 ? | SELECT COUNT("community") FROM table_204_251 WHERE "date established" > 1900 | [
10919,
318,
262,
1271,
286,
5348,
4920,
706,
21489,
5633,
46506,
327,
28270,
7203,
28158,
4943,
16034,
3084,
62,
18638,
62,
28072,
33411,
366,
4475,
4920,
1,
1875,
21489
] | [
1,
1,
1,
1,
1,
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,
5348,
4920,
706,
21489,
5633,
46506,
327,
28270,
7203,
28158,
4943,
16034,
3084,
62,
18638,
62,
28072,
33411,
366,
4475,
4920,
1,
1875,
21489
] |
Tell me the date for detroit and game more than 3 | SELECT "Date" FROM table_57730 WHERE "Team" = 'detroit' AND "Game" > '3' | [
24446,
502,
262,
3128,
329,
1062,
7775,
290,
983,
517,
621,
513,
46506,
366,
10430,
1,
16034,
3084,
62,
49447,
1270,
33411,
366,
15592,
1,
796,
705,
15255,
7775,
6,
5357,
366,
8777,
1,
1875,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
3128,
329,
1062,
7775,
290,
983,
517,
621,
513,
46506,
366,
10430,
1,
16034,
3084,
62,
49447,
1270,
33411,
366,
15592,
1,
796,
705,
15255,
7775,
6,
5357,
366,
8777,
1,
1875,
705,
18,
6
] |
Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise a kg z, yves jongen, and a Length of 3:08? | SELECT "Producer(s)" FROM table_47478 WHERE "Track" < '8' AND "Songwriter(s)" = 'hadise açıkgöz, yves jongen' AND "Length" = '3:08' | [
13828,
30436,
7,
82,
8,
468,
257,
17762,
4833,
621,
807,
11,
290,
257,
10940,
16002,
7,
82,
8,
286,
550,
786,
257,
14211,
1976,
11,
331,
1158,
474,
506,
268,
11,
290,
257,
22313,
286,
513,
25,
2919,
30,
46506,
366,
11547,
2189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30436,
7,
82,
8,
468,
257,
17762,
4833,
621,
807,
11,
290,
257,
10940,
16002,
7,
82,
8,
286,
550,
786,
257,
14211,
1976,
11,
331,
1158,
474,
506,
268,
11,
290,
257,
22313,
286,
513,
25,
2919,
30,
46506,
366,
11547,
2189,
... |
What is the pick # for player david grannis? | SELECT MAX("Pick #") FROM table_24577 WHERE "Player" = 'David Grannis' | [
2061,
318,
262,
2298,
1303,
329,
2137,
21970,
1036,
45017,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
22995,
3324,
33411,
366,
14140,
1,
796,
705,
11006,
1902,
45017,
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,
318,
262,
2298,
1303,
329,
2137,
21970,
1036,
45017,
30,
46506,
25882,
7203,
31686,
1303,
4943,
16034,
3084,
62,
22995,
3324,
33411,
366,
14140,
1,
796,
705,
11006,
1902,
45017,
6
] |
tell me the total dose of phenytoin sodium patient 15209 has been prescribed on the current hospital encounter? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15209 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'phenytoin sodium' | [
33331,
502,
262,
2472,
10742,
286,
6566,
88,
1462,
259,
21072,
5827,
1315,
22567,
468,
587,
14798,
319,
262,
1459,
4436,
8791,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
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... | [
33331,
502,
262,
2472,
10742,
286,
6566,
88,
1462,
259,
21072,
5827,
1315,
22567,
468,
587,
14798,
319,
262,
1459,
4436,
8791,
30,
46506,
35683,
7,
18302,
24370,
13,
34436,
62,
2100,
62,
40914,
8,
16034,
34092,
33411,
34092,
13,
18108,
... |
List all the customers in increasing order of IDs. | SELECT customer_id, customer_name FROM customers ORDER BY customer_id | [
8053,
477,
262,
4297,
287,
3649,
1502,
286,
32373,
13,
46506,
6491,
62,
312,
11,
6491,
62,
3672,
16034,
4297,
38678,
11050,
6491,
62,
312
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8053,
477,
262,
4297,
287,
3649,
1502,
286,
32373,
13,
46506,
6491,
62,
312,
11,
6491,
62,
3672,
16034,
4297,
38678,
11050,
6491,
62,
312
] |
Who directed # (season #) is 1 ( 2 )? | SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = "1 ( 2 )" | [
8241,
7924,
1303,
357,
6230,
1303,
8,
318,
352,
357,
362,
1267,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
2078,
21536,
34741,
62,
16,
33411,
4808,
17618,
834,
6230,
834,
17618,
62,
796,
366,
16,
357,
362,
1267,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
8241,
7924,
1303,
357,
6230,
1303,
8,
318,
352,
357,
362,
1267,
30,
46506,
7924,
62,
1525,
16034,
3084,
62,
2078,
21536,
34741,
62,
16,
33411,
4808,
17618,
834,
6230,
834,
17618,
62,
796,
366,
16,
357,
362,
1267,
1
] |
What is the away team of the game with tie number 31? | SELECT "Away team" FROM table_57521 WHERE "Tie no" = '31' | [
2061,
318,
262,
1497,
1074,
286,
262,
983,
351,
9839,
1271,
3261,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
36189,
2481,
33411,
366,
51,
494,
645,
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
] | [
2061,
318,
262,
1497,
1074,
286,
262,
983,
351,
9839,
1271,
3261,
30,
46506,
366,
32,
1014,
1074,
1,
16034,
3084,
62,
36189,
2481,
33411,
366,
51,
494,
645,
1,
796,
705,
3132,
6
] |
Which Finish has a Start of 15, and a Team of bahari? | SELECT "Finish" FROM table_6240 WHERE "Start" = '15' AND "Team" = 'bahari' | [
13828,
32585,
468,
257,
7253,
286,
1315,
11,
290,
257,
4816,
286,
275,
993,
2743,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
21,
16102,
33411,
366,
10434,
1,
796,
705,
1314,
6,
5357,
366,
15592,
1,
796,
705,
47041,
2743,
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
] | [
13828,
32585,
468,
257,
7253,
286,
1315,
11,
290,
257,
4816,
286,
275,
993,
2743,
30,
46506,
366,
48658,
1,
16034,
3084,
62,
21,
16102,
33411,
366,
10434,
1,
796,
705,
1314,
6,
5357,
366,
15592,
1,
796,
705,
47041,
2743,
6
] |
What is the average day in December of the game with a 8-2-3 record? | SELECT AVG(december) FROM table_name_25 WHERE record = "8-2-3" | [
2061,
318,
262,
2811,
1110,
287,
3426,
286,
262,
983,
351,
257,
807,
12,
17,
12,
18,
1700,
30,
46506,
35224,
7,
2934,
3273,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1700,
796,
366,
23,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
2811,
1110,
287,
3426,
286,
262,
983,
351,
257,
807,
12,
17,
12,
18,
1700,
30,
46506,
35224,
7,
2934,
3273,
8,
16034,
3084,
62,
3672,
62,
1495,
33411,
1700,
796,
366,
23,
12,
17,
12,
18,
1
] |
What is the lowest number of FA cups of player Andy Milner, who has less than 4 FA trophies and more than 0 league cups? | SELECT MIN("FA Cup") FROM table_7391 WHERE "FA Trophy" < '4' AND "League Cup" > '0' AND "Player" = 'andy milner' | [
2061,
318,
262,
9016,
1271,
286,
9677,
14180,
286,
2137,
12382,
4460,
1008,
11,
508,
468,
1342,
621,
604,
9677,
21732,
290,
517,
621,
657,
4652,
14180,
30,
46506,
20625,
7203,
7708,
5454,
4943,
16034,
3084,
62,
22,
37710,
33411,
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,
1... | [
2061,
318,
262,
9016,
1271,
286,
9677,
14180,
286,
2137,
12382,
4460,
1008,
11,
508,
468,
1342,
621,
604,
9677,
21732,
290,
517,
621,
657,
4652,
14180,
30,
46506,
20625,
7203,
7708,
5454,
4943,
16034,
3084,
62,
22,
37710,
33411,
366,
... |
select * from Posts where Id = 8708216;. | SELECT * FROM Posts WHERE Id = 8708216 | [
19738,
1635,
422,
12043,
810,
5121,
796,
807,
2154,
6469,
1433,
26,
13,
46506,
1635,
16034,
12043,
33411,
5121,
796,
807,
2154,
6469,
1433
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
19738,
1635,
422,
12043,
810,
5121,
796,
807,
2154,
6469,
1433,
26,
13,
46506,
1635,
16034,
12043,
33411,
5121,
796,
807,
2154,
6469,
1433
] |
Visualize a bar chart about the distribution of ACC_Road and the average of School_ID , and group by attribute ACC_Road, I want to sort in desc by the y axis. | SELECT ACC_Road, AVG(School_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(School_ID) DESC | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2811,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
314,
765,
284,
3297,
287,
1715,
416,
262,
331,
16488,
13,
46506,
15859,
62,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
36259,
1096,
257,
2318,
8262,
546,
262,
6082,
286,
15859,
62,
29197,
290,
262,
2811,
286,
3961,
62,
2389,
837,
290,
1448,
416,
11688,
15859,
62,
29197,
11,
314,
765,
284,
3297,
287,
1715,
416,
262,
331,
16488,
13,
46506,
15859,
62,
... |
give me the number of patients whose diagnosis short title is obstructive sleep apnea and drug route is pr. | 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 = "Obstructive sleep apnea" AND prescriptions.route = "PR" | [
26535,
502,
262,
1271,
286,
3871,
3025,
13669,
1790,
3670,
318,
26520,
425,
3993,
2471,
39718,
290,
2563,
6339,
318,
778,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13669,
1790,
3670,
318,
26520,
425,
3993,
2471,
39718,
290,
2563,
6339,
318,
778,
13,
46506,
327,
28270,
7,
35,
8808,
1268,
4177,
16728,
13,
32796,
62,
312,
8,
16034,
16728,
3268,
21479,
32357,
... |
what is age and religion of subject id 65652? | SELECT demographic.age, demographic.religion FROM demographic WHERE demographic.subject_id = "65652" | [
10919,
318,
2479,
290,
5737,
286,
2426,
4686,
6135,
43193,
30,
46506,
16728,
13,
496,
11,
16728,
13,
2411,
17035,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
43193,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2479,
290,
5737,
286,
2426,
4686,
6135,
43193,
30,
46506,
16728,
13,
496,
11,
16728,
13,
2411,
17035,
16034,
16728,
33411,
16728,
13,
32796,
62,
312,
796,
366,
2996,
43193,
1
] |
at least 1 of the following: a ) capillary glycated hemoglobin 5.7 _ 6.4 % , b ) fasting capillary glucose 100 _ 125 mg / dl, or c ) capillary glycated hemoglobin < 5.7 % and borderline fasting capillary glucose level 95 _ 99 mg / dl and a subsequent fasting venous plasma glucose 100 _ 125 mg / dl | SELECT * FROM table_train_244 WHERE (CASE WHEN capillary_glycated_hemoglobin >= 5.7 AND capillary_glycated_hemoglobin <= 6.4 THEN 1 ELSE 0 END + CASE WHEN fasting_capillary_glucose >= 100 AND fasting_capillary_glucose <= 125 THEN 1 ELSE 0 END + CASE WHEN capillary_glycated_hemoglobin < 5.7 AND borderline_fasting_capill... | [
265,
1551,
352,
286,
262,
1708,
25,
257,
1267,
1451,
15856,
40232,
515,
16869,
49835,
642,
13,
22,
4808,
718,
13,
19,
4064,
837,
275,
1267,
24845,
1451,
15856,
15701,
1802,
4808,
13151,
10527,
1220,
288,
75,
11,
393,
269,
1267,
1451,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
265,
1551,
352,
286,
262,
1708,
25,
257,
1267,
1451,
15856,
40232,
515,
16869,
49835,
642,
13,
22,
4808,
718,
13,
19,
4064,
837,
275,
1267,
24845,
1451,
15856,
15701,
1802,
4808,
13151,
10527,
1220,
288,
75,
11,
393,
269,
1267,
1451,
... |
what was the four most frequent drugs that were prescribed within the same hospital visit to a drug withdrawal syndrome - alcohol female patient of age 40s after having been diagnosed with drug withdrawal syndrome - alcohol, until 2102? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'drug withdrawal... | [
10919,
373,
262,
1440,
749,
10792,
5010,
326,
547,
14798,
1626,
262,
976,
4436,
3187,
284,
257,
2563,
15220,
14027,
532,
5548,
4048,
5827,
286,
2479,
2319,
82,
706,
1719,
587,
14641,
351,
2563,
15220,
14027,
532,
5548,
11,
1566,
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,
1,
1,
1,
1,
1,
1,
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,
5010,
326,
547,
14798,
1626,
262,
976,
4436,
3187,
284,
257,
2563,
15220,
14027,
532,
5548,
4048,
5827,
286,
2479,
2319,
82,
706,
1719,
587,
14641,
351,
2563,
15220,
14027,
532,
5548,
11,
1566,
362,
... |
The series titled dragon laws i: the undercover has what role? | SELECT "Role" FROM table_67615 WHERE "Series title" = 'dragon laws i: the undercover' | [
464,
2168,
11946,
10441,
3657,
1312,
25,
262,
23557,
468,
644,
2597,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
42548,
1314,
33411,
366,
27996,
3670,
1,
796,
705,
14844,
3657,
1312,
25,
262,
23557,
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
] | [
464,
2168,
11946,
10441,
3657,
1312,
25,
262,
23557,
468,
644,
2597,
30,
46506,
366,
47445,
1,
16034,
3084,
62,
42548,
1314,
33411,
366,
27996,
3670,
1,
796,
705,
14844,
3657,
1312,
25,
262,
23557,
6
] |
Show budget type codes and the number of documents in each budget type with a bar chart, could you order by the y axis from high to low please? | SELECT Budget_Type_Code, COUNT(*) FROM Documents_with_Expenses GROUP BY Budget_Type_Code ORDER BY COUNT(*) DESC | [
15307,
4466,
2099,
12416,
290,
262,
1271,
286,
4963,
287,
1123,
4466,
2099,
351,
257,
2318,
8262,
11,
714,
345,
1502,
416,
262,
331,
16488,
422,
1029,
284,
1877,
3387,
30,
46506,
15401,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4466,
2099,
12416,
290,
262,
1271,
286,
4963,
287,
1123,
4466,
2099,
351,
257,
2318,
8262,
11,
714,
345,
1502,
416,
262,
331,
16488,
422,
1029,
284,
1877,
3387,
30,
46506,
15401,
62,
6030,
62,
10669,
11,
327,
28270,
7,
28104,
... |
Name the number of cfl teams for jeff traversy | SELECT COUNT(cfl_team) FROM table_28059992_2 WHERE player = "Jeff Traversy" | [
5376,
262,
1271,
286,
269,
2704,
3466,
329,
11223,
487,
33038,
88,
46506,
327,
28270,
7,
66,
2704,
62,
15097,
8,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
2137,
796,
366,
19139,
4759,
690,
88,
1
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1271,
286,
269,
2704,
3466,
329,
11223,
487,
33038,
88,
46506,
327,
28270,
7,
66,
2704,
62,
15097,
8,
16034,
3084,
62,
21033,
43452,
5892,
62,
17,
33411,
2137,
796,
366,
19139,
4759,
690,
88,
1
] |
Tell me the total number of top 25 for wins less than 1 and cuts made of 22 | SELECT COUNT(top_25) FROM table_name_59 WHERE cuts_made = 22 AND wins < 1 | [
24446,
502,
262,
2472,
1271,
286,
1353,
1679,
329,
7864,
1342,
621,
352,
290,
6630,
925,
286,
2534,
46506,
327,
28270,
7,
4852,
62,
1495,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
6630,
62,
9727,
796,
2534,
5357,
7864,
1279,
352
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
2472,
1271,
286,
1353,
1679,
329,
7864,
1342,
621,
352,
290,
6630,
925,
286,
2534,
46506,
327,
28270,
7,
4852,
62,
1495,
8,
16034,
3084,
62,
3672,
62,
3270,
33411,
6630,
62,
9727,
796,
2534,
5357,
7864,
1279,
352
] |
What is the 1st leg of Team 2 PSV Eindhoven? | SELECT "1st leg" FROM table_34554 WHERE "Team 2" = 'psv eindhoven' | [
2061,
318,
262,
352,
301,
1232,
286,
4816,
362,
6599,
53,
412,
521,
8873,
574,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
27712,
4051,
33411,
366,
15592,
362,
1,
796,
705,
862,
85,
304,
521,
8873,
574,
6
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
2061,
318,
262,
352,
301,
1232,
286,
4816,
362,
6599,
53,
412,
521,
8873,
574,
30,
46506,
366,
16,
301,
1232,
1,
16034,
3084,
62,
27712,
4051,
33411,
366,
15592,
362,
1,
796,
705,
862,
85,
304,
521,
8873,
574,
6
] |
What are the number of the dates when customers with ids between 10 and 20 became customers?, and order by the the number of date became customer in descending please. | SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC | [
2061,
389,
262,
1271,
286,
262,
9667,
618,
4297,
351,
220,
2340,
1022,
838,
290,
1160,
2627,
4297,
21747,
290,
1502,
416,
262,
262,
1271,
286,
3128,
2627,
6491,
287,
31491,
3387,
13,
46506,
3128,
62,
9423,
480,
62,
23144,
263,
11,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
2061,
389,
262,
1271,
286,
262,
9667,
618,
4297,
351,
220,
2340,
1022,
838,
290,
1160,
2627,
4297,
21747,
290,
1502,
416,
262,
262,
1271,
286,
3128,
2627,
6491,
287,
31491,
3387,
13,
46506,
3128,
62,
9423,
480,
62,
23144,
263,
11,
3... |
What was Richmond's score when it was the away team? | SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond" | [
2061,
373,
16940,
338,
4776,
618,
340,
373,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
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,
1,
1,
1,
1,
1,
1
] | [
2061,
373,
16940,
338,
4776,
618,
340,
373,
262,
1497,
1074,
30,
46506,
1497,
62,
15097,
7054,
4776,
16034,
3084,
62,
3672,
62,
5999,
33411,
1497,
62,
15097,
796,
366,
7527,
6327,
1
] |
provide me the location of admission and short title of diagnoses for patient with patient id 29541. | SELECT demographic.admission_location, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "29541" | [
15234,
485,
502,
262,
4067,
286,
13938,
290,
1790,
3670,
286,
40567,
329,
5827,
351,
5827,
4686,
34772,
3901,
13,
46506,
16728,
13,
324,
3411,
62,
24886,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
617... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
15234,
485,
502,
262,
4067,
286,
13938,
290,
1790,
3670,
286,
40567,
329,
5827,
351,
5827,
4686,
34772,
3901,
13,
46506,
16728,
13,
324,
3411,
62,
24886,
11,
40567,
13,
19509,
62,
7839,
16034,
16728,
3268,
21479,
32357,
1268,
40567,
617... |
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion? | SELECT MIN("Winners share ($)") FROM table_25549 WHERE "Champion" = 'Se Ri Pak (2)' | [
2061,
373,
262,
8464,
2648,
357,
259,
720,
8,
287,
262,
614,
618,
1001,
30385,
6162,
357,
17,
8,
373,
262,
8783,
30,
46506,
20625,
7203,
16643,
2741,
2648,
45491,
4943,
16034,
3084,
62,
13381,
2920,
33411,
366,
1925,
6734,
1,
796,
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
] | [
2061,
373,
262,
8464,
2648,
357,
259,
720,
8,
287,
262,
614,
618,
1001,
30385,
6162,
357,
17,
8,
373,
262,
8783,
30,
46506,
20625,
7203,
16643,
2741,
2648,
45491,
4943,
16034,
3084,
62,
13381,
2920,
33411,
366,
1925,
6734,
1,
796,
7... |
Who is the player with the PBA team of Barangay Ginebra Kings? | SELECT "Player" FROM table_38370 WHERE "PBA team" = 'barangay ginebra kings' | [
8241,
318,
262,
2137,
351,
262,
350,
4339,
1074,
286,
2409,
648,
323,
402,
500,
16057,
10578,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2548,
20167,
33411,
366,
47,
4339,
1074,
1,
796,
705,
5657,
648,
323,
308,
500,
16057,
21557,
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
] | [
8241,
318,
262,
2137,
351,
262,
350,
4339,
1074,
286,
2409,
648,
323,
402,
500,
16057,
10578,
30,
46506,
366,
14140,
1,
16034,
3084,
62,
2548,
20167,
33411,
366,
47,
4339,
1074,
1,
796,
705,
5657,
648,
323,
308,
500,
16057,
21557,
6... |
Tell me the stages for 1981 | SELECT stages FROM table_name_42 WHERE year = 1981 | [
24446,
502,
262,
9539,
329,
14745,
46506,
9539,
16034,
3084,
62,
3672,
62,
3682,
33411,
614,
796,
14745
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
24446,
502,
262,
9539,
329,
14745,
46506,
9539,
16034,
3084,
62,
3672,
62,
3682,
33411,
614,
796,
14745
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.