list all forms of visual arts with subject of assumption of the virgin mary
Entity Entity
m.05qdh m.02_3k
Painting Fresco
class class entity
visual_art.visual_art_form visual_art.artwork m.01m73f
visual_art.visual_art_form visual_art.artwork visual_art.art_subject
Visual Art Form Artwork assumption of the virgin mary
none none none
visual_art.artwork.art_form visual_art.art_subject.artwork_on_the_subject
Art Form Artwork on the Subject
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 :visual_art.visual_art_form . 
?x1 :type.object.type :visual_art.artwork . 
VALUES ?x2 { :m.01m73f } 
?x1 :visual_art.artwork.art_form ?x0 . 
?x2 :visual_art.art_subject.artwork_on_the_subject ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND visual_art.visual_art_form (JOIN (R visual_art.artwork.art_form) (JOIN (R visual_art.art_subject.artwork_on_the_subject) m.01m73f)))