Question: Identify all installed and activated apps by their id.
SQL: SELECT app_id FROM app_events WHERE is_active = 1 AND is_installed = 1