SELECT (xsd:date(bif:subseq(str(?a_dt), 0, 10))), count(*) FROM WHERE { ?s ?a_dt } GROUP BY (xsd:date(bif:subseq(str(?a_dt), 0, 10)));