Split Csv File Based On Relation