query-3d38d775e32673754230803d94bedddc

rq turtle/ttl

title:Items with PIAC and only one occupation (university professor) SELECT ?item ?itemLabel ?itemDescription ?value WHERE { ?item wdt:P8982 ?value ; wdt:P106 wd:Q1622272, ?v . FILTER NOT EXISTS { ?item wdt:P106 ?v2 . FILTER( ?v != ?v2 ) } SERVICE wikibase:label { bd:serviceParam wikibase:language "it,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#>
#title:Items with PIAC and only one occupation (university professor)
SELECT ?item ?itemLabel ?itemDescription ?value
WHERE
{
    ?item wdt:P8982 ?value ; wdt:P106 wd:Q1622272, ?v .
    FILTER NOT EXISTS { ?item wdt:P106 ?v2 . FILTER( ?v != ?v2 ) }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?v") v2("?v2") v4("?value"):::projected c5(["bd:serviceParam"]):::iri c7(["it,en"]):::literal c3(["wd:Q1622272"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?v != ?v2"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v3 --"wdt:P106"--> e0v2 e0v3("?item"):::projected e0v1("?v"):::projected e0v2("?v2"):::projected end f0--EXISTS--> f0e0 f0 --> v1 f0 --> v2 f0 --> v3 f0 --> c1 f1[["?v != ?v2"]] f1 --> v1 f1 --> v2 v3 --"wdt:P106"--> v2 v3 --"wdt:P8982"--> v4 v3 --"wdt:P106"--> c3 v3 --"wdt:P106"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end