SELECT L.areasymbol AS Area_symbol, L.areaname AS Area_name, M.musym AS Map_unit_symbol,
M.muname AS Map_unit_name, M.mukey AS MUKEY, C.compname AS Component_name, C.comppct_r AS Component_percentage,
CE.ecoclassname AS Eco_class_name, CE.ecoclassid AS Eco_site_ID
FROM legend AS L
INNER JOIN mapunit AS M ON M.Lkey = L.Lkey
AND mukey IN (SELECT mukey FROM SDA_Get_Mukey_from_intersection_with_WktWgs84(
'polygon
((-97.4 28.5, -97.4 28.6,-97.3 28.6,-97.3 28.5,-97.4 28.5))'))
INNER JOIN component AS C ON M.mukey=C.mukey AND compkind = 'series'
INNER JOIN coecoclass AS CE ON C.cokey = CE.cokey