Using MR to handle the relationship data and using Python app to query the relation between different people