SQL query for installed software per device

I have tried the SQL queries listed in the github, but they no longer verify.