Automated table understanding using stub patterns