I'm not sure what those values in the permits really mean, but they can't be the total costs. Hell, the kitchen remodel probably has $20,000 just in appliances.
According to https://blog.housemanager.calstate.aaa.com/blog/how-much-wil..., the price for a mid-range kitchen remodel in SF is ~$83,000, $65,000 for the bathroom and $30,000 for an average roof replacement.
Looking at the pictures of the kitchen (https://www.zillow.com/homedetails/610-Rivera-St-San-Francis...) and bathroom (https://www.zillow.com/homedetails/610-Rivera-St-San-Francis...) those numbers seem like they're probably closer than the permit numbers.
It looks like they also remodeled the half-bath as it matches the remodeled master.
It's probably more like $100-150k in renovations.