CodeWars: Simple SQL Engine (3/3)