Question: What number of geographic regions differ from Australia, which has diplomatic ties to Chile, or contain the ethnic group with Tobey Maguire in it?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Chile
function: Relate
dependencies: 0
inputs: diplomatic relation
forward
function: Find
inputs: Australia
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: geographic region
function: Find
inputs: Tobey Maguire
function: Relate
dependencies: 6
inputs: ethnic group
forward
function: FilterConcept
dependencies: 7
inputs: geographic region
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "geographic region" .  { ?e <different_from> ?e_1 . ?e_1 <pred:name> "Australia" . ?e_2 <diplomatic_relation> ?e_1 . ?e_2 <pred:name> "Chile" .  } UNION { ?e_1 <ethnic_group> ?e . ?e_1 <pred:name> "Tobey Maguire" .  } }
Answer: 2