Question: How many animated feature film have a crew member named Liam O'Brien (who is a member of Bohemian F.C.) or describe the fictional universe Shrek (whose subreddit is Shrek)?
Choices:
5
6
7
8
9
10
11
12
13
14
Program:
function: Find
inputs: Bohemian F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Liam O'Brien
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film crew member
backward
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: Find
inputs: Shrek
function: FilterStr
dependencies: 6
inputs: subreddit
Shrek
function: Relate
dependencies: 7
inputs: fictional universe described in
forward
function: FilterConcept
dependencies: 8
inputs: animated feature film
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> "animated feature film" .  { ?e <film_crew_member> ?e_1 . ?e_1 <pred:name> "Liam O'Brien" . ?e_1 <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Bohemian F.C." .  } UNION { ?e_1 <fictional_universe_described_in> ?e . ?e_1 <pred:name> "Shrek" . ?e_1 <subreddit> ?pv . ?pv <pred:value> "Shrek" .  } }
Answer: 5