Added branch flow query