{
  "format": "dataset-manifest/1",
  "slug": "construction-site",
  "version": 2,
  "seed": "construction-site:1",
  "spec": {
    "format": "dataset/1",
    "slug": "construction-site",
    "name": "Construction Project Insights",
    "tagline": "Construction project data including subcontractor contracts, phases, safety measures, and materials used.",
    "description": "Teams coordinate resources and subcontractors in construction projects as they progress through various phases. Each project is characterized by important details such as the subcontractor contracts involved, safety measures being implemented, and the materials and equipment used on-site. The data reflects the dynamic nature of construction operations, where multiple subcontractors contribute to different aspects of a project, and materials are sourced based on project needs and timelines.\n\nThe 'projects' table contains records of each construction initiative, detailing aspects like project ID, name, start and end dates, involved subcontractors, safety protocols in place, and a breakdown of materials used. Each row represents a unique project, and the relationships among various elements—such as subcontractor performance and materials utilization—can be analyzed to glean insights into operational efficiency and safety adherence.\n\nBy exploring this dataset, developers can practice answering questions related to project timelines, subcontractor contributions, and safety incidents. For instance, one might investigate how different subcontractors impact project completion times or identify common safety violations linked to specific phases of work. The data is synthetic, allowing users to experiment and learn without concerns about privacy or real-world implications.",
    "domain": "government",
    "shape": "transactional",
    "useCases": [
      "sql-practice",
      "orm-seeding"
    ],
    "keywords": [
      "construction",
      "projects",
      "subcontractors",
      "safety",
      "materials",
      "equipment",
      "insights"
    ],
    "locale": "en",
    "license": "CC0-1.0",
    "version": 1,
    "tables": {
      "projects": {
        "description": "Each row represents a construction project, detailing subcontractors, phases, safety measures, and materials used.",
        "rows": 200,
        "columns": {
          "id": {
            "kind": "pk",
            "description": "Unique identifier for each project."
          },
          "project_name": {
            "kind": "words",
            "max": 5,
            "description": "The name of the construction project."
          },
          "subcontractor_count": {
            "kind": "int",
            "min": 1,
            "max": 10,
            "description": "Number of subcontractors involved in the project."
          },
          "phase": {
            "kind": "enum",
            "values": [
              "planning",
              "execution",
              "inspection",
              "completion"
            ],
            "description": "Current phase of the construction project."
          },
          "safety_violations": {
            "kind": "int",
            "min": 0,
            "max": 5,
            "description": "Number of safety violations recorded for the project."
          },
          "material_types": {
            "kind": "words",
            "max": 10,
            "description": "Types of materials used in the project, comma-separated."
          },
          "equipment_used": {
            "kind": "words",
            "max": 10,
            "description": "Equipment utilized in the construction project, comma-separated."
          },
          "budget": {
            "kind": "decimal",
            "min": 10000,
            "max": 1000000,
            "scale": 2,
            "description": "Total budget allocated for the project."
          },
          "start_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2023-12-31",
            "description": "Start date of the construction project.",
            "trend": "growing"
          },
          "completion_date": {
            "kind": "date",
            "from": "2020-01-01",
            "to": "2024-12-31",
            "nullable": true,
            "description": "Expected or actual completion date of the project. Null if ongoing.",
            "trend": "growing",
            "when": {
              "column": "phase",
              "in": [
                "completion"
              ]
            }
          }
        }
      }
    },
    "structure": "single-table",
    "traits": [
      "categorical",
      "nullable",
      "monetary"
    ],
    "analysisQuestions": [
      "What are the most common subcontractors involved in construction projects?",
      "How do safety violations vary across different project phases?",
      "What is the average budget allocated for construction projects?",
      "Which materials are most frequently used in construction projects?"
    ],
    "suggestedQueries": [
      {
        "title": "List all projects with their subcontractor count",
        "sql": "SELECT project_name, subcontractor_count FROM projects;"
      },
      {
        "title": "Count of safety violations by phase",
        "sql": "SELECT phase, SUM(safety_violations) as total_violations FROM projects GROUP BY phase;"
      },
      {
        "title": "Average budget for projects with safety violations",
        "sql": "SELECT AVG(budget) as average_budget FROM projects WHERE safety_violations > 0;"
      },
      {
        "title": "Projects started in the last year",
        "sql": "SELECT * FROM projects WHERE start_date >= NOW() - INTERVAL '1 year';"
      }
    ],
    "usageScenarios": [
      {
        "title": "SQL Practice for Developers",
        "body": "Developers can use this dataset to practice their SQL skills by writing queries to extract insights about construction projects, such as comparing budgets and subcontractor counts."
      },
      {
        "title": "ORM Seeding for Applications",
        "body": "Developers building applications in the construction sector can seed their databases with this synthetic dataset, enabling them to test features related to project management and subcontractor coordination."
      },
      {
        "title": "Data Analysis for Project Managers",
        "body": "Project managers can leverage this dataset to simulate data analysis tasks, helping them understand common project challenges and safety compliance issues in construction."
      }
    ]
  },
  "counts": {
    "projects": 200
  },
  "stats": {
    "projects": {
      "rows": 200,
      "columns": {
        "id": {
          "nulls": 0,
          "distinct": 200,
          "min": 1,
          "max": 200
        },
        "project_name": {
          "nulls": 0,
          "distinct": 200
        },
        "subcontractor_count": {
          "nulls": 0,
          "distinct": 10,
          "min": 1,
          "max": 10
        },
        "phase": {
          "nulls": 0,
          "distinct": 4,
          "min": "completion",
          "max": "planning"
        },
        "safety_violations": {
          "nulls": 0,
          "distinct": 6,
          "min": 0,
          "max": 5
        },
        "material_types": {
          "nulls": 0,
          "distinct": 200
        },
        "equipment_used": {
          "nulls": 0,
          "distinct": 200
        },
        "budget": {
          "nulls": 0,
          "distinct": 200,
          "min": 20044.41,
          "max": 995283.7
        },
        "start_date": {
          "nulls": 0,
          "distinct": 195,
          "min": "2020-01-23",
          "max": "2023-12-22"
        },
        "completion_date": {
          "nulls": 155,
          "distinct": 45,
          "min": "2020-01-16",
          "max": "2024-10-12"
        }
      }
    }
  },
  "artifacts": [
    {
      "file": "csv/projects.csv",
      "format": "csv",
      "table": "projects",
      "key": "datasets/construction-site/v2/csv/projects.csv",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/csv/projects.csv",
      "bytes": 29815,
      "sha256": "3bb098efa575a52d6216af78718a950b9e5ec94febaa74b7d7c45187b10b443e",
      "rows": 200,
      "contentType": "text/csv; charset=utf-8"
    },
    {
      "file": "construction-site.json",
      "format": "json",
      "table": null,
      "key": "datasets/construction-site/v2/construction-site.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/construction-site.json",
      "bytes": 79388,
      "sha256": "299d40ea86ac8fe8aa7d2fd8e490fefb9063c157d2f4cc4e69613a8c272a7c18",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    },
    {
      "file": "sql/postgres.sql",
      "format": "sql-postgres",
      "table": null,
      "key": "datasets/construction-site/v2/sql/postgres.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/sql/postgres.sql",
      "bytes": 36405,
      "sha256": "ab06ac9fe9a23ee56edd4107ea46a16c57f2c7c9acf15176999f789cc9c136f9",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mysql.sql",
      "format": "sql-mysql",
      "table": null,
      "key": "datasets/construction-site/v2/sql/mysql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/sql/mysql.sql",
      "bytes": 36298,
      "sha256": "697b1fa1d53b6a157a7047e2847bf84f5768ecc0c3ee6c28c39c3d7f2508fd54",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/mssql.sql",
      "format": "sql-mssql",
      "table": null,
      "key": "datasets/construction-site/v2/sql/mssql.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/sql/mssql.sql",
      "bytes": 37408,
      "sha256": "933f01ad229d755790b2391a14b3aca481691621cfef1219c5d26b4044152e2f",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "sql/sqlite.sql",
      "format": "sql-sqlite",
      "table": null,
      "key": "datasets/construction-site/v2/sql/sqlite.sql",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/sql/sqlite.sql",
      "bytes": 36259,
      "sha256": "1ab7a9212e30ffb85a57f600a1db561faa4fcd3eabb5896f199ed4d43aba0fff",
      "rows": null,
      "contentType": "application/sql; charset=utf-8"
    },
    {
      "file": "prisma/seed.ts",
      "format": "prisma-seed",
      "table": null,
      "key": "datasets/construction-site/v2/prisma/seed.ts",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/prisma/seed.ts",
      "bytes": 65338,
      "sha256": "d443d5f5959d921a22fad94518cf9ab8b08f6a35ce0f5c966ec5d881162ce201",
      "rows": null,
      "contentType": "application/typescript; charset=utf-8"
    },
    {
      "file": "django/fixtures.json",
      "format": "django-fixture",
      "table": null,
      "key": "datasets/construction-site/v2/django/fixtures.json",
      "url": "https://database-sample-website.s3.eu-north-1.amazonaws.com/datasets/construction-site/v2/django/fixtures.json",
      "bytes": 88603,
      "sha256": "9026fc4d6cc936cc7db563bbe25a05d476bda7b6226e957dd6104b9bf0ed1d66",
      "rows": null,
      "contentType": "application/json; charset=utf-8"
    }
  ],
  "publishedAt": 1788766539393,
  "updatedAt": 1788770102372
}
