Show distinct values of a query

Closes #24