Add filter to download query