Question: Which is the dynasty of the country of the Roman Empire?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P17 wd:Q2277 . ?sbj wdt:P31 wd:Q164950 }