SELECT * WHERE { { SELECT (1 AS ?x) WHERE { ?s ?p ?o } VALUES ?x { 1 } } }