# About the Query Builder

**URL:** <https://speciforum.org/t/about-the-query-builder/3650>\
**Category:** Query Building\
**Tags:** Specify-7\
**Created:** [May 20, 2026, 4:22pm UTC](https://speciforum.org/t/about-the-query-builder/3650 "2026-05-20T16:22:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bronwyn](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/bronwyn/32/5742_2.png) [@bronwyn](https://speciforum.org/u/bronwyn)\
**Post date:** [May 20, 2026, 4:22pm UTC](https://speciforum.org/t/about-the-query-builder/3650/1 "2026-05-20T16:22:34Z")

</div>

> 📖 This page covers the basics about the Query Builder in Specify 7. For more information and guidance, see our comprehensive members-only documentation: [Using the Query Builder](https://speciforum.org/t/query-builder-in-specify-7/289).

# Introduction to the Specify Query Builder

One of the greatest advantages of managing biological and geological collections in a structured database is the ability to retrieve your data efficiently, precisely, and consistently. In Specify 7, this is powered by the **Query Builder** —a flexible, visual interface that allows you to search, filter, and extract records from across your entire database without needing to write complex database code.

## What is the Query Builder?

The Query Builder is a tool designed to let you build custom searches based on criteria across any data field in Specify. It allows you to select a “base table” (such as Collection Object or Accession) and then trace relationships to other tables in your schema (like pulling cataloger details from the Agent table, or geographic details from Locality).

Unlike a simple global keyword search, a query is a precise request for information retrieval. You can restrict the returned records based on explicit conditions, logical operators, and specific formatting rules defined in your collection data model.

## Key Capabilities & Use Cases

The Query Builder goes far beyond basic searching. Here is what you can accomplish with it:

- **Filter Data with Powerful Operators:** You can apply detailed constraints to fields using standard relational operators such as `Contains`, `Starts With`, `Is Empty`, `Between` (great for date ranges), or mathematical comparisons for numeric values.
- **Navigate Complex Relationships:** You can easily query “through” tables. For example, starting at the Collection Object table, you can map to the linked Collecting Event table, step further into Locality, and query based on the `NamedPlace` field—all within the same visual editor.
- **Generate Record Sets:** Once a query executes, you can convert your search results directly into a **Record Set**. Record Sets act as static cohorts of records that you can save, share with colleagues, bundle for data entry, or use for batch operations.
- **Power Reports and Data Exports:** Query Builder serves as the foundation for exporting and transforming data. Export result sets as CSV, create the basis for Darwin Core Archive exports or pipe the results into Specify’s report runner to print physical labels, ledgers, or loan invoices.
- **Data Cleanup and Batch Editing:** Record merging and batch editing are two fantastic tools that both stem from a query.

## How to Get Started

Building a new query in Specify 7 takes only a few simple steps:

1. Click on :queries_: **Queries** in your sidebar navigation menu.
2. Click the New button.
3. Select your target **Base Table** (for example, _Collection Object_).
4. Use the field mapper interface to navigate through fields and related tables. Click the green `+` icon next to fields to add them as columns in your query.
5. Define your sorting preferences, toggle visibility checkboxes, and type your target parameters into operator fields.
6. Click the Query button to fetch your data.

> [@Using the Query Builder](https://speciforum.org/t/query-builder-in-specify-7/289):
>
> open_book This guide details the Query Builder, a tool for searching and retrieving data across the database. It walks users through the process of creating a new query, adding fields from related tables, and applying operators (like Contains, Is Empty, or Between) to filter results. It covers features such as exporting results to CSV, creating KML files, and generating record sets. To learn about the Query Builder, read this article first: Create a Query queries_One of the expected …

---

<div class="post-metadata">

**Author:** ![bronwyn](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/bronwyn/32/5742_2.png) [@bronwyn](https://speciforum.org/u/bronwyn)\
**Post date:** [May 20, 2026, 5:15pm UTC](https://speciforum.org/t/about-the-query-builder/3650/2 "2026-05-20T17:15:03Z")

</div>

Pinned on May 20, 2026, 5:15pm UTC


