query-596c9f9bf9ad206de9ce5233cb2dab82

rq turtle/ttl

People with a P496 (ORCID ID) statement but no P106 (occupation) statement SELECT DISTINCT ?author #?authorLabel (COUNT(?paper) AS ?count) WHERE { ?author wdt:P496 ?orcid ; wdt:P31 wd:Q5 . ?paper wdt:P50 ?author . MINUS { ?author wdt:P106 ?occupation . }

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }

}

GROUP BY ?author ?authorLabel

ORDER BY DESC(?count)

LIMIT 200

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#>
#People with a P496 (ORCID ID) statement but no P106 (occupation) statement
SELECT DISTINCT ?author #?authorLabel (COUNT(?paper) AS ?count)
WHERE
{
    ?author wdt:P496 ?orcid ; 
            wdt:P31 wd:Q5 .
    ?paper wdt:P50 ?author .
    MINUS { ?author wdt:P106 ?occupation . }
#   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
#GROUP BY ?author ?authorLabel
#ORDER BY DESC(?count)
LIMIT 200

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?author"):::projected v4("?occupation") v2("?orcid") v3("?paper") c3(["wd:Q5"]):::iri v1 --"wdt:P496"--> v2 v1 --"wdt:P31"--> c3 v3 --"wdt:P50"--> v1 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P106"--> v4 end