Question: How many counties of Alabama were established after 1818 or are located in the filming location of Borat called Alabama ?
Choices: 5
6
7
8
9
10
11
12
13
14
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1818 ) .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Alabama" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "Borat" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1818
>
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: Borat
function: Relate
dependencies: 3
inputs: filming location
forward
function: Find
inputs: Alabama
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Alabama
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 10