Query:

SELECT * FROM directory
WHERE
    right - left = 1