if you want to run a Flexible Search Query in the impex export, it is possible like this example:
insert_update ContentPage;uid[unique=true];name;catalogVersion;approvalStatus;label;title[lang=de];masterTemplate
"#% impex.exportItemsFlexibleSearch(""select {pk} from {ContentPage} where {CatalogVersion}=8796125823577"");"
Otherwise, if you don't need any special query with conditions, you can run it simple as:
insert_update ContentPage;uid[unique=true];name;catalogVersion;approvalStatus;label;title[lang=de];masterTemplate
"#% impex.exportItems(""ContentPage"", false);"
In your case you have to make 2 insert_update commands for each type. Country and Region. The flexible search queries would be something like this:
SELECT {r.PK}
FROM {Region as r}
WHERE {r.country} =
(
{{
SELECT {c.PK}
FROM {Country as c}
WHERE {c.isocode} = 'DE'
}}
)
And simple one
select {c.pk} from {Country as c} where {c.isocode} = 'DE'
Here are some references https://wiki.hybris.com/display/forum/Export+with+Flexible+Search
https://wiki.hybris.com/display/release5/ImpEx+API