Question: If we know a state, whose IPTC Newscode is mediatopic/20000807. and it ceased to exist on 18th December 1865, which country did it belong to ?
Choices:
Kingdom of Saxony
Russian Empire
United States of America
Kingdom of Bavaria
Finland
South Korea
Confederation of the Rhine
Orange Free State
Japan
Ukraine
Answer: United States of America
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state" . ?e <IPTC_Newscode> ?pv_1 . ?pv_1 <pred:value> "mediatopic/20000807" . ?e <dissolved,_abolished_or_demolished> ?pv . ?pv <pred:date> "1865-12-18"^^xsd:date . [ <pred:fact_h> ?e ; <pred:fact_r> <dissolved,_abolished_or_demolished> ; <pred:fact_t> ?pv ] <country> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: IPTC Newscode
mediatopic/20000807
function: FilterConcept
dependencies: 1
inputs: state
function: QueryAttrQualifier
dependencies: 2
inputs: dissolved, abolished or demolished
1865-12-18
country