Hey Sebastian<br><br>If you get a chance please look at this -<br><br><ol><li style="background:#f7f7f7;text-shadow:0px 1px #fff;padding:1px"><div style="font:normal normal 1em/1.2em monospace;background:none;margin-left:5px;margin-right:5px">
nepomukqueryservice(21826)/nepomuk
 (query service) Nepomuk::Query::SearchRunnable::run: "<?xml 
version="1.0"?><query limit="6" offset="0" fullTextScoring="false"
 fullTextScoringOrder="desc" flags=""><and><type 
uri="<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag</a>"/><comparison
 
property="<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>"
 comparator=":" inverted="true"/><comparison 
property="<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>"
 comparator=":" aggregate="count" sortWeight="1" sortOrder="desc" 
inverted="true"/></and></query></div></li><li style="background:#fbfbfb;text-shadow:0px 1px #fff;padding:1px"><div style="font:normal normal 1em/1.2em monospace;background:none;margin-left:5px;margin-right:5px">
"
 "select distinct ?r where { { ?r a 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#Tag</a>> . 
?v2 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>> 
?r . ?v3 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>> 
?r . } . ?r 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible</a>>
 ?v1 . FILTER(?v1>0) . } ORDER BY DESC ( count(?v3) ) LIMIT 6"</div></li></ol><br>The query has this twice, and it's screwing up virtuoso - <br><br>?v2 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>> 
?r . <br>?v3 
<<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>> 
?r .<br><br>Do you think you could update the Query Generator to handle cases like this?<br>