query: SELECT ?item ?catcode ?Wethey 
  WHERE { 
  ?item p:P528 [ pq:P972 wd:Q104223805 ; ps:P528 ?catcode]. 
  OPTIONAL { ?item p:P528 [ pq:P972 wd:Q66243506 ; ps:P528 ?Wethey]. }
  } ORDER BY xsd:integer(?catcode)