{
  "format": "dataset-manifest/1",
  "slug": "real-estate-sales-sample-database",
  "version": 1,
  "seed": "flagship:real-estate-sales-sample-database:1k",
  "engine": 2,
  "engineVersion": "1.0.0",
  "spec": {
    "format": "dataset/1",
    "engine": 2,
    "slug": "real-estate-sales-sample-database",
    "name": "Real estate sales sample database",
    "tagline": "Listings, offers, appraisals and closed sales across agents and agencies.",
    "description": "A residential real estate market: properties listed in fourteen states, the offers made on them, the appraisals and inspections before closing, and the sales themselves, each tied to the agent and client who made it. Prices follow the long right tail real markets have -- most homes in the hundreds of thousands, a few in the millions -- and every offer and sale is dated after its property was listed.",
    "domain": "real-estate",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "bi-dashboards",
      "test-fixtures"
    ],
    "keywords": [
      "real estate",
      "property sales",
      "home prices",
      "sample database"
    ],
    "locale": "en_US",
    "license": "CC0-1.0",
    "version": 1,
    "seed": "flagship:real-estate-sales-sample-database",
    "tables": {
      "agencies": {
        "description": "Rows for the agencies table.",
        "rows": 16,
        "columns": {
          "agency_id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "agency_name": {
            "kind": "company.name"
          },
          "city": {
            "kind": "place.city"
          },
          "phone": {
            "kind": "place.phone"
          },
          "state": {
            "kind": "place.regionCode"
          },
          "zip_code": {
            "kind": "place.postcode"
          }
        }
      },
      "agent_agencies": {
        "description": "Rows for the agent_agencies table.",
        "rows": 125,
        "columns": {
          "agent_agency_id": {
            "kind": "pk"
          },
          "agency_id": {
            "kind": "fk",
            "ref": "agencies.agency_id",
            "skew": "long-tail"
          },
          "agent_id": {
            "kind": "fk",
            "ref": "agents.agent_id",
            "skew": "long-tail"
          },
          "end_date": {
            "kind": "date",
            "after": "start_date",
            "withinDays": 1500,
            "nullable": true,
            "nullRate": 0.55
          },
          "start_date": {
            "kind": "date",
            "from": "2021-01-01",
            "to": "2025-12-31"
          }
        }
      },
      "agents": {
        "description": "Rows for the agents table.",
        "rows": 125,
        "columns": {
          "agent_id": {
            "kind": "pk"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            }
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "RE-#######",
            "unique": true
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "appraisals": {
        "description": "Rows for the appraisals table.",
        "rows": 125,
        "columns": {
          "appraisal_id": {
            "kind": "pk"
          },
          "appraisal_date": {
            "kind": "date",
            "after": "property_id.created_at",
            "withinDays": 120
          },
          "appraised_value": {
            "kind": "decimal",
            "min": 85000,
            "max": 2400000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "appraiser_id": {
            "kind": "fk",
            "ref": "appraisers.appraiser_id",
            "skew": "long-tail"
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          }
        }
      },
      "appraisers": {
        "description": "Rows for the appraisers table.",
        "rows": 16,
        "columns": {
          "appraiser_id": {
            "kind": "pk"
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "APR-######",
            "unique": true
          }
        }
      },
      "clients": {
        "description": "Rows for the clients table.",
        "rows": 125,
        "columns": {
          "client_id": {
            "kind": "pk"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2023-01-01",
            "to": "2025-12-31"
          },
          "email": {
            "kind": "internet.email",
            "from": {
              "firstName": "first_name",
              "lastName": "last_name"
            }
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "phone": {
            "kind": "phone.number"
          }
        }
      },
      "inspections": {
        "description": "Rows for the inspections table.",
        "rows": 125,
        "columns": {
          "inspection_id": {
            "kind": "pk"
          },
          "inspection_date": {
            "kind": "date",
            "after": "property_id.created_at",
            "withinDays": 90
          },
          "inspector_id": {
            "kind": "fk",
            "ref": "inspectors.inspector_id",
            "skew": "long-tail"
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          },
          "result": {
            "kind": "enum",
            "values": [
              "passed",
              "passed_with_notes",
              "failed"
            ],
            "weights": [
              62,
              31,
              7
            ]
          }
        }
      },
      "inspectors": {
        "description": "Rows for the inspectors table.",
        "rows": 16,
        "columns": {
          "inspector_id": {
            "kind": "pk"
          },
          "first_name": {
            "kind": "person.firstName"
          },
          "last_name": {
            "kind": "person.lastName"
          },
          "license_number": {
            "kind": "pattern",
            "pattern": "INS-######",
            "unique": true
          }
        }
      },
      "neighbourhoods": {
        "description": "Rows for the neighbourhoods table.",
        "rows": 16,
        "columns": {
          "neighbourhood_id": {
            "kind": "pk"
          },
          "city": {
            "kind": "place.city"
          },
          "name": {
            "kind": "title",
            "min": 1,
            "max": 2,
            "pool": [
              "Oak",
              "Maple",
              "Cedar",
              "River",
              "Hill",
              "Park",
              "Lake",
              "Meadow",
              "Ridge",
              "Grove",
              "Harbor",
              "Heights",
              "Village",
              "Springs",
              "Brook",
              "Pines"
            ]
          },
          "state": {
            "kind": "place.regionCode"
          }
        }
      },
      "offers": {
        "description": "Rows for the offers table.",
        "rows": 125,
        "columns": {
          "offer_id": {
            "kind": "pk"
          },
          "client_id": {
            "kind": "fk",
            "ref": "clients.client_id",
            "skew": "long-tail"
          },
          "offer_amount": {
            "kind": "decimal",
            "min": 85000,
            "max": 2400000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "offer_date": {
            "kind": "date",
            "after": "property_id.created_at",
            "withinDays": 180
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          },
          "status": {
            "kind": "enum",
            "values": [
              "submitted",
              "countered",
              "accepted",
              "rejected",
              "withdrawn"
            ],
            "weights": [
              18,
              22,
              25,
              27,
              8
            ]
          }
        }
      },
      "payment_methods": {
        "description": "Rows for the payment_methods table.",
        "rows": 6,
        "columns": {
          "payment_method_id": {
            "kind": "pk"
          },
          "method_name": {
            "kind": "enum",
            "values": [
              "conventional_mortgage",
              "cash",
              "fha_loan",
              "va_loan",
              "bridge_loan",
              "seller_financing"
            ],
            "unique": true
          }
        }
      },
      "properties": {
        "description": "Rows for the properties table.",
        "rows": 125,
        "columns": {
          "property_id": {
            "kind": "pk"
          },
          "address": {
            "kind": "location.streetAddress"
          },
          "city": {
            "kind": "place.city"
          },
          "created_at": {
            "kind": "datetime",
            "from": "2021-01-01",
            "to": "2025-12-31",
            "dayProfile": "business"
          },
          "price": {
            "kind": "decimal",
            "min": 85000,
            "max": 2400000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "property_type_id": {
            "kind": "fk",
            "ref": "property_types.property_type_id",
            "skew": "long-tail"
          },
          "state": {
            "kind": "place.regionCode"
          },
          "zip_code": {
            "kind": "place.postcode"
          }
        }
      },
      "property_neighbourhoods": {
        "description": "Rows for the property_neighbourhoods table.",
        "rows": 125,
        "columns": {
          "property_neighbourhood_id": {
            "kind": "pk"
          },
          "assigned_date": {
            "kind": "date",
            "from": "2023-01-01",
            "to": "2025-12-31"
          },
          "neighbourhood_id": {
            "kind": "fk",
            "ref": "neighbourhoods.neighbourhood_id",
            "skew": "long-tail"
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          }
        }
      },
      "property_types": {
        "description": "Rows for the property_types table.",
        "rows": 8,
        "columns": {
          "property_type_id": {
            "kind": "pk"
          },
          "type_name": {
            "kind": "enum",
            "values": [
              "single_family",
              "condo",
              "townhouse",
              "multi_family",
              "duplex",
              "co_op",
              "manufactured",
              "land"
            ],
            "unique": true
          }
        }
      },
      "repairs": {
        "description": "Rows for the repairs table.",
        "rows": 125,
        "columns": {
          "repair_id": {
            "kind": "pk"
          },
          "cost": {
            "kind": "decimal",
            "min": 120,
            "max": 65000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "description": {
            "kind": "sentence"
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          },
          "repair_date": {
            "kind": "date",
            "after": "property_id.created_at",
            "withinDays": 365
          }
        }
      },
      "transactions": {
        "description": "Rows for the transactions table.",
        "rows": 1000,
        "columns": {
          "transaction_id": {
            "kind": "pk"
          },
          "agent_id": {
            "kind": "fk",
            "ref": "agents.agent_id",
            "skew": "long-tail"
          },
          "client_id": {
            "kind": "fk",
            "ref": "clients.client_id",
            "skew": "long-tail"
          },
          "payment_method_id": {
            "kind": "fk",
            "ref": "payment_methods.payment_method_id",
            "skew": "long-tail"
          },
          "property_id": {
            "kind": "fk",
            "ref": "properties.property_id",
            "skew": "long-tail"
          },
          "sale_price": {
            "kind": "decimal",
            "min": 85000,
            "max": 2400000,
            "scale": 2,
            "distribution": "long-tail"
          },
          "transaction_date": {
            "kind": "date",
            "after": "property_id.created_at",
            "withinDays": 240
          }
        }
      }
    }
  },
  "counts": {
    "agencies": 16,
    "agents": 125,
    "agent_agencies": 125,
    "appraisers": 16,
    "clients": 125,
    "inspectors": 16,
    "neighbourhoods": 16,
    "payment_methods": 6,
    "property_types": 8,
    "properties": 125,
    "appraisals": 125,
    "inspections": 125,
    "offers": 125,
    "property_neighbourhoods": 125,
    "repairs": 125,
    "transactions": 1000
  },
  "artifacts": [
    {
      "file": "csv/agencies.csv",
      "format": "csv",
      "table": "agencies",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/agencies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/agencies.csv",
      "bytes": 1287,
      "sha256": "7cc8019edd4fd9ee9f7f5438799a16ce970783ab51f0e5c072af02ef0f8b3e26",
      "rows": 16,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/agents.csv",
      "format": "csv",
      "table": "agents",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/agents.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/agents.csv",
      "bytes": 9023,
      "sha256": "9be937613df001f929d685dafa5ae9c48c3e9be55c9a68d5e03bae3f96734c65",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/agent_agencies.csv",
      "format": "csv",
      "table": "agent_agencies",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/agent_agencies.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/agent_agencies.csv",
      "bytes": 3263,
      "sha256": "8dffd054ffd664e9b559d848ffe194bf80b834f39cc2beb0a9b454d7da3dc243",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/appraisers.csv",
      "format": "csv",
      "table": "appraisers",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/appraisers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/appraisers.csv",
      "bytes": 518,
      "sha256": "80c665324e2a8eeec00c64763e72d8627fa9a18db3215649644b60b9f8dabf13",
      "rows": 16,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/clients.csv",
      "format": "csv",
      "table": "clients",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/clients.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/clients.csv",
      "bytes": 10082,
      "sha256": "87b11c6e13b3e569291448e3358a4bc6b6035f8b51c2546a4894612f86923168",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspectors.csv",
      "format": "csv",
      "table": "inspectors",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/inspectors.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/inspectors.csv",
      "bytes": 527,
      "sha256": "3796dd22f0ca696da59adbb0f104ad4eb82066c3c84c52b6f81f0b5fe8232263",
      "rows": 16,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/neighbourhoods.csv",
      "format": "csv",
      "table": "neighbourhoods",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/neighbourhoods.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/neighbourhoods.csv",
      "bytes": 420,
      "sha256": "38bc215e452795438ae0c1214f603a851744b3650a53b92d21ebaa216b037294",
      "rows": 16,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/payment_methods.csv",
      "format": "csv",
      "table": "payment_methods",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/payment_methods.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/payment_methods.csv",
      "bytes": 122,
      "sha256": "6ee24b745ac6934a0a68d0ceccf81065e03a1b91c48f2c0a76b39fe9500a1d40",
      "rows": 6,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/property_types.csv",
      "format": "csv",
      "table": "property_types",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/property_types.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/property_types.csv",
      "bytes": 126,
      "sha256": "82e9bbbeecf17399597e3a7f677c9e08909d1734835ddeee649a0b3d6e261286",
      "rows": 8,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/properties.csv",
      "format": "csv",
      "table": "properties",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/properties.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/properties.csv",
      "bytes": 9300,
      "sha256": "c46ef19e41a182fc9be84de92dfd8dcb8f697c84f94e7308e437c231ff06574c",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/appraisals.csv",
      "format": "csv",
      "table": "appraisals",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/appraisals.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/appraisals.csv",
      "bytes": 3884,
      "sha256": "89ee9b7b56246baf36005d09f5df8e34aaf187e468c3d78e3720a9f6984777bc",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/inspections.csv",
      "format": "csv",
      "table": "inspections",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/inspections.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/inspections.csv",
      "bytes": 3833,
      "sha256": "f69ca7dfc0d9b104a174f26132d05245f90bedeaaa1f29563305bc10c6cc2665",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/offers.csv",
      "format": "csv",
      "table": "offers",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/offers.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/offers.csv",
      "bytes": 5127,
      "sha256": "af934a776f11bc884433619d445f6e59df6bd92972fa5652bbcdb8b1233a87ce",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/property_neighbourhoods.csv",
      "format": "csv",
      "table": "property_neighbourhoods",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/property_neighbourhoods.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/property_neighbourhoods.csv",
      "bytes": 2598,
      "sha256": "d609685bad9b1a5cd5a1b9ffcd53ee41ec2b0596a6175b5b14aa46d844855eb4",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/repairs.csv",
      "format": "csv",
      "table": "repairs",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/repairs.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/repairs.csv",
      "bytes": 10470,
      "sha256": "31685aef67a98bb241dd6ebfd88b519574ece53c39ba00d5faaf956cd7a11132",
      "rows": 125,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/real-estate-sales-sample-database/v1/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/csv/transactions.csv",
      "bytes": 36792,
      "sha256": "f75169ddf65770a83ae6b20787563241bc65caf2bb8a2dd76d392a5247cc9edd",
      "rows": 1000,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-estate-sales-sample-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/real-estate-sales-sample-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/real-estate-sales-sample-database.json",
      "bytes": 430080,
      "sha256": "c3a6ecd4ac2f7f5d96e05fff2ffc1e76b48c3fac28e12b76f8ef085f7ccceb7e",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/sql/postgres.sql",
      "bytes": 140909,
      "sha256": "d8956761ac955ad8c6a64c9885832792b90fd5610674e1f8f855676a133abc8c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/sql/mysql.sql",
      "bytes": 139051,
      "sha256": "48be58fc40f38bfb983dbddff23a85b95e20a440c9dec217e0a47628e209880c",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/sql/mssql.sql",
      "bytes": 144132,
      "sha256": "2899530a4278c59daad0e389c7f2af8c7b6f5daea3469184c5274f106de1f9c6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/sql/sqlite.sql",
      "bytes": 137756,
      "sha256": "bd86c9a566f41b4f5955d1a08c4c586efca54c5930d5573877876c07c46b7253",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/prisma/seed.ts",
      "bytes": 337780,
      "sha256": "e9dd6fe02ddb68daa6b7a739492a4a28629467c5fb3d60fcca96a8c6164e73c5",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-estate-sales-sample-database/v1/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/django/fixtures.json",
      "bytes": 495676,
      "sha256": "1d9dc4b0735c27e5012bf6b58a6f0367470b4a5a59e97682c2b94d4648edf0be",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "flagship": {
    "sizes": {
      "1k": {
        "rows": 2203,
        "counts": {
          "agencies": 16,
          "agents": 125,
          "agent_agencies": 125,
          "appraisers": 16,
          "clients": 125,
          "inspectors": 16,
          "neighbourhoods": 16,
          "payment_methods": 6,
          "property_types": 8,
          "properties": 125,
          "appraisals": 125,
          "inspections": 125,
          "offers": 125,
          "property_neighbourhoods": 125,
          "repairs": 125,
          "transactions": 1000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1k/postgres.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1k/postgres.sql.gz",
            "bytes": 43807,
            "sha256": "9c34739449aded47f97ce1c08c5fcc63801c528abd7afc3d3aedad16960e47a6",
            "raw": {
              "bytes": 140909,
              "sha256": "d8956761ac955ad8c6a64c9885832792b90fd5610674e1f8f855676a133abc8c"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1k/mysql.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1k/mysql.sql.gz",
            "bytes": 43362,
            "sha256": "7440ad1a03d8d558e6d9d8ca00e20cc940afe8fe7fd28ec88ba06ca5e921d3e2",
            "raw": {
              "bytes": 139051,
              "sha256": "48be58fc40f38bfb983dbddff23a85b95e20a440c9dec217e0a47628e209880c"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1k/sqlite.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1k/sqlite.sql.gz",
            "bytes": 43021,
            "sha256": "d61da14ce6acc7b6f39375425e54d78e829ee6dee3c190e466673b122ff49479",
            "raw": {
              "bytes": 137756,
              "sha256": "bd86c9a566f41b4f5955d1a08c4c586efca54c5930d5573877876c07c46b7253"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1k/csv.zip",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1k/csv.zip",
            "bytes": 44992,
            "sha256": "42890cc8997c5110f4d0de468f9ca0430a56c83333560a8ee096c71638267743",
            "tables": {
              "agencies": {
                "bytes": 1287,
                "sha256": "7cc8019edd4fd9ee9f7f5438799a16ce970783ab51f0e5c072af02ef0f8b3e26"
              },
              "agent_agencies": {
                "bytes": 3263,
                "sha256": "8dffd054ffd664e9b559d848ffe194bf80b834f39cc2beb0a9b454d7da3dc243"
              },
              "agents": {
                "bytes": 9023,
                "sha256": "9be937613df001f929d685dafa5ae9c48c3e9be55c9a68d5e03bae3f96734c65"
              },
              "appraisals": {
                "bytes": 3884,
                "sha256": "89ee9b7b56246baf36005d09f5df8e34aaf187e468c3d78e3720a9f6984777bc"
              },
              "appraisers": {
                "bytes": 518,
                "sha256": "80c665324e2a8eeec00c64763e72d8627fa9a18db3215649644b60b9f8dabf13"
              },
              "clients": {
                "bytes": 10082,
                "sha256": "87b11c6e13b3e569291448e3358a4bc6b6035f8b51c2546a4894612f86923168"
              },
              "inspections": {
                "bytes": 3833,
                "sha256": "f69ca7dfc0d9b104a174f26132d05245f90bedeaaa1f29563305bc10c6cc2665"
              },
              "inspectors": {
                "bytes": 527,
                "sha256": "3796dd22f0ca696da59adbb0f104ad4eb82066c3c84c52b6f81f0b5fe8232263"
              },
              "neighbourhoods": {
                "bytes": 420,
                "sha256": "38bc215e452795438ae0c1214f603a851744b3650a53b92d21ebaa216b037294"
              },
              "offers": {
                "bytes": 5127,
                "sha256": "af934a776f11bc884433619d445f6e59df6bd92972fa5652bbcdb8b1233a87ce"
              },
              "payment_methods": {
                "bytes": 122,
                "sha256": "6ee24b745ac6934a0a68d0ceccf81065e03a1b91c48f2c0a76b39fe9500a1d40"
              },
              "properties": {
                "bytes": 9300,
                "sha256": "c46ef19e41a182fc9be84de92dfd8dcb8f697c84f94e7308e437c231ff06574c"
              },
              "property_neighbourhoods": {
                "bytes": 2598,
                "sha256": "d609685bad9b1a5cd5a1b9ffcd53ee41ec2b0596a6175b5b14aa46d844855eb4"
              },
              "property_types": {
                "bytes": 126,
                "sha256": "82e9bbbeecf17399597e3a7f677c9e08909d1734835ddeee649a0b3d6e261286"
              },
              "repairs": {
                "bytes": 10470,
                "sha256": "31685aef67a98bb241dd6ebfd88b519574ece53c39ba00d5faaf956cd7a11132"
              },
              "transactions": {
                "bytes": 36792,
                "sha256": "f75169ddf65770a83ae6b20787563241bc65caf2bb8a2dd76d392a5247cc9edd"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "Every sale is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "Every offer is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "An agent's spell at an agency ends after it starts",
            "violations": 0
          },
          {
            "name": "Sale prices are between $85,000 and $2,400,000",
            "violations": 0
          },
          {
            "name": "Each property type and payment method appears once",
            "violations": 0
          }
        ]
      },
      "100k": {
        "rows": 218766,
        "counts": {
          "agencies": 1563,
          "agents": 12500,
          "agent_agencies": 12500,
          "appraisers": 1563,
          "clients": 12500,
          "inspectors": 1563,
          "neighbourhoods": 1563,
          "payment_methods": 6,
          "property_types": 8,
          "properties": 12500,
          "appraisals": 12500,
          "inspections": 12500,
          "offers": 12500,
          "property_neighbourhoods": 12500,
          "repairs": 12500,
          "transactions": 100000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/100k/postgres.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/100k/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/100k/postgres.sql.gz",
            "bytes": 4304493,
            "sha256": "a0ac886ea1b4edb2ca833be1386dba3a65b418233380d5cd1e42784cc78f9b03",
            "raw": {
              "bytes": 14338437,
              "sha256": "2318b5bff7e17dcbbe6103b8efd6f82427099866903191cdec93af4083a4acd5"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/100k/mysql.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/100k/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/100k/mysql.sql.gz",
            "bytes": 4303094,
            "sha256": "65da6446b8d2d915d46b9897ede77376cead9d22e47b3fabad8bbe4b48b98e9f",
            "raw": {
              "bytes": 14336579,
              "sha256": "175ec06f192a382705a616bbebe90d5fbf6b7541064ab2fb4a104fe0e460fa41"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/100k/sqlite.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/100k/sqlite.sql.gz",
            "bytes": 4302717,
            "sha256": "4750c5576da81e7af4d0de1599de62cd58c02d9020fbb9c1d3af7f3b8b80b1a4",
            "raw": {
              "bytes": 14335284,
              "sha256": "0e4cdffe19e260489acd4800076b0067c463b50fd52d732dd9e6b455f6dfb24f"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/100k/csv.zip",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/100k/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/100k/csv.zip",
            "bytes": 4273350,
            "sha256": "d90b3e594cda26caf38a3e3b647567719076ddf941c0ca973b421ef36c244e6c",
            "tables": {
              "agencies": {
                "bytes": 122569,
                "sha256": "c400030b58af01705682831d8ec575a24512d266354bad013c7443185fad7936"
              },
              "agent_agencies": {
                "bytes": 390074,
                "sha256": "b62e943f93676a77de83b1848880ba4f5b2d0e12dcc1f878446e4164791a44f6"
              },
              "agents": {
                "bytes": 916935,
                "sha256": "42d267abf72ad19902de3f17faa96240b3d4e13f949fd13bfb2b4cf50ad842db"
              },
              "appraisals": {
                "bytes": 449786,
                "sha256": "b547da61e81670ae380f469f2892d3e498e2c0c6533064e0c4f8ada727a9fbf8"
              },
              "appraisers": {
                "bytes": 48703,
                "sha256": "da5bd0d426c351f52c8dffbbdaf5b8d647bcad34425247b1fbc8fe215127e5e3"
              },
              "clients": {
                "bytes": 1029168,
                "sha256": "d19578428d24965437c5289e97dbc3ab848b654ab40f6e37f58b00afd23d3a10"
              },
              "inspections": {
                "bytes": 450723,
                "sha256": "32b3ad9cfdd26466ded9913b2b4b356aa52daf403ce1ffd197f73e6937f33efa"
              },
              "inspectors": {
                "bytes": 48795,
                "sha256": "1e1aec70207f0155a61b96d75ef550c7dd4fb2c0504aa64d08d78399ca4f742e"
              },
              "neighbourhoods": {
                "bytes": 41905,
                "sha256": "7260ea93fe8e7817584caef0fbf75db21cda6fda7ff6507f0a27eaeb4d0a9c51"
              },
              "offers": {
                "bytes": 578680,
                "sha256": "055ba5c4fe33eb47d9597ff5cb3e8aeaf6df6e3ff59dd83c90f5e579adadd365"
              },
              "payment_methods": {
                "bytes": 122,
                "sha256": "2b7d2382cb6b229b43f3cc583606fc8e611c198d48bc30f2cb678c8bf5df0ace"
              },
              "properties": {
                "bytes": 947332,
                "sha256": "a0164d8c75d009572ac1c71ae0d4d08c2a8e01576e2984841dcd89dd7430cc48"
              },
              "property_neighbourhoods": {
                "bytes": 321124,
                "sha256": "ce157c66a79ff2c586fcce74abe7762260c2f7f2443e4c9a909c3218bd2d8dba"
              },
              "property_types": {
                "bytes": 126,
                "sha256": "75872f6a78ec2ed905220997d5ada30c41d672d43c7d59fc22df6023345cc840"
              },
              "repairs": {
                "bytes": 1085173,
                "sha256": "ce6057cb082ee8985655d7dd2515dd84281fbda023f575f8e033090dfabd4968"
              },
              "transactions": {
                "bytes": 4430290,
                "sha256": "1c3a2fac79ab967251e7d8f06675bb9869f63773852642fa293d68cff1c04feb"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "Every sale is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "Every offer is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "An agent's spell at an agency ends after it starts",
            "violations": 0
          },
          {
            "name": "Sale prices are between $85,000 and $2,400,000",
            "violations": 0
          },
          {
            "name": "Each property type and payment method appears once",
            "violations": 0
          }
        ]
      },
      "1m": {
        "rows": 2187514,
        "counts": {
          "agencies": 15625,
          "agents": 125000,
          "agent_agencies": 125000,
          "appraisers": 15625,
          "clients": 125000,
          "inspectors": 15625,
          "neighbourhoods": 15625,
          "payment_methods": 6,
          "property_types": 8,
          "properties": 125000,
          "appraisals": 125000,
          "inspections": 125000,
          "offers": 125000,
          "property_neighbourhoods": 125000,
          "repairs": 125000,
          "transactions": 1000000
        },
        "notes": [],
        "downloads": [
          {
            "format": "sql-postgres",
            "label": "PostgreSQL",
            "file": "flagship/1m/postgres.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1m/postgres.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1m/postgres.sql.gz",
            "bytes": 45439156,
            "sha256": "d41f1a8ffa7d87b055fd0c48bb6b23412cc3795551a3e0954c167e84942e71f6",
            "raw": {
              "bytes": 149818369,
              "sha256": "fd1eb9ff366dfcd375f869d1bae35df231e79b4bb933e2c938772f63ec91a421"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-mysql",
            "label": "MySQL",
            "file": "flagship/1m/mysql.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1m/mysql.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1m/mysql.sql.gz",
            "bytes": 45437997,
            "sha256": "9ddd9ca06d7286919a8408289b145b706bcc2f1d81bcc519e9e8246b03e88a52",
            "raw": {
              "bytes": 149816511,
              "sha256": "dd2676365a24a67c9cb583b0e543ae375013d141fc9a97b88ad54fc991946e8a"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "sql-sqlite",
            "label": "SQLite",
            "file": "flagship/1m/sqlite.sql.gz",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1m/sqlite.sql.gz",
            "bytes": 45437592,
            "sha256": "ba21f1f78a33b3156372ea267aca6d94bd747e82798076af088e9ba5541f36a3",
            "raw": {
              "bytes": 149815216,
              "sha256": "fe6c5008e15efa1855815fffefc4b7a721bfa1e914965575532582aae5c96d7b"
            },
            "contentType": "application/gzip"
          },
          {
            "format": "csv",
            "label": "CSV",
            "file": "flagship/1m/csv.zip",
            "key": "datasets/real-estate-sales-sample-database/v1/flagship/1m/csv.zip",
            "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-sales-sample-database/v1/flagship/1m/csv.zip",
            "bytes": 45340774,
            "sha256": "7f93bfcdcc3eea3e41c8f9e82d3749b080b0ad203ae70d4f8bf7467524f2d8a4",
            "tables": {
              "agencies": {
                "bytes": 1240321,
                "sha256": "ddb79c54575b48a225d58d778dd16bacc966b43af3f72c92971571531b5a624f"
              },
              "agent_agencies": {
                "bytes": 4266326,
                "sha256": "9a5eeaed2a395a1f66cd0d1b60b19d52331d5119bf86301630b95efd4db99886"
              },
              "agents": {
                "bytes": 9300108,
                "sha256": "2711fdcb42c791aaaaec4a5eeb920381379cd11fcc140d606b7b1a6494b79975"
              },
              "appraisals": {
                "bytes": 4867785,
                "sha256": "cad9816e71a31561769bc63f1ed918f237e02450ec6bd02a0658a381f48f1de6"
              },
              "appraisers": {
                "bytes": 502786,
                "sha256": "2a83bf75ae2a308ffc35872618eb9e4e2acc60122aa6f9ce1c60befcb6c47a6f"
              },
              "clients": {
                "bytes": 10419338,
                "sha256": "6cd582a52406b1739f3c2393dac1f67a764ef97bdd8e813e0991d814ccf82a8b"
              },
              "inspections": {
                "bytes": 4880588,
                "sha256": "a05bd79183bd98596d15f0896661e8284ef754770c7f29a85108ac2e433392b3"
              },
              "inspectors": {
                "bytes": 502589,
                "sha256": "0e775b03bacfc390f9243cc38a7ca5101024e77aaaec829e40a370b21ad2ccf0"
              },
              "neighbourhoods": {
                "bytes": 434561,
                "sha256": "964b3c66a5c43afc3ef4146a4525f842ee96f973f3233fd88590179fc97a3672"
              },
              "offers": {
                "bytes": 6159125,
                "sha256": "79ad7dad557d604fc50ce7cdf03c89ea63a967c3105dabcc547bdf5c09bc2511"
              },
              "payment_methods": {
                "bytes": 122,
                "sha256": "a815c3e250138f4570c301392c6d32ee6fa50c753a69d3f13ac82853c695f004"
              },
              "properties": {
                "bytes": 9599677,
                "sha256": "26af2fdbcd5354c6f25eeaed2c6e1dfaf47b9217459fbd74575906cf53ad6bd6"
              },
              "property_neighbourhoods": {
                "bytes": 3581380,
                "sha256": "73ce9f2bb5fa02a9fc8ebb94a8fcad2c0fb678e46192b18d2b9de2d9145ed18d"
              },
              "property_types": {
                "bytes": 126,
                "sha256": "c31ba9a66c8d5b95883b93d673e230b04346516c0035fda09390ce6f846d78b1"
              },
              "repairs": {
                "bytes": 11101695,
                "sha256": "dc22789a34ce7bc6ffe812a2491ee393f63b72ccc83bcb83f7c4cc9ee3bcaf2e"
              },
              "transactions": {
                "bytes": 48270059,
                "sha256": "500c60c547005342bd2d488ea9677ae83f86dd1b9534871455ea46d623d83002"
              }
            },
            "contentType": "application/zip"
          }
        ],
        "checks": {
          "postgres": {
            "version": "18.3",
            "ok": true
          },
          "sqlite": {
            "version": "3.53.1",
            "ok": true
          },
          "notRun": [
            {
              "engine": "MySQL",
              "note": "Written from the same rows; not loaded here, no MySQL server runs in the build."
            }
          ]
        },
        "rules": [
          {
            "name": "Every sale is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "Every offer is dated on or after its property was listed",
            "violations": 0
          },
          {
            "name": "An agent's spell at an agency ends after it starts",
            "violations": 0
          },
          {
            "name": "Sale prices are between $85,000 and $2,400,000",
            "violations": 0
          },
          {
            "name": "Each property type and payment method appears once",
            "violations": 0
          }
        ]
      }
    },
    "rules": [
      {
        "name": "Every sale is dated on or after its property was listed",
        "sql": "SELECT count(*) AS violations FROM transactions t JOIN properties p ON p.property_id = t.property_id WHERE t.transaction_date < p.created_at::date"
      },
      {
        "name": "Every offer is dated on or after its property was listed",
        "sql": "SELECT count(*) AS violations FROM offers o JOIN properties p ON p.property_id = o.property_id WHERE o.offer_date < p.created_at::date"
      },
      {
        "name": "An agent's spell at an agency ends after it starts",
        "sql": "SELECT count(*) AS violations FROM agent_agencies WHERE end_date < start_date"
      },
      {
        "name": "Sale prices are between $85,000 and $2,400,000",
        "sql": "SELECT count(*) AS violations FROM transactions WHERE sale_price NOT BETWEEN 85000 AND 2400000"
      },
      {
        "name": "Each property type and payment method appears once",
        "sql": "SELECT (SELECT count(*) - count(DISTINCT type_name) FROM property_types) + (SELECT count(*) - count(DISTINCT method_name) FROM payment_methods) AS violations"
      }
    ]
  },
  "publishedAt": 1791241315267,
  "updatedAt": 1791241315267
}
