'where' and 'having' formatting