# Lookups

{% hint style="success" %}
**Try these examples yourself.** They are built into FlightPath Data. You can download FlightPath Data free from [Microsoft](https://apps.microsoft.com/detail/9P9PBPKZ4JDF) or [Apple](https://apps.apple.com/us/app/flightpath-data/id6745823097) or [Github](https://github.com/dk107dk/flightpath)[ub](https://github.com/dk107dk/flightpath)
{% endhint %}

These example csvpaths create an index of zipcodes by city and perform lookups against it.

The data comes from [data.gov](https://data.gov): `catalog.data.gov/dataset/boundaries-us-zip-codes`. The extensive geo-coding data was removed for brevity.

<figure><img src="/files/9mUUYlgFyAIrTQDPVOdP" alt="" width="317"><figcaption></figcaption></figure>

To run this example:

1. Stage `Boundaries_US_Zip_Codes.csv` as a named-file called `zips`
2. Load `index_zipcodes.csvpaths` as a named-paths group called `zip_index`
3. Load `zipcoode_looksups.csvpaths` as a named-paths group called `zip_lookups`
4. Run `zip_index` against the named-file `zips`
5. Run `zip_lookups` against the named-file `zips`

Staging named-files and loading named-paths groups are options on the context menu when you right-click a filename in the project directory tree on the left.

To run, right click on either the named-file folder or the named-paths folder in the windows on the right-hand side and select `New run`.

The result is a variable `"a"` with the value of Boston's zipcode<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.csvpath.org/getting-started/the-flightpath-data-examples/lookups.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
