Question: What are the number of law schools whose country is the sovereign state that is the origin country of Peyton Place (the one whose number of episodes is 514) ?
Choices: 14
15
16
17
18
19
20
21
22
23
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "law school" . ?e <country> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country_of_origin> ?e_1 . ?e_2 <pred:name> "Peyton Place" . ?e_2 <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "514"^^xsd:double .   }
Program:
function: Find
inputs: Peyton Place
function: FilterNum
dependencies: 0
inputs: number of episodes
514
=
function: Relate
dependencies: 1
inputs: country of origin
forward
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: law school
function: Count
dependencies: 5
Answer: 20