How many {located in or next to body of water} are for {Lübeck} ?
What is the number of bodies of water that are located next to Lubeck?
How many bodies of water are located next to Lübeck?
SELECT ( COUNT ( ?q ) AS ?w ) { resource:Lübeck property:located_in_or_next_to_body_of_water ?q }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2843> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P206> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q2843 wdt:P206 ?obj }
4