-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionsSolvedKeyArraySortedSolvedNumberValueFilter.txt
35 lines (34 loc) · 1.57 KB
/
questionsSolvedKeyArraySortedSolvedNumberValueFilter.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"0": {
"easy": map(select(.score == 0)) | map(.easy | tonumber) | sort,
"medium": map(select(.score == 0)) | map(.medium | tonumber) | sort,
"hard": map(select(.score == 0)) | map(.hard | tonumber) | sort
},
"1": {
"easy": map(select(0 < .score and .score<=6)) | map(.easy | tonumber) | sort,
"medium": map(select(0 < .score and .score<=6)) | map(.medium | tonumber) | sort,
"hard": map(select(0 < .score and .score<=6)) | map(.hard | tonumber) | sort
},
"2": {
"easy": map(select(6 < .score and .score<=11)) | map(.easy | tonumber) | sort,
"medium": map(select(6 < .score and .score<=11)) | map(.medium | tonumber) | sort,
"hard": map(select(6 < .score and .score<=11)) | map(.hard | tonumber) | sort
},
"3": {
"easy": map(select(11 < .score and .score<=17)) | map(.easy | tonumber) | sort,
"medium": map(select(11 < .score and .score<=17)) | map(.medium | tonumber) | sort,
"hard": map(select(11 < .score and .score<=17)) | map(.hard | tonumber) | sort,
},
"4": {
"easy": map(select(.score == 18)) | map(.easy | tonumber) | sort,
"medium": map(select(.score == 18)) | map(.medium | tonumber) | sort,
"hard": map(select(.score == 18)) | map(.hard | tonumber) | sort,
}
}
#{
# "0": map(select(.score == 0)) | length,
# "1": map(select(0 < .score and .score<=6)) | length,
# "2": map(select(6 < .score and .score<=11)) | length,
# "3": map(select(11 < .score and .score<=17)) | length,
# "4": map(select(.score == 18)) | length
#}