What is the {public office} for {position held} of {John Jay}
[]
Which public office is John Jay part of?
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:public_office . resource:John_Jay property:position_held ?l }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q310847> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q294414> } 
 select distinct ?obj where { wd:Q310847 wdt:P39 ?obj . ?obj wdt:P31 wd:Q294414 } 
Chief Justice of the United States United States Secretary of State