Question: Who is shorter, Avril Lavigne or Jane Alexander (the one that is the citizen of United Kingdom)?
Choices:
Avril Lavigne
Rahul Dev Burman
David Byrne
Simon Cowell
Jane Alexander
James E. Reilly
Sylvester Stallone
Max Fleischer
Paul Simon
Richard Gere
Program:
function: Find
inputs: Avril Lavigne
function: Find
inputs: United Kingdom
function: Relate
dependencies: 1
inputs: country of citizenship
backward
function: Find
inputs: Jane Alexander
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Avril Lavigne" .  } UNION { ?e <pred:name> "Jane Alexander" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Avril Lavigne