query: SELECT ?item ?itemLabel ?value ?valueLabel ?snak ?rank ?statement
  WHERE
  {
    {
      SELECT ?item ?value ?result ?snak ?rank ?statement WHERE {
        {
          ?item p:P908 ?statement .
          ?statement ps:P908 ?value; wikibase:rank ?rank .
          BIND("mainsnak" AS ?snak) .
        } UNION {
          ?statement pq:P908 ?value; wikibase:rank ?rank .
          ?item ?p1 ?statement .
          BIND("qualifier" AS ?snak) .
        } UNION {
          ?ref pr:P908 ?value .
          ?statement prov:wasDerivedFrom ?ref; wikibase:rank ?rank .
          ?item ?p2 ?statement .
          BIND("reference" AS ?snak) .
        } .
        FILTER( ?value NOT IN ( wd:Q14915512, wd:Q14915514, wd:Q14915515, wd:Q14915516, wd:Q14915517, wd:novalue, wd:Q70141708 ) ) .
      } LIMIT 100
    } .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
  }