input Query
PREFIX starwars:
SELECT ?s ?n ?p WHERE { ?s starwars:Name ?o; filter(regex(str(?o),"0-0-0")). ?s ?n ?p; }
Reference
SPARQL 1.1 Query
SPARQL 1.1 Query(日本語版)