query-cadf368f24cc06712abf93ba2ef9d3c4

rq turtle/ttl

TODO

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 ?item ?itemLabel ?appliestoLabel ?seats
WHERE 
{
  ?item wdt:P1342 ?seats.
  ?item wdt:P1001 ?appliesto.
  ?appliesto wdt:P463 wd:Q1065.
  minus {?item wdt:P31/wdt:P279* wd:Q15238777 .}
  minus {?item wdt:P31 wd:Q189445 .}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?appliestoLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?appliesto") v1("?appliestoLabel"):::projected v2("?item"):::projected v3("?seats"):::projected a1((" ")) c8(["wd:Q189445"]):::iri c7(["wd:Q15238777"]):::iri c10(["bd:serviceParam"]):::iri c4(["wd:Q1065"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal v2 --"wdt:P1342"--> v3 v2 --"wdt:P1001"--> v4 v4 --"wdt:P463"--> c4 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c7 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"wdt:P31"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end