What is {capital} of {Western Roman Empire} that is {start time} is {402-0-0} ?
What Western Roman Empire capital began in the year 402?
What is the { capital } of the { Western Roman Empire } that { start time } is { 402.0 - 0 }?
SELECT ?y WHERE { ?g property:start_time ?q . resource:Western_Roman_Empire_(395-476_AD) property:capital ?g . ?g property:capital ?y . FILTER ( CONTAINS ( ?q , '402-0-0' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q42834> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <402-0-0>
} 

SELECT ?obj WHERE { wd:Q42834 p:P36 ?s . ?s ps:P36 ?obj . ?s pq:P580 ?x filter(contains(?x , '402-0-0')) }