output query status