What is the {legal case} for {defendant} of {Bill Cosby}
Who is the defendant for Bill Cosby's legal case?
Who is the  {legal case} for {defendant} of {Bill Cosby}
SELECT DISTINCT ?b WHERE { ?b property:defendant resource:Bill_Cosby . ?b rdf:type ontology:legal_case }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1591> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q213512> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2334719> } 
 select distinct ?sbj where { ?sbj wdt:P1591 wd:Q213512 . ?sbj wdt:P31 wd:Q2334719 } 
Andrea Constand v. William H. Cosby