Resolve column ids properly with build-lookup-table