ArcGIS JavaScript API: prg/PRG_sql (MapServer)
Built using the
ArcGIS API for JavaScript