Baselight
SELECT 
    p.year, 
    p.life_expect AS portugal_life_expectancy, 
    s.life_expect AS spain_life_expectancy, 
    s.alcohol AS spain_alcohol, 
    p.alcohol AS portugal_alcohol, 
    p.bmi AS portugal_bmi, 
    s.bmi AS spain_bmi
FROM 
    "@kaggle.mmattson_who_national_life_expectancy.who_life_exp" p
JOIN 
    "@kaggle.mmattson_who_national_life_expectancy.who_life_exp" s 
ON 
    p.year = s.year
WHERE 
    p.country = 'Portugal' AND 
    s.country = 'Spain'
ORDER BY 
    p.year;
yearportugal_life_expectancyspain_life_expectancyspain_alcoholportugal_alcoholportugal_bmispain_bmi
200076.8858779.3720911.614812.7717325.526.1
200177.1706879.7256912.0071612.6314625.626.1
200277.4682579.8729210.4076512.5016525.626.2
200377.6025979.8227311.0436912.2164925.726.2
200478.2825199999999980.3945811.3165412.2602725.726.2
200578.5905880.3627911.9211.9732925.826.2
200678.9209781.0813611.8611.8145925.826.2
200779.3282981.1364400000000111.0511.5378725.826.2
200879.6015599999999981.4652610.2411.4689525.826.2
200979.8354781.813819999999999.9911.5009825.826.2
201079.9795282.13568.7935211.2574325.826.2
201180.523982.354298.57833999999999910.8574325.826.1
201280.5387482.397388.443649.7568125.826.1
201380.8554982.896798.391959.5214125.726
201481.2325300000000183.012480000000017.6691810.1996525.726
201581.3092782.7269710.3450410.3387125.726
201681.5262783.0791199999999910.8000510.3662125.625.9

Share link

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