Simplifying the queries to count user edits. Less duplication.
Output NULL only for dates, output 0 for missing numeric values