Question: How many newscasts either have a Twitter username of TheDailyShow or an Instagram account named todayshow?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "newscast" .  { ?e <Twitter_username> ?pv . ?pv <pred:value> "TheDailyShow" .  } UNION { ?e <Instagram_username> ?pv . ?pv <pred:value> "todayshow" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
TheDailyShow
function: FilterConcept
dependencies: 1
inputs: newscast
function: FindAll
function: FilterStr
dependencies: 3
inputs: Instagram username
todayshow
function: FilterConcept
dependencies: 4
inputs: newscast
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2