Question: How many genres were created by John Byrne (the one that is a member of Hamilton Academical F.C.), or are the genre of San Antonio (the one whose title is San Antonio)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Hamilton Academical F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Byrne
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: creator
backward
function: FilterConcept
dependencies: 4
inputs: genre
function: Find
inputs: San Antonio
function: FilterStr
dependencies: 6
inputs: title
San Antonio
function: Relate
dependencies: 7
inputs: genre
forward
function: FilterConcept
dependencies: 8
inputs: genre
function: Or
dependencies: 5
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "genre" .  { ?e <creator> ?e_1 . ?e_1 <pred:name> "John Byrne" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Hamilton Academical F.C." .  } UNION { ?e_1 <genre> ?e . ?e_1 <pred:name> "San Antonio" . ?e_1 <title> ?pv . ?pv <pred:value> "San Antonio" .  } }
Answer: 1