What is the {position} for {appointed by} of {United Nations General Assembly}
What positions does the Joined together Countries Common Gathering appoint?
What positions does the United Nations General Assembly appoint?
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:position . ?z property:appointed_by resource:United_Nations_General_Assembly }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P748> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q47423> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q4164871> } 
 select distinct ?sbj where { ?sbj wdt:P748 wd:Q47423 . ?sbj wdt:P31 wd:Q4164871 } 
Secretary-General of the United Nations President of the United Nations General Assembly Judge of the International Court of Justice