allow query and options in distinct

The distinct command is not that useful if I can't use a query :smile_cat: