Question: What historical country is the country of Vienna (the one with the population of 1794770 pm 10th August 1804) and also the country of Belgrade ?
Choices:
Confederate States of America
Mongol Empire
Spanish Empire
Swedish Empire
Second French Empire
Crown of Aragón
Kingdom of Portugal
Qing dynasty
Union of South Africa
Habsburg Monarchy
Answer: Habsburg Monarchy
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "historical country" . ?e_1 <country> ?e . ?e_1 <pred:name> "Vienna" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "1794770"^^xsd:double .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country> ; <pred:fact_t> ?e ] <end_time> ?qpv . ?qpv <pred:date> "1804-08-10"^^xsd:date . ?e_2 <country> ?e . ?e_2 <pred:name> "Belgrade" .  }
Program:
function: Find
inputs: Vienna
function: FilterNum
dependencies: 0
inputs: population
1794770
=
function: Relate
dependencies: 1
inputs: country
forward
function: QFilterDate
dependencies: 2
inputs: end time
1804-08-10
=
function: FilterConcept
dependencies: 3
inputs: historical country
function: Find
inputs: Belgrade
function: Relate
dependencies: 5
inputs: country
forward
function: FilterConcept
dependencies: 6
inputs: historical country
function: And
dependencies: 4
7
function: What
dependencies: 8