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