Question: How many baseball teams are headquartered in Fukuoka Prefecture or are located in Japan?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "baseball team" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Fukuoka Prefecture" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "Japan" .  } }
Program:
function: Find
inputs: Fukuoka Prefecture
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: baseball team
function: Find
inputs: Japan
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: baseball team
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 10