Question: Is Allison Janney or James Monroe (who is educated at the College of William & Mary) shorter in height?
Choices:
James E. Reilly
Simon Cowell
Rahul Dev Burman
James Monroe
Richard Gere
William Henry Harrison
Max Fleischer
Paul Simon
Sylvester Stallone
Allison Janney
Program:
function: Find
inputs: Allison Janney
function: Find
inputs: College of William & Mary
function: Relate
dependencies: 1
inputs: educated at
backward
function: Find
inputs: James Monroe
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Allison Janney" .  } UNION { ?e <pred:name> "James Monroe" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "College of William & Mary" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Allison Janney