query 1 already written (not tested yet) improving query three