find the video game genre that has a parent genre of wargame and is the child genre of strategy game.
Entity
m.02qkswy
Grand strategy wargame
class entity entity
cvg.cvg_genre m.0f1tg m.03d9j2t
cvg.cvg_genre cvg.cvg_genre cvg.cvg_genre
Video Game Genre Strategy game Wargame
none none none
media_common.media_genre.child_genres media_common.media_genre.parent_genre
Child genres Parent genre
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 :cvg.cvg_genre . 
VALUES ?x1 { :m.0f1tg } 
VALUES ?x2 { :m.03d9j2t } 
?x1 :media_common.media_genre.child_genres ?x0 . 
?x0 :media_common.media_genre.parent_genre ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND cvg.cvg_genre (AND (JOIN (R media_common.media_genre.child_genres) m.0f1tg) (JOIN media_common.media_genre.parent_genre m.03d9j2t)))