Question: Give me all cars that are produced in Netherlands.
SPARQL:
PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> PREFIX dbp: <http://dbpedia.org/property/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> SELECT DISTINCT ?uri WHERE { ?uri rdf:type dbo:Automobile { ?uri dbo:assembly res:Netherlands } UNION { ?uri dbp:assembly res:Netherlands } UNION { { ?uri dbo:manufacturer ?x } UNION { ?uri dbp:manufacturer ?x } { ?x dbo:locationCountry res:Netherlands } UNION { ?x dbo:location res:Netherlands } } }