Question: Which political party is headquartered in Edinburgh?
Choices:
Hibernian F.C.
Progressive Conservative Party of Ontario
Republican Party
Ulster Unionist Party
Scottish National Party
National Party of Australia
Heart of Midlothian F.C.
Liberal Party of Canada
African National Congress
University of Edinburgh
Program:
function: Find
inputs: Edinburgh
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: political party
function: What
dependencies: 2
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "political party" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Edinburgh" .   }
Answer: Scottish National Party