There are some POIs that have the same Wikidata code, but this can't happen.
Here a list of all the POI IDs with this problem:
SELECT wikidata_code, GROUP_CONCAT(poi_ID) FROM poi WHERE wikidata_code <> '' GROUP BY wikidata_code HAVING COUNT(*) > 1 ORDER BY COUNT(*) DESC;
wikidata_code | GROUP_CONCAT(poi_ID) |
Q17798 | 14315,14651 |
Q1787397 | 14600,7288 |
Q178813 | 13469,11651 |
Q18040 | 14286,14659 |
Q18356 | 14637,14264 |
Q18365 | 14267,14644 |
Q18368 | 14268,14643 |
Q18416884 | 10770,10661 |
Q18755063 | 7944,8108 |
Q1903 | 12755,16045 |
Q1916826 | 15043,16018 |
Q19840 | 7271,16180 |
Q19846 | 7273,16300 |
Q20099 | 14638,14341 |
Q20109 | 14344,14649 |
Q20191 | 14650,14367 |
Q20251 | 14383,14648 |
Q2034331 | 15070,15268 |
Q2047639 | 8348,8439 |
Q20478 | 14890,14372 |
Q20494 | 14896,15028 |
Q2077168 | 11282,11427 |
Q21013539 | 16553,16579 |
Q21192547 | 14489,14485 |
Q21192550 | 10943,9563 |
Q21552096 | 9265,9266 |
Q21552273 | 9204,9280 |
Q224172 | 14350,14902 |
Q22536 | 14393,14680 |
Q23285 | 14698,14287 |
Q23291 | 14288,14697 |
Q2506967 | 11857,10965 |
Q254139 | 14561,14455 |
Q266604 | 14544,14463 |
Q266794 | 14457,14554 |
Q266941 | 14550,14460 |
Q266975 | 14449,14547 |
Q268067 | 14470,14257 |
Q268995 | 14320,14471 |
Q269516 | 14404,14474 |
Q269823 | 14445,14482 |
Q270032 | 14466,14560 |
Q270189 | 14456,14571 |
Q270320 | 14979,14556 |
Q270328 | 14564,15015 |
Q270492 | 14526,14441 |
Q270548 | 15014,14512 |
Q270613 | 14462,14527 |
Q270782 | 14454,14506 |
Q271152 | 14511,14451 |
Q271236 | 14517,14446 |
Q271358 | 14444,14528 |
Q2967848 | 7825,9398 |
Q2968191 | 8829,14751 |
Q30031546 | 14677,14978 |
Q30159213 | 12387,12642 |
Q3328396 | 9366,15991 |
Q3361323 | 10637,10944 |
Q3364763 | 13299,13187 |
Q34805 | 14708,14994 |
Q35082 | 14754,14340 |
Q35226 | 14226,14718 |
Q358729 | 14696,13328 |
Q3649109 | 8766,10617 |
Q3662426 | 10052,11652 |
Q3662456 | 9610,9648 |
Q3718646 | 8912,15404 |
Q3757770 | 9066,15285 |
Q3763803 | 9232,9230 |
Q376739 | 9080,8897 |
Q3785099 | 14180,14073 |
Q3867520 | 8925,9025 |
Q3867716 | 9135,16096 |
Q3867764 | 8009,8047 |
Q3867831 | 9172,9173 |
Q3867851 | 8262,8263 |
Q3867963 | 9037,8790 |
Q3867973 | 9024,9005 |
Q3868051 | 8677,9075 |
Q3868253 | 8886,8885 |
Q3868400 | 7993,7994 |
Q3868487 | 9022,9151 |
Q3886621 | 15832,16466 |
Q3886642 | 15944,16441 |
Q3889575 | 15277,16554 |
Q3889659 | 10632,10800 |
Q3890190 | 15254,15264 |
Q3890261 | 15286,15287 |
Q3890698 | 13602,13612 |
Q3892388 | 14518,14686 |
Q3895421 | 13203,12330 |
Q3895631 | 14591,13206 |
Q3895646 | 16177,13216 |
Q3895647 | 13217,14666 |
Q3895726 | 14083,13180 |
Q3936898 | 10555,10762 |
Q3951389 | 10245,10456 |
Q47467390 | 15045,13962 |
Q50119 | 15132,15133 |
Q54087650 | 8525,8914 |
Q54874186 | 9058,9059 |
Q55354223 | 8004,8003 |
Q55370383 | 16161,8884 |
Q55372377 | 8944,14812 |
Q55375790 | 8840,8823 |
Q55379362 | 8237,8238 |
Q55391578 | 9733,9732 |
Q55686292 | 11359,11360 |
Q55832719 | 10842,11241 |
Q574879 | 13490,13491 |
Q58844 | 13273,14184 |
Q606494 | 7856,7891 |
Q635414 | 13324,14116 |
Q867361 | 7208,13318 |