Take a closed bottle and place a thermometer in it. Keep these three in sunlight for three hours. Now, measure the temperatures of the three containers. You will observe that the temperature of the water is less than the temperature of the sand, as sand gets heated by the sun faster than water. The temperature of a closed bottle will be higher than the temperature of the open bottle, because of the greenhouse effect.