I don’t think we support value variables with cond yet. Since value variables can usually have multiple uid => value mappings, they won’t work well with cond in every case.
Could you try something like this instead? I am getting everyone who has user_sex and removing some using NOT eq.
calculate_score as var(func: has(user_sex)) @filter(not eq(user_sex, val(user_sex)) and not uid(a) and not uid(fl) and not eq(university_name, "高新大学")) @cascade {
integral @filter(gt(score_date, "2018-04-11")){
s as score
}
recent_score as sum(val(s))
}