What is {series} of {Rama} and {follows}
What is Rama and who takes after it?
What is Rama and who follows it?
SELECT ?l ?v WHERE { ?g property:follows ?l . . resource:Rama property:part_of_the_series ?g . ?g property:part_of_the_series ?v }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q160213> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P179> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q160213 p:P179 ?s . ?s ps:P179 ?obj . ?s pq:P155 ?value1 . }