question_id to calculate metrics per question.COUNT(answer_id).COUNT(CASE WHEN action = 'show' THEN 1 ELSE NULL END).question_id in ascending order to get the smallest question_id.
erDiagram
SurveyLog {
int id
ENUM action
int question_id
int answer_id
int q_num
int timestamp
}