select * from html where url='http://someurl.com' and xpath="//div[@class='item']/div[@class='pic']/a/img[@src='a.jpg']/parent::*/parent::*/parent::*/div[@class='desc']/a/@href"
1. div and class=item
2. div下的 a
3. div下的img 并且 src=a.jpg
4. 向上三次
5. 找 div 且 class=desc
6. 它下面的a
.............
好累啊。。。