Conditional list-filter

<%if [all[tiddlers]search:Home<currentTiddler>count[]!match[0]] %>
Home of:
<$list filter="[all[tiddlers]search:Home<currentTiddler>sort[]]">

</$list>
<%endif%>
<%if [{$:/info/url/protocol}match[file:]] %>
Place of residence of:
<$list filter="[all[tiddlers]search:residence<currentTiddler>count[]!match[0]]">

</$list>
<%endif%>

try this code and check the docs

and this plugin maybe help you.