Question: How many many female names are native-labelled Charlotte, or are among those given to the US citizen Helen Hayes ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "female given name" .  { ?e <native_label> ?pv . ?pv <pred:value> "Charlotte" .  } UNION { ?e_1 <given_name> ?e . ?e_1 <pred:name> "Helen Hayes" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "United States of America" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: native label
Charlotte
function: FilterConcept
dependencies: 1
inputs: female given name
function: Find
inputs: United States of America
function: Relate
dependencies: 3
inputs: country of citizenship
backward
function: Find
inputs: Helen Hayes
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