Question: What television series has a number of seasons fewer than 25 and is a derivative work of Beetlejuice (the one that mainly depicts ghost)?
Choices:
Bleak House
Limitless
Beetlejuice
Spy Game
Six Feet Under
American Horror Story
Robot Chicken
Game of Thrones
Saturday Night's Main Event
Seinfeld
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
25
<
function: FilterConcept
dependencies: 1
inputs: television series
function: Find
inputs: ghost
function: Relate
dependencies: 3
inputs: main subject
backward
function: Find
inputs: Beetlejuice
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: derivative work
forward
function: FilterConcept
dependencies: 7
inputs: television series
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "25"^^xsd:double ) . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Beetlejuice" . ?e_1 <main_subject> ?e_2 . ?e_2 <pred:name> "ghost" .  }
Answer: Beetlejuice