Add support for conflicts, addselfprovides, weakdeps to query functions