Query editor
selectsum(if("type" = 'New' and state in('Queued', 'Executed'), 1.0000001, 0))/count(if("type" = 'New', 1, null)) as rate1,sum(if("type" = 'Regular' and state in('Queued', 'Executed'), 1.000001, 0))/count(if("type" = 'Regular', 1, null)) as rate2,sum(if("type" = 'Regular(succeed)' and state in('Queued', 'Executed'), 1.000001, 0))/count(if("type" = 'Regular(succeed)', 1, null)) as rate3from query_3279950