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