you have not given us enough infomation to work that out. We need to clarify a few relevant facts.
Joe Junior built a house in 1947. His parents Joe Senior and Mary helped him buy some of the materials.
Who legally owned this house and the land it was on ?
Who lived in it, Joe Senior and Mary, Joe Junior or all three ?
In 1957, Joe Senior died and willed the house to joe Junior on the condition that Mary had a right to live it in which suggests that Joe Senior owned the house from 1947 to 1957.
In 2003 , Mary died
In 2012, Joe junior sold the house and land.
Was he living in the house prior to selling it ? If so, for how long ?
Was the land farm land that he was farming ?