Question: Which political party has a member Jim Brown (the one that was born in Toronto) and whose native label is Progressive Conservative Party of Ontario ?
Choices:
United National Party
Kuomintang
Ontario Liberal Party
Labour Party
Progressive Conservative Party of Ontario
Indian National Congress
Bharatiya Janata Party
Communist Party of India (Marxist)
Pakistan Peoples Party
Christian Democratic Union
Answer: Progressive Conservative Party of Ontario
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e_1 <member_of_political_party> ?e . ?e_1 <pred:name> "Jim Brown" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Toronto" .  ?e <native_label> ?pv . ?pv <pred:value> "Progressive Conservative Party of Ontario" .  }
Program:
function: Find
inputs: Toronto
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Jim Brown
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of political party
forward
function: FilterConcept
dependencies: 4
inputs: political party
function: FindAll
function: FilterStr
dependencies: 6
inputs: native label
Progressive Conservative Party of Ontario
function: FilterConcept
dependencies: 7
inputs: political party
function: And
dependencies: 5
8
function: What
dependencies: 9