Generation function (and its metadata) to access table data