with temp1 as ( select tenant_id, module_name, sum(call_count) as temp_call from usage_logs ul group by 1,2 ), temp2 as ( select tenant_id, sum(temp_call) as total_call from temp1 group by 1 ), temp3 as ( select tenant_id, module_name, temp_call as total_calls, round(temp_call/total_call*100,2) as u...