query-59ab195642ad1720c27f9a325e131007
Items having a sole instance of (P31)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item (COUNT(?value) AS ?nb_values) WHERE {
?item wdt:P31 ?gare_march, ?value.
FILTER(?gare_march = wd:Q55493)
}
GROUP BY ?item
HAVING (?nb_values = 1 )
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?gare_march")
v3("?item"):::projected
v5("?nb_values")
v4("?value"):::projected
f0[["?nb_values = '1^^xsd:integer'"]]
f0 --> v5
f1[["?gare_march = 'wd:Q55493'"]]
f1 --> v2
v3 --"wdt:P31"--> v2
v3 --"wdt:P31"--> v4
bind3[/"count(?value)"/]
v4 --o bind3
bind3 --as--o v5