The first run accidentally added complex-ids to items which were already associated with building-ids.
The aftermath requires that:
* the affected items are cleaned up (see below)
* the collision detection is improved (separate task?)
* a routine is developed for discovering some obvious collision candidates before the run (see comment, separate rask?)
The following query lists all of the affected items and includes a commented out filter which can be included to exclude any entries with only one building (i.e. where complex=building).
[[ https://query.wikidata.org/#%23BBR%20import%20from%20wikidata%0ASELECT%20%28sample%28%3Fitem%29%20as%20%3Fitem_s%29%20%28sample%28%3Fnobuild%29%20as%20%3Fnum_buildings%29%20%28COUNT%28%3Fid%29%20AS%20%3Fnum_ids%29%0AWHERE%0A%7B%0A%20%20%7B%20%3Fitem%20wdt%3AP1435%20wd%3AQ24284072%20.%20%7D%0A%20%20UNION%0A%20%20%7B%20%3Fitem%20wdt%3AP1435%20wd%3AQ24284071%20.%20%7D%0A%20%20UNION%0A%20%20%7B%20%3Fitem%20wdt%3AP1435%20wd%3AQ24284073%20.%20%7D%0A%20%20%3Fitem%20wdt%3AP1260%20%3Fid%20.%0A%20%20%3Fitem%20wdt%3AP2670%20wd%3AQ41176%20.%0A%20%20%3Fitem%20p%3AP2670%20%3Fbuild%20.%0A%20%20%3Fbuild%20pq%3AP1114%20%3Fnobuild%20.%0A%20%20%23%20FILTER%20%28%20%3Fnobuild%20%3E%201%29%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%22%20%7D%0A%7D%0AGROUP%20BY%20%3Fitem%0AHAVING%20%28%3Fnum_ids%20%3E%201%29 | long url ]]