Question: Who is taller, Chris Martin (the one that is famous for mandolin) or Daniel Radcliffe
Choices:
Paul Simon
William Henry Harrison
Simon Cowell
Max Fleischer
Richard Gere
David Byrne
Rahul Dev Burman
Chris Martin
James E. Reilly
Sylvester Stallone
Program:
function: Find
inputs: mandolin
function: Relate
dependencies: 0
inputs: famous people
forward
function: Find
inputs: Chris Martin
function: And
dependencies: 1
2
function: Find
inputs: Daniel Radcliffe
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Martin" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "mandolin" .   } UNION { ?e <pred:name> "Daniel Radcliffe" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Martin