What is the {television film} for {cast member} of {Amanda Bynes}
Amanda Bynes was cast in which tv show?
Which TV show did Amanda Bynes cast in?
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:television_film . ?p property:cast_member resource:Amanda_Bynes }
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/P161> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q212002> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q506240> } 
 select distinct ?sbj where { ?sbj wdt:P161 wd:Q212002 . ?sbj wdt:P31 wd:Q506240 } 
Love Wrecked