query-2739a992d97cc16e8072e7f0a070c731

rq turtle/ttl

TODO

Use at

SELECT ?item        # This is the select for the third query
WITH 
{
  SELECT ?item WHERE {              # This is the select for the first query
  ?item ?predicate ?value .         # This is the first query
  } 
} as %i                             # take the results of the first query, named %i
WITH 
{
  SELECT ?item WHERE {              # This is the select for the second query
  ?item ?predicate ?value .         # This is the second query
  } 
} as %j                             # take the results of the second query, named %j
WHERE                      
{
  {INCLUDE %i}                      # use the results of the first query 
  UNION
  [INCLUDE %j]                      # use the results of the second query 
                                    # if I remember, you get the all values in the %i or the %j result set
  ?item ?predicate2 ?value2 .       # this is the third query
}

Query found at