Question: Who is taller, James Steward, who belongs to the United States of America, or Alfred Hitchcock?
Choices:
David Byrne
James E. Reilly
Sylvester Stallone
Paul Simon
Max Fleischer
James Stewart
Rahul Dev Burman
Richard Gere
Simon Cowell
Alfred Hitchcock
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country for sport
backward
function: Find
inputs: James Stewart
function: And
dependencies: 1
2
function: Find
inputs: Alfred Hitchcock
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Stewart" . ?e <country_for_sport> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Alfred Hitchcock" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: James Stewart