Question: What places in upstate New York and southern Vermont have coordinates, images, or Wikimedia Commons categories?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?location .
  FILTER(geof:latitude(?location) >= 43 && geof:latitude(?location) <= 44)
  FILTER(geof:longitude(?location) >= -74 && geof:longitude(?location) <= -73)
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

Show me the names, locations, images, and Commons categories of all items located between 43°N and 44°N latitude and -74°W and -73°W longitude.

List English-named locations in the region around the Hudson River and Lake Champlain that have photos or Wikimedia Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(-74 43)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-73 44)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: What places in upstate New York and Vermont have coordinates between 44°N and 45°N latitude and -74°W and -73°W longitude?

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?coord .
  BIND(geof:longitude(?coord) AS ?lon)
  BIND(geof:latitude(?coord) AS ?lat)
  FILTER(?lon >= -74 && ?lon <= -73 && ?lat >= 44 && ?lat <= 45)
  OPTIONAL { ?item wdt:P18 ?image . }
  OPTIONAL { ?item wdt:P373 ?commonsCategory . }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}
LIMIT 3000

Show me all locations in the region bounded by latitude 44–45 and longitude -74 to -73, along with their images and Wikimedia Commons categories.

List cities, rivers, and other geographic features in the area around Lake Champlain with their photos and associated Commons categories.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerSouthWest> "POINT(-74 44)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(-73 45)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P373> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "string1". ?var1 <http://schema.org/description> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } LIMIT 3000


Question: What movie has the elFilm ID 615?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P3143 "615" .
}

Which film in Wikidata is identified by the elFilm ID "615"?

Find the Wikidata item for the movie whose identifier in the Arabic movie database elFilm is 615.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3143> "615". }


Question: Children of Barack Obama, their gender, birth date, and death date, sorted by birth date.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?child ?childLabel ( GROUP_CONCAT( DISTINCT ?genderLabel ; SEPARATOR = ", " ) AS ?genders ) ?birthDate ?deathDate WHERE {
  ?child wdt:P22 wd:Q76 .
  OPTIONAL {
    ?child wdt:P21 ?gender .
    ?gender rdfs:label ?genderLabel .
    FILTER ( LANG( ?genderLabel ) = "en" )
  }
  OPTIONAL {
    ?child wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?child wdt:P570 ?deathDate .
  }
  ?child rdfs:label ?childLabel .
  FILTER ( LANG( ?childLabel ) = "en" )
}
GROUP BY ?child ?childLabel ?birthDate ?deathDate
ORDER BY ASC ( ?birthDate )

Who are Barack Obama’s children, what are their genders and birth dates, and when did they die (if at all)?

List Barack Obama’s children with their gender, birth date, and death date, ordered from oldest to youngest.

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = ", " ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var4 ; SEPARATOR = ", " ) AS ?var5 )( GROUP_CONCAT ( DISTINCT ?var6 ; SEPARATOR = ", " ) AS ?var7 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q76> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 ?var1Label ORDER BY ASC( ?var5 )


Question: What are the key facts about Paris, France, including its population and location?

SELECT DISTINCT ?item ?itemLabel ?description ?countryLabel ?population ?coordinate WHERE { wd:Q90 rdfs:label ?itemLabel . wd:Q90 schema:description ?description . wd:Q90 wdt:P17 ?country . ?country rdfs:label ?countryLabel . wd:Q90 wdt:P1082 ?population . wd:Q90 wdt:P625 ?coordinate . FILTER(LANG(?itemLabel) = "en") FILTER(LANG(?description) = "en") FILTER(LANG(?countryLabel) = "en") }

Can you tell me the description, population, and coordinates of Paris, the capital of France?

Provide the English label, description, country, population, and geographic coordinates of Paris.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Paris"@en . ?var1 <http://schema.org/description> ?var2 . ?var2 ( <https://query.wikidata.org/bigdata/namespace/wdq/sparql> |!( <https://query.wikidata.org/bigdata/namespace/wdq/sparql> ))* ?var3 . }


Question: Maternal ancestors of George VI and their mothers.

SELECT ?ancestor ?ancestorLabel ?motherOfAncestor WHERE { wd:Q280856 wdt:P25* ?ancestor . OPTIONAL { ?ancestor wdt:P25 ?motherOfAncestor . } ?ancestor rdfs:label ?ancestorLabel . FILTER(LANG(?ancestorLabel) = "en") }

Who are George VI’s maternal ancestors, and who were their mothers?

Show me the lineage of George VI’s maternal ancestors, including each ancestor’s name and their own mother, if known.

SELECT ?var1 ?var1Label ?var2 WHERE { { <http://www.wikidata.org/entity/Q280856> <http://www.wikidata.org/prop/direct/P25> * ?var1 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P25> * <http://www.wikidata.org/entity/Q280856> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P25> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Family name of Konrad Adenauer

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?surnameLabel WHERE {
  wd:Q2492 wdt:P734 ?surname .
  ?surname rdfs:label ?surnameLabel .
  FILTER ( LANG( ?surnameLabel ) = "en" )
}

What is Konrad Adenauer's last name?
Tell me the surname of Konrad Adenauer.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2492> <http://www.wikidata.org/prop/direct/P734> ?var1 . }


Question: Villages in Gmina Iława with Polish Wikipedia pages and coordinates

SELECT ?var1 ?var2 ?var4 ?var5 WHERE { ?var2 wdt:P1653 "2807032" . ?var1 wdt:P131 ?var2 . ?var4 schema:about ?var1 ; schema:inLanguage "pl" . ?var1 wdt:P625 ?var5 . }

What are the places in the Polish municipality with TERC code 2807032, along with their Polish Wikipedia links and geographic coordinates?

Show me the locations within Gmina Iława (TERC code 2807032), their Polish Wikipedia articles, and their GPS coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P1653> "2807032"^^<http://www.w3.org/2001/XMLSchema#integer> . FILTER ( ( ( ?var3 = "{0}" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "pl". ?var1 <http://www.wikidata.org/prop/direct/P625> ?var5 . } }


Question: List of cocktails and their names

SELECT ?item ?itemLabel WHERE { ?item wdt:P31 ?class . ?class wdt:P279* wd:Q134768 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What are all the cocktails and their variations in Wikidata?

Show me all known cocktails, including subtypes, with their English names.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q134768> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Which publication has the ISSN 1082-9873?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?publication WHERE {
  ?publication wdt:P236 "1082-9873" .
}

What is the name of the journal or magazine with the electronic ISSN 1082-9873?

Find the entity associated with the ISSN 1082-9873.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P236> "1082-9873". }


Question: Movie with elFilm ID 1297739

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P3143 "1297739" .
}

Tell me the Wikidata item for the movie identified as 1297739 in the elFilm database.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3143> "1297739". }


Question: What is the Wikidata item for the movie with IMDb ID tt0101869?

SELECT ?film WHERE { ?film wdt:P345 "tt0101869" .}

Which film on Wikidata has the IMDb identifier tt0101869?

Retrieve the Wikidata entity for the movie identified by IMDb ID tt0101869.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0101869". }


Question: What are the geographic coordinates of the Ski Museum in Les Rousses, France, and what are the coordinates of the commune it is located in?

SELECT ?museumCoordinates ?administrativeEntityCoordinates WHERE { wd:Q3330480 wdt:P625 ?museumCoordinates . OPTIONAL { wd:Q3330480 wdt:P131 ?administrativeEntity . ?administrativeEntity wdt:P625 ?administrativeEntityCoordinates . } }

Coordinates of musée du ski and its administrative center (Les Rousses)

Show me the exact location of the Ski Museum and the location of the town it belongs to.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q3330480> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q3330480> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: Top subjects of Maryam Mirzakhani's academic works, ranked by number of publications.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?count ?subjectLabel WHERE {
  {
    SELECT ?subject ( COUNT( ?work ) AS ?count ) WHERE {
      ?work wdt:P50 wd:Q1771279 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC ( ?count )
  }
  ?subject rdfs:label ?subjectLabel .
  FILTER ( LANG( ?subjectLabel ) = "en" )
}

What are the main topics of the papers written by Maryam Mirzakhani, and how many papers are there on each topic?

Show me the main subjects of Maryam Mirzakhani's publications, with the count of works for each subject, in English.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1771279> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1771279> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: Artworks depicting singers

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?artworkLabel ?statement ( SAMPLE( ?qualifier ) AS ?qualifierProperty ) WHERE {
  ?artwork p:P180 ?statement .
  ?statement ps:P180 wd:Q177220 .
  OPTIONAL {
    ?statement ?qualifier ?value .
    ?qualifier wikibase:qualifier true .
  }
  OPTIONAL {
    ?artwork rdfs:label ?artworkLabel .
    FILTER ( LANG( ?artworkLabel ) = "en" )
  }
}
GROUP BY ?artwork ?statement ?artworkLabel
LIMIT 100

What artworks show a singer as the subject?

List the English titles of artworks that depict a singer, along with any additional details (like date or style) used in their Wikidata statements.

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var4 ) WHERE { { SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://www.wikidata.org/prop/statement/P180> <http://www.wikidata.org/entity/Q177220> . ?var1 <http://www.wikidata.org/prop/P180> ?var2 . } LIMIT 101 } OPTIONAL { ?var2 ?var3 ?var5 . ?var6 <http://wikiba.se/ontology#qualifier> ?var3 . } } GROUP BY ?var1 ?var2


Question: Film with FilmAffinity ID 975308

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P480 "975308" .
}

Which film has the FilmAffinity ID 975308?

Tell me the Wikidata item for the movie identified by FilmAffinity ID 975308.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P480> "975308". }


Question: What film has the Danish National Filmography ID 96761?

SELECT ?film WHERE { ?film wdt:P1804 "96761" . }

Which film in Wikidata is identified by the DNF film ID "96761"?

Find the film in Wikidata that corresponds to the DNF film ID 96761.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1804> "96761". }


Question: Film with TCM Movie Database ID 533183

SELECT ?film WHERE { ?film wdt:P2631 "533183" . }

Which film is identified by the TCM Movie Database ID 533183?

Can you tell me the name of the film that has the identifier 533183 in the Turner Classic Movies database?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2631> "533183". }


Question: People educated at the University of Georgia born after 1950 and their occupations.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?occupationLabel WHERE {
  ?person wdt:P69 wd:Q761534 .
  ?person wdt:P569 ?birthDate .
  FILTER ( YEAR( ?birthDate ) > 1950 ) .
  ?person wdt:P106 ?occupation .
  ?person rdfs:label ?personLabel .
  ?occupation rdfs:label ?occupationLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) .
  FILTER ( LANG( ?occupationLabel ) = "en" ) .
}

Who are the people born after 1950 who attended the University of Georgia, and what are their occupations?

List the English names and occupations of individuals born after 1950 who studied at the University of Georgia.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q761534> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . FILTER ( ( ( YEAR ( ?var3 ) > "1950"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What film has the OFDb ID 164660?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film WHERE {
  ?film wdt:P3138 "164660" .
}

Which movie is listed as 164660 in the Online-Filmdatenbank?

Tell me the film corresponding to OFDb ID 164660.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3138> "164660". }


Question: Equipment retired in August 1966

SELECT DISTINCT ?item WHERE { ?item wdt:P730 ?retirementDate . FILTER ( ?retirementDate >= "1966-08-01T00:00:00Z"^^xsd:dateTime && ?retirementDate <= "1966-08-31T23:59:59Z"^^xsd:dateTime ) }

Which vehicles or machines were retired in August 1966?

List all pieces of equipment that were taken out of service in August 1966.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P730> | <http://www.wikidata.org/prop/direct/P746> ) ?var2 . FILTER ( ( ( ?var2 >= "1966-08-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1966-08-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What movie has the elFilm ID 1275550?

SELECT ?movie WHERE { ?movie wdt:P3143 "1275550" . }

Which film on Wikidata is identified by the elFilm ID 1275550?

I’m looking for the Wikidata item for the movie with elFilm ID 1275550 — can you find it?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3143> "1275550". }


Question: People convicted of regicide and their images

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?label ?image WHERE {
  ?person wdt:P1399 wd:Q1475448 .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 100

Who were the people convicted of killing a monarch, and do we have pictures of them?

List the English names of individuals convicted of regicide along with any available Wikimedia Commons images.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1399> <http://www.wikidata.org/entity/Q1475448> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } } LIMIT 100


Question: What English Wikipedia and Commons pages are there for rivers that flow into the Ob River?

SELECT ?tributary ?page WHERE { ?tributary (wdt:P403 | wdt:P201)+ wd:Q973 . ?page schema:about ?tributary . ?page schema:inLanguage "en" . }

Can you list all English-language Wikipedia and Wikimedia Commons pages about rivers that are tributaries of the Ob River, including indirect ones?

Show me links to English-language articles about every river that drains into the Ob River, directly or through other rivers.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P403> | <http://www.wikidata.org/prop/direct/P201> )+ <http://www.wikidata.org/entity/Q973> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". }


Question: What are all the subclasses of Thelemic Magick, including indirect ones?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?subclass ?subclassLabel WHERE {
  wd:Q1323734 wdt:P279 * ?subclass .
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}

List the English-labeled concepts that are subclasses of magick as defined in Wikidata.

Show me the hierarchy of concepts derived from Thelemic Magick, with their English names.

SELECT ?var1 ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q1323734> <http://www.wikidata.org/prop/direct/P1647> * ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1647> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the names of all sovereign countries in the world?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var2 ?label WHERE {
  ?var2 wdt:P31 wd:Q3624078 .
  ?var2 rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}

Can you list all countries and their English labels from Wikidata?

Which entities are classified as sovereign states, and what are their English names?

SELECT ?var1 ?var2 ?var1Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What are the most common political and official positions held by Swedish citizens, ranked by frequency?

SELECT ?positionLabel (COUNT(?person) AS ?count) WHERE { ?person wdt:P31 wd:Q5 ; wdt:P27 wd:Q34 ; wdt:P39 ?position . ?position rdfs:label ?positionLabel . FILTER(LANG(?positionLabel) = "en") } GROUP BY ?positionLabel ORDER BY DESC(?count) ASC(?positionLabel)

How many Swedish people hold each public office, and which positions are the most frequent?

List the positions held by Swedish citizens in descending order of popularity, showing only English labels.

SELECT ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P39> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q34> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv". } } GROUP BY ?var1Label ORDER BY DESC( ?var3 )ASC( ?var1Label )


Question: What are the date of birth and date of death of Eva Ekeblad?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?birthDate ?deathDate WHERE {
  BIND(wd:Q1393227 AS ?person)
  ?person rdfs:label ?label .
  FILTER(LANGMATCHES(LANG(?label) , "en"))
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
}

Can you tell me when Eva Ekeblad was born and when she died?

Who is Eva Ekeblad, and when was she born and when did she die?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1393227> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of William Allen?

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND( wd:Q8004337 AS ?person ) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } }

Can you tell me when William Allen was born and when he died?

Show me the full name, birth date, and death date of the Australian clergyman William Allen.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q8004337> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of John Brown of Pittsfield?

SELECT ?label ?birthDate ?deathDate WHERE { wd:Q6223565 rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { wd:Q6223565 wdt:P569 ?birthDate . } OPTIONAL { wd:Q6223565 wdt:P570 ?deathDate . } }

Can you tell me the life span of John Brown of Pittsfield, including his birth and death years?

Who is John Brown of Pittsfield, and when was he born and died?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q6223565> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What entities are located in Banten Province and what are their types?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?instanceType WHERE {
  ?item wdt:P131 wd:Q3540 .
  ?item wdt:P31 ?instanceType .
}

What kinds of things (like cities or museums) are found in Banten Province?

List all items in Banten Province along with their classifications (e.g., city, regency, museum).

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q3540> . ?var1 <http://www.wikidata.org/prop/direct/p31> ?var2 . }


Question: Chancellors of Germany and their term start and end dates

SELECT ?chancellor ?chancellorLabel ?startDate ?endDate WHERE { ?chancellor wdt:P39 wd:Q56022 . OPTIONAL { ?chancellor wdt:P580 ?startDate . } OPTIONAL { ?chancellor wdt:P582 ?endDate . } ?chancellor rdfs:label ?chancellorLabel . FILTER(LANG(?chancellorLabel) = "en") }

Who were the chancellors of Germany, and when did their terms begin and end?

List all individuals who held the office of Chancellor of Germany along with the start and end dates of their terms.

SELECT * WHERE { ?var1 <http://www.wikidata.org/entity/P39> <http://www.wikidata.org/entity/Q56022> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Coordinates of Tolochenaz, Switzerland

SELECT ?coordinates WHERE { wd:Q69398 wdt:P625 ?coordinates .}

What are the geographic coordinates of Tolochenaz?

Can you tell me the latitude and longitude of the municipality of Tolochenaz in Switzerland?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q69398> <http://www.wikidata.org/prop/direct/P625> ?var1 . }


Question: Coordinates of Udligenswil, Switzerland

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coordinates WHERE {
  wd:Q14577 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .
}

What are the geographic coordinates of Udligenswil, a municipality in the canton of Lucerne, Switzerland?

Can you tell me the latitude and longitude of Udligenswil, which is classified as a municipality of Switzerland?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q14577> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: Coordinates of Bättwil, Switzerland.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?coordinates WHERE {
  wd:Q70027 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .
}

What are the geographic coordinates of Bättwil, a municipality in Switzerland?

Can you tell me the latitude and longitude of Bättwil, Switzerland?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q70027> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: Coordinates of Rapperswil-Jona, Switzerland

SELECT ?coordinates WHERE { wd:Q69729 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .}

What are the geographic coordinates of Rapperswil-Jona, which is a municipality in Switzerland?

Please provide the WKT coordinates of Rapperswil-Jona, confirming it is classified as a municipality in Switzerland.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q69729> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: What are the geographic coordinates of Uezwil, Switzerland?

SELECT ?coordinates WHERE { wd:Q65203 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .}

Show me the location coordinates of Uezwil, which is a municipality in Switzerland.

Where is Uezwil located? Return its coordinates as a point.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q65203> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: Coordinates of Lengwil, Switzerland

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coordinates WHERE {
  wd:Q66289 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .
}

What are the geographic coordinates of Lengwil?

Can you tell me the latitude and longitude of Lengwil, a municipality in Switzerland?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q66289> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: List German-language radio stations.

SELECT ?station ?label WHERE { ?station (wdt:P31 / wdt:P279*) wd:Q14350 . ?station rdfs:label ?label . FILTER (LANG(?label) = "de") }

What are the names of radio stations in German?

Show me all radio stations (including those classified under broader categories like mass media or broadcasters) that have labels in German.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q14350> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . }


Question: Countries and their legislative bodies

SELECT DISTINCT ?country ?countryLabel ?legislature ?legislatureLabel WHERE { ?country wdt:P31 wd:Q6256 . ?country wdt:P194 ?legislature . ?country rdfs:label ?countryLabel . ?legislature rdfs:label ?legislatureLabel . FILTER(LANG(?countryLabel) = "en" && LANG(?legislatureLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries have a legislative body, and what are their names?

List all countries along with the names of their national parliaments or assemblies.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P194> ?var2 . OPTIONAL { ?var2 ( <http://www.wikidata.org/prop/direct/P1001> | <http://www.wikidata.org/prop/direct/P17> ) ?var3 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: What entities are labeled 'rechts' in German?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item WHERE {
  ?item rdfs:label "rechts" @de .
}

Which items in Wikidata have the German label 'rechts'?

Show me all Wikidata items that are called 'rechts' in German.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "rechts"@de . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are the types of athletes?

SELECT ?athleteSubtype ?label WHERE { ?athleteSubtype wdt:P279 wd:Q2066131 . ?athleteSubtype rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are some specific kinds of athletes that are subclasses of the general category "athlete"?

List all the specific athlete subtypes, such as "minigolf player" or "League of Legends player", that fall under the broader category of athlete.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q2066131> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label for ExtendSim?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel WHERE {
  BIND( wd:Q1384919 AS ?item ) .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Can you tell me the name of the simulation software ExtendSim?

Show me the identifier and label of ExtendSim in English.

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q1384919> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Wind farms and their geographic coordinates

SELECT DISTINCT ?windFarm ?location WHERE { ?windFarm wdt:P31 wd:Q194356 ; wdt:P625 ?location .}

List all wind farms along with their latitude and longitude coordinates.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q194356> ; <http://www.wikidata.org/prop/direct/P625> ?var2 . }


Question: Japanese skiers

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?name WHERE {
  ?person wdt:P106 wd:Q4270517 .
  ?person wdt:P27 wd:Q17 .
  ?person rdfs:label ?name .
  FILTER ( LANG( ?name ) = "en" )
}
ORDER BY ASC ( ?person )

List the English names of people who are citizens of Japan and have the occupation of skier.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q4270517> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q17> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )


Question: Image of Dan Walker with SNAC ARK ID w67w899r

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?image WHERE {
  ?person wdt:P3430 "w67w899r" .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
}

What is the image of Dan Walker, who has the SNAC ARK ID w67w899r?

Show me the Wikimedia Commons image of Dan Walker, identified by SNAC ARK ID w67w899r.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P3430> "w67w899r". OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } }


Question: Humans and the positions they have held

SELECT ?human ?humanLabel ?position ?positionLabel WHERE { ?human wdt:P31 wd:Q5 . ?human p:P39 ?statement . ?statement ps:P39 ?position . ?human rdfs:label ?humanLabel . ?position rdfs:label ?positionLabel . FILTER(LANG(?humanLabel) = "en") FILTER(LANG(?positionLabel) = "en") }

Who are some humans and what positions have they held?

List the names of humans and the offices they have held, in English.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P39> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P39> ?var3 . ?var2 <http://www.wikidata.org/prop/statement/value/P39> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the kings of Morocco?

SELECT ?king ?kingLabel WHERE { ?king wdt:P31 wd:Q5 . ?king wdt:P39 wd:Q14566719 . ?king rdfs:label ?kingLabel . FILTER(LANG(?kingLabel) = "en") }

List humans who have held the position of King of Morocco.

Show me the names of all people who are humans and have been the King of Morocco.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q14566719> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What country and city is the Pickwick Theatre located in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?location ?locationLabel WHERE {
  wd:Q4362570(wdt:P30 | wdt:P17 | wdt:P131) ?location .
  ?location rdfs:label ?locationLabel .
  FILTER(LANG(?locationLabel) = "en")
}

Can you tell me the administrative and national location of the Pickwick Theatre in Park Ridge, Illinois?

Which places (such as city or country) is the Pickwick Theatre associated with through location properties in Wikidata?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q4362570> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P30> | <http://www.wikidata.org/prop/direct/P17> | <http://www.wikidata.org/prop/direct/P131> | <http://www.wikidata.org/prop/direct/P376> | <http://www.wikidata.org/prop/direct/P501> )* ?var1 . }


Question: What are the geographic coordinates of the London Borough of Croydon, and what are the coordinates of the administrative region it belongs to?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?croydonCoords ?adminRegionCoords WHERE {
  wd:Q26888 wdt:P625 ?croydonCoords .
  OPTIONAL {
    wd:Q26888 wdt:P131 ?adminRegion .
    ?adminRegion wdt:P625 ?adminRegionCoords .
  }
}

Coordinates of Croydon and its parent administrative area (e.g., Greater London).

Show me the location of Croydon and the location of the larger administrative area it is part of.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q26888> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q26888> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: List of free software with English names

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?software ?softwareLabel WHERE {
  ?software wdt:P31 wd:Q341 .
  ?software rdfs:label ?softwareLabel .
  FILTER ( LANG( ?softwareLabel ) = "en" )
}
LIMIT 43

What are some examples of free software and their English labels?

Show me the English names of all free software items in Wikidata.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q341> . } LIMIT 43


Question: List universities, colleges, and university colleges in India with their official websites.

SELECT ?institution ?website ?label WHERE { { ?institution wdt:P31 wd:Q3918 . } UNION { ?institution wdt:P31 wd:Q189004 . } UNION { ?institution wdt:P31 wd:Q15407956 . } ?institution wdt:P856 ?website . ?institution wdt:P131* ?admin . ?admin wdt:P17 wd:Q668 . ?institution rdfs:label ?label . FILTER(LANG(?label) = "en") }

What are the official websites of universities and colleges located in India, along with their English names?

Please provide the names and official websites of all educational institutions in India that are classified as universities, colleges, or university colleges.

SELECT ?var1 ?var2 ?var3Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . FILTER ( ( ?var4 IN ( <http://www.wikidata.org/entity/Q15407956> , <http://www.wikidata.org/entity/Q3918> , <http://www.wikidata.org/entity/Q189004> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var2 ; ( <http://www.wikidata.org/prop/direct/P131> */ <http://www.wikidata.org/prop/direct/P17> ) ?var5 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( ?var5 = <http://www.wikidata.org/entity/Q668> ) ) ) . }


Question: List islands and their administrative regions and countries.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?island ?islandLabel ?administrativeEntity ?countryLabel WHERE {
  ?island ( wdt:P31 / wdt:P279 * ) wd:Q23442 .
  ?island wdt:P131 ?administrativeEntity .
  OPTIONAL {
    ?island wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  ?island rdfs:label ?islandLabel .
  FILTER ( LANG( ?islandLabel ) = "en" )
}

What are the islands in the world, and in which administrative regions and countries are they located?

Show me the names of islands, the administrative areas they belong to, and their corresponding countries, all in English.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23442> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "id,en". } }


Question: Japanese and English-labeled prefectures of Japan with the most language labels.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label_en_ja(COUNT(DISTINCT ?label) AS ?label_count) WHERE {
  ?prefecture wdt:P31 wd:Q50337 ; rdfs:label ?label .
  OPTIONAL {
    ?prefecture rdfs:label ?label_en_ja .
    FILTER(LANG(?label_en_ja) = "ja" || LANG(?label_en_ja) = "en")
  }
}
GROUP BY ?label_en_ja
ORDER BY DESC(?label_count)

Which Japanese prefectures have the highest number of language labels, and what are their Japanese or English names?

Show me the Japanese and English names of prefectures in Japan, ranked by how many different language labels each has.

SELECT DISTINCT ?var1 ( COUNT ( DISTINCT ?var2Label ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q50337> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . OPTIONAL { ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "ja" ) || ( LANG ( ?var1 ) = "en" ) ) ) . } } GROUP BY ?var1 ORDER BY DESC( ?var3 )


Question: List all Wikimedia categories with their labels.

SELECT ?category (SAMPLE(?categoryLabel) AS ?label) WHERE { ?category wdt:P31 wd:Q4167836 . ?category rdfs:label ?categoryLabel . } GROUP BY ?category LIMIT 110000

What are the names of all Wikimedia categories on Wikidata?

Please provide a list of up to 110,000 Wikimedia categories and their labels in any language.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> . } LIMIT 110000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sq". } }


Question: List of Austrian municipalities with their names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?municipality ( SAMPLE( ?label ) AS ?municipalityLabel ) WHERE {
  ?municipality wdt:P31 wd:Q667509 .
  ?municipality rdfs:label ?label .
  FILTER ( LANG( ?label ) = "de" || LANG( ?label ) = "en" )
}
GROUP BY ?municipality

What are the names of all municipalities in Austria?

Show me the Austrian municipalities and their official names in German or English.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q667509> . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sq". } }


Question: Subclasses of produce in Wikidata

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q1913301 . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } LIMIT 11

What are the types of agricultural products that are considered produce?

List the categories of farm-produced crops and goods that fall under the class of produce.

SELECT ?var1 ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q1913301> . } LIMIT 11 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List English-labeled datasets in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?dataset ?datasetLabel WHERE {
  ?dataset wdt:P31 wd:Q1172284 .
  ?dataset rdfs:label ?datasetLabel .
  FILTER ( LANG( ?datasetLabel ) = "en" )
}
LIMIT 10

What are some datasets registered in Wikidata with English labels?

Show me the names of datasets in Wikidata that have English labels.

SELECT ?var1 WHERE { ?var2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Dataset> . { BIND ( ?var2 AS ?var1 ). } UNION { } }


Question: Who are the children of Spanish politicians born on or after January 1, 1851, and when were their parents born?

SELECT ?child ?childLabel ?parent ?parentLabel ?birthDate WHERE { ?child wdt:P31 wd:Q5 . ?child ?parentRelation ?parent . FILTER ( ?parentRelation IN (wdt:P22, wdt:P25) ) . ?parent wdt:P106 wd:Q82955 . ?parent wdt:P27 wd:Q29 . ?parent wdt:P569 ?birthDate . FILTER ( ?birthDate >= "1851-01-01T00:00:00Z"^^xsd:dateTime ) . ?child rdfs:label ?childLabel . ?parent rdfs:label ?parentLabel . FILTER (LANG(?childLabel) = "en") . FILTER (LANG(?parentLabel) = "en") } ORDER BY ASC(?birthDate)

Children of Spanish politicians born after 1850, with parent birth dates.

List all children of Spanish politicians who were born from 1851 onward, along with their parents' names and birth dates.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 ?var4 ?var2 . FILTER ( ( ?var4 IN ( <http://www.wikidata.org/prop/direct/P22> , <http://www.wikidata.org/prop/direct/P25> ) ) ) . ?var2 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q29> . ?var2 <http://www.wikidata.org/prop/direct/P569> ?var3 . FILTER ( ( ( ?var3 >= "1851-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } } ORDER BY ASC( ?var3 )


Question: People born in August 1947 who are human.

SELECT ?personLabel (YEAR(?birthDate) AS ?year) (MONTH(?birthDate) AS ?month) ?typeLabel WHERE { ?person wdt:P569 ?birthDate . ?person wdt:P31 ?type . ?type rdfs:label ?typeLabel . FILTER (LANG(?typeLabel) = "en") . FILTER (MONTH(?birthDate) = 8 && YEAR(?birthDate) = 1947) . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") . } LIMIT 10

Who were the humans born in August 1947?

List the names, birth year (1947), birth month (August), and type of all humans born in August 1947.

SELECT ?var1Label ( YEAR ( ?var2 ) AS ?var3 )( MONTH ( ?var2 ) AS ?var4 ) ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/Q5> *) ?var5 . FILTER ( ( ( MONTH ( ?var2 ) = "8"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( YEAR ( ?var2 ) = "1947"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: What types of programs is Scrum an instance of, and what are the higher-level categories of those types?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1 ?var1Label ?var2 WHERE {
  wd:Q460387 wdt:P31 ?var1 .
  OPTIONAL {
    ?var1 wdt:P31 ?var2 .
  }
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}

What classes does Scrum belong to, and what are those classes instances of?

Show me the categories of Scrum and the categories those categories belong to.

SELECT ?var1 ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q460387> <http://www.wikidata.org/prop/direct/P31> * ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which software can read or write file formats identified by PRONOM IDs?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?pronomId ?softwareVersion ?readerLabel ?softwareVersionLabel ?reader ?writer ?writerLabel WHERE {
  ?softwareVersion wdt:P2748 ?pronomId .
  {
    ?reader wdt:P1072 ?softwareVersion .
    ?reader rdfs:label ?readerLabel .
    FILTER ( LANG( ?readerLabel ) = "en" )
  } UNION {
    ?writer wdt:P1073 ?softwareVersion .
    ?writer rdfs:label ?writerLabel .
    FILTER ( LANG( ?writerLabel ) = "en" )
  }
  ?softwareVersion rdfs:label ?softwareVersionLabel .
  FILTER ( LANG( ?softwareVersionLabel ) = "en" )
}

For each PRONOM file format identifier, what software programs are capable of reading or writing that format?

List the PRONOM file format IDs along with the names of software that can read or write them, including the software versions associated with those formats.

SELECT ?var1 ?var2 ?var3Label ?var2Label ?var3 ?var4 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P2748> ?var1 . { ?var3 <http://www.wikidata.org/prop/direct/P1072> ?var2 . } UNION { ?var4 <http://www.wikidata.org/prop/direct/P1073> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Czech municipalities founded after 1300 with population over 1200, their coordinates and names.

SELECT ?municipality ?coordinates ?municipalityLabel ?populationCategory WHERE { ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?earliestRecord ; wdt:P1082 ?population ; wdt:P625 ?coordinates . BIND(YEAR(?earliestRecord) AS ?year) . FILTER(?year > 1300) . BIND(IF(?population > 1200, ">1200", IF(?population > 1100, "1100-1200", "<1100")) AS ?populationCategory) . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") } LIMIT 10

Which municipalities in the Czech Republic have their first written record after 1300, and how are they categorized by population size (above 1200, 1100–1200, or below 1100)?

Show me the names, coordinates, and population categories (above 1200, 1100–1200, or below 1100) of Czech municipalities that were first recorded in writing after the year 1300.

SELECT ?var1 ?var2 ?var3 ?var1Label ( IF ( ( ?var4 > "1200"^^<http://www.w3.org/2001/XMLSchema#integer> ), ">1200", IF ( ( ?var4 > "1100"^^<http://www.w3.org/2001/XMLSchema#integer> ), "1100-1200", IF ( ( ?var4 > "1100"^^<http://www.w3.org/2001/XMLSchema#integer> ), "1100-1200", "<1100" ) ) ) AS ?var5 ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var6 . FILTER ( ( ( ?var4 > "1300"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: What German rivers and streams have a Gewässerkennzahl (GKZ) but are not yet assigned a LAWA ID?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?waterbody ?gkz ?gkz_suffix WHERE {
  ?waterbody wdt:P1183 ?gkz .
  FILTER(STRSTARTS(?gkz , "DE/")) MINUS {
    ?waterbody wdt:P3866 ?lawa_id .
  }
  BIND(STRAFTER(?gkz , "DE/") AS ?gkz_suffix)
}
ORDER BY ?gkz

List water bodies in Germany with a P1183 identifier starting with "DE/" but without a P3866 identifier.

Which German waterways are identified by their GKZ but lack a LAWA waterbody reference?

SELECT ?var1 ( "P3866" AS ?var2 )( CONCAT ( """, ?var3 , """ ) AS ?var4 ) WHERE { BIND ( STRAFTER ( ?var5 , "DE/" ) AS ?var3 ). BIND ( REPLACE ( STR ( ?var6 ) , ".*Q", "Q" ) AS ?var1 ). ?var6 <http://www.wikidata.org/prop/direct/P1183> ?var5 . FILTER ( ( STRSTARTS ( ?var5 , "DE/" ) ) ) . FILTER ( ( REGEX ( ?var5 , "^DE/.{10}$" ) ) ) . MINUS { ?var6 <http://www.wikidata.org/prop/direct/P3866> ?var7 . } } ORDER BY ASC( ?var5 )


Question: Disasters with geographic coordinates and English labels

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?disasterLabel ?coord WHERE {
  ?disaster wdt:P31 wd:Q3839081 .
  ?disaster wdt:P625 ?coord .
  ?disaster rdfs:label ?disasterLabel .
  FILTER ( LANG( ?disasterLabel ) = "en" )
}
LIMIT 300

What are the English names and locations of disasters recorded in Wikidata?

List the English labels and coordinates of all disasters in Wikidata.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3839081> . } LIMIT 300


Question: What is the MeSH ID for ulcerative colitis?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?meshId WHERE {
  wd:Q1477 p:P486 ?statement .
  ?statement ps:P486 ?meshId .
}

Can you tell me the Medical Subject Headings identifier for the disease ulcerative colitis?

Show the MeSH Unique ID assigned to ulcerative colitis in the medical terminology system.

SELECT * WHERE { <http://www.wikidata.org/prop/direct/Q1477> <http://www.wikidata.org/prop/P486> ?var1 . }


Question: What properties are used to link entities to North Macedonia, with their English labels and descriptions?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?propertyItem ?propertyLabel ?propertyDescription WHERE {
  ?item ?directProperty wd:Q221 .
  BIND( IRI( CONCAT ( "http://www.wikidata.org/entity/" , SUBSTR( STR( ?directProperty ) , 40 ) ) ) AS ?propertyItem ) .
  ?propertyItem rdfs:label ?propertyLabel .
  ?propertyItem schema:description ?propertyDescription .
  FILTER ( LANG( ?propertyLabel ) = "en" ) FILTER ( LANG( ?propertyDescription ) = "en" )
}
LIMIT 100

Which properties in Wikidata have North Macedonia as their object, and what are their English labels and descriptions?

List the English labels and descriptions of all properties that connect any item to North Macedonia in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q221> . ?var1 ?var6 ?var5 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } LIMIT 100


Question: Diabetes: MeSH ID, health specialty, DiseasesDB ID, and symptoms

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?disease ?diseaseLabel ?meshId ?healthSpecialty ?healthSpecialtyLabel ?diseasesDbId ?symptom ?symptomLabel WHERE {
  ?disease wdt:P31 wd:Q12136 .
  ?disease rdfs:label ?diseaseLabel .
  FILTER ( LANG( ?diseaseLabel ) = "en" ) FILTER ( STR( ?diseaseLabel ) = "diabetes" ) OPTIONAL {
    ?disease wdt:P486 ?meshId .
  }
  OPTIONAL {
    ?disease wdt:P1995 ?healthSpecialty .
    OPTIONAL {
      ?healthSpecialty rdfs:label ?healthSpecialtyLabel .
      FILTER ( LANG( ?healthSpecialtyLabel ) = "en" )
    }
  }
  OPTIONAL {
    ?disease wdt:P557 ?diseasesDbId .
  }
  OPTIONAL {
    ?disease wdt:P780 ?symptom .
    OPTIONAL {
      ?symptom rdfs:label ?symptomLabel .
      FILTER ( LANG( ?symptomLabel ) = "en" )
    }
  }
}

What are the MeSH ID, medical specialty, DiseasesDB ID, and symptoms associated with diabetes?

Show me the MeSH identifier, medical field, DiseasesDB identifier, and clinical symptoms for the disease diabetes.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var6 ?var6Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . ?var1 ?var1Label "string1"@en . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P486> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1995> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P557> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P780> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: DC Universe characters and their fathers in English

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?character ?characterLabel ?father ?fatherLabel WHERE {
  ?character wdt:P1080 wd:Q1152150 .
  ?character rdfs:label ?characterLabel .
  ?character wdt:P22 ?father .
  ?father rdfs:label ?fatherLabel .
  FILTER ( LANG( ?characterLabel ) = "en" ) .
  FILTER ( LANG( ?fatherLabel ) = "en" ) .
}

Who are the characters from the DC Universe and who are their fathers, with names in English?

List all English-named characters from the DC Universe along with the names of their biological fathers.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1080> <http://www.wikidata.org/entity/Q1152150> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P22> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . }


Question: List characters from Celtic mythology and their fathers, with English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?character ?characterLabel ?father ?fatherLabel WHERE {
  ?character wdt:P1080 wd:Q1106575 .
  ?character rdfs:label ?characterLabel .
  ?character wdt:P22 ?father .
  ?father rdfs:label ?fatherLabel .
  FILTER(LANG(?characterLabel) = "en")
  FILTER(LANG(?fatherLabel) = "en")
}

Who are the characters in Celtic mythology, and who are their fathers according to Wikidata?

Show me the English names of characters from Celtic mythology along with the English names of their biological fathers.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1080> <http://www.wikidata.org/entity/Q1106575> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P22> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . }


Question: What Wikidata item has the IMDb ID tt1727824?

SELECT ?item WHERE { ?item wdt:P345 "tt1727824" . }

Which movie on Wikidata is associated with the IMDb identifier tt1727824?

Find the Wikidata entry for the film with IMDb ID tt1727824.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1727824". } ORDER BY ASC( ?var1 )


Question: What are the 10 largest cities in the world with a currently serving female head of government, and who are they?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ( MAX( ?population ) AS ?maxPopulation ) ?cityLabel ?headOfGovernmentLabel WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city p:P6 ?headStatement .
  ?headStatement ps:P6 ?headOfGovernment .
  ?headOfGovernment wdt:P21 wd:Q6581072 .
  FILTER ( NOT EXISTS {
    ?headStatement pq:P582 []
  }
  ) .
  ?city wdt:P1082 ?population .
  OPTIONAL {
    ?city rdfs:label ?cityLabel .
    FILTER ( LANG( ?cityLabel ) = "en" )
  }
  OPTIONAL {
    ?headOfGovernment rdfs:label ?headOfGovernmentLabel .
    FILTER ( LANG( ?headOfGovernmentLabel ) = "en" )
  }
}
GROUP BY ?cityLabel ?headOfGovernmentLabel
ORDER BY DESC ( ?maxPopulation )
LIMIT 10

Show me the top 10 cities by population where the mayor or equivalent leader is a woman, along with her name and the city’s population.

Which cities have the highest populations led by women in office today? List the city name, the leader’s name, and the population.

SELECT( MAX ( ?var1 ) AS ?var2 ) ?var3 ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var5 <http://www.wikidata.org/prop/P6> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P6> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . FILTER ( ( NOT EXISTS { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var8 . } ) ) . ?var5 <http://www.wikidata.org/prop/direct/P1082> ?var1 . OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } OPTIONAL { ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var3 ?var4 ORDER BY DESC( ?var2 ) LIMIT 10


Question: Who are the living computer scientists that have received the Latvian Cross of Recognition and have a Wikipedia page and an image on Wikimedia Commons?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?person ?personLabel ?image ?wikipediaPageTitle WHERE {
  ?person wdt:P106 wd:Q82594 .
  ?person wdt:P166 wd:Q1232376 .
  ?person wdt:P18 ?image .
  ?wikipediaPage schema:about ?person ; schema:isPartOf <https://en.wikipedia.org/> .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( NOT EXISTS {
    ?person wdt:P570 ?deathDate
  }
  ) BIND( strafter( str( ?wikipediaPage ) , "https://en.wikipedia.org/wiki/" ) AS ?wikipediaPageTitle )
}

List computer scientists from Latvia who received the Cross of Recognition, are still alive, and have a Wikipedia article with a photo.

Which computer scientists have been awarded the Latvian Order of Merit, are alive, and have both a Wikipedia page and a Commons image?

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82594> . ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q1232376> . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } ) ) . } GROUP BY ?var1Label ?var2Label ?var1 ?var3 ?var4


Question: Which Hebrew-named biblical figures are considered by Rashi’s sources to be the same as less prominent figures?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  ?item p:P460 ?stmt .
  ?stmt ps:P460 ?sameAs .
  ?stmt prov:wasDerivedFrom / pr:P248 / wdt:P50 wd:Q26456 .
  {
    SELECT ?item(COUNT(?sitelink) AS ?count1) WHERE {
      ?sitelink schema:about ?item .
    }
    GROUP BY ?item
  }
  .
  {
    SELECT ?sameAs(COUNT(?sitelink) AS ?count2) WHERE {
      ?sitelink schema:about ?sameAs .
    }
    GROUP BY ?sameAs
  }
  .
  FILTER(?count1 > ?count2)
  .
  ?item rdfs:label ?itemLabel
  FILTER(LANG(?itemLabel) = "he")
}

According to sources authored by Rashi, which Hebrew-labeled individuals are more widely referenced (have more Wikipedia links) than the people they are identified with?

What are the Hebrew names of entities that Rashi claimed were identical to others, but are more well-known on Wikipedia?

SELECT ?var1 ?var2 ?var1Label WHERE { { SELECT ?var2 ( GROUP_CONCAT ( DISTINCT ?var3Label ; SEPARATOR = " / " ) AS ?var1Label ) WHERE { { ?var2 <http://www.wikidata.org/prop/P460> [ <http://www.wikidata.org/prop/statement/P460> ?var4 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> / <http://www.wikidata.org/prop/direct/P50> ) <http://www.wikidata.org/entity/Q26456> ] . ?var2 <http://wikiba.se/ontology#sitelinks> ?var5 . ?var4 <http://wikiba.se/ontology#sitelinks> ?var6 . FILTER ( ( ( ?var5 > ?var6 ) ) ) . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "he" ) ) ) . } UNION { BIND ( ?var7 AS ?var2 ). ?var8 <http://www.wikidata.org/prop/P460> [ <http://www.wikidata.org/prop/statement/P460> ?var7 ; ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> / <http://www.wikidata.org/prop/direct/P50> ) <http://www.wikidata.org/entity/Q26456> ] . ?var8 <http://wikiba.se/ontology#sitelinks> ?var5 . ?var7 <http://wikiba.se/ontology#sitelinks> ?var6 . FILTER ( ( ( ?var5 < ?var6 ) ) ) . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "he" ) ) ) . } } GROUP BY ?var2 } }


Question: Czech municipalities with earliest written records before 1007 and their coordinates

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { ?var1 wdt:P31 wd:Q5153359 . ?var1 wdt:P1249 ?var3 . ?var1 wdt:P625 ?var2 . BIND(YEAR(?var3) AS ?var4) FILTER(?var4 < 1007) ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "cs") }

Which municipalities in the Czech Republic were first mentioned in writing before the year 1007, and where are they located?

Can you list the Czech municipalities that have documented historical records dating to before 1007, along with their geographic coordinates?

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1007"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written records before 1057 and their coordinates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE {
  ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?date ; wdt:P625 ?coordinates ; rdfs:label ?municipalityLabel .
  BIND(YEAR(?date) AS ?year)
  FILTER(?year < 1057)
  FILTER(LANG(?municipalityLabel) = "en")
}

Which municipalities in the Czech Republic were first mentioned in writing before the year 1057, and where are they located?

List the English names, geographic coordinates, and earliest recorded mentions (before 1057) of all municipalities in the Czech Republic.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1057"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written record before 1167 and their coordinates

SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE { VALUES ?class { wd:Q5153359 wd:Q15978299 } ?municipality wdt:P31 ?class . ?municipality wdt:P1249 ?date . BIND(YEAR(?date) AS ?year) FILTER (?year < 1167) ?municipality wdt:P625 ?coordinates . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

Which municipalities in the Czech Republic were first mentioned in writing before the year 1167, and where are they located?

List the English names, geographic coordinates, and earliest written records (before 1167) of all municipalities in the Czech Republic, including statutory cities.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1167"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written record before 1217 and their coordinates

SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE { ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?date ; wdt:P625 ?coordinates . BIND(YEAR(?date) AS ?year) FILTER(?year < 1217) ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

Which municipalities in the Czech Republic were first mentioned in writing before the year 1217, and where are they located?

List the English names, geographic coordinates, and earliest written records of Czech municipalities that existed before 1217.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1217"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written records before 1284 and their coordinates

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?municipality ?coord ?municipalityLabel WHERE {
  ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?date ; wdt:P625 ?coord .
  BIND( YEAR( ?date ) AS ?year ) FILTER ( ?year < 1284 ) .
  ?municipality rdfs:label ?municipalityLabel .
  FILTER ( LANG( ?municipalityLabel ) = "en" )
}

Which municipalities in the Czech Republic were first recorded in writing before the year 1284, and where are they located?

List the English names and geographic coordinates of Czech municipalities that first appeared in historical records before 1284.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1284"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities founded before 1331 with coordinates and English names

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE {
  ?municipality wdt:P17 wd:Q213 ; wdt:P571 ?founded ; wdt:P625 ?coordinates ; rdfs:label ?municipalityLabel .
  FILTER ( YEAR( ?founded ) < 1331 ) FILTER ( LANG( ?municipalityLabel ) = "en" )
}

Which municipalities in the Czech Republic were founded before the year 1331, and what are their locations and English names?

List all Czech municipalities established before 1331, including their geographic coordinates and English labels.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1331"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written record before 1341 and their coordinates and English names.

SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE { ?municipality wdt:P31 wd:Q5153359 . ?municipality wdt:P1249 ?date . ?municipality wdt:P625 ?coordinates . BIND(YEAR(?date) AS ?year) FILTER(?year < 1341) ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

Which municipalities in the Czech Republic were first mentioned in writing before 1341, and what are their locations and English names?

List all Czech municipalities established before 1341, along with their geographic coordinates and English labels.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1341"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: What are the Czech municipalities with their coordinates and earliest written records before the year 1392?

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { ?var1 wdt:P31 wd:Q5153359 . ?var1 wdt:P1249 ?var3 . BIND(YEAR(?var3) AS ?var4) . ?var1 wdt:P625 ?var2 . FILTER(?var4 < 1392) . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

List the English names, locations, and first historical mentions of Czech municipalities that were recorded before 1392.

Which towns in the Czech Republic have documented written records dating back to before 1392, and where are they located?

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1392"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: What are the Czech municipalities with their earliest written records before 1450 and their geographic coordinates?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?municipality ?coord ?year WHERE {
  ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?date ; wdt:P625 ?coord .
  BIND( YEAR( ?date ) AS ?year ) FILTER ( ?year < 1450 )
}

Show me the locations and years of first historical mention for Czech towns established before 1450.

Which municipalities in the Czech Republic were first recorded in writing before the year 1450, and where are they located?

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1450"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written records before 1493 and their coordinates.

SELECT DISTINCT ?municipality ?coord ?municipalityLabel WHERE { ?municipality wdt:P31 wd:Q5153359 ; wdt:P1249 ?date ; wdt:P625 ?coord ; rdfs:label ?municipalityLabel . FILTER (LANG(?municipalityLabel) = "en") . BIND(YEAR(?date) AS ?year) . FILTER (?year < 1493) . }

Which municipalities in the Czech Republic were first mentioned in writing before 1493, and where are they located?

List the names and geographic coordinates of Czech municipalities that have historical records dating back to before 1493.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1493"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Czech municipalities with earliest written records before 1541 and their coordinates.

SELECT DISTINCT ?municipality ?coordinates ?municipalityLabel WHERE { ?municipality wdt:P31 wd:Q5153359 . ?municipality wdt:P1249 ?date . BIND(YEAR(?date) AS ?year) ?municipality wdt:P625 ?coordinates . FILTER(?year < 1541) ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

Which municipalities in the Czech Republic were first mentioned in writing before 1541, and where are they located?

List the English names, geographic coordinates, and historical first mentions (before 1541) of all Czech municipalities.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5153359> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P2788> [] . } BIND ( YEAR ( ?var3 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( ( ?var4 < "1541"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Entities considered the same but with different occupations in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity1 ?entity1Label ?entity2 ?entity2Label ?value1 ?value1Label ?value2 ?value2Label WHERE {
  ?entity1 wdt:P460 ?entity2 .
  ?entity1 wdt:P106 ?value1 .
  ?entity2 wdt:P106 ?value2 .
  FILTER ( ?value1 != ?value2 ) OPTIONAL {
    ?entity1 rdfs:label ?entity1Label .
    FILTER ( LANG( ?entity1Label ) = "en" )
  }
  OPTIONAL {
    ?entity2 rdfs:label ?entity2Label .
    FILTER ( LANG( ?entity2Label ) = "en" )
  }
  OPTIONAL {
    ?value1 rdfs:label ?value1Label .
    FILTER ( LANG( ?value1Label ) = "en" )
  }
  OPTIONAL {
    ?value2 rdfs:label ?value2Label .
    FILTER ( LANG( ?value2Label ) = "en" )
  }
}
LIMIT 5

Which pairs of entities in Wikidata are marked as possibly the same person, yet have different occupations?

Show me examples of people or figures in Wikidata that are listed as potentially identical but have conflicting occupation records.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P460> ?var2 . ?var3 ?var4 ?var1 . ?var2 ?var4 ?var5 . { BIND ( ?var3 AS ?var6 ). BIND ( ?var1 AS ?var7 ). } UNION { BIND ( ?var2 AS ?var6 ). BIND ( ?var5 AS ?var7 ). } } LIMIT 5


Question: Pairs of entities mutually labeled as the same in Wikidata with English labels.

SELECT ?item1 ?item1Label ?item2 ?item2Label WHERE { ?item1 wdt:P460 ?item2 . ?item2 wdt:P460 ?item1 . ?item1 rdfs:label ?item1Label . ?item2 rdfs:label ?item2Label . FILTER(LANG(?item1Label) = "en" && LANG(?item2Label) = "en") } LIMIT 10

Which pairs of entities in Wikidata are said to be the same as each other in both directions, and what are their English names?

Show me mutually symmetric "same as" relationships between entities in Wikidata, along with their English labels.

SELECT ?var1 ?var2 WHERE { [] ?var3 ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P460> ?var2 . ?var2 ?var3 [] . }


Question: What properties are most commonly used to link other items to James Caulfeild, 1st Earl of Charlemont, and how many times each?

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q3160976 . OPTIONAL { ?property rdfs:label ?label . FILTER(LANG(?label) = "en") } } GROUP BY ?property HAVING (?count > 1) ORDER BY DESC(?count)

Which relationships connect James Caulfeild, 1st Earl of Charlemont, to other entities in Wikidata, and how frequently do they occur?

Show me the properties that link other items to James Caulfeild, 1st Earl of Charlemont, sorted by how often they’re used — only include those used more than once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q3160976> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Coordinates of Bernex, Switzerland

SELECT ?coordinates WHERE { wd:Q65259 wdt:P625 ?coordinates ; wdt:P31 wd:Q70208 .}

What are the geographic coordinates of Bernex, a municipality in Switzerland?

Can you tell me the latitude and longitude of Bernex, Switzerland?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q65259> <http://www.wikidata.org/prop/direct/P625> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: What is the coat of arms image of the Swiss municipality Ellikon an der Thur?

SELECT ?municipality ?municipalityLabel ?coatOfArms WHERE { ?municipality wdt:P17 wd:Q39 ; wdt:P31 wd:Q15284 ; wdt:P94 ?coatOfArms . ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") }

Which Swiss municipalities have official coat of arms images?

Can you show me the heraldic emblems of Swiss towns?

SELECT ?var1 WHERE { <http://classifications.data.admin.ch/municipality/353> <http://www.wikidata.org/prop/direct/P94> ?var1 . }


Question: Coat of arms image of Islisberg

SELECT ?coatOfArmsImage WHERE { wd:Q64929 wdt:P94 ?coatOfArmsImage .}

What is the image of the coat of arms for the municipality of Islisberg?

Show me the SVG file representing the coat of arms of Islisberg, Switzerland.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q64929> <http://www.wikidata.org/prop/direct/P94> ?var1 . }


Question: Properties linking other items to the ice hockey team Français Volants, with usage count greater than one.

SELECT ?property (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q1345524 . } GROUP BY ?property HAVING (COUNT(?item) > 1) ORDER BY DESC(?count)

Which properties are used to connect other entities to the French ice hockey team Français Volants, and how often are they used?

Show me the properties that relate other items to Français Volants, sorted by frequency, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1345524> . OPTIONAL { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } } GROUP BY ?var1 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )


Question: Which movie has the Swedish Film Database ID 4134?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie WHERE {
  ?movie wdt:P2334 "4134" .
}

What is the Wikidata item for the film with SFDb ID 4134?

Find the movie in Wikidata that corresponds to the Swedish Film Database ID 4134.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2334> "4134". }


Question: Coat of arms image of Weiach, Switzerland

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?coatOfArmsImage WHERE {
  wd:Q70088 wdt:P94 ?coatOfArmsImage ; wdt:P31 wd:Q70208 .
}

What is the coat of arms image for the municipality of Weiach in Switzerland?

Show me the SVG file of the coat of arms for Weiach, which is a municipality in the canton of Zürich.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q70088> <http://www.wikidata.org/prop/direct/P94> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: Coat of arms image of Ermensee, Switzerland

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?coatOfArmsImage WHERE {
  wd:Q7115 wdt:P94 ?coatOfArmsImage ; wdt:P31 wd:Q70208 .
}

What is the coat of arms image for the municipality of Ermensee in Switzerland?

Show me the official coat of arms image of Ermensee, which is a municipality in Switzerland.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q7115> <http://www.wikidata.org/prop/direct/P94> ?var1 ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . }


Question: What Latin Wikipedia pages cover locations in Central Europe between 12°E and 19°E longitude and 49°N and 51°N latitude, and what are their English labels and coordinates?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
SELECT ?itemLabel ?coord ?page WHERE {
  ?page schema:about ?item ; schema:inLanguage "la" .
  ?item wdt:P625 ?coord .
  BIND(STRAFTER(STR(?coord) , "POINT(") AS ?coordBody)
  .
  BIND(STRBEFORE(?coordBody , ")") AS ?coordNumbers)
  .
  BIND(STRBEFORE(?coordNumbers , " ") AS ?lonStr)
  .
  BIND(STRAFTER(?coordNumbers , " ") AS ?latStr)
  .
  BIND(xsd:double(?lonStr) AS ?lon)
  .
  BIND(xsd:double(?latStr) AS ?lat)
  .
  FILTER(?lon >= 12 && ?lon <= 19 && ?lat >= 49 && ?lat <= 51)
  .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

Show me the English names, geographic coordinates, and Latin Wikipedia links for places located in the region spanning from Prague to the Czech-German border.

Which places in the Czech Republic, Slovakia, and southern Germany have articles in Latin Wikipedia, and where are they located?

SELECT ?var1Label ?var2 ?var3 WHERE { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "la". SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(12 49)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(19 51)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,la,en". } }


Question: AllMovie and IMDb IDs for films, animated films, silent films, documentaries, TV movies, musicals, and short films.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?allmovieId ?imdbId WHERE {
  VALUES ?filmType {
    wd:Q11424 wd:Q202866 wd:Q226730 wd:Q93204 wd:Q506240 wd:Q842256 wd:Q24862
  }
  ?film wdt:P31 ?filmType .
  ?film wdt:P345 ?imdbId .
  ?film wdt:P1562 ?allmovieId .
}

Which films have both an AllMovie ID and an IMDb ID, and what are their types?

Can you list all films (including animated, silent, documentary, TV, musical, and short films) that are assigned both an AllMovie identifier and an IMDb identifier?

SELECT DISTINCT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q11424> ) ( <http://www.wikidata.org/entity/Q202866> ) ( <http://www.wikidata.org/entity/Q226730> ) ( <http://www.wikidata.org/entity/Q93204> ) ( <http://www.wikidata.org/entity/Q506240> ) ( <http://www.wikidata.org/entity/Q842256> ) ( <http://www.wikidata.org/entity/Q24862> ) } ?var4 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P345> ?var2 . ?var4 <http://www.wikidata.org/prop/direct/P1562> ?var1 . } ORDER BY ASC( ?var4 )ASC( ?var3 )


Question: German labels of subclasses of volcanic landform

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?subclass ?label WHERE {
  ?subclass wdt:P279 wd:Q29025902 .
  ?subclass rdfs:label ?label .
  FILTER(LANG(?label) = "de")
}
ORDER BY ASC(?label)

What are the German-language names of geological features that are subclasses of volcanic landform?

List all volcanic landform subclasses with their German labels, sorted alphabetically.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q4498085> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } ORDER BY ASC( ?var2 )


Question: English-language food items related to milk and their USDA NDB numbers

SELECT ?item ?itemLabel ?usdaNdbNumber WHERE { ?item (wdt:P279|wdt:P31) wd:Q8495 . ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") . FILTER (CONTAINS(LCASE(?itemLabel), "milk")) . OPTIONAL { ?item wdt:P1978 ?usdaNdbNumber . } } LIMIT 2

What are some types of milk in English that have a USDA NDB number?

List subclasses and instances of milk in English, along with their USDA food database identifiers if available.

SELECT ?var1 ?var1Label ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q27643250> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1978> ?var2 . } FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "milk"@en ) ) ) . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q27643250> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1978> ?var2 . } FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "milk"@en ) ) ) . } } LIMIT 2


Question: Universities in Hong Kong, China, with their official websites and coordinates.

SELECT ?universityLabel ?website ?coordinates WHERE { ?university (wdt:P31/wdt:P279*) wd:Q3918 . ?university wdt:P17 wd:Q148 . ?university wdt:P276 wd:Q8646 . ?university wdt:P625 ?coordinates . OPTIONAL { ?university wdt:P856 ?website . } ?university rdfs:label ?universityLabel . FILTER(LANG(?universityLabel) = "en") }

What are the universities in Hong Kong, China, and what are their official websites and geographic coordinates?

Please list all universities located in Hong Kong, China, along with their official websites and coordinates.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3918> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q148> . ?var1 <http://www.wikidata.org/prop/direct/P276> <http://www.wikidata.org/entity/Q8646> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,zh". } }


Question: English labels and descriptions for Bell 30 helicopter

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?property ?label WHERE {
  wd:Q617701 ?property ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ASC ( ?property )
LIMIT 100

What are the English names and descriptions of the Bell 30 experimental helicopter?

Show me all English-language labels for the Bell 30 helicopter, sorted by property.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q617701> ?var2 ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } ORDER BY ASC( ?var2 ) LIMIT 100


Question: What is the Wikidata item for the MyDramaList title ID 4652?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item WHERE {
  ?item wdt:P3868 "4652" .
}

Which film or TV series has the MyDramaList ID 4652?

Find the Wikidata entry for the MyDramaList title with ID 4652.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3868> "4652". }


Question: Who received the Nobel Prize and in what year?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?person ?personLabel ?date WHERE {
  ?person wdt:P166 ?award .
  ?award wdt:P361 wd:Q7191 .
  ?statement ps:P166 ?award ; pq:P585 ?date .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
LIMIT 10

List people who have been awarded the Nobel Prize along with the year they received it.

Which individuals have won a Nobel Prize, and when did they receive it?

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q5624766> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: Biological species with EoL ID and their taxonomic classification

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?taxon ?taxonLabel ( GROUP_CONCAT( ?classLabel ; SEPARATOR = "; " ) AS ?classes ) WHERE {
  ?taxon wdt:P830 [] ; wdt:P31 ?class .
  ?taxon rdfs:label ?taxonLabel .
  ?class rdfs:label ?classLabel .
  FILTER ( LANG( ?taxonLabel ) = "en" ) FILTER ( LANG( ?classLabel ) = "en" ) FILTER ( ?class != wd:Q16521 )
}
GROUP BY ?taxon ?taxonLabel

What are the biological taxa that have an Encyclopedia of Life ID, and what taxonomic ranks are they classified as?

List all organisms with an Encyclopedia of Life identifier along with their taxonomic class (excluding the general "taxon" category).

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( ?var2Label ; SEPARATOR = "; " ) AS ?var3 ) WHERE { { SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P830> [] ; <http://www.wikidata.org/prop/direct/P31> ?var2 . FILTER ( ( ( ?var2 != <http://www.wikidata.org/entity/Q16521> ) ) ) . } } MINUS { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q16521> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 ?var1Label


Question: List cities in Wikidata with their English names.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?city ?cityLabel WHERE {
  ?city wdt:P31 wd:Q515 .
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG( ?cityLabel ) = "en" )
}

What are some cities in Wikidata and what are their English labels?

Show me the English names of all cities in Wikidata.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/31> <http://www.wikidata.org/entity/Q515> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: All properties and subjects linked to the chemical element on Wikidata.

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?subject ?property WHERE {
  ?subject ?property wd:Q7038228 .
}

Which entities and properties relate to the category 'chemical element' in Wikidata?

Show me everything in Wikidata that refers to chemical elements as objects.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/Q7038228> . }