query-f09d67474f35e6c6698bf9873b07b08f
Appendices) indicates that there are many entries about the same subject. (Q580356)Thucydides ); except one entry, the others cointain the string "_res-"; this string usually (but not always, e.g. (Q23559)Benito Mussolini or (Q1056)Italo Balbo Enciclopedia Italiana in some cases has more than one entry for a single subject because the same subject appears in one or more appendices (e.g. TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?identifier WHERE {
{
SELECT ?item WHERE {
?item p:P4223/ps:P4223 ?identifier .
} GROUP BY ?item HAVING(COUNT(*) = 1)
}.
?item p:P4223/ps:P4223 ?identifier .
FILTER(CONTAINS(?identifier, '_res-')) .
}
Query found at
- https://www.wikidata.org/wiki/Property_talk:P4223
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/04
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_anon_42b5416610844a34809f33a099ae9de165563")
v1("?identifier"):::projected
v2("?item"):::projected
a2((" "))
a1((" "))
a3((" "))
f0[["contains(?identifier,'_res-')"]]
f0 --> v1
f1[[" = '1^^xsd:integer'"]]
f1 --> a1
v2 --"p:P4223"--> a2
a2 --"p:statement/P4223"--> v1
bind3[/"count(*)"/]
bind3 --as--o v3
v2 --"p:P4223"--> a3
a3 --"p:statement/P4223"--> v1