You can do that by opening the tab data sources, drag the title field to the form, click in the little black arrow in the text box and then select add query, the you can put there you're query...

This is one way... there are another ones...