{"ok": true, "database": "cftracker", "query_name": "office_donors", "rows": [], "truncated": false, "columns": ["donor", "donor_type", "city", "employer", "candidates_funded", "candidates", "contributions", "total", "first_gift", "last_gift"], "query": {"sql": "with c as (\n  select org_id, candidate, office from candidate_offices\n  where :jurisdiction <> '' and place = :jurisdiction and (:office = '' or office = :office)\n    and org_id is not null\n  group by org_id\n)\nselect sc.contributor_name as donor, sc.contributor_type as donor_type, sc.city, sc.employer,\n       count(distinct c.org_id) as candidates_funded, group_concat(distinct c.candidate) as candidates,\n       count(*) as contributions, round(sum(sc.amount), 2) as total,\n       min(sc.date) as first_gift, max(sc.date) as last_gift\nfrom c\njoin state_contributions sc on sc.org_id = c.org_id and sc.is_itemized = 1\ngroup by sc.contributor_name, sc.zip5\norder by total desc\nlimit 300", "params": {"jurisdiction": "", "office": ""}}, "error": null, "private": false, "allow_execute_sql": false, "query_ms": 0.629866000963375, "source": "FEC, Nebraska Accountability and Disclosure Commission, Clerk of the Legislature, Open States", "source_url": "https://www.fec.gov/data/", "license": "Public records"}