A prepositional phrase can itself be the subject of a nominal sentence.

Predicate-Related Phrases in Nominal Sentences