Question: How many independent cities were named after RIchmond, located next to or in River Thames, and also contain Old Dominion University ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "independent city" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Richmond" . ?e_1 <located_in_or_next_to_body_of_water> ?e_2 . ?e_2 <pred:name> "River Thames" .  ?e_3 <located_in_the_administrative_territorial_entity> ?e . ?e_3 <pred:name> "Old Dominion University" .  }
Program:
function: Find
inputs: River Thames
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: Find
inputs: Richmond
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: independent city
function: Find
inputs: Old Dominion University
function: Relate
dependencies: 6
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: independent city
function: And
dependencies: 5
8
function: Count
dependencies: 9