Exactly.. We spent $2 trillion dollars and over 4,000 lives to protect Oil Company interests in the middle east.
That's a huge subsidy that doesn't get counted as a subsidy.
I agree that some part of the middle east wars were about oil, but there is a lot more going on also. I think it is important to realize that due to the hydraulic fracturing innovation and resulting boom, the US has more natural gas than we know what to do with, and oil prices remain very low. This may be part of a strategy to destabilize some other powers (Iran, Russia, Saudi Arabia, etc) since a large part of their national budget is related to oil income. If the cost of oil is 1/2 or 1/3 what it used to be, those countries are most certainly either feeling a heavy pinch now or are concerned about how long their savings will last.
On the issue of terrorism, we have created a location in the world where the people who want to fight about their religion can go fight. That location is really far away from the USA. The number of people who have died of terrorism in the US since 2000 is incredibly low compared to the amount of angst that the US government has generated. Probably because there is a 3500 mile wide ocean in between. Iran and Saudi Arabia are fighting their proxy religious war in their own backyard, relatively out in the open. That's not a great outcome, but it might be the best of a lot of potentially worse outcomes.
I'm not saying any of this is good, or that I agree. But saying that these conflicts are based on oil is a very narrow viewpoint. There's a lot of things to consider. In my opinion the oil issue only a small part of the chessboard.