Bi-directional relation query type. Fixes #9.