Question: What is the television series titled City of Angels which have less than 40 seasons?
Choices:
Charlie's Angels
Dancing with the Stars
The Mary Tyler Moore Show
Kid vs. Kat
Bleak House
Robot Chicken
Game of Thrones
City of Angels
American Horror Story
Rich Man, Poor Man
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of seasons
40
<
function: FilterConcept
dependencies: 1
inputs: television series
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
City of Angels
function: FilterConcept
dependencies: 4
inputs: television series
function: And
dependencies: 2
5
function: What
dependencies: 6
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 < "40"^^xsd:double ) . ?e <title> ?pv_1 . ?pv_1 <pred:value> "City of Angels" .  }
Answer: City of Angels