query app script uat