<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">OK, I think I might be starting to understand why we could be seeing other lineages besides Fungi with this type of query. Because we’re searching for a matching term in the taxon name for “fungi" this will include any lineages leading to the terminal branches which names do indeed include the token fungi, in one way or another. Querying for “SELECT taxon_id, name FROM taxon_name WHERE name LIKE '%fungi%’” did return a few Diptera, wheat, termites, corals and molluscs (I’m attaching the results in case they may be useful). Not vertebrates though, but I could see that some form of recursion could make the query end up in primates.</div><div class=""><br class=""></div><div class="">Maybe it could be relevant to consider rephrasing this particular snippet in the BioSQL Schema Overview page to reflect that this query will also include in the results other terminal branches outside the kingdom Fungi?</div><div class=""><br class=""></div><div class="">The best approach for these kind of cases could actually be to select all the terminal nodes from up a certain NCBI taxon id (e.g. 4751 for Fungi). Not sure if this is possible but that might be for another question. :)</div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Pedro</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""></div></body></html>