miles teg is of what character species?
Entity
m.0dgw9r
Homo sapiens
class entity
fictional_universe.character_species m.048dpg
fictional_universe.character_species fictional_universe.fictional_character
Character Species Miles Teg
none none
fictional_universe.character_species.characters_of_this_species
Characters of This Species
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.character_species . 
VALUES ?x1 { :m.048dpg } 
?x0 :fictional_universe.character_species.characters_of_this_species ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND fictional_universe.character_species (JOIN fictional_universe.character_species.characters_of_this_species m.048dpg))