What is {written by} of {Physics}, that has {favorite player} is {Democritus} ?
What author has a book written by him / her on physics, who is Democritus ' favorite player?
What Author has a Physics book written by him / her, who's favorite player is Democritus?
SELECT ?r WHERE { resource:Physics property:author ?r . ?r property:influenced_by resource:Democritus }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1051198> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P50>. ?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/P737> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q41980> . }
SELECT ?answer WHERE { wd:Q1051198 wdt:P50 ?answer . ?answer wdt:P737 wd:Q41980}
Aristotle