Create people (person_id INTEGER PRIMARY KEY) and referrals with referrer_id and referee_id (both FKs to people):
This question starts with an empty database.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.