Question: How many hip hop musics have origins from United States of America or include famous people David Banner (who is famous for sampler)?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "hip hop music" .  { ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "United States of America" .  } UNION { ?e <famous_people> ?e_1 . ?e_1 <pred:name> "David Banner" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "sampler" .  } }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: FilterConcept
dependencies: 1
inputs: hip hop music
function: Find
inputs: sampler
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: David Banner
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: famous people
backward
function: FilterConcept
dependencies: 7
inputs: hip hop music
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 11