Use this to limit the sql selection:
"SELECT * FROM Referencias WHERE r_aktua LIKE '%K' LIMIT 100"
Or changue your code to:
rows = cursor.execute("SELECT * FROM Referencias WHERE r_aktua LIKE '%K'").fetchmany(size=100)
for row in rows:
print('%s \t%s \t%s' % row)