Achieve this by joining the fdroid_app table onto fdroid_apk and then fdroid_repo, then checking if fdroid_repo.isSwap is 1.