Question: How many names given to females match the name given to Helen Hunt or the name given to Boston-born William Morris ?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "female given name" .  { ?e_1 <given_name> ?e . ?e_1 <pred:name> "Helen Hunt" .  } UNION { ?e_1 <given_name> ?e . ?e_1 <pred:name> "William Morris" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Boston" .  } }
Program:
function: Find
inputs: Helen Hunt
function: Relate
dependencies: 0
inputs: given name
forward
function: FilterConcept
dependencies: 1
inputs: female given name
function: Find
inputs: Boston
function: Relate
dependencies: 3
inputs: place of birth
backward
function: Find
inputs: William Morris
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: given name
forward
function: FilterConcept
dependencies: 7
inputs: female given name
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 2