query-3c2a2ce3869dad8f95b6d8f4c0b4dc64

rq turtle/ttl

allows us to append another object to a triple (reusing both subject and predicate), query can be simplified to: ,Syntax

Use at

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 ?child ?childLabel
WHERE
{
  ?child wdt:P22 wd:Q1339;
         wdt:P25 wd:Q57487;
         wdt:P106 wd:Q36834,    #        has occupation composer and 
                  wd:Q486748.   #                        pianist.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?child"):::projected c2(["wd:Q1339"]):::iri c9(["bd:serviceParam"]):::iri c4(["wd:Q57487"]):::iri c7(["wd:Q486748"]):::iri c11(["en"]):::literal c6(["wd:Q36834"]):::iri v1 --"wdt:P22"--> c2 v1 --"wdt:P25"--> c4 v1 --"wdt:P106"--> c6 v1 --"wdt:P106"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end