if query.state['limit'] is not None:
            nodes.append(SqliteClause('LIMIT ?', query.state['limit']))