Support arbitrary nested relations.