You can get plenty of calories from rice and beans. For millenia, the bulk of humanity has lived on really plain foods with little meat (though in some places like europe, north africa, and the middle east, quite a bit of cheese).
Extracting nutrients from uncooked foods is a lot less biochemically efficient for our digestive system, though, and it's going to be the rate-limiting step. If you rule out rice, oatmeal, porridges, bread, tofu, etc... you are likely to be in a mode of basically permanent caloric defect.
A great example is maize. Raw corn is not going to keep you alive for very long. Masa, though, sustains entire civilizations, and it only works because you cook off the meal in high-pH water.