use rql engine and _ref