SONAR-3755 Add query to get open and closed action plan stats