Question: When did  Rabat become the capital of Morocco (the one that is the country of Arab)?
Choices:
2017-06-09
1707
2016-06-16
1956
1976-08-31
1992-10-20
2007-07-03
2009-12-29
1870-09-20
1989-12-27
Program:
function: Find
inputs: Rabat
function: Find
inputs: Arab
function: Relate
dependencies: 1
inputs: country
forward
function: Find
inputs: Morocco
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: capital of
start time
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Rabat" . ?e_2 <pred:name> "Morocco" . ?e_3 <country> ?e_2 . ?e_3 <pred:name> "Arab" . ?e_1 <capital_of> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital_of> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv .  }
Answer: 1956