query-debe3ed7973ab2ebc83614a5a3546aad
in the query but I want to understand the reason. Is is a bug?DISTINCTWhy do the lines repeat? I know that I can stop that by putting a has precision "day" for his birthday and should not be listed here.(Q355807)Steven Davis Why do we get results for this query? For example 08:12, 30 June 2016 (UTC)) talk (Jobu0101--This query does not do what you think it does, because ?timevalue is not bound to ?player. What you probably want is this:
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?team ?player ?playerLabel ?birth ?precision WHERE {
?team wdt:P31 wd:Q24199684 .
?team wdt:P710 ?player .
?player p:P569/psv:P569 [ wikibase:timeValue ?birth ; wikibase:timePrecision ?precision ]
SERVICE wikibase:label{bd:serviceParam wikibase:language "en,de"}
}
ORDER BY ?birth ?player
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?birth"):::projected
v2("?player"):::projected
v4("?precision"):::projected
v3("?team"):::projected
a2((" "))
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["en,de"]):::literal
c2(["wd:Q24199684"]):::iri
v3 --"p:direct/P31"--> c2
v3 --"p:direct/P710"--> v2
a1 --"wikibase:timeValue"--> v1
a1 --"wikibase:timePrecision"--> v4
v2 --"p:P569"--> a2
a2 --"p:statement/value/P569"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end