What is {follows} and {followed by} of {{Benedict XVI} has {position held} as {cardinal}}
an
an
SELECT ?r ?i WHERE { resource:Benedict_XVI property:position_held ?w . ?w property:followed_by ?i . ?w property:follows ?r . ?w property:position_held resource:cardinal }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2494> . ?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> <http://wikidata.dbpedia.org/resource/Q45722>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q2494 p:P39 ?s . ?s ps:P39 wd:Q45722 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }