With this simple query I can find the ids of all jars that contain either red balls or blue balls:
SELECT id FROM "Jars" J
JOIN "Balls" B ON B.jarId = J.jarId
WHERE B.color = 'red' OR B.color = 'blue'
GROUP BY id
How can I find the ids of all jars that contain both red balls and blue balls?