Easy. That would be a SQL query like
SELECT vc.Guid
FROM vComputer vc
JOIN Inv_AddRemoveProgram arp ON arp._ResourceGuid=vc.Guid
WHERE arp.DisplayName LIKE '%Adobe Reader%' AND (arp.DisplayVersion NOT LIKE '10%' OR arp.DisplayVersion NOT LIKE '11%')
Versions are normally stored as String data, so you need to use a statement similar to the above instead of a simple AND arp.DisplayVersion < 11. Alternatively to NOT LIKE, of course you could use LIKE '5%' OR LIKE '6%' OR LIKE '7%' OR LIKE '8%' OR LIKE '9%', etc.
The best thing, though, is to define who needs ProgramX, and then let detection rules handle it for you. Your detection rule can say that ProgramX is installed if HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProgramX\VersionMajor is >= 10
AND
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProgramX\VersionMinor is >= 2
Now it will install ProgramX on any computer whose ProgramX version is less than 10.2. If it's 10.1, it gets 10.2. If it's already been upgraded to 10.3, 10.4, or 11.0.0, no problem it will not overwrite the newer install.
Does this answer your question?