What is {diplomatic relation} of {South Ossetia} that is {statement is subject of} is {Nicaragua–South Ossetia relations} ?
South Ossetia and Nicaragua-South Ossetia are related in what way?
What is the  relation between South Ossetia and  Nicaragua-South Ossetia?
SELECT ?i WHERE { ?o property:diplomatic_relation ?i . ?o property:statement_is_subject_of resource:Nicaragua–South_Ossetia_relations . resource:South_Ossetia property:diplomatic_relation ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23427> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P530> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P805> <http://wikidata.dbpedia.org/resource/Q7024510>
} 

SELECT ?obj WHERE { wd:Q23427 p:P530 ?s . ?s ps:P530 ?obj . ?s pq:P805 wd:Q7024510 }