Il y a means there is or there are. Keep it unchanged for one or several things: Il y a un café, Il y a des tables. Here un café is a place serving drinks. For a question, use Est-ce qu'il y a un café ?; que shortens before il.
Dans means in or inside: the table is inside the café.
Être can say where a person or thing is located. Here est locates the book already identified: Le livre est sur la table. Sur means on, so the book rests on the table. Compare Il y a un livre, which says there is a book, with Le livre est sur la table, which tells you where the known book is. Keep the location phrase with its preposition; Le livre est la table would identify the book as the table instead.
Près de means near: it locates something a short distance from a reference place. Une gare is a railway station; près de la gare means near the particular station. Keep de and the following article la together with the place name.