Vega lite graph with data from table query

Here is a post where I helped another user do something similar in the Vega-Lite chart - combining two data sets into one.