Question: How many cities of Pennsylvania does David Crane live at?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e_1 <residence> ?e . ?e_1 <pred:name> "David Crane" .   }
Program:
function: Find
inputs: David Crane
function: Relate
dependencies: 0
inputs: residence
forward
function: FilterConcept
dependencies: 1
inputs: city of Pennsylvania
function: Count
dependencies: 2