Database Reference
In-Depth Information
(def actor
[[1 "William Hartnell" "1963-66"]
[2 "Patrick Troughton" "1966-69"]
[3 "Jon Pertwee" "1970-74"]
[4 "Tom Baker" "1974-81"]
[5 "Peter Davison" "1981-84"]
[6 "Colin Baker" "1984-86"]
[7 "Sylvester McCoy" "1987-89, 1996"]
[8 "Paul McGann" "1996"]
[9 "Christopher Eccleston" "2005"]
[10 "David Tennant" "2005-10"]
[11 "Matt Smith" "2010-present"]])
2.
We'll explain the syntax for the query in more detail in the How it works... section.
In the meantime, let's just dive in:
(?<- (stdout) [?companion] (companion ?companion))
3.
When you execute this, you might see a lot of logging messages from Hadoop.
Towards the end, you should see this:
RESULTS
-----------------------
susan
barbara
ian
vicki
steven
4.
You can also query the other tables, as follows:
(?<- (stdout) [?name] (full-name _ ?name))
RESULTS
-----------------------
Susan Forman
Barbara Wright
Ian Chesterton
Vicki
Steven Taylor
 
Search WWH ::




Custom Search