Question: How many rivers and lakes are in South Carolina?
SPARQL query:
PREFIX onto: <http://dbpedia.org/ontology/> PREFIX res: <http://dbpedia.org/resource/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX dbc: <http://dbpedia.org/resource/Category:> select (COUNT(distinct ?uri) as ?count) where { { ?uri onto:location res:South_Carolina . ?uri rdf:type onto:Lake . } UNION { ?uri dct:subject dbc:Rivers_and_streams_of_South_Carolina . } }