what is the {statement is subject of} for {United Arab Emirates} has {diplomatic relation} as {Serbia} ?
What is the diplomatic relationship of the United Arab Emirates and Serbia?
What is the United Arab Emirates diplomatic relation to Serbia?
SELECT ?b WHERE { ?b property:diplomatic_relation resource:Serbia . ?b property:statement_is_subject_of ?b . resource:United_Arab_Emirates property:diplomatic_relation ?b }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q878> .
?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> <http://wikidata.dbpedia.org/resource/Q403> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q878 p:P530 ?s . ?s ps:P530 wd:Q403 . ?s pq:P805 ?value}