Allow distinct queries