[wip] Add query node.

Current state of work for issue #16.