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