listed building is listed in what site category?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.02kdkx1 m.02hvmzn m.02kdkvl m.02kdkvt m.02kdkws m.02kdky7 m.02kdkxl m.02kdkx9 m.02kdkxt m.02kdky0
Grade B+ Grade II* Grade I Grade II Grade A Category C(s) Grade B2 Grade B1 Category A Category B
class entity
protected_sites.site_listing_category m.01cq1t
protected_sites.site_listing_category protected_sites.natural_or_cultural_site_designation
Site Listing Category Listed building
none none
protected_sites.site_listing_category.category_of
Category Of
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :protected_sites.site_listing_category . 
VALUES ?x1 { :m.01cq1t } 
?x0 :protected_sites.site_listing_category.category_of ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND protected_sites.site_listing_category (JOIN protected_sites.site_listing_category.category_of m.01cq1t))