query badge