query-eddfa4580866bd2befacb33e82963504

rq turtle/ttl

Papers authored by animals SELECT ?paper ?paperLabel ?author ?authorLabel WHERE { ?paper wdt:P31 wd:Q13442814; wdt:P50 ?author. ?author ((wdt:P31)/(wdt:P279)) wd:Q729. FILTER(NOT EXISTS { ?author wdt:P31 wd:Q5. }) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Papers authored by animals
SELECT ?paper ?paperLabel ?author ?authorLabel WHERE {
  ?paper wdt:P31 wd:Q13442814;
    wdt:P50 ?author.
  ?author ((wdt:P31*)/(wdt:P279*)) wd:Q729.
  FILTER(NOT EXISTS { ?author wdt:P31 wd:Q5. })
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?author"):::projected v2("?paper"):::projected a1((" ")) c3(["wd:Q13442814"]):::iri c8(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c6(["wd:Q729"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P31"--> e0c2 e0v1("?author"):::projected e0c2(["wd:Q5"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> c2 v1 --"wdt:P31"--> c2 v2 --"wdt:P31"--> c3 v2 --"wdt:P50"--> v1 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end