What is {followed by} and {follows} of {{Star Wars Episode V: The Empire Strikes Back} has {series} as {Star Wars}}
What precedes Star Wars Episode V and what follows: The Empire Strikes Back in the Star Wars series?
What precedes and what follows Star Wars Episode V: The Empire Strikes Back in the Star Wars series?
SELECT ?f ?l WHERE { resource:Star_Wars:_Episode_V_–_The_Empire_Strikes_Back property:part_of_the_series ?k . ?k property:followed_by ?f . ?k property:part_of_the_series resource:Star_Wars . ?k property:follows ?l }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q181795> . ?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> <http://wikidata.dbpedia.org/resource/Q22092344>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q181795 p:P179 ?s . ?s ps:P179 wd:Q22092344 . ?s pq:P156 ?value1 . ?s pq:P155 ?value2 }