SELECT ?s WHERE { ?s ?p ?o . } HAVING ( COUNT( * ) > "0"^^ ) VALUES ?s { }