What is {namesake} of {cayenne pepper}, that has {construction date} is {1664-0-0} ?
What is the title of a Cayenne Pepper that too has dates?
What is the name of a Cayenne Pepper that also has dates?
SELECT ?k WHERE { ?k property:inception ?c . FILTER ( CONTAINS ( YEAR ( ?c ) , '1664' ) ) . resource:cayenne_pepper property:named_after ?k }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6598> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P138>. ?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/P571> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1664-0-0> . }
SELECT ?answer WHERE { wd:Q6598 wdt:P138 ?answer . ?answer wdt:P571 ?x FILTER(contains(YEAR(?x),'1664'))}
Cayenne