Implement sharing utilities for DataQuery instances

Resolves #119.