Congrats to Rep. Thomas Massie for asking the dumbest education question of 2019. It is true that John Kerry has a BA in a social science and not a natural science, but there are many schools that offer BAs in the natural sciences and even computer science. All of Harvard's liberal arts programs are BAs. Harvard even has a BA in Computer Science. https://www.foxnews.com/politics/john-kerry-thomas-massie-climate-change
The context was pretty stupid too. He tried then to extrapolate this into saying that the degree was then "pseudo-science" and as a result Kerry was not qualified to have any opinion on the subject of climate change. He made himself look like a moron.
There are people with and without science degrees on both sides, but most of the people with science degrees are not on Thomas Massie's side. Everyone's entitled to have an opinion because this issue has been made political, and climate change affects everyone.