Baselight
SELECT 
    entity,
    emissions_kg,
    emissions_1000kcal,
    emissions_100g_protein,
    bananas_index_kg,
    bananas_index_1000_kcalories,
    bananas_index_100g_protein
FROM (
    SELECT 
        entity,
        emissions_kg,
        emissions_1000kcal,
        emissions_100g_protein,
        bananas_index_kg,
        bananas_index_1000_kcalories,
        bananas_index_100g_protein,
        -- Calculate an overall efficiency score (lower is better)
        (emissions_kg + emissions_1000kcal) AS total_emissions
    FROM @kaggle.joebeachcapital_banana_index.bananaindex
) AS subquery
ORDER BY total_emissions ASC  -- Sort by total emissions in ascending order (lowest first)
LIMIT 10;  
entityemissions_kgemissions_1000kcalemissions_100g_proteinbananas_index_kgbananas_index_1000_kcaloriesbananas_index_100g_protein
Potatoes0.207276160.232124131.157598360.2373347020.2650416150.149911689
Almond butter0.387011310.067264780.207599350.4431344830.0768035870.0268846
Frozen sweet potato fries0.409884820.281672632.641978890.4693250380.3216165790.34214243
Almonds0.602367860.105028630.328334990.6897213680.1199227230.042520147
Ale0.488689870.317337960.878524610.559558150.3623396040.113770987
Pitta bread0.563560790.254204330.745269640.6452866180.2902530040.096514157
Coconut oil0.528741280.339006529.821965840.6054176910.3870809791.271967492
Frozen onion rings0.771174690.300217651.891946580.8830080380.3427914660.245011496
Bagels0.80281260.329389280.959624410.9192339790.376099920.1242736
Frozen potato wedges0.664775440.480019773.096824050.76117910.5480912950.40104594

Share link

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