select * from foo where bar = 1