Basic Datalog REPL falling into place. Need to complete plumbing the
query through.