query: format queries nicely