Improvement in query visualization