Use sub query instead of join. Simple join return rows with repeats
ID's, since for one ID from FLOWS table there are several FLOW_ID in
EVENTS. Need to use subquery with DISTINCT statement.
Added index for service name