Question: Which geographic region ruled by a monarchy has warred with France?
Choices:
Transylvania
Pacific Ocean
Belgium
Bohemia
Atlantic Canada
Piedmont
England
Kingdom of Scotland
Lake District
Netherlands
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: military conflicts
backward
function: FilterConcept
dependencies: 1
inputs: geographic region
function: Find
inputs: monarch
function: Relate
dependencies: 3
inputs: office held by head of government
backward
function: FilterConcept
dependencies: 4
inputs: geographic region
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "geographic region" . ?e <military_conflicts> ?e_1 . ?e_1 <pred:name> "France" .  ?e <office_held_by_head_of_government> ?e_2 . ?e_2 <pred:name> "monarch" .  }
Answer: Bohemia