Q: Valid English sentence (grammatically) or not: I wonder on which shelf John will put the book?

A: acceptable

Q: Valid English sentence (grammatically) or not: John came in.

A: acceptable

Q: Valid English sentence (grammatically) or not: What Gilgamesh may do is seek Ishtar

A:
acceptable