Run query to database query zone command