%dw 2.0
ns ns0 http://test1
---

root : {
    "ns": in2.root mapObject { ($$): $},
    users: in1.users mapObject { ($$): $ },
    contacts: in0.names.&name mapObject { contact: $ },
    contacts_value: (in0.names.&name mapObject { contact: $ }).&contact,
    names: {user: "Mariano", user: "Emiliano"} mapObject { ($$): $},
    empty: {} mapObject $,
    key: using (user={mariano: "achaval", achaval:"32"}) (user mapObject (if ($$ ~= "achaval") { ($$): user[($$)] } else {}))
}