How can I make this kind of query in NRQL?
SELECT origin, destination FROM locations WHERE origin = destination
An option for this to use a subquery like this
SELECT origin, destination FROM locations WHERE origin IN (SELECT destination FROM locations)