Take d from c from the records d is between in (e,1)
The records in (-f,1) matching those values will be the records sqrt(d) is between in (-f, 1).
Look up in the gaps.
Take d from c from the records d is between in (e,1)
The records in (-f,1) matching those values will be the records sqrt(d) is between in (-f, 1).
Look up in the gaps.