Added support and test for parsing DISTINCT