What is the {television series} for {producer} of {David Duchovny}
What television series did David Duchovny produce?
David Duchovny is the producer of which television series ?
SELECT DISTINCT ?i WHERE { ?i property:producer resource:David_Duchovny . ?i rdf:type ontology:television_series }
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/P162> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q484365> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5398426> } 
 select distinct ?sbj where { ?sbj wdt:P162 wd:Q484365 . ?sbj wdt:P31 wd:Q5398426 } 
Californication