What is {dissolved, abolished or demolished} of {Macedonian kingdom} that is {instance of} is {statement with Gregorian date earlier than 1584} ?
When was the Macedonian kingdom dissolved?
SELECT ?obj WHERE { wd:Q83958 p:P576 ?s . ?s ps:P576 ?obj . ?s pq:P31 wd:Q26961029 }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83958> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P576> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q26961029>
} 

In what year was the Macedonian kingdom ended?