ancestries_tbl function

Creates an ancestries table.