https://techygeekshome.info/2016/09/sccm-wql-query-clients-without-latest-version-installed/
SCCM WQL Query - Clients without latest version installed