Select all end points:

Query:


SELECT * FROM directory
WHERE
    right - left = 1