What is {not same as} of {Alexander III of Russia}, that has {tomb} is {Archbasilica of St. John Lateran} ?
"Who isn't same as Alexander III of Russia, whose tomb is Archbasilica of St. John Lateran?"
"Who is not same as Alexander III of Russia, whose tomb is Archbasilica of St. John Lateran?"
SELECT ?d WHERE { resource:Alexander_III_of_Russia property:different_from ?d . ?d property:place_of_burial resource:Archbasilica_of_St._John_Lateran }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q120180> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1889>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P119> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q84090> . }
SELECT ?answer WHERE { wd:Q120180 wdt:P1889 ?answer . ?answer wdt:P119 wd:Q84090}