Question: Who is taller: Scott McDonald, or the James Buchanan who took part in the 25th US Congress?
Choices:
David Byrne
James E. Reilly
Max Fleischer
Simon Cowell
Richard Gere
Scott McDonald
William Henry Harrison
Paul Simon
Sylvester Stallone
James Buchanan
Program:
function: Find
inputs: Scott McDonald
function: Find
inputs: 25th United States Congress
function: Relate
dependencies: 1
inputs: participant
forward
function: Find
inputs: James Buchanan
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott McDonald" .  } UNION { ?e <pred:name> "James Buchanan" . ?e_1 <participant> ?e . ?e_1 <pred:name> "25th United States Congress" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: James Buchanan