SELECT ?v ( COUNT( ?o ) AS ?c ) WHERE { ?s ?p ?o . } VALUES ?v { "1"^^ }