If the computer only has to deduce which one of those columns was selected then your problem becomes a trivial check against every source column.
If the problem you presented was only an example and your actual question is the following
Given two files with some more-or-less obvious1 relationship can I teach the computer to deduce the relationship
The answer quickly becomes more no than yes. You might be able to teach this specific problem by tediously listing every thinkable relationship and have the computer check each one of them. But if you are looking for some kind of strong artificial intelligence that can handle arbitrary problems by itself just like humans then no, we don't have that.
That being said we have lots of less sophisticated AIs each designed to handle a very specific problem domain and they work pretty well.
- More or less obvious to an human expert who might have an idea what to look for, that is