gains from selling of shares of the capital stock of a company, interest in a partnership, trust or estate whereby the property of which consists principally of immovable property; or
(ii) where the seller has been a resident in Thailand at any time during the 6 years before the sale of such property.