What is {followed by} and {follows} of {{Ptolemy I Soter} has {noble title} as {pharaoh}}
WHICH IS FOLLOWED BY AND FOLLOWS OF PTOLEMY I SOTER AND HAS NOBLE TITLE AS PHARAOH
WHICH IS FOLLOWED BY AND FOLLOWS OF PTOLEMY I SOTER AND HAS NOBLE TITLE AS PHARAOH
SELECT ?m ?f WHERE { ?u property:followed_by ?m . resource:Ptolemy_I_Soter property:noble_title ?u . ?u property:follows ?f . ?u property:noble_title resource:Pharaoh }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q168261> . ?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/Q37110>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q168261 p:P97 ?s . ?s ps:P97 wd:Q37110 . ?s pq:P156 ?value1 . ?s pq:P155 ?value2 }