Question: What country with the nominal gdp of 840012000000 does Portugal trade with?
Answer(s):
answer: Mexico

SPARQL query:
#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x 
WHERE {
	FILTER (?x != ns:m.05r4w)
	{ 
	  ns:m.05r4w ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x . 
	}
	UNION
	{
	  ns:m.05r4w ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x . 
	}?x ns:location.country.gdp_nominal ?c .
?c ns:measurement_unit.dated_money_value.amount "840012000000.0" . 
}