query-52b066ed839d1ba7c4533d82fc7ac888
There should be no results for this query SELECT ?candidate ?REArticle WITH { SELECT ?candidate ?REArticle WHERE { ?candidate p:P1343 [ ps:P1343 wd:Q1138524 ; pq:P958 ?REArticle ] . } } AS %candidates WITH { SELECT ?REArticle WHERE {
?item wdt:P31 wd:Q13433827 ; wdt:P361 wd:Q1138524 ; wdt:P1476 ?title . BIND(STR(?title) as ?REArticle) } } as %titles WHERE { INCLUDE %candidates INCLUDE %titles } ORDER BY ?REArticle
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#There should be no results for this query
SELECT ?candidate ?REArticle
WHERE
{
{
SELECT ?candidate ?REArticle WHERE {
?candidate p:P1343 [ ps:P1343 wd:Q1138524 ;
pq:P958 ?REArticle ] .
}
} { SELECT ?REArticle WHERE {
?item wdt:P31 wd:Q13433827 ;
wdt:P361 wd:Q1138524 ;
wdt:P1476 ?title .
BIND(STR(?title) as ?REArticle)
} }}
ORDER BY ?REArticle
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?REArticle"):::projected
v2("?candidate"):::projected
v3("?item")
v4("?title")
a1((" "))
c2(["wd:Q1138524"]):::iri
c6(["wd:Q13433827"]):::iri
a1 --"p:statement/P1343"--> c2
a1 --"p:qualifier/P958"--> v5
v2 --"p:P1343"--> a1
v3 --"p:direct/P31"--> c6
v3 --"p:direct/P361"--> c2
v3 --"p:direct/P1476"--> v4
bind0[/"str(?title)"/]
v4 --o bind0
bind0 --as--o v5