I have the following xml in my xml-typed column (xml itself is un-typed)
<wi>
<w wid="16">
<p>28</p>
<p>72</p>
<p>125</p>
</w>
<w wid="19">
<p>89</p>
</w>
<w wid="20">
<p>11</p>
</w>
<w wid="21">
<p>74</p>
</w>
</wi>
Can't figure out how to produce two-columns using SQL+XQuery:
p w
--- ---
11 20
28 16
72 16
74 21
89 19
125 16