db2 " select agent_id,substr(stmt_text,1,100) as statement,stmt_elapsed_time_ms from table (snapshot_statement('SAMPLE',-1)) as B
where Agent_id in (select agent_id_holding_lk from table(snapshot_lockwait('SAMPLE',-1)) as A
order by lock_wait_start_time ASC fetch first 20 rows only) order by stmt_elapsed_time_ms DESC "