# filename: ex467.rq PREFIX gr: SELECT DISTINCT ?value WHERE { ?s gr:hasNext ?value }