Question: Who among Allison Janney and Stan Lee (the one that is in the military branch United States Army) is taller ?
Choices:
James E. Reilly
Paul Simon
Sylvester Stallone
William Henry Harrison
Rahul Dev Burman
Allison Janney
Richard Gere
Max Fleischer
Simon Cowell
Stan Lee
Program:
function: Find
inputs: Allison Janney
function: Find
inputs: United States Army
function: Relate
dependencies: 1
inputs: military branch
backward
function: Find
inputs: Stan Lee
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Allison Janney" .  } UNION { ?e <pred:name> "Stan Lee" . ?e <military_branch> ?e_1 . ?e_1 <pred:name> "United States Army" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Allison Janney