What is {replaced} of {abacus}, that has {discovered} is {1642-0-0} ?
"Where is {replaced} of {abacus}, which has {discovered} is {1642-0-0} ?"
"Where is {replaced} of {abacus}, which has {discovered} is {1642-0-0} ?"
SELECT ?t WHERE { resource:abacus property:replaces ?t . FILTER ( CONTAINS ( YEAR ( ?f ) , '1642' ) ) . ?t property:time_of_discovery_or_invention ?f }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12806> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1365>. ?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/P575> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1642-0-0> . }
SELECT ?answer WHERE { wd:Q12806 wdt:P1365 ?answer . ?answer wdt:P575 ?x FILTER(contains(YEAR(?x),'1642'))}