query-5b563eb3364b13542ab2e32bd28b97f2

rq turtle/ttl

Family relations in novelsAll husbands and wives in srpELTeC and srpELTeC-extended collection

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 DISTINCT ?h ?hLabel ?w ?wLabel
WHERE {
  VALUES ?collection { wd:Q106936149 wd:Q109123373 }
  ?novel wdt:P31 wd:Q7725634;
          wdt:P674 ?h;
         wdt:P747 ?edition.
    ?h wdt:P21 wd:Q6581097;
       wdt:P26 ?w.
  ?edition wdt:P1433 ?collection.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sr". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?collection") v4("?edition") v3("?h"):::projected v2("?novel") v5("?w"):::projected c10(["bd:serviceParam"]):::iri c6(["wd:Q6581097"]):::iri c2(["wd:Q7725634"]):::iri c12(["sr"]):::literal bind0[/VALUES ?collection/] bind0-->v1 bind00(["wd:Q106936149"]) bind00 --> bind0 bind01(["wd:Q109123373"]) bind01 --> bind0 v2 --"wdt:P31"--> c2 v2 --"wdt:P674"--> v3 v2 --"wdt:P747"--> v4 v3 --"wdt:P21"--> c6 v3 --"wdt:P26"--> v5 v4 --"wdt:P1433"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end