CREATE TABLE problems (product_id VARCHAR, date_problem_reported INT)
CREATE TABLE product (product_id VARCHAR)

For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
SELECT COUNT(*), "T2"."product_id" FROM "problems" AS "T1" JOIN "product" AS "T2" ON "T1"."product_id" = "T2"."product_id" WHERE "1986-11-13" < "T1"."date_problem_reported" GROUP BY "T2"."product_id"