Question: What is the title of the Spider-Man that ran for 52 episodes?
Choices: The Vampire Diaries
Něco z Alenky
Late Show with David Letterman
Spider-Man
Pittsburgh
Happy-Go-Lucky
Anne of the Thousand Days
Tess
How Green Was My Valley
The Duchess
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Spider-Man" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "52"^^xsd:double . ?e <title> ?pv .  }
Program:
function: Find
inputs: Spider-Man
function: FilterNum
dependencies: 0
inputs: number of episodes
52
=
function: QueryAttr
dependencies: 1
inputs: title
Answer: Spider-Man