Question: Who is shorter, John Powell (the one that belongs to United States of America) or Ryan Adams (the one that is a member of Los Angeles Dodgers)?
Choices:
Ryan Adams
David Byrne
Paul Simon
Max Fleischer
John Powell
Sylvester Stallone
Simon Cowell
James E. Reilly
William Henry Harrison
Rahul Dev Burman
Answer: Ryan Adams
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Powell" . ?e <country_for_sport> ?e_1 . ?e_1 <pred:name> "United States of America" .   } UNION { ?e <pred:name> "Ryan Adams" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Los Angeles Dodgers" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country for sport
backward
function: Find
inputs: John Powell
function: And
dependencies: 1
2
function: Find
inputs: Los Angeles Dodgers
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Ryan Adams
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less