Question: How many newscasts are named after Stephen Colbert (whose religion is Catholicism) and originate in the United States of America?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "newscast" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Stephen Colbert" . ?e_1 <religion> ?e_2 . ?e_2 <pred:name> "Catholicism" .  ?e <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" .  }
Program:
function: Find
inputs: Catholicism
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: Stephen Colbert
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: newscast
function: Find
inputs: United States of America
function: Relate
dependencies: 6
inputs: country of origin
backward
function: FilterConcept
dependencies: 7
inputs: newscast
function: And
dependencies: 5
8
function: Count
dependencies: 9