group by

need to add this to ResultInterface
and implement for other dataquries