query-19291f0f07d57947bca52545fda3c6b1

rq turtle/ttl

Items linking to bothOne way could be to check items that link to both, e.g.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?prop_aLabel ?prop_bLabel 
WHERE
{
    ?item ?a wd:Q1032 .
    ?item ?b wd:Q1033 .
    ?prop_a wikibase:directClaim ?a .
    ?prop_b wikibase:directClaim ?b . 
    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("?a") v3("?b") v1("?item"):::projected v4("?prop_a") v5("?prop_b") c5(["bd:serviceParam"]):::iri c1(["wd:Q1032"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q1033"]):::iri v1 -->v2--> c1 v1 -->v3--> c2 v4 --"wikibase:directClaim"--> v2 v5 --"wikibase:directClaim"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end