query-d3896c5e9c6c6f3d69e8d48c487f3854
Bouzinac
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?time (COUNT(?time) AS ?count)
WHERE
{
?item ps:P585 / psv:P585 ?fullvalue.
?fullvalue wikibase:timePrecision 11 . # Precision is date
?fullvalue wikibase:timeValue ?time.
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q6888. } # exclude transit astronomiques
}
GROUP BY ?time
HAVING (?count > 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count")
v3("?fullvalue")
v2("?item")
v4("?time"):::projected
a1((" "))
a2((" "))
c5(["11^^xsd:integer"]):::literal
c9(["wd:Q6888"]):::iri
f0[["?count > '1^^xsd:integer'"]]
f0 --> v5
v2 --"ps:P585"--> a1
a1 --"ps:value/P585"--> v3
v3 --"wikibase:timePrecision"--> c5
v3 --"wikibase:timeValue"--> v4
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c9
end
bind3[/"count(?time)"/]
v4 --o bind3
bind3 --as--o v5