queries: condition validates value type [closes #69]