Question: Which political party has a political ideology of conservatism and whose headquarter location is Toronto ?
Choices:
National Party of Australia
Liberal Party of Australia
British Columbia Liberal Party
United Malays National Organisation
Christian Democratic Union
Labour Party
Ontario New Democratic Party
Ontario Liberal Party
Conservative Party of Canada
Progressive Conservative Party of Ontario
Answer: Progressive Conservative Party of Ontario
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e <political_ideology> ?e_1 . ?e_1 <pred:name> "conservatism" .  ?e <headquarters_location> ?e_2 . ?e_2 <pred:name> "Toronto" .  }
Program:
function: Find
inputs: conservatism
function: Relate
dependencies: 0
inputs: political ideology
backward
function: FilterConcept
dependencies: 1
inputs: political party
function: Find
inputs: Toronto
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: political party
function: And
dependencies: 2
5
function: What
dependencies: 6