The raw data can be gathered from congress.gov, but here's a summary graphic for 2019: https://en.wikipedia.org/wiki/United_States_federal_budget#/...
It depends on your definitions of entitlements and military, but for example, social security spending was at $1.0 trillion compared to $676 billion for defense.