What is {diplomatic relation} of {Philippines} that is {statement is subject of} is {Philippines–Qatar relations} ?
What kind of diplomatic relation is between the Philippines and Quatar?
What is the diplomatic relation between the Philippines and Quatar?
SELECT ?b WHERE { ?t property:diplomatic_relation ?b . resource:Philippines property:diplomatic_relation ?t . ?t property:statement_is_subject_of resource:Philippines–Qatar_relations }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q928> .
?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/Q15948934>
} 

SELECT ?obj WHERE { wd:Q928 p:P530 ?s . ?s ps:P530 ?obj . ?s pq:P805 wd:Q15948934 }