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