Who was a noble before the Frank Duke of Lithuania and who was after him?
SELECT ?value1 ?value2 WHERE { wd:Q244852 p:P97 ?s . ?s ps:P97 wd:Q2639920 . ?s pq:P155 ?value1 . ?s pq:P156 ?value2 }
gediminas: Q244852 grand duke of lithuania: Q2639920