{
  "format": "dataset-manifest/1",
  "slug": "real-estate-transactions-database",
  "version": 2,
  "seed": "real-estate-transactions-database:1",
  "spec": {
    "format": "dataset/1",
    "slug": "real-estate-transactions-database",
    "name": "Real Estate Transactions Insights",
    "tagline": "Real estate transactions including property features, client demographics, and financial aspects of sales.",
    "description": "Agents navigate the real estate market, guiding clients through the buying and selling of properties. Each transaction represents a unique interaction between a buyer and a seller, often influenced by property features such as size, location, and condition. The transactions encapsulate the financial undertakings, including details about mortgages and deposits, while also reflecting the demographics of clients involved in these exchanges. Popular neighborhoods tend to see higher volumes of transactions, where competitive offers and standard inspections are the norms, contrasting with less common properties that may offer distinctive features or utilize rare escrow companies.\n\nThe primary table in this dataset, 'transactions', holds vital information on each property exchange. A single row in the transactions table captures a complete transaction record, detailing property characteristics, client demographics, inspection outcomes, and financial commitments. This structure enables various analytical opportunities, allowing data practitioners to explore relationships between property attributes and transaction success, as well as trends in client demographics across different market segments.\n\nThis dataset provides the opportunity to answer pertinent questions such as: What are the key factors influencing property transaction prices? How do client demographics correlate with property types or locations? Are there trends in inspection results that could affect buyer confidence? The synthetic nature of this data ensures that it remains a safe and versatile resource for practicing data analysis, enabling developers to hone their skills in handling real estate transactions and gaining insights into this dynamic industry.",
    "domain": "real-estate",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "real estate",
      "transactions",
      "properties",
      "clients",
      "mortgages",
      "inspections",
      "neighborhoods",
      "data analysis"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "transactions": {
        "description": "Each row represents a unique real estate transaction, linking various property features, client details, and financial aspects. The table provides a comprehensive overview of the real estate environment, with columns detailing property types, client demographics, and transaction specifics.",
        "rows": 500,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each transaction."
          },
          "property_type": {
            "kind": "enum",
            "values": [
              "single_family",
              "condo",
              "townhouse",
              "multi_family",
              "land"
            ],
            "description": "Type of property involved in the transaction.",
            "weights": [
              6,
              2,
              1,
              1,
              1
            ]
          },
          "square_footage": {
            "kind": "int",
            "min": 500,
            "max": 5000,
            "description": "Total area of the property in square feet."
          },
          "neighborhood": {
            "kind": "enum",
            "values": [
              "Downtown",
              "Suburbs",
              "Countryside",
              "City Center",
              "Coastal"
            ],
            "description": "Neighborhood where the property is located."
          },
          "client_age": {
            "kind": "int",
            "min": 18,
            "max": 80,
            "description": "Age of the client involved in the transaction.",
            "distribution": "normal"
          },
          "client_income": {
            "kind": "decimal",
            "min": 25000,
            "max": 300000,
            "scale": 2,
            "description": "Annual income of the client in USD.",
            "distribution": "long-tail"
          },
          "mortgage_amount": {
            "kind": "decimal",
            "min": 5000,
            "max": 1000000,
            "scale": 2,
            "description": "Amount of mortgage taken for the property.",
            "distribution": "heavy-tail"
          },
          "deposit_amount": {
            "kind": "decimal",
            "min": 500,
            "max": 50000,
            "scale": 2,
            "description": "Deposit amount made during the transaction.",
            "distribution": "long-tail"
          },
          "inspection_result": {
            "kind": "enum",
            "values": [
              "pass",
              "fail"
            ],
            "description": "Result of the property inspection.",
            "weights": [
              9,
              1
            ]
          },
          "transaction_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Date when the transaction occurred.",
            "trend": "growing"
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "monetary",
      "nullable"
    ],
    "analysisQuestions": [
      "What are the most common types of properties being sold?",
      "How does client income vary across different neighborhoods?",
      "What percentage of transactions pass the inspection?",
      "What is the average mortgage amount for single-family homes?",
      "How do deposits differ based on property type?"
    ],
    "suggestedQueries": [
      {
        "title": "List all transactions in a specific neighborhood",
        "sql": "SELECT * FROM transactions WHERE neighborhood = 'Downtown';",
        "dialect": "postgres"
      },
      {
        "title": "Count transactions by property type",
        "sql": "SELECT property_type, COUNT(*) FROM transactions GROUP BY property_type;",
        "dialect": "postgres"
      },
      {
        "title": "Average client income by property type",
        "sql": "SELECT property_type, AVG(client_income) FROM transactions GROUP BY property_type;",
        "dialect": "postgres"
      },
      {
        "title": "Find inspection pass rates",
        "sql": "SELECT inspection_result, COUNT(*) * 100.0 / (SELECT COUNT(*) FROM transactions) AS pass_rate FROM transactions GROUP BY inspection_result;",
        "dialect": "postgres"
      }
    ],
    "usageScenarios": [
      {
        "title": "Real Estate Agent Analysis",
        "body": "Real estate agents can utilize this dataset to analyze trends in property sales, helping them to identify which types of properties are most popular among clients. By examining factors such as neighborhood preferences and client demographics, agents can tailor their sales strategies to better meet the needs of potential buyers."
      },
      {
        "title": "Market Research for Investors",
        "body": "Investors looking to gain insights into the real estate market can leverage this dataset to assess which areas are seeing the most activity and what types of properties are yielding the highest returns. By understanding client income levels and mortgage trends, they can make informed decisions about where to invest their resources."
      },
      {
        "title": "Academic Research",
        "body": "Researchers studying the effects of economic factors on real estate transactions can use this dataset to facilitate their analyses. The data allows for exploration of relationships between client income, property types, and inspection outcomes, contributing valuable insights to the field of real estate economics."
      }
    ]
  },
  "counts": {
    "transactions": 500
  },
  "stats": {
    "transactions": {
      "rows": 500,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 500,
          "min": 1,
          "max": 500
        },
        "property_type": {
          "nulls": 0,
          "distinct": 5,
          "min": "condo",
          "max": "townhouse"
        },
        "square_footage": {
          "nulls": 0,
          "distinct": 471,
          "min": 508,
          "max": 5000
        },
        "neighborhood": {
          "nulls": 0,
          "distinct": 5,
          "min": "City Center",
          "max": "Suburbs"
        },
        "client_age": {
          "nulls": 0,
          "distinct": 45,
          "min": 26,
          "max": 75
        },
        "client_income": {
          "nulls": 0,
          "distinct": 500,
          "min": 25014.95,
          "max": 297181.03
        },
        "mortgage_amount": {
          "nulls": 0,
          "distinct": 499,
          "min": 5000.01,
          "max": 991962.1
        },
        "deposit_amount": {
          "nulls": 0,
          "distinct": 500,
          "min": 500.08,
          "max": 49629.48
        },
        "inspection_result": {
          "nulls": 0,
          "distinct": 2,
          "min": "fail",
          "max": "pass"
        },
        "transaction_date": {
          "nulls": 0,
          "distinct": 419,
          "min": "2020-01-05",
          "max": "2023-12-31"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/transactions.csv",
      "format": "csv",
      "table": "transactions",
      "key": "datasets/real-estate-transactions-database/v2/csv/transactions.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/csv/transactions.csv",
      "bytes": 38502,
      "sha256": "aab355a97fa4c81e4f6764e39f0b1c1851289db0689a2338154606093ac53499",
      "rows": 500,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "real-estate-transactions-database.json",
      "format": "json",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/real-estate-transactions-database.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/real-estate-transactions-database.json",
      "bytes": 165702,
      "sha256": "4202ad78c27be8f32d000c8d85f461067226147db5f32b2305f11ab8cab2c676",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/sql/postgres.sql",
      "bytes": 51365,
      "sha256": "dd73376de942ce359e42f982be03346107f71effbe3342337302f942b01982d8",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/sql/mysql.sql",
      "bytes": 51250,
      "sha256": "a2be710d58c509f2d1ee4f9c5ce096bbe94e942c9e315544242b443b17c0e996",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/sql/mssql.sql",
      "bytes": 53322,
      "sha256": "ca7c64980fe7c6356b3cc47a10f353c3251a1e84f9e29644e7190f0c00c3b983",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/sql/sqlite.sql",
      "bytes": 51221,
      "sha256": "bef2eef886d129a17d3a0017273be629aef31454a40ccb8341fca9f8f97cdfd6",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/prisma/seed.ts",
      "bytes": 131631,
      "sha256": "3cf772c722b9f9db35882ec3970a6796d06b82ec70033dbc0043b37dee2c5279",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/real-estate-transactions-database/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/real-estate-transactions-database/v2/django/fixtures.json",
      "bytes": 192868,
      "sha256": "83460be9085bf3b070536d53842003ef05d11485d3aa74cfa4f6c890e7b4af8a",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788767702736,
  "updatedAt": 1788785673550
}
