$ 0 0 This approach works only for straight queries. In real life there can be highly complex and nested queries.