formatter query in a pretty manner.