Measure distinct values and pairs per value type
Adds metric 4 on top of !4 (merged): per value type and scope, statements, distinct values and distinct (property, value) pairs, for value snaks only.
The query in hql/distinct_values.hql avoids one COUNT(DISTINCT) per scope. It shuffles the statement rows once on (value_type, property_id, value_key), carries per-scope statement counts through the pair and value aggregations, and unpivots the four scopes with stack(), so the census runs as one pass instead of eight.
Bug: T437880