query-e34af562f5d02eeba715a86545444206
Extended version that doesn’t end up finding any more results (at least currently):
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?biennale ?biennaleLabel WHERE {
{
SELECT DISTINCT ?biennale WHERE {
{ {
SELECT ?biennale WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Search";
mwapi:srsearch "inlabel:biennale@en";
mwapi:srlimit "max".
?biennale wikibase:apiOutputItem mwapi:title.
}
}
} } UNION
{ {
SELECT ?biennale WHERE {
?biennale wdt:P31/wdt:P279* wd:Q182683.
}
} }
}
}
?biennale p:P2257/psv:P2257 ?interval.
?interval wikibase:quantityAmount ?intervalAmount;
wikibase:quantityUnit ?intervalUnit.
FILTER(!(?intervalAmount = 2 && ?intervalUnit IN (wd:Q577, wd:Q1092296)))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?biennale"):::projected
v4("?interval")
v1("?intervalAmount")
v2("?intervalUnit")
a1((" "))
a2((" "))
c11(["inlabel:biennale@en"]):::literal
c5(["bd:serviceParam"]):::iri
c9(["Search"]):::literal
c7(["www.wikidata.org"]):::literal
c13(["max"]):::literal
c18(["wd:Q182683"]):::iri
c25(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c15(["mwapi:title"]):::iri
list0c1(["wd:Q577"]):::iri
list0c2(["wd:Q1092296"]):::iri
list0c1 --o f0
list0c2 --o f0
f0[["not ?intervalAmount = '2^^xsd:integer' in "]]
f0 --> v1
f0 --> v2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c18
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c5 --"mwapi:endpoint"--> c7
c5 --"mwapi:api"--> c9
c5 --"mwapi:srsearch"--> c11
c5 --"mwapi:srlimit"--> c13
v3 --"mwapi:apiOutputItem"--> c15
end
end
union0r <== or ==> union0l
end
v3 --"p:P2257"--> a2
a2 --"p:statement/value/P2257"--> v4
v4 --"mwapi:quantityAmount"--> v1
v4 --"mwapi:quantityUnit"--> v2
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c5 --"mwapi:language"--> c25
end