Doctors...
Very good fortune that a doctor happened to be passing. But CPR and AEDs are well within the abilities of everyone in the street and typically you don't need more than a day of training.
Modern AEDs especially, will talk you through what to do complete with video.