valA = "abc"
valB = 50

df.query('colA == @valA and colB < @valB')