which fictional character belongs to the athenian citizen-soldier allies of thebes at battle of chaeronea sub-organization of fictional organization?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0cpg09y m.0cpg0h8 m.0c0bp91 m.0c1hc_x m.0c02ppq m.0cms8p2 m.0cms8mt m.0c02ppy m.0c1wycn m.0cpg0bb
Agis Chlidon Perses, Sacred Bander Charon, Theban Sacred Bander Sciron Lysis Gorgias Simon of Athens Theagenes Archias
class class entity
fictional_universe.fictional_character fictional_universe.fictional_organization m.0c0qcqx
fictional_universe.fictional_character fictional_universe.fictional_organization fictional_universe.fictional_organization
Fictional Character Organization in fiction Athenian citizen-soldier allies of Thebes at Battle of Chaeronea
none none none
fictional_universe.fictional_character.organizations fictional_universe.fictional_organization.sub_organization_in_fiction
Belongs to organizations Sub-organization in fiction
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 :fictional_universe.fictional_character . 
?x1 :type.object.type :fictional_universe.fictional_organization . 
VALUES ?x2 { :m.0c0qcqx } 
?x0 :fictional_universe.fictional_character.organizations ?x1 . 
?x1 :fictional_universe.fictional_organization.sub_organization_in_fiction ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND fictional_universe.fictional_character (JOIN fictional_universe.fictional_character.organizations (JOIN fictional_universe.fictional_organization.sub_organization_in_fiction m.0c0qcqx)))