Question: Who weighs less, Michael Clayton (the one that is an ethnic group of African Americans) or James Brown (the one whose height is 78 inch)?
Choices:
William Henry Harrison
Max Fleischer
Sylvester Stallone
Simon Cowell
Rahul Dev Burman
James Brown
Richard Gere
Paul Simon
David Byrne
Michael Clayton
Program:
function: Find
inputs: African Americans
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: Michael Clayton
function: And
dependencies: 1
2
function: Find
inputs: James Brown
function: FilterNum
dependencies: 4
inputs: height
78 inch
=
function: SelectBetween
dependencies: 3
5
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Clayton" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "African Americans" . } UNION { ?e <pred:name> "James Brown" . ?e <height> ?pv_1 . ?pv_1 <pred:unit> "inch" . ?pv_1 <pred:value> "78"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Michael Clayton