interesting examples

Here are some interesting examples of EXISTS that need to be considered.

SELECT ?x WHERE {
  ?x :p :v .
  FILTER ( EXISTS {
    FILTER ( ?x = :s ) )
    } )
  }

SELECT ?x WHERE {
  ?x :p :v .
  FILTER ( EXISTS {
    SELECT (?y as ?x) WHERE {
      ?y :p :v .
      }
    } )
  }

SELECT ?x WHERE {
  ?x :p :v .
  FILTER ( EXISTS {
    ?x :q :c . MINUS { ?x :r :t , }
    } )
  }

SELECT ?x WHERE {
  ?x :p :v .
  FILTER ( EXISTS {
    :a :q :c . MINUS { :a :q :c . }
    } )
  }

Received on Friday, 25 November 2016 20:59:33 UTC