SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/mainIngredient> <http://dbpedia.org/resource/Ham> . ?x <http://dbpedia.org/property/country> ?uri . }
In which country's cuisine, ham is an important part?
SELECT DISTINCT ?w WHERE { ?s property:country ?w . . ?s property:main_ingredient resource:Ham }
Spain, Germany, North America, Great Britain, Bulgaria, Spain and Portugal
The nations where some of their dishes have ham as main ingredient are [Spain, Germany, North America, Great Britain, Bulgaria, Spain and Portugal].
Countries where some of their dishes have ham as the main ingredient [Spain, Germany, North America, the United Kingdom, Bulgaria, Spain and Portugal].