Question: Who is taller, Adam Smith (the one that is a member of Tottenham Hotspur F.C.) or Chris Carter (the one whose height is 185 centimetre)?
Choices:
Adam Smith
Richard Gere
James E. Reilly
Simon Cowell
Paul Simon
Chris Carter
Rahul Dev Burman
William Henry Harrison
Max Fleischer
David Byrne
Program:
function: Find
inputs: Tottenham Hotspur F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Adam Smith
function: And
dependencies: 1
2
function: Find
inputs: Chris Carter
function: FilterNum
dependencies: 4
inputs: height
185 centimetre
=
function: SelectBetween
dependencies: 3
5
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adam Smith" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Tottenham Hotspur F.C." . } UNION { ?e <pred:name> "Chris Carter" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "centimetre" . ?pv_1 <pred:value> "185"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Carter