Tax Query: Does the investment in stock market count for capital gain exemption?

I bought a house in September 2015 in Delhi. My wife and…