Entity Reference and Views to allow a nested structure I'm trying to implement a nested structure in such a  way as to get a table (within a view?) similar to this:

Parent      Child       Grandchild      Age     Sex
John                                    56      M
            Lisa                        29      F
                        Jim             4       M
                        Louis           6       M
            Mark                        24      M
            Sanda                       21      F
Marcela                                 45      F
            Sam                         21      M
            Andy                        18      M
...


For this I defined the following content types:

Parent:
+Title (name)
+Age
+Sex
+Child [entity reference]

Child:
+Title (name)
+Age
+Sex
+Grandchild [entity reference]

Grandchild:
+Title (name)
+Age
+Sex


The +Age and +Sex attributes are shared between the content types, and the nested structure is implemented with entity reference fields.

I tried using Views, but I couldn't find a way to achieve this.

Any hint ?

Note:

With Views I managed to get the following table:

Title       Age     Sex     Children
John        56      M       Lisa, Mark, Sanda
Marcela     45      F       Sam, Andy


which is a basic use of Views...

Actually I cannot manage to relate Grandchild to Parent entity, through Parent &gt; Child &gt; Grandchild structure.
You should be fine with a content type called person and then have an entity reference field called "children" that points at the content type person. 

Then in Views create two relationships using your entity reference field. The second relationship should use the first as relationship setting. 

Call the first relationship, child and the second grandchild.

Then output Content Title three times, the second should use the relationship child the second grandchild.

Under row settings set it to group by Content: Title (the first).

Set a filter that the entity reference field can't be empty.

This should list all persons that have children.