Find0resource relatedPatterns SQL.