Question: Who is taller Chevy Chase or James Madison, a member of political party Democratic-Republican Party?
Choices:
David Byrne
Paul Simon
Chevy Chase
James E. Reilly
James Madison
William Henry Harrison
Sylvester Stallone
Max Fleischer
Richard Gere
Simon Cowell
Program:
function: Find
inputs: Chevy Chase
function: Find
inputs: Democratic-Republican Party
function: Relate
dependencies: 1
inputs: member of political party
backward
function: Find
inputs: James Madison
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chevy Chase" .  } UNION { ?e <pred:name> "James Madison" . ?e <member_of_political_party> ?e_1 . ?e_1 <pred:name> "Democratic-Republican Party" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: James Madison