"Who is {developer} of {quicksort}, which has {doctoral student} is {Augusto Sampaio} ?"
SELECT ?answer WHERE { wd:/quicksort/ wdt:/discoverer or inventor/ ?answer . ?answer wdt:/doctoral student/ wd:/Augusto Sampaio/}