query-792f01476c0f04bc67b104086a758c49

rq turtle/ttl

by Csisc, 2019-06-27 SELECT DISTINCT * WHERE { ?C wdt:P31|wdt:P279 ?B . ?B wdt:P31|wdt:P279* ?A . ?C wdt:P31|wdt:P279 ?A . } LIMIT 100

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#by Csisc, 2019-06-27
SELECT DISTINCT * WHERE {
 ?C wdt:P31|wdt:P279 ?B .
 ?B wdt:P31|wdt:P279* ?A .
 ?C wdt:P31|wdt:P279 ?A . } 
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?A"):::projected v2("?B"):::projected v1("?C"):::projected subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P279"--> v2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> v2 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P279"--> v3 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> v3 end union1r <== or ==> union1l end subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P279"--> v3 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> v3 end union2r <== or ==> union2l end