What is {follows} and {followed by} of {{Gediminas} has {noble title} as {Grand Duke of Lithuania}}
Who was a respectable some time recently the Straight to the point Duke of Lithuania and who was after him?
Who was a noble before the Frank Duke of Lithuania and who was after him?
SELECT ?l ?d WHERE { ?s property:follows ?l . ?s property:followed_by ?d . resource:Gediminas property:noble_title ?s . ?s property:noble_title resource:Grand_Duke_of_Lithuania }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q244852> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P97> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2639920>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q244852 p:P97 ?s . ?s ps:P97 wd:Q2639920 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }