query: SELECT ?item ?itemLabel ?value ?valueLabel ?instance ?instanceLabel ?snak 
  WHERE
  {
  	{
  		SELECT DISTINCT ?item ?value ?instance ?snak {
  			{
  				?item wdt:P197 ?value .
  				BIND("mainsnak" AS ?snak) .
  			} UNION {
  				?statement0 pq:P197 ?value .
  				?item ?p0 ?statement0 .
  				BIND("qualifier" AS ?snak) .
  			} UNION {
  				?ref pr:P197 ?value .
  				?statement1 prov:wasDerivedFrom ?ref .
  				?item ?p1 ?statement1 .
  				BIND("reference" AS ?snak) .
  			} .
  			MINUS {
  				VALUES ?classes { wd:Q228332 } .			
  				?value wdt:P31/wdt:P279* ?classes .
  			} .
  			OPTIONAL {
  				?value wdt:P31 ?instance .
  			} .
  		} LIMIT 100
  	} .
  	SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
  }