query-90bb681da460f9a4b710f21b64a7d8d3
on Telegram.MoebeusOriginally written for
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?statement ?subject ?subjectLabel ?propertyLabel ?valueLabel ?start1 ?end1 ?start2 ?end2 WHERE {
{
SELECT * WHERE {
?statement pq:P580 ?start1, ?start2;
pq:P582 ?end1, ?end2.
FILTER(?start1 < ?end1
&& ?end1 < ?start2
&& ?start2 < ?end2)
}
LIMIT 100
}
?property wikibase:claim ?p;
wikibase:statementProperty ?ps.
?subject ?p ?statement.
?statement ?ps ?value;
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;
v2("?end1"):::projected
v4("?end2"):::projected
v7("?p")
v6("?property")
v8("?ps")
v1("?start1"):::projected
v3("?start2"):::projected
v5("?statement"):::projected
v9("?subject"):::projected
v10("?value")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?start1 < ?end1?end1 < ?start2?start2 < ?end2"]]
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> v4
v5 --"pq:P580"--> v1
v5 --"pq:P580"--> v3
v5 --"pq:P582"--> v2
v5 --"pq:P582"--> v4
v6 --"wikibase:claim"--> v7
v6 --"wikibase:statementProperty"--> v8
v9 -->v7--> v5
v5 -->v8--> v10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end