build an array from the relation string
relation syntax
the first table (source) and the relation as path array
build an array from the relation string