What is the {song} with the {MIN(beats per minute)} whose {lyrics by} is {Max Martin}  ?
What song, with lyricist Max Martin, has the lowest BPM?
What is the song with the lowest beats per minute whose lyrics by is Max Martin ?
SELECT ?s WHERE { ?s property:lyrics_by resource:Max_Martin . ?s rdf:type ontology:song . ?s property:beats_per_minute ?j }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7366>.

?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/P1725>.
?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/P676> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q318223> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q7366 . ?ent wdt:P1725 ?obj . ?ent wdt:P676 wd:Q318223} ORDER BY ASC(?obj)LIMIT 5 
Send My Love (To Your New Lover) (You Drive Me) Crazy ...Baby One More Time Oops!... I Did It Again Lucky