Semi-structured tables are transformed, combined, and wrangled using a multitude of tools and languages. Table processing tools such as SQL and pandas assume fixed, declared schemata and treat layout metadata as secondary. Semi-structured tables such as spreadsheets, in contrast, embed headers and data in the same grid. There is therefore a need for a table manipulation and merging base-language that takes the structure and layout into account. We propose a language for interactively transforming semi-structured tables, synthesising table structure transformations from examples, and mining relationships between tables from a large corpus. Our language comprise a few simple base operations, based on the relational algebra, which combine to form higher-level operations. Our approach facilitates reasoning to prune the search space for a new tabular relationship mining task, thereby allowing researchers to better understand the lineage of semi-structured data. Our findings offer insights into the design of data transformation languages for semi-structured tabular data and provides a base language for data mining on tabular data.