with a as (
select
st_transform(
st_setsrid(st_makepoint(-74.002222, 40.733889), 4326),
3857
) as geo
)
select
name,
geom
from
nyc_building_footprints,
a
where
st_dwithin(geom_3857, a.geo, 200)
with a as (
select
st_transform(
st_setsrid(st_makepoint(-74.002222, 40.733889), 4326),
3857
) as geo
)
select
name,
geom
from
nyc_building_footprints,
a
where
st_dwithin(
geom_3857,
(
select
geo
from
a
),
10000
)