Question: Who is taller, Lucy Liu or Israel (the one that is the citizen of Spain)?
Choices:
Rahul Dev Burman
Paul Simon
James E. Reilly
William Henry Harrison
Israel
Simon Cowell
Lucy Liu
Max Fleischer
David Byrne
Richard Gere
Program:
function: Find
inputs: Lucy Liu
function: Find
inputs: Spain
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: Israel
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lucy Liu" .  } UNION { ?e <pred:name> "Israel" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Spain" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Israel