query: SELECT ?item ?itemLabel ?statement ?rank ?snacktype ?value
  {
    ?item p:P3418 ?statement .
    ?statement wikibase:rank ?rank .
    OPTIONAL { ?statement ps:P3418 ?dbvalue }
  
  
    BIND(COALESCE(IF(wikibase:isSomeValue(?dbvalue), "unknown", "concrete"), "novalue") AS ?snacktype)
    BIND(IF(wikibase:isSomeValue(?dbvalue), "", ?dbvalue) AS ?value)
  
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }