enriched select query