Added Java equivalent of Scala RelationalQuery example program