A female wear a headdress is weaving a rug.
A female in a headdress is sewing a rug to sell at the market
The action of weaving a rug doesn't necessarily mean the purpose is to sell at the market.
exists p1 s1 x1.(a_topic(x1) & exists e1 x2 x3.(Theme(e1,x3) & Actor(e1,x2) & v_weave(e1) & n_rug(x3) & n_headdress(x2)) & that(x1,p1) & n_wear(x1) & a_female(s1) & Theme(s1,x1))
exists e1 p1 x1 x2 x3 x4 x5 x6.(n_market(x6) & Topic(e1,p1) & exists e2.(at(e2,x6) & Actor(e2,x1) & v_sell(e2)) & Theme(e1,x5) & Actor(e1,x3) & v_sew(e1) & n_rug(x5) & in(x3,x4) & n_headdress(x4) & n_female(x3) & in(x1,x2) & n_headdress(x2) & n_female(x1))