:SELECT 
  tfeature.*

:FROM
  tfeature AS mainfeature
  INNER JOIN feature_relationship ON (mainfeature.feature_id = feature_relationship.object_id)
  INNER JOIN tfeature ON (tfeature.feature_id = feature_relationship.subject_id)

:WHERE 
  [mainfeature.name = &name&]

:USE NESTING (set (tfeature))

// -------------------------------------------

schema: chado

desc: for any feature, this will fetch the child features

example_input: name => SELECT name FROM feature
