Question: Give me all spacecrafts that flew to Mars.
SPARQL:
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
        ?uri rdf:type dbo:Spacecraft .
        ?uri dbp:planet res:Mars .
}