{{>yql-mock-config}}

In this example, we make a simple YQL Query to retrieve data from the Yahoo! Weather YQL table.

NOTE: If the query appears unsuccessful, please try this example with mocked data.

{{>simple-yql-source}}

The easiest way to build a YQL query is by visiting the YQL Console. In this example we will be using the weather.forecast table. The YQL statement that we are using looks like this:

``` select * from weather.forecast where location=90210 ```

You can preview this query in the YQL Console to get a sense of the data it returns.

Setting Up the YUI Instance

Now we need to create our YUI instance and tell it to load the yql and node modules.

``` YUI().use('node', 'yql'); ```

Making the Query

We now have a YUI instance with the yql module (and its dependencies) attached, so we can proceed to make a query.

``` {{>simple-yql-source-js}} ```