What is <continent> of <San Marino> ?
[]
Which is a continent of San Marino?
SELECT DISTINCT ?m WHERE { resource:San_Marino property:continent ?m }
select distinct ?answer where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q238> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P30> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer. }
select distinct ?answer where { wd:Q238 wdt:P30 ?answer}
Europe