Question: What country once had CO2 emissions per capita of 2009 metric ton and is a trading partner with Iran?
Answer(s):
answer: Madagascar

SPARQL query:
#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x 
WHERE {
	FILTER (?x != ns:m.03shp)
	{ 
	  ns:m.03shp ns:location.statistical_region.places_exported_to ?y .
	  ?y ns:location.imports_and_exports.exported_to ?x . 
	}
	UNION
	{
	  ns:m.03shp ns:location.statistical_region.places_imported_from ?y .
	  ?y ns:location.imports_and_exports.imported_from ?x . 
	}?x ns:location.statistical_region.co2_emissions_per_capita ?c .
?c ns:measurement_unit.dated_metric_ton.date "2009"^^xsd:dateTime . 
}