And if you still like triples Ö
Find the description of resources which are not of type ExtResource
(select X, @P, Y from {X} @P {Y})
(select X, type, $X from $X {X})
(select X, @P, Y from {X:ExtResource}@P{Y})
(select X, type, ExtResource from ExtResource {X})