natural join and tree