in addition I want to mention that from the informative stack trace
error."Malformed query bla bla".
It is clearly noted that this is an XPO error and it should happen without WC. The WC module the only things that does is generate assemblies, and if your XPO structure is wrong it will throw the same as if you design them inside VS.