Question: Which historical country is the country of Pavia and has a dissolution date after -167?
Choices:
Abyssinia
Union of South Africa
Kingdom of Italy
Swedish Empire
Confederate States of America
First French Empire
German Empire
Spanish Empire
Habsburg Monarchy
Kingdom of Greece
Program:
function: Find
inputs: Pavia
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: historical country
function: FindAll
function: FilterYear
dependencies: 3
inputs: dissolved, abolished or demolished
-167
>
function: FilterConcept
dependencies: 4
inputs: historical country
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e_1 <country> ?e . ?e_1 <pred:name> "Pavia" .  ?e <dissolved,_abolished_or_demolished> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > -167 ) .  }
Answer: Kingdom of Italy