What is {characters} of {Friends}, that has {end time for work} is {2004-0-0} ?
"Which characters on Companions have an conclusion time for work at 2004-0-0?"
"Which characters on Friends have an end time for work at 2004-0-0?"
SELECT ?j WHERE { ?j property:work_period_(end) ?w . resource:Friends property:characters ?j . FILTER ( CONTAINS ( YEAR ( ?w ) , '2004' ) ) }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q79784> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P674>. ?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/P2032> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <2004-0-0> . }
SELECT ?answer WHERE { wd:Q79784 wdt:P674 ?answer . ?answer wdt:P2032 ?x FILTER(contains(YEAR(?x),'2004'))}
Emma Geller-Green