select count(*) from wf_flow_instance_info t where t.flow_id = '416'
/*
select count(*) from wf_document_statictis_view t
where t.flow_id='416' and t.writ_form_id = '161'-- t.flow_name like '%増容%'-- and t.writ_form_name like '%不予%'
*/
--select * from wf_flow_info t where t.flow_visible !='0'
/*
select count(*) from wf_flow_writ_ins_info w
where w.writ_form_id = '89'
and w.flow_instance_id in (
select ins.instance_id from wf_flow_instance_info ins where ins.flow_id='390'
)
*/