query-cf9f74c5276536fdfa2c24075a430c6f
Execution methods 07:34, 5 May 2019 (UTC)) talk (Bouzinac in this query, was I mistaken trying to list "all" methods of killing ? (Q216169)execution by firing squad Hello, I am surprised not to see
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?class ?classLabel (SAMPLE(?item) AS ?sample) WHERE {
?class wdt:P279+ wd:Q15169167.
OPTIONAL { ?item wdt:P31 ?class. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?class ?classLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?class"):::projected
v2("?item"):::projected
v3("?sample")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q15169167"]):::iri
v1 --"wdt:P279"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind1[/"sample(?item)"/]
v2 --o bind1
bind1 --as--o v3