Question: Who was born in a constitutional monarchy that has a diplomatic relation with Egypt (the one that is the location of Second Crusade) (the subject of this statement is Egypt–Morocco relations)?
Choices:
David Byrne
RedOne
Richard Gere
Sylvester Stallone
Carl Weathers
Jeremy Northam
Rahul Dev Burman
Max Fleischer
William Henry Harrison
Elliot Goldenthal
Answer: RedOne
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "constitutional monarchy" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Egypt" . ?e_3 <location> ?e_2 . ?e_3 <pred:name> "Second Crusade" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Egypt–Morocco relations" .   }
Program:
function: Find
inputs: Second Crusade
function: Relate
dependencies: 0
inputs: location
forward
function: Find
inputs: Egypt
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: diplomatic relation
forward
function: QFilterStr
dependencies: 4
inputs: statement is subject of
Egypt–Morocco relations
function: FilterConcept
dependencies: 5
inputs: constitutional monarchy
function: Relate
dependencies: 6
inputs: place of birth
backward
function: FilterConcept
dependencies: 7
inputs: human
function: What
dependencies: 8