distinct of ts_relations in oa project