How many {located in or next to body of water} are to/by {Aegean Sea} ?
Which is the number of bodies of water that are located in or next to the Aegean Sea?
How many bodies of water are located in or next to the Aegean Sea?
SELECT ( COUNT ( ?s ) AS ?j ) { ?s property:located_in_or_next_to_body_of_water resource:Aegean_Sea }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?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> http://wikidata.dbpedia.org/resource/Q34575 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P206 wd:Q34575 }
226