Question: Who has more children, Bill Murray (the one that is a cast member of The Life Aquatic with Steve Zissou) or Martin Freeman?
Choices:
James E. Reilly
Simon Cowell
Martin Freeman
Paul Simon
Max Fleischer
William Henry Harrison
Richard Gere
Rahul Dev Burman
David Byrne
Bill Murray
Program:
function: Find
inputs: The Life Aquatic with Steve Zissou
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Bill Murray
function: And
dependencies: 1
2
function: Find
inputs: Martin Freeman
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bill Murray" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "The Life Aquatic with Steve Zissou" .   } UNION { ?e <pred:name> "Martin Freeman" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bill Murray