query-1ec7516525140d7d553a18a58e1253fc
Not DISTINCT? I don't understand why the following query yields duplicate rows:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?sen ?article WHERE {
#VALUES ?sen { wd:Q2613704 }
?sen p:P39 ?stmt;
^schema:about ?article.
?article schema:inLanguage "en-simple".
?stmt ps:P39 wd:Q4416090;
pq:P2937 ?term;
wikibase:rank ?rank.
FILTER(?rank = wikibase:NormalRank)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article"):::projected
v1("?rank")
v2("?sen"):::projected
v3("?stmt")
v5("?term")
c7(["wd:Q4416090"]):::iri
c5(["en-simple"]):::literal
f0[["?rank = 'wikibase:NormalRank'"]]
f0 --> v1
v2 --"p:P39"--> v3
v4 --"schema:about"--> v2
v4 --"schema:inLanguage"--> c5
v3 --"p:statement/P39"--> c7
v3 --"p:qualifier/P2937"--> v5
v3 --"wikibase:rank"--> v1