Question: What person has a height greater than 20 centimetres and whose name in native language is Napoléon Bonaparte?
Choices:
Richard Gere
Sylvester Stallone
Max Fleischer
Taylor Swift
William Henry Harrison
Rock Hudson
Napoleon
Amy Winehouse
Franklin Delano Roosevelt
Seol Ki-hyeon
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: height
20 centimetre
>
function: FilterConcept
dependencies: 1
inputs: human
function: FindAll
function: FilterStr
dependencies: 3
inputs: name in native language
Napoléon Bonaparte
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <height> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> ?v . FILTER ( ?v > "20"^^xsd:double ) . ?e <name_in_native_language> ?pv_1 . ?pv_1 <pred:value> "Napoléon Bonaparte" .  }
Answer: Napoleon