find the holiday category that contains the holiday on march 17.
Entity Entity Entity Entity
m.014w0v m.021lpt m.04tk83 m.09gqnmd
Bank holiday National Day Civic holiday Public holiday
class class entity
time.holiday_category time.holiday m.052jy
time.holiday_category time.holiday time.day_of_year
Holiday Category Holiday March 17
none none none
time.holiday.type_of_holiday time.holiday.day_of_year
Holiday Category Day Of Year
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 :time.holiday_category . 
?x1 :type.object.type :time.holiday . 
VALUES ?x2 { :m.052jy } 
?x1 :time.holiday.type_of_holiday ?x0 . 
?x1 :time.holiday.day_of_year ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND time.holiday_category (JOIN (R time.holiday.type_of_holiday) (JOIN time.holiday.day_of_year m.052jy)))