first cut - select query implementation to return a form