Update global variable query

- Special needs: substance abuse calculation updated.