From tree to table