Question: What is the number of seats of the political party that has politician Paul Gross as a member?
Choices:
3
45
2
117
53
153
67
55
35
199
Answer: 153
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <member_of_political_party> ?e . ?e_1 <pred:name> "Paul Gross" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "politician" .  ?e <number_of_representatives_in_an_organization/legislature> ?pv .  }
Program:
function: Find
inputs: politician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Paul Gross
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of political party
forward
function: FilterConcept
dependencies: 4
inputs: political party
function: QueryAttr
dependencies: 5
inputs: number of representatives in an organization/legislature