datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp
Loading...

Query the Data Delivery Network

Query the DDN

The easiest way to query any data on Splitgraph is via the "Data Delivery Network" (DDN). The DDN is a single endpoint that speaks the PostgreSQL wire protocol. Any Splitgraph user can connect to it at data.splitgraph.com:5432 and query any version of over 40,000 datasets that are hosted or proxied by Splitgraph.

For example, you can query the 2022_austin_council_district_demographic_data table in this repository, by referencing it like:

"datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest"."2022_austin_council_district_demographic_data"

or in a full query, like:

SELECT
    ":id", -- Socrata column ID
    "_65_years_and_over", -- Total Population 65 and older (2021 ACS 1Y)
    "total_households", -- Total Households (2021 ACS 1Y)
    "_3_or_4_units", -- Percent of Housing Unit by Type: 3 or 4 Untis (2021 ACS 5Y)
    "hh_income_25000_to_34999", -- Total Households making $25,000-34,999 per year (2021 ACS 1Y)
    "hh_income_200000_or_more", -- Total Households making $200,000 or more per year (2021 ACS 1Y)
    "_2_units", -- Percent of Housing Unit by Type: 2 Units (2021 ACS 5Y)
    "_1_unit_attached", -- Percent of Housing Unit by Type: 1 Unit Attached (2021 ACS 5Y)
    "total_black", -- Total Black Population (2021 ACS 1Y)
    "total_multiracial", -- Total Multiracial Population (2021 ACS 1Y)
    "total_housing_units", -- Total Housing Units (2021 ACS 1Y)
    "_1_unit_detached", -- Percent of Housing Unit by Type: 1 Unit Detached (2021 ACS 5Y)
    "median_travel_time_to_work", -- Median Number of Minutes it Takes to Get to Work (2021 ACS 1Y)
    "median_home_sale_price", -- Median Home Sales Price (Austin Board of Realtors 2022)
    "percent_low_moderate_income", -- Percent of People with a Low to Moderate Income
    "landuse_undeveloped", -- Percent of Total Square Feet that is undeveloped  (2023 COA Land Use Inventory)
    "landuse_office", -- Percent of Total Square Feet with an Office Land Use  (2023 COA Land Use Inventory)
    "landuse_single_family", -- Percent of Total Square Feet with a Single Family Land Use (2023 COA Land Use Inventory)
    "landuse_industrial", -- Percent of Total Square Feet with an Industrial Land Use  (2023 COA Land Use Inventory)
    "landuse_commercial", -- Percent of Total Square Feet with a Commerical Land Use  (2023 COA Land Use Inventory)
    "landuse_civic", -- Percent of Total Square Feet with a Civic Land Use  (2023 COA Land Use Inventory)
    "income_restricted_housing", -- Number of Income Restricted Housing Units (COA AHI March 2023)
    "hh_income_75000_to_99999", -- Total Households making $75,000-99,999 per year (2021 ACS 1Y)
    "_85_years_and_over", -- Total Population 85 and over , (2021 ACS 1Y)
    "uninsured", -- Percent of People without Insurance (2021 ACS 1Y)
    "_55_to_59_years", -- Total Population 55-59 , (2021 ACS 1Y)
    "median_hh_income", -- Median Household Income (2021 ACS 1Y)
    "spanish_language", -- Number of People  who Speak Spanish at Home (2021 ACS 1Y)
    "taxicab_motorcycle_or_other", -- Percent of Workers 16 and Older who Took a Taxi, Motorcycle, or Other means (2021 ACS 5Y)
    "hh_income_50000_to_74999", -- Total Households making  $50,000-75,999 per year (2021 ACS 1Y)
    "walked", -- Percent of Workers 16 and Older who Walked to Work (2021 ACS 5Y)
    "_10_to_19_units", -- Percent of Housing Unit by Type: 10-19 Units (2021 ACS 5Y)
    "car_truck_or_vandrove_alone", -- Percent of Workers 16 and Older who Drove Alone to Work (2021 ACS 5Y)
    "public_transportation", -- Percent of Workers 16 and Older who took Public Transportation to Work (2021 ACS 5Y)
    "independent_living_difficulty", -- Percent of People with an Independent Living Difficulty (2021 ACS 1Y)
    "asian_pacific_island_language", -- Number of People  who Speak an Asian or Pacific Island Language at Home (2021 ACS 1Y)
    "total_another_race", -- Total  Population Of Another Race (2021 ACS 1Y)
    "car_truck_or_vancarpooled", -- Percent of Workers 16 and Older who Carpooled to Work (2021 ACS 5Y)
    "self_employed_in_own_not", -- Percent of Workers that are self-employed (2021 ACS 5Y)
    "bicycle", -- Percent of Workers 16 and Older who Bicycled to Work (2021 ACS 5Y)
    "under_5_years", -- Total Population Under 5, (2021 ACS 1Y)
    "cognitive_difficulty", -- Percent of People with a Cognitive Difficulty (2021 ACS 1Y)
    "federal_government_workers", -- Percent of Workers  in Federal Government (2021 ACS 5Y)
    "hearing_difficulty", -- Percent of People with a Hearing Difficulty (2021 ACS 1Y)
    "state_government_workers", -- Percent of Workers  in State Government (2021 ACS 5Y)
    "private_not_for_profit_wage", -- Percent of salaried employees who work in a not-for-profit industry (2021 ACS 5Y)
    "private_for_profit_wage_and", -- Percent of salaried employees who work in a for profit industry (2021 ACS 5Y)
    "hh_income_10000_to_14999", -- Total Households making $10,000-14,999 per year (2021 ACS 1Y)
    "costburdened_50000_74999", -- Percent of people who make $50,000-74,999 and spend more than 30% of their income on housing  (2021 ACS 1Y)
    "costburdened_20000_34999", -- Percent of people who make $20,000-34,999 and spend more than 30% of their income on housing  (2021 ACS 1Y)
    "costburdened_20000", -- Percent of people who make under $20,000 and spend more than 30% of their income on housing  (2021 ACS 1Y)
    "owner_white", -- Percent of WhitePopulation that Owns (2021 ACS 1Y)
    "owner_black", -- Percent of Black Population that Owns (2021 ACS 1Y)
    "owner_asian", -- Percent of Asian Population that Owns (2021 ACS 1Y)
    "owner_occupied_housing_units", -- Percent of Housing Units that are Owner Occupied (2021 ACS 1Y)
    "limited_english_proficiency", -- Percent of People with Limited English Proficiency (2021 ACS 1Y)
    "_75_to_79_years", -- Total Population 75-79 , (2021 ACS 1Y)
    "landuse_open_spaces", -- Percent of Total Square Feet that is Open Space  (2023 COA Land Use Inventory)
    "avg_hh_size", -- Average Household Size (2021 ACS 1Y)
    "hh_income_35000_to_49999", -- Total Households making $35,000-49,999 per year (2021 ACS 1Y)
    "renter_occupied_housing_units", -- Percent of Housing Units that are Renter Occupied (2021 ACS 1Y)
    "total_asian", -- Total Asian Population (2021 ACS 1Y)
    "no_vehicle", -- Percent of Households with no Vehicle (2021 ACS 1Y)
    "no_internet", -- Percent of Households with no Internet Access (2021 ACS 1Y)
    "receive_snap", -- Percent of Households utilizing SNAP/food stamps (2021 ACS 1Y)
    "below_poverty", -- Percent of People Living in Poverty (2021 ACS 1Y)
    "total_aian", -- Total American Indian or Alaska Native Population (2021 ACS 1Y)
    "self_care_difficulty", -- Percent of People with a Self-care Difficulty (2021 ACS 1Y)
    "ambulatory_difficulty", -- Percent of People with an Ambulatory Difficulty (2021 ACS 1Y)
    "_5_to_9_units", -- Percent of Housing Unit by Type: 5-9 Units (2021 ACS 5Y)
    "hh_income_15000_to_24999", -- Total Households making 15,000-24,999 per year (2021 ACS 1Y)
    "_5_to_9_years", -- Total Population 5-9 , (2021 ACS 1Y)
    "with_a_disability", -- Percent of People with Any Type of Disability (2021 ACS 1Y)
    "over_65_uninsured", -- Percent of People 65 and older without Insurance (2021 ACS 1Y)
    "cost_burdened_total", -- Total percent of population that spends 30% or more of their income on housing (2021 ACS 1Y)
    "owner_hispanic", -- Percent of Hispanic Population that Owns (2021 ACS 1Y)
    "_50_to_54_years", -- Total Population 50-54 , (2021 ACS 1Y)
    "indo_european_language", -- Number of People  who Speak an Indo-European Language at Home (2021 ACS 1Y)
    "hhs_with_at_least_1_person", -- Percent of Housholds with at least 1 person Under 18 (2021 ACS 1Y)
    "under_19_uninsured", -- Percent of People Under 19 without Insurance (2021 ACS 1Y)
    "bachelors_degree_or_higher", -- Percent of People with a Bachelor's Degree or Higher (2021 ACS 1Y)
    "total_hispanic_latinx", -- Total Hispanic/Latina/o/x Population (2021 ACS 1Y)
    "total_white", -- Total White Population (2021 ACS 1Y)
    "white_alone_not_hispanic", -- Percent of White Population with a High School Diploma (or equivalent) or Higher (2021 ACS 1Y)
    "hispanic_or_latino_origin", -- Percent of Hispanic Population with a Bachelor's Degree or Higher (2021 ACS 1Y)
    "landuse_mixed_use", -- Percent of Total Square Feet with a Mixed Use Land Use  (2023 COA Land Use Inventory)
    "hh_income_less_than_10000", -- Total Households making less than $10,000 per year (2021 ACS 1Y)
    "worked_from_home", -- Percent of Workers 16 and Older who Worked from Home (2021 ACS 5Y)
    "hh_income_100000_to_149999", -- Total Households making $100,000-149,999 per year (2021 ACS 1Y)
    "local_government_workers", -- Percent of Workers  in Local Government (2021 ACS 5Y)
    "hh_income_150000_to_199999", -- Total Households making $150,000-199,999 per year (2021 ACS 1Y)
    "hispanic_or_latino_originhigh", -- Percent of Hispanic Population with a High School Diploma (or equivalent) or Higher (2021 ACS 1Y)
    "total_nhopi", -- Total Native Hawaiian or Pacific Islander Population (2021 ACS 1Y)
    "black_alonebachelors_degree", -- Percent of Black Population with a Bachelor's Degree or Higher (2021 ACS 1Y)
    "average_closing_rent", -- Average Closing Rent (Austin Board of Realtors 2022)
    "white_alone_not_hispanic_1", -- Percent of White Population with a Bachelor's Degree or Higher (2021 ACS 1Y)
    "median_family_income",
    "vision_difficulty", -- Percent of People with a Vision Difficulty (2021 ACS 1Y)
    "black_alonehigh_school", -- Percent of Black Population with a High School Diploma (or equivalent) or Higher (2021 ACS 1Y)
    "_40_to_44_years", -- Total Population 40-44 , (2021 ACS 1Y)
    "asian_alonebachelors_degree", -- Percent of Asian Population with a Bachelor's Degree or Higher (2021 ACS 1Y)
    "total_families", -- Total Number of Families (2021 ACS 1Y)
    "asian_alonehigh_school", -- Percent of Asian Population with a High School Diploma (or equivalent) or Higher (2021 ACS 1Y)
    "householder_living_alone", -- Percent of Population in 1-person Households (2021 ACS 1Y)
    "landuse_multifamily", -- Percent of Total Square Feet with a Multifamily Land Use  (2023 COA Land Use Inventory)
    "costburdened_75000", -- Percent of people who make $75,000 or more and spend more than 30% of their income on housing  (2021 ACS 1Y)
    "costburdened_30000_49999", -- Percent of people who make $35,000-49,999 and spend more than 30% of their income on housing (2021 ACS 1Y)
    "_70_to_74_years", -- Total Population 70-74 , (2021 ACS 1Y)
    "occupied_housing_units", -- Total Occupied Housing Units (2021 ACS 1Y)
    "_15_to_19_years", -- Total Population 15-19, (2021 ACS 1Y)
    "district", -- Council District
    "total_population_2020_census", -- 2020 Decennial Census Population Counts
    "_10_to_14_years", -- Total Population 10-14 , (2021 ACS 1Y)
    "_20_to_24_years", -- Total Population 20-24 , (2021 ACS 1Y)
    "_25_to_29_years", -- Total Population 25-29 , (2021 ACS 1Y)
    "high_school_graduate_or_higher", -- Percent of People with a High School Diploma (or equivalent) or Higher (2021 ACS 1Y)
    "_30_to_34_years", -- Total Population 30-34 , (2021 ACS 1Y)
    "living_alone_65_years_and", -- Percent people 65 and Older Living Alone (2021 ACS 1Y)
    "_35_to_39_years", -- Total Population 35-39 , (2021 ACS 1Y)
    "_45_to_49_years", -- Total Population 45-49 , (2021 ACS 1Y)
    "_60_to_64_years", -- Total Population 60-64 , (2021 ACS 1Y)
    "_65_to_69_years", -- Total Population 65-69, (2021 ACS 1Y)
    "_80_to_84_years", -- Total Population 80-84 , (2021 ACS 1Y)
    "under_18_years", -- Total Population Under 18 (2021 ACS 1Y)
    "boat_rv_van_etc", -- Percent of Housing Unit by Type: Boat, EV, other (2021 ACS 5Y)
    "mobile_home", -- Percent of Housing Unit by Type: Mobile Home (2021 ACS 5Y)
    "median_age", -- Median Age (2021 ACS 1Y)
    "immigrants", -- Percent of Population who are Immigrants (2021 ACS 1Y)
    "_20_or_more_units", -- Percent of Housing Unit by Type: 20 or more Units (2021 ACS 5Y)
    "veterans" -- Percent of Population who are Veterans (2021 ACS 1Y)
FROM
    "datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest"."2022_austin_council_district_demographic_data"
LIMIT 100;

Connecting to the DDN is easy. All you need is an existing SQL client that can connect to Postgres. As long as you have a SQL client ready, you'll be able to query datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp with SQL in under 60 seconds.

Query Your Local Engine

Install Splitgraph Locally
bash -c "$(curl -sL https://github.com/splitgraph/splitgraph/releases/latest/download/install.sh)"
 

Read the installation docs.

Splitgraph Cloud is built around Splitgraph Core (GitHub), which includes a local Splitgraph Engine packaged as a Docker image. Splitgraph Cloud is basically a scaled-up version of that local Engine. When you query the Data Delivery Network or the REST API, we mount the relevant datasets in an Engine on our servers and execute your query on it.

It's possible to run this engine locally. You'll need a Mac, Windows or Linux system to install sgr, and a Docker installation to run the engine. You don't need to know how to actually use Docker; sgrcan manage the image, container and volume for you.

There are a few ways to ingest data into the local engine.

For external repositories, the Splitgraph Engine can "mount" upstream data sources by using sgr mount. This feature is built around Postgres Foreign Data Wrappers (FDW). You can write custom "mount handlers" for any upstream data source. For an example, we blogged about making a custom mount handler for HackerNews stories.

For hosted datasets (like this repository), where the author has pushed Splitgraph Images to the repository, you can "clone" and/or "checkout" the data using sgr cloneand sgr checkout.

Cloning Data

Because datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest is a Splitgraph Image, you can clone the data from Spltgraph Cloud to your local engine, where you can query it like any other Postgres database, using any of your existing tools.

First, install Splitgraph if you haven't already.

Clone the metadata with sgr clone

This will be quick, and does not download the actual data.

sgr clone datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp

Checkout the data

Once you've cloned the data, you need to "checkout" the tag that you want. For example, to checkout the latest tag:

sgr checkout datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest

This will download all the objects for the latest tag of datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp and load them into the Splitgraph Engine. Depending on your connection speed and the size of the data, you will need to wait for the checkout to complete. Once it's complete, you will be able to query the data like you would any other Postgres database.

Alternatively, use "layered checkout" to avoid downloading all the data

The data in datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest is 0 bytes. If this is too big to download all at once, or perhaps you only need to query a subset of it, you can use a layered checkout.:

sgr checkout --layered datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp:latest

This will not download all the data, but it will create a schema comprised of foreign tables, that you can query as you would any other data. Splitgraph will lazily download the required objects as you query the data. In some cases, this might be faster or more efficient than a regular checkout.

Read the layered querying documentation to learn about when and why you might want to use layered queries.

Query the data with your existing tools

Once you've loaded the data into your local Splitgraph Engine, you can query it with any of your existing tools. As far as they're concerned, datahub-austintexas-gov/2022-austin-council-district-demographic-data-puux-7swp is just another Postgres schema.

Related Documentation:

Loading...