Question: How many Indiana counties have their capital as Brooklyn (which is the birthplace of Carole Bayer Sager) or did not begin in 1827?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Indiana" .  { ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Brooklyn" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Carole Bayer Sager" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1827 ) .  } }
Program:
function: Find
inputs: Carole Bayer Sager
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Brooklyn
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: FilterConcept
dependencies: 4
inputs: county of Indiana
function: FindAll
function: FilterYear
dependencies: 6
inputs: inception
1827
!=
function: FilterConcept
dependencies: 7
inputs: county of Indiana
function: Or
dependencies: 5
8
function: Count
dependencies: 9