What is {diplomatic relation} of {Algeria} that is {statement is subject of} is {Algeria–Indonesia relations} ?
Describe diplomatic relations between Algeria and Indonesia.
What is the diplomatic relationship between Algeria and Indonesia?
SELECT ?i WHERE { ?z property:diplomatic_relation ?i . resource:Algeria property:diplomatic_relation ?z . ?z property:statement_is_subject_of resource:Algeria–Indonesia_relations }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q262> .
?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/Q15948965>
} 

SELECT ?obj WHERE { wd:Q262 p:P530 ?s . ?s ps:P530 ?obj . ?s pq:P805 wd:Q15948965 }