Question: What television series is derived from Charmed (the one whose number of episodes is 8) and has a number of seasons greater than 0?
Choices:
NYPD Blue
Six Feet Under
Game of Thrones
Chuck
American Horror Story
Saturday Night's Main Event
Seinfeld
Charmed
Robot Chicken
Smallville
Program:
function: Find
inputs: Charmed
function: FilterNum
dependencies: 0
inputs: number of episodes
8
=
function: Relate
dependencies: 1
inputs: derivative work
backward
function: FilterConcept
dependencies: 2
inputs: television series
function: FindAll
function: FilterNum
dependencies: 4
inputs: number of seasons
0
>
function: FilterConcept
dependencies: 5
inputs: television series
function: And
dependencies: 3
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Charmed" . ?e_1 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "8"^^xsd:double .  ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> ?v . FILTER ( ?v > "0"^^xsd:double ) .  }
Answer: Charmed