query-4bc1b8b7454fc7440addf31c3b849688
Non extinct bird families we were working on the following query Llywelyn2000With
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 DISTINCT
    ?item ?itemLabel ?instanceof ?instanceofLabel ?image ?taxonname
WHERE
{
    ?item wdt:P171* wd:Q5113 .
    ?item wdt:P105 wd:Q35409 .
    ?item wdt:P31 ?instanceof . 
    FILTER NOT EXISTS { ?item wdt:P31 wd:Q23038290 }
    # FILTER NOT EXISTS { ?item wdt:P141 wd:Q237350 }  # no impact
    OPTIONAL { ?item wdt:P18 ?image }
    OPTIONAL { ?item wdt:P225 ?taxonname }
    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;
  v3("?image"):::projected 
  v2("?instanceof"):::projected 
  v1("?item"):::projected 
  v4("?taxonname"):::projected 
  c10(["bd:serviceParam"]):::iri 
  c6(["wd:Q35409"]):::iri 
  c2(["wd:Q23038290"]):::iri 
  c12(["en"]):::literal 
  c4(["wd:Q5113"]):::iri 
  f0[["not  "]]
  subgraph f0e0["Exists Clause"]
    e0v1 --"wdt:P31"-->  e0c2
    e0v1("?item"):::projected 
    e0c2(["wd:Q23038290"]):::iri 
  end
  f0--EXISTS--> f0e0
  f0 --> v1
  f0 --> c1
  f0 --> c2
  v1 --"wdt:P31"-->  c2
  v1 --"wdt:P171"-->  c4
  v1 --"wdt:P105"-->  c6
  v1 --"wdt:P31"-->  v2
  subgraph optional0["(optional)"]
  style optional0 fill:#bbf,stroke-dasharray: 5 5;
    v1 -."wdt:P18".->  v3
  end
  subgraph optional1["(optional)"]
  style optional1 fill:#bbf,stroke-dasharray: 5 5;
    v1 -."wdt:P225".->  v4
  end
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c10 --"wikibase:language"-->  c12
  end