{"ok": true, "database": "cftracker", "query_name": "org_senators", "rows": [], "truncated": false, "columns": ["senator", "district", "current", "given", "contributions", "first_gift", "last_gift", "votes_on_its_bills", "voted_its_way"], "query": {"sql": "select l.name as senator, l.district, l.current, round(g.given, 2) as given, g.contributions,\n       g.first_gift, g.last_gift,\n       sum(vr.option in ('yes', 'no')) as votes_on_its_bills,\n       sum(op.clear_position = 'support' and vr.option = 'yes' or op.clear_position = 'oppose' and vr.option = 'no') as voted_its_way\nfrom senator_org_gifts g\njoin legislators l on l.person_id = g.person_id\nleft join org_positions op on op.principal = g.principal and op.clear_position is not null\nleft join bill_final_votes fv on fv.legislature = op.legislature and fv.bill = op.bill\nleft join vote_records vr on vr.vote_id = fv.vote_id and vr.person_id = g.person_id\nwhere g.principal = :name\ngroup by g.person_id\norder by g.given desc", "params": {"name": ""}}, "error": null, "private": false, "allow_execute_sql": false, "query_ms": 1.0368299845140427, "source": "FEC, Nebraska Accountability and Disclosure Commission, Clerk of the Legislature, Open States", "source_url": "https://www.fec.gov/data/", "license": "Public records"}