I need a dql, that fetch r_object_id and lifecycle statye of document
something like below :
select d.r_object_id, p.state_name from dm+document d, dm_policy p