What is {noble title} of {Louis II of Italy} and {followed by}
What is the noble title of Louis II of Italy and who is he accompanied by?
What is the noble title of Louis II of Italy and who is he followed by?
SELECT ?n ?v WHERE { resource:Louis_II_of_Italy property:noble_title ?g . ?g property:followed_by ?n . . ?g property:noble_title ?v }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q215204> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q215204 p:P97 ?s . ?s ps:P97 ?obj . ?s pq:P156 ?value1 . }