Basta convertire la tua frase nella query:
(find) (the lowest imageID) (where the other two columns = 0) [SELECT] [MIN(imageID)] [WHERE Processing = 0 AND Finished = 0]
Quindi la tua query completa dovrebbe essere (usando MIN()
funzione aggregata):
SELECT MIN(ImageId) as LowestImageId
FROM Mytable
WHERE Processing = 0
AND Finished = 0