which unit mass utilises a system of measurement that uses the energy density unit of joule per cubic metre and has a maximum weightmass in kilograms?
Entity
m.07ny7
Tonne
class literal class entity
measurement_unit.mass_unit 0^^http://www.w3.org/2001/XMLSchema#int measurement_unit.measurement_system m.02sj51f
measurement_unit.mass_unit type.float measurement_unit.measurement_system measurement_unit.energy_density_unit
Unit of Mass 0 Measurement System Joule per cubic metre
none argmax none none
measurement_unit.mass_unit.weightmass_in_kilograms measurement_unit.measurement_system.weight_units measurement_unit.energy_density_unit.measurement_system
Weightmass In Kilograms Mass Units Measurement System
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :measurement_unit.mass_unit . 
{
SELECT (MAX(?y1) AS ?x1)  WHERE { 
?y0 :type.object.type :measurement_unit.mass_unit . 
?y2 :type.object.type :measurement_unit.measurement_system . 
VALUES ?y3 { :m.02sj51f } 
?y0 :measurement_unit.mass_unit.weightmass_in_kilograms ?y1 . 
?y2 :measurement_unit.measurement_system.weight_units ?y0 . 
?y3 :measurement_unit.energy_density_unit.measurement_system ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y0 != ?y3 && ?y1 != ?y2 && ?y1 != ?y3 && ?y2 != ?y3  )
}
}
?x2 :type.object.type :measurement_unit.measurement_system . 
VALUES ?x3 { :m.02sj51f } 
?x0 :measurement_unit.mass_unit.weightmass_in_kilograms ?x1 . 
?x2 :measurement_unit.measurement_system.weight_units ?x0 . 
?x3 :measurement_unit.energy_density_unit.measurement_system ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(ARGMAX (AND measurement_unit.mass_unit (JOIN (R measurement_unit.measurement_system.weight_units) (JOIN (R measurement_unit.energy_density_unit.measurement_system) m.02sj51f))) measurement_unit.mass_unit.weightmass_in_kilograms)