What is {has edition} of {On the Origin of Species} that is {publication date} is {1906-0-0} ?
In 1906, what "On the Origin of Species" edition was published?
What edition of "On the Origin of Species" was published in 1906?
SELECT ?r WHERE { ?k property:publication_date ?i . FILTER ( CONTAINS ( YEAR ( ?i ) , '1906' ) ) . resource:On_the_Origin_of_Species property:edition ?k . ?k property:edition ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q20124> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P747> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P577> <1906-0-0>
} 

SELECT ?obj WHERE { wd:Q20124 p:P747 ?s . ?s ps:P747 ?obj . ?s pq:P577 ?x filter(contains(YEAR(?x),'1906')) }