Role of demographics in determining political opinions