Oracle Error ORA-54666: query gtype is a superset of the source geometry

Oracle Error Message

ORA-54666: query gtype is a superset of the source geometry

Reason for the Error

A query element geometry was at a higher level in the geometry hierarchy than the source geometry.

Solution

Try replacing the source geometry with the query geometry.