when "other.birth_year as other_birth_year," is removed, it executes fine.
MATCH (me:Member {id: 123})-[:preferred_store]->(s)<-[:preferred_store]-(other)-[:ordered]->()<-[:product]-(sv:StyleVariant)
WITH other.birth_year as other_birth_year,
sv.id as style_variant,
count(s) +
CASE HAS(me.birth_year) AND HAS(other.birth_year)
WHEN true THEN
10 - ABS(me.birth_year - other.birth_year)
ELSE
0
END AS score
WITH SUM(score) as score_for_style_variant, style_variant ORDER BY score_for_style_variant DESC LIMIT 50
RETURN collect(style_variant)