On the Object Pallete you require a SDO. When you select a SDO and try to create it by dropping on a container source. A wizard will appear asking you to point to a data source object or create a new instance. Create an instance through the wizard, what the query is, tables in the source and required fields. After completion save as what ever you require. Then hey presto you have a Query object.