Question: Which TV series is written by Alan Moore (the one that uses the language English)?
Choices:
The League of Extraordinary Gentlemen
Robot Chicken
Angels in America
Watchmen
Constantine
Alice
Superman
Bleak House
American Horror Story
V for Vendetta
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Alan Moore
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Alan Moore" . ?e_1 <languages_spoken,_written_or_signed> ?e_2 . ?e_2 <pred:name> "English" .   }
Answer: Constantine