Question: Which currency is used by the historical country that has military conflicts with Romania (whose nominal GDP is 36183003978.3474 United States dollars)?
Choices:
Shrek
Kal Ho Naa Ho
pound sterling
Japanese yen
euro
Apocalypto
Canadian dollar
Indian rupee
Shaun of the Dead
Summer of Sam
Answer: Japanese yen
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "currency" . ?e_1 <currency> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "historical country" . ?e_2 <military_conflicts> ?e_1 . ?e_2 <pred:name> "Romania" . ?e_2 <nominal_GDP> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "36183003978.3474"^^xsd:double .   }
Program:
function: Find
inputs: Romania
function: FilterNum
dependencies: 0
inputs: nominal GDP
36183003978.3474 United States dollar
=
function: Relate
dependencies: 1
inputs: military conflicts
forward
function: FilterConcept
dependencies: 2
inputs: historical country
function: Relate
dependencies: 3
inputs: currency
forward
function: FilterConcept
dependencies: 4
inputs: currency
function: What
dependencies: 5