Tweaked SQL for manually created cases to include any other origins