query-b6407e745297c0c01c347c50ffd75cff
This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } } This query has two different features:
First, it is able to search for municipalities which are part of two different states, looking to P527
Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE { ?udalerri p:P31 ?status. ?udalerri wdt:P131*/^wdt:P527 wd:Q47588 . {?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737} MINUS {?status pq:P582 ?old .} SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# This query has two different features:
# First, it is able to search for municipalities which are part of two different states, looking to P527
# Second, it doesn't show former municipalities, filtering the old ones from the P582 statement.
SELECT DISTINCT ?udalerri ?udalerriLabel WHERE {
?udalerri p:P31 ?status.
?udalerri wdt:P131*/^wdt:P527 wd:Q47588 .
{?status ps:P31 wd:Q484170.} UNION {?status ps:P31 wd:Q2074737}
MINUS {?status pq:P582 ?old .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "eu,es,fr,en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ar
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/be-tarask
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ca
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/cs
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/da
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/de
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/en-gb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/eo
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/es
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/eu
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/fr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/he
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/hy
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/id
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/it
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ja
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ko
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/lb
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/lt
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ms
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/nl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/pl
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/pt-br
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ro
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/ru
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/si
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/sv
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/th
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/tr
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/uk
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/vec
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/zh