switched to a raw query to have more possibilities for filtering
introducing archived, downloaded does not work yet