My opinion is that most wealth is attributable to the market, but the government is necessary to the extent that it sets and enforces the rules, resolves disputes, and provides defence. The government does help build wealth more directly (e.g funding science research) but it is not the primary driver of it.