SQL Engine For JavaScript Array Query