Baselight
SELECT YEAR("date_time") AS "year", COUNT(DISTINCT unnamed_0) AS "sightings", COUNT(DISTINCT case_no) AS "grants"
FROM @kaggle.willianoliveiragibin_ufo_sightings.ufo_sightings_transformed
JOIN @kaggle.dushyantrathore_patent_data.patent_data
  ON YEAR("date_time") = "filing_year"
WHERE "country_code" = 'USA'
  AND "region" = 'New Mexico'
  AND YEAR("date_time") >= 1975
GROUP BY YEAR("date_time")
ORDER BY 1 ASC
yearsightingsgrants
2000272196
2001292285
2002372402
2003392597
2004362550
2005312370
2006542386
2007452580
2008532404
2009502408
2010303293
2011323691
2012615008
2013775631
2014414406

Share link

Anyone who has the link will be able to view this.