query-be8aabe36a26c5e41096881595838f8a
Only those with references and these have a certain valueI want to obtain the values of a property that have a reference and this has a certain value. When the query meets the conditions, I am not able to get the values:
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item
WHERE
{
VALUES ?typo { wd:Q5 wd:Q21070568 wd:Q64520857 wd:Q64643615 wd:Q75855169 }
VALUES ?time { wd:Q17167 wd:Q2815472 wd:Q2839628 wd:Q6106068 }
?item wdt:P31 ?typo ;
wdt:P2348 ?time .
?item p:P3716 [ prov:wasDerivedFrom [ pr:P248 wd:Q100166489 ] ] .
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE]' . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?time")
v1("?typo")
a2((" "))
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;"]):::literal
c4(["wd:Q100166489"]):::iri
bind0[/VALUES ?typo/]
bind0-->v1
bind00(["wd:Q5"])
bind00 --> bind0
bind01(["wd:Q21070568"])
bind01 --> bind0
bind02(["wd:Q64520857"])
bind02 --> bind0
bind03(["wd:Q64643615"])
bind03 --> bind0
bind04(["wd:Q75855169"])
bind04 --> bind0
bind1[/VALUES ?time/]
bind1-->v2
bind10(["wd:Q17167"])
bind10 --> bind1
bind11(["wd:Q2815472"])
bind11 --> bind1
bind12(["wd:Q2839628"])
bind12 --> bind1
bind13(["wd:Q6106068"])
bind13 --> bind1
v3 --"p:direct/P31"--> v1
v3 --"p:direct/P2348"--> v2
a1 --"p:reference/P248"--> c4
a2 --"prov:wasDerivedFrom"--> a1
v3 --"p:P3716"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end