add primitive query to javatools