martin f. krafft <madduck@madduck.net> [Sat, 07 Apr 2012 00:45:57 +0200] rev 492
Modify address check query to obtain well-defined result
The way in which UNION does not yield the desired result, because (a) UNION
merges results and (b) the result order is undefined. This patch changes the
query to select the counts as columns and hence provides a well-defined order.