Use extended links data frame for query. Fixes issue #11.
Extracting interim result as data frame causes non distinct results. Fix for issue #12.