A home was listed at $320,000 on Friday and $310,000 the following Friday. Its asking price fell by $10,000 between observations. Another home appeared only in the first search. Its sale status is still unknown.
Try the comparison with two small Parquet downloads from a fictional for-sale search. Save both in the same directory and open DuckDB there. The examples below run in one DuckDB session. November 6 sample · November 13 sample · DuckDB CLI
Match homes across the two files
Each file has five rows. Use the Zillow property ID to match the same home across weeks. An address can be written differently between runs, and two units can share a street address.
CREATE TEMP VIEW snapshots AS
SELECT 1 AS week, nullif(trim(zillowPropertyID), '') AS property_id, streetAddress, price
FROM read_parquet('for-sale-2026-11-06.parquet')
UNION ALL
SELECT 2 AS week, nullif(trim(zillowPropertyID), '') AS property_id, streetAddress, price
FROM read_parquet('for-sale-2026-11-13.parquet');Before joining, check that each ID is present and occurs once per file. A duplicated ID can produce several apparent price changes for one home.
CREATE TEMP VIEW id_issues AS
SELECT week, property_id, count(*) AS records
FROM snapshots
GROUP BY week, property_id
HAVING property_id IS NULL OR count(*) > 1;
SELECT * FROM id_issues ORDER BY week, property_id;The samples return zero rows. If your files return any, review those records separately. The comparison below skips blank IDs and excludes a property from both weeks if its ID was duplicated in either week.
Find price changes and homes seen in one week
A full outer join keeps homes that appeared in either week. The query checks whether each home was present before comparing its prices, so a missing asking price can’t turn into a price cut.
WITH usable AS (
SELECT s.*
FROM snapshots AS s
WHERE s.property_id IS NOT NULL
AND NOT EXISTS (SELECT 1 FROM id_issues AS i WHERE i.property_id = s.property_id)
),
compared AS (
SELECT
coalesce(a.property_id, b.property_id) AS property_id,
coalesce(b.streetAddress, a.streetAddress) AS address,
a.price AS earlier_price,
b.price AS later_price,
b.price - a.price AS change_usd,
CASE
WHEN a.property_id IS NULL THEN 'Newly observed'
WHEN b.property_id IS NULL THEN 'Absent in week two'
WHEN a.price IS NULL OR b.price IS NULL THEN 'Price unavailable for comparison'
WHEN b.price < a.price THEN 'Asking price fell'
WHEN b.price > a.price THEN 'Asking price rose'
ELSE 'Unchanged'
END AS observation
FROM (SELECT * FROM usable WHERE week = 1) AS a
FULL OUTER JOIN (SELECT * FROM usable WHERE week = 2) AS b USING (property_id)
)
SELECT address, earlier_price, later_price, change_usd, observation
FROM compared
WHERE observation <> 'Unchanged'
ORDER BY property_id;| Address | November 6 | November 13 | Observation |
|---|---|---|---|
| 10 Example Lane | $320,000 | $310,000 | Asking price fell by $10,000 |
| 16 Example Lane | Unknown | $425,000 | Present both weeks. Only the later price is known. |
| 18 Example Lane | $450,000 | — | Absent in week two |
| 20 Example Lane | — | $465,000 | Newly observed |
Two other homes kept the same asking price. A newly observed home might already have been on the market before the first capture. A home can disappear because it moved outside your price filter or a results page failed to load. Check the source listing before assigning a sale or listing date.
Repeat the comparison with your own search
- Copy the full Zillow URL from page 1 of a filtered for-sale search. Create a Cloud Importer job with Basic export type and Every week as the run frequency. To cover the available result pages, enable Export all listings. Check the timezone and estimated credits before creating the job. For a baseline today, choose Start job after creation. A manual run keeps the weekly schedule in place. Recurring Importer schedules
- After each run, review the result status, pages collected, and property count. Keep the search URL, filters, and collection date with the file. A change to the filters or a partial run can change which listings qualify for the comparison. A confirmed No matching listings run costs zero credits and has no file to download. Record that outcome separately.
- On two results that contain listings, choose Export all properties and download Parquet with the same fields both times. Select Zillow property ID, Street address, Bedrooms, and Property price (USD) to match the samples. Leave Remove empty columns off so the query can still read a column when every value is missing. Name the files for their collection dates and use those names in the first query. How to export Zillow listings to JSON or Parquet
Importer follows the search. If you want to keep checking specific homes after they leave it, add their listing URLs or addresses to a Cloud Monitoring job.