Question: Who is shorter, Chris Carter (the one whose height is 72 inch) or Dave Thomas (the one that is a member of Jacksonville Jaguars)?
Choices:
William Henry Harrison
Simon Cowell
David Byrne
Paul Simon
Chris Carter
James E. Reilly
Dave Thomas
Richard Gere
Max Fleischer
Sylvester Stallone
Program:
function: Find
inputs: Chris Carter
function: FilterNum
dependencies: 0
inputs: height
72 inch
=
function: Find
inputs: Jacksonville Jaguars
function: Relate
dependencies: 2
inputs: member of sports team
backward
function: Find
inputs: Dave Thomas
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Carter" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "72"^^xsd:double . } UNION { ?e <pred:name> "Dave Thomas" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Jacksonville Jaguars" . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chris Carter