query-2c77a05504990cfec640cc2236858407
Petscan --> more than one value. (P3450)sports season of league or competition 6) Items that have
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?item ?itemLabel
?whatever ?whateverLabel
(COUNT(DISTINCT ?seasonof) as ?ct)
{
?item wdt:P3450 ?whatever .
?item wdt:P3450 ?seasonof
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY
?item ?itemLabel
?whatever ?whateverLabel
HAVING (?ct > 1)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?ct")
v2("?item"):::projected
v4("?seasonof"):::projected
v3("?whatever"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?ct > '1^^xsd:integer'"]]
f0 --> v5
v2 --"wdt:P3450"--> v3
v2 --"wdt:P3450"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"count(?seasonof)"/]
v4 --o bind2
bind2 --as--o v5