| 165 | OR |
| 166 | |
| 167 | {{{#!div style="font-size: 90%" |
| 168 | {{{#!sql |
| 169 | select q4.godina, q4.city, q4.max_broj_nastani |
| 170 | from ( |
| 171 | ( |
| 172 | select extract (year from e."date") as godina, |
| 173 | count(distinct e.id_event) broj_nastani, e.city |
| 174 | from events e |
| 175 | group by godina, e.city |
| 176 | ) q1 |
| 177 | |
| 178 | join |
| 179 | |
| 180 | ( |
| 181 | select max(q2.broj_nastani) as max_broj_nastani |
| 182 | from |
| 183 | ( |
| 184 | select extract (year from e."date") as godina, |
| 185 | count(distinct e.id_event) broj_nastani, e.city |
| 186 | from events e |
| 187 | group by godina, e.city |
| 188 | ) q2 ) q3 |
| 189 | on |
| 190 | q1.broj_nastani = q3.max_broj_nastani) |
| 191 | as q4 |
| 192 | }}} |
| 193 | }}} |
| 194 | |