what is the {cast member} for {The Barber of Seville} has {date of first performance} as {1816-2-20} ?
Which cast member of The Barber of Seville first performed in 1816?
What cast member of The Barber of Seville first performed on February 20, 1816?
SELECT ?i WHERE { ?c property:cast_member ?i . ?c property:date_of_first_performance ?p . resource:The_Barber_of_Seville property:date_of_first_performance ?c . FILTER ( CONTAINS ( YEAR ( ?p ) , '1816' ) ) }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q208659> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1191> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <1816-2-20> .
?statement <http://www.wikidata.org/entity/P161> ?value. 
} 

SELECT ?value WHERE { wd:Q208659 p:P1191 ?s . ?s ps:P1191 ?x filter(contains(YEAR(?x),'1816')) . ?s pq:P161 ?value}