There seems to be many ways to do this in the wild, while searching I've seen:
* [building=entrance + ref=*][1] more than 20 usages around the world, means flat "D" (can't do a search for that
* [addr:flatnumber][2] 50 usages in world, + addr:flatnumber:interpolation=all/even/odd (just used once)
But I still think this is a general problem, there exist many places that have only one housenumber or address but include many sub addresses.
- Unit numbers
- Entrance numbers
- Building numbers
- Tent location
- Parking numbers
- Cabin numbers (in hotels)
Perhaps something like:
addr:subnumber=*
title:addr:subnumber=Lot
or
ref=b-k
ref:title=flat/lot/entrance/blabla?
[1]: http://www.google.se/search?q=building%3Dentrance+ref+openstreetmap.org+inurl:browse+site:openstreetmap.org
[2]: http://taginfo.openstreetmap.de/keys/addr:flatnumber#values