Here is my query
{ var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955))@groupby(uxl_question_follows) {
h as count(uid)
} var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955) and eq(uxl_is_attempted,true))@groupby(uxl_question_follows) {
a as count(uid)
}var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955) and eq(uxl_is_attempted,true) and eq(uxl_is_correct,true))@groupby(uxl_question_follows) {
b as count(uid)
}var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955) and eq(uxl_is_attempted,true) and eq(uxl_is_correct,false) and between(uxl_difficulty_level,0.70,1))@groupby(uxl_question_follows) {
c as count(uid)
}var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955) and eq(uxl_is_attempted,true) and eq(uxl_is_correct,false) and between(uxl_difficulty_level,0.01,0.70) and ge(uxl_time_taken,60))@groupby(uxl_question_follows) {
d as count(uid)
} var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]) and uid_in(uxl_subject_follows,0x60a77955) and eq(uxl_is_attempted,false))@groupby(uxl_question_follows) {
e as count(uid)
}
var(func: type(UserExamLogs))@filter(uid_in(uxl_user_follows, ["0x60a7792b"]))@groupby(uxl_question_follows) {
f as sum(uxl_total_time_waste)
}data(func: uid(h), orderdesc: val(h)) {
subject_name
total : val(h)
total_attempt : val(a)
total_correct : val(b)
total_missed_op : val(c)
total_should_skipped : val(d)
total_skipped : val(e)
total_time_wasted : val(f)
}}