Better string representation for queries.