The subquery syntax is very similar to SQL.
Still you can see the navigator page in the left side of the editor page.
we have ports functions etc there.
you can double click on a fuction to find that funtion in your editor page.And the logic must be from you as obvious..