Question: How many U.S. cities include Honolulu (the one that is the headquarter location of Punahou School) as a part or have the Twitter username of City_of_Irvine?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" .  { ?e <has_part> ?e_1 . ?e_1 <pred:name> "Honolulu" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Punahou School" .  } UNION { ?e <Twitter_username> ?pv . ?pv <pred:value> "City_of_Irvine" .  } }
Program:
function: Find
inputs: Punahou School
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: Honolulu
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
backward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: FindAll
function: FilterStr
dependencies: 6
inputs: Twitter username
City_of_Irvine
function: FilterConcept
dependencies: 7
inputs: city of the United States
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2