Prepare SQLBuilder relation and filters with Statement class.