Query builder sim for L4