Query creation added