What is the {diatomic nonmetal} with the {MIN(oxidation state)} whose {instance of} is {chemical element}  ?
What is the diatomic nonmetal chemical that has the lowest oxidation state?
Tell me the name of the diatomic nonmetal chemical with the lowest oxidation state.
SELECT ?p WHERE { ?p property:oxidation_state ?f . ?p rdf:type ontology:chemical_element . . ?p rdf:type ontology:diatomic_nonmetal }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q19753344>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1121>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q11344> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q19753344 . ?ent wdt:P1121 ?obj . ?ent wdt:P31 wd:Q11344. } ORDER BY ASC(?obj)LIMIT 5 