converted Where clause to type needed by Selection class