New answers tagged ogc
The filter and query look correct. It appears you've encountered a bug in the QGIS software. I've reproduced this bug on a newer version also, and reported it to QGIS on their issue tracker: http://hub.qgis.org/issues/13065; you are welcome to post on that page to confirm you experience the bug as well.
Top 50 recent answers are included