query-f02d7e354f0f7aa56b54d6709b229994
TODO
Use at
- https://query.wikidata.org/sparql
 
SELECT ?item        # This is the select for the third query
                            # take the results of the first query, named %i
                            # take the results of the second query, named %j
WHERE                      
{
{
  SELECT ?item WHERE {              # This is the select for the first query
  ?item ?predicate ?value .         # This is the first query
  } 
}                       # use the results of the first query 
{
  SELECT ?item WHERE {              # This is the select for the second query
  ?item ?predicate ?value .         # This is the second query
  } 
}                       # use the results of the second query 
                                    # if I remember, you get the values common to the %i and %j result set
  ?item ?predicate2 ?value2 .       # this is the third query
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?item"):::projected 
  v2("?predicate")
  v4("?predicate2")
  v3("?value")
  v5("?value2")
  v1 -->v2--> v3
  v1 -->v2--> v3
  v1 -->v4--> v5