Suppose we have information about some cars that are denoted by their license plate numbers. There are two sets of data represented by binary relations as follows:
$C=1<223 \mathrm{ABC}$, red $>,<105 \mathrm{XJQ}$, blue $>,<804 \mathrm{EWV}$, green $>$, $<831 \mathrm{EOZ}$, blue>, <834BTJ, red>, <979XPT, yellow $>$, <333NJL, green $>,<113 \mathrm{NPO}$, black $>,<660 \mathrm{AAA}$, white $>1$
$S=1<223 \mathrm{ABC}$, compact $>,<105 \mathrm{XJQ}$, midsize $>$, <804EWV, compact $>$, <834BTJ, large $>$, <054HHH, midsize $>$, <979XPT, large $>$, $<333 \mathrm{NJL}$, compact $>,<113 \mathrm{NPO}$, compact $>$ |A new 3-ary relation $J$ is defined as follows: For any license number $n$, color $x$, and size $y$, Jnxy iff ( $C n x$ and $S n y$ ).
1. Using the above data, find the set of all triples in $J$. Exhibit these triples in a relation table with column headings, license number, color, size.
2. A new relation $R$ is defined by $R y x n$ iff Jnxy. Make a table that exhibits all triples of $R$ of the form, <compact, $x, n>$.
3. Find the license numbers of all cars (if any) that are compact and either red or green.