what is the name of the characters that are on the starfleet medical?
Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.012gt9 m.03801m m.0125th m.0crtw m.0hp23 m.0f13t m.06qzb m.021109 m.048hk9
Sarek Curzon Dax Jonathan Archer James T. Kirk Lwaxana Troi Spock Odo Daniels Shran
class class entity
fictional_universe.fictional_character fictional_universe.fictional_organization m.0787g
fictional_universe.fictional_character fictional_universe.fictional_organization fictional_universe.fictional_organization
Fictional Character Organization in fiction starfleet medical
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.0787g } 
?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.0787g)))