Question: What historical country is the nation of Thessaloniki (this statement's subject is the Antigonid dynasty)?
Choices:
Spanish Empire
Union of South Africa
Qing dynasty
Crown of Aragón
Swedish Empire
Mongol Empire
Abyssinia
Confederate States of America
Macedonia
Second French Empire
Program:
function: Find
inputs: Thessaloniki
function: Relate
dependencies: 0
inputs: country
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Antigonid dynasty
function: FilterConcept
dependencies: 2
inputs: historical country
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e_1 <country> ?e . ?e_1 <pred:name> "Thessaloniki" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Antigonid dynasty" .  }
Answer: Macedonia