select

#!/usr/bin/env escript
main(_) ->
    Ets = ets:new(store, [public, ordered_set]),
    ets:insert(Ets, {"1", "val1"}),
    ets:insert(Ets, {"2", "val2"}),
    ets:insert(Ets, {"3", "val3"}),
    ets:insert(Ets, {"4", "val4"}),
    ets:insert(Ets, {"5", "val5"}),
    io:format("~p", [ets:select(Ets,[{{'$1','$2'},[{'and', {'>=','$1', "2"}, {'=<','$1', "3"}}],['$$']}], 3)]),
    halt(1).