(a) fixed legacy query, (b) improved accessURL extraction logic to allow extracting more than one accessURL per resource