query-140b442ec3a51863ab3e9fbd702aa785

rq turtle/ttl

MP couples:

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?person2 WHERE { ?item wdt:P31 wd:Q5 ; wdt:P39 wd:Q16707842. ?person2 wdt:P31 wd:Q5 ; wdt:P39 wd:Q16707842 ; wdt:P26 ?item . FILTER(STR(?person2) > STR(?item)) }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v1("?person2"):::projected c2(["wd:Q5"]):::iri c4(["wd:Q16707842"]):::iri f0[["str(?person2) > str(?item)"]] f0 --> v1 f0 --> v2 v2 --"wdt:P31"--> c2 v2 --"wdt:P39"--> c4 v1 --"wdt:P31"--> c2 v1 --"wdt:P39"--> c4 v1 --"wdt:P26"--> v2