query engine for authoity done