SQL example:
- hierarchy query