*概要 [#eaaa45ae] -JSON世界のSQL *SQLとの対応 [#u4297c9d] SELECT id, title FROM materials WHERE style = 3 AND difficulty = 3 ORDER BY id ASC; SELECT status, count(*) FROM test WHERE organizationId = 1 GROUP by status ORDER BY counter DESC; cat test.json | jq ' map(select(.style == 3 and .difficulty == 3)) | sort_by(.id) | map({id: .id, title: .title}) map(select(.organizationId == 1)) | group_by(.status) | map({status: .[0].status, count: length}) | sort_by(.count) | reverse ' |