Simple listing of patterns using recursive tree retrieval