what is the {character role} for {Sex and the City} has {cast member} as {Kristin Davis} ?
On the HBO series 'Sex and the City' what's the name of Kristen Davis' character?
Who does Kristin Davis portray on the HBO series, 'Sex and the City'?
SELECT ?p WHERE { ?a property:cast_member resource:Kristin_Davis . ?a property:character_role ?p . resource:Sex_and_the_City property:cast_member ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q35791> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P161> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q229176> .
?statement <http://www.wikidata.org/entity/P453> ?value. 
} 

SELECT ?value WHERE { wd:Q35791 p:P161 ?s . ?s ps:P161 wd:Q229176 . ?s pq:P453 ?value}