What is {middle name} of {Ivan Pyryev}, that has {is the same as} is {Juan} ?
What is Ivan Pyryev's middle name, which is the identical as Juan's?
What is Ivan Pyryev's middle name, which is the same as Juan's?
SELECT ?m WHERE { resource:Ivan_Pyryev property:given_name ?m . ?m property:said_to_be_the_same_as resource:Juan }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q552450> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P735>. ?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/P460> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q475210> . }
SELECT ?answer WHERE { wd:Q552450 wdt:P735 ?answer . ?answer wdt:P460 wd:Q475210}
Ivan