What is {position held} of {Hamilton Fish} that is {series ordinal} is {26} ?
which governmental office was Hamilton Fish the 26th to hold?
What governmental office was Hamilton Fish the 26th to hold?
SELECT ?w WHERE { ?z property:position_held ?w . resource:Hamilton_Fish property:position_held ?z . ?z property:series_ordinal ?x . FILTER ( CONTAINS ( ?x , '26' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q685992> .
?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 .
?statement <http://www.wikidata.org/entity/P1545> <26>
} 

SELECT ?obj WHERE { wd:Q685992 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1545 ?x filter(contains(?x , '26')) }