Question: Current female heads of cities around the world

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?city ?cityLabel ?head ?headLabel WHERE {
  ?city(wdt:P31 / wdt:P279 *) wd:Q515 .
  ?city p:P6 ?statement .
  ?statement ps:P6 ?head .
  ?head wdt:P21 wd:Q6581072 .
  FILTER(NOT EXISTS {
    ?statement pq:P582 ?endTime
  })
  ?city rdfs:label ?cityLabel .
  ?head rdfs:label ?headLabel .
  FILTER(LANG(?cityLabel) = "en")
  FILTER(LANG(?headLabel) = "en")
}
LIMIT 10

Who are the current female mayors or city leaders of cities globally?

List the names of cities and their currently serving female heads of government, along with their English labels.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/P6> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P6> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . FILTER ( ( NOT EXISTS { ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } ) ) . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: German-language buildings with "cinema" in their name

SELECT DISTINCT ?cinema ?cinemaLabel WHERE { ?cinema (wdt:P31/wdt:P279*) wd:Q41176 ; rdfs:label ?cinemaLabel . FILTER(CONTAINS(LCASE(?cinemaLabel), "cinema")) FILTER(LANG(?cinemaLabel) = "de") } LIMIT 100

What are the names of cinemas in German that are classified as buildings?

What are the German-language labels of entities that are cinemas and classified as buildings?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/entity/P279> *) <http://www.wikidata.org/entity/Q41176> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( CONTAINS ( LCASE ( ?var1Label ) , "cinema" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . } LIMIT 100


Question: What are the most recent population figures for all municipalities in Switzerland, sorted from highest to lowest?

SELECT ?municipality ?date ?population WHERE { ?municipality wdt:P31 wd:Q70208 . ?municipality p:P1082 ?statement . ?statement ps:P1082 ?population ; pq:P585 ?date . { SELECT ?municipality (MAX(?date) AS ?maxDate) WHERE { ?municipality wdt:P31 wd:Q70208 . ?municipality p:P1082 ?statement . ?statement pq:P585 ?date . } GROUP BY ?municipality } FILTER (?date = ?maxDate) } ORDER BY DESC(?population)

Show the latest recorded population for each Swiss municipality, ordered by population size.

Which Swiss municipalities have the highest populations as of their most recent census date?

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q70208> . ?var1 <http://www.wikidata.org/prop/P1082> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P1082> ?var3 ; <http://www.wikidata.org/prop/qualifier/P585> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/P1082> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P1082> ?var6 ; <http://www.wikidata.org/prop/qualifier/P585> ?var7 . FILTER ( ( ( ?var7 > ?var2 ) ) ) . } ) ) . } ORDER BY DESC( ?var3 )


Question: Labels of Lolo Soetoro in Indonesian, English, German, French, and Italian, along with his English Wikipedia page.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?image ?location ?wikipedia WHERE {
  VALUES(?lang ?sortKey) {("id" 1)("en" 2)("de" 3)("fr" 4)("it" 5)
  }
  wd:Q4115068 rdfs:label ?label .
  FILTER(LANG(?label) = ?lang)
  OPTIONAL {
    wd:Q4115068 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q4115068 wdt:P625 ?location .
  }
  OPTIONAL {
    ?wikipedia rdf:type schema:Article ; schema:about wd:Q4115068 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?sortKey

What are the labels for Lolo Soetoro in Indonesian, English, German, French, and Italian, and what is his English Wikipedia article?

Show me the names of Lolo Soetoro in Indonesian, English, German, French, and Italian, ordered by language preference, and link to his English Wikipedia page.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q4115068> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q4115068> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q4115068> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q4115068> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What is the English label, description, and image of the painting "Madonna" in the Dulwich Picture Gallery?

SELECT ?label ?description ?image WHERE { OPTIONAL { wd:Q23928498 rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { wd:Q23928498 wdt:P18 ?image . } OPTIONAL { wd:Q23928498 schema:description ?description . FILTER (LANG(?description) = "en") } }

Show me the title, description, and picture of the painting Madonna attributed to a follower of Francesco Albani.

Can you provide the English name, brief description, and Wikimedia Commons image for the artwork known as Madonna?

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q23928498> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q23928498> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q23928498> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: English label, description, and image of the album Madonna by …And You Will Know Us by the Trail of Dead.

SELECT ?label ?description ?image WHERE { OPTIONAL { wd:Q1147459 rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { wd:Q1147459 wdt:P18 ?image . } OPTIONAL { wd:Q1147459 schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the English name, description, and image of the album "Madonna" by …And You Will Know Us by the Trail of Dead?

Please provide the English label and description of the album "Madonna" by …And You Will Know Us by the Trail of Dead, along with its image if available.

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q1147459> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q1147459> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q1147459> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: List the 10 most populous cities in the world with a currently serving female head of government, along with their populations and leaders' names.

SELECT DISTINCT ?city ?cityLabel ?headOfGovernment ?headOfGovernmentLabel ?population WHERE { BIND( wd:Q6581072 AS ?female ) . BIND( wd:Q515 AS ?cityClass ) . ?city ( wdt:P31 / wdt:P279* ) ?cityClass . ?city p:P6 ?headOfGovernmentStatement . ?headOfGovernmentStatement ps:P6 ?headOfGovernment . FILTER ( NOT EXISTS { ?headOfGovernmentStatement pq:P582 ?endTime } ) . ?headOfGovernment wdt:P21 ?female . OPTIONAL { ?city wdt:P1082 ?population . } OPTIONAL { ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") } OPTIONAL { ?headOfGovernment rdfs:label ?headOfGovernmentLabel . FILTER(LANG(?headOfGovernmentLabel) = "en") } } ORDER BY DESC(?population) LIMIT 10

Which cities have a female mayor or head of government currently in office, and what are their populations, ordered from highest to lowest?

Show me the top 10 cities by population where the head of government is a woman and still in office, including the city name, leader’s name, and population.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/entity/Q6581072> AS ?var4 ). BIND ( <http://www.wikidata.org/entity/Q515> AS ?var5 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var5 . ?var1 <http://www.wikidata.org/prop/P6> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P6> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P21> ?var4 . FILTER ( ( NOT EXISTS { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var7 . } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var3 ) LIMIT 10


Question: What properties use Antarctica as an example, and what qualifiers are associated with those examples?

SELECT ?property ?statement (SAMPLE(?qualifier) AS ?qualifierLabel)
WHERE {
  {
    SELECT DISTINCT ?property ?statement WHERE {
      ?statement ps:P1855 wd:Q51 .
      ?property p:P1855 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifier ?value .
    ?qualifier wikibase:qualifier ?qualifier .
  }
}
GROUP BY ?property ?statement

Show me the properties that have Antarctica as an example value, along with any qualifiers used in those examples.

Which Wikidata properties are exemplified by Antarctica, and what additional information (qualifiers) is provided in those example statements?

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


Question: What is the English label, description, and image of the book "The Birthday" by Kōji Suzuki?

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/>
PREFIX schema: <http://schema.org/>
SELECT ?label ?description ?image WHERE {
  OPTIONAL {
    wd:Q1402878 rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
  OPTIONAL {
    wd:Q1402878 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q1402878 schema:description ?description .
    FILTER(LANG(?description) = "en")
  }
}

Can you tell me the English name and description of the book "The Birthday", and is there an image available for it on Wikimedia Commons?

Please provide the English label and description of the book "The Birthday", along with its associated image if one exists.

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q1402878> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q1402878> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q1402878> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: What are the names and genders of all known house cats in Wikidata, with English labels?

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 ?cat ?catLabel ?gender ?genderLabel WHERE {
  ?cat wdt:P31 wd:Q146 ; wdt:P21 ?gender .
  ?cat rdfs:label ?catLabel .
  ?gender rdfs:label ?genderLabel .
  FILTER ( LANG( ?catLabel ) = "en" ) FILTER ( LANG( ?genderLabel ) = "en" )
}

List famous cats and their biological sex.

Show me a list of domestic cats along with whether they are male or female.

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


Question: What is the English name of Estelle Lefébure on Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label WHERE {
  wd:Q3058909 rdfs:label ?label .
  FILTER ( LANGMATCHES( LANG( ?label ) , "EN" ) )
}
LIMIT 1

What is Estelle Lefébure's name in English according to Wikidata?

Please provide the English label for the Wikidata item of Estelle Lefébure.

SELECT DISTINCT * WHERE { <http://www.wikidata.org/entity/Q3058909> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( LANGMATCHES ( LANG ( ?var1Label ) , "EN" ) ) ) . } LIMIT 1


Question: What are all the broader categories that a passenger car belongs to, and what are their immediate parent categories?

SELECT ?ancestor ?ancestorLabel ?superclass WHERE { wd:Q1144312 wdt:P279* ?ancestor . OPTIONAL { ?ancestor wdt:P279 ?superclass . } ?ancestor rdfs:label ?ancestorLabel . FILTER(LANG(?ancestorLabel) = "en") }

List all classes that passenger cars are subclasses of, along with each class’s own superclass.

What is the classification hierarchy above passenger cars in Wikidata, showing each level and its direct parent?

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


Question: Saudi Arabian citizens without Arabic labels and their other citizenships

SELECT ?person ?personLabel ?citizenship WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P27 wd:Q851 . ?person wdt:P27 ?citizenship . FILTER (NOT EXISTS { ?person rdfs:label ?label . FILTER (LANG(?label) = "ar") }) } ORDER BY ASC(?personLabel)

Who are the human citizens of Saudi Arabia that do not have an Arabic label, and what other countries are they citizens of?

List all Saudi Arabian citizens who are human and lack an Arabic label, along with all their countries of citizenship.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q851> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "ar" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label )


Question: Humans with Syrian citizenship and other nationalities, excluding those with Arabic labels.

SELECT ?var1 (SAMPLE(?var1Label) AS ?label) ?var3 WHERE { ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P27 wd:Q858 . OPTIONAL { ?var1 rdfs:label ?var1Label . } OPTIONAL { ?var1 wdt:P27 ?var3 . } FILTER ( NOT EXISTS { ?var1 rdfs:label ?arLabel . FILTER(LANG(?arLabel) = "ar") } ) } GROUP BY ?var1 ?var3 ORDER BY ASC(?label)

Who are the people who are citizens of Syria and also hold other citizenships, but do not have any Arabic-language label?

List all individuals who are citizens of Syria along with their other countries of citizenship, but exclude anyone who has an Arabic label.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q858> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "ar" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label )


Question: Properties in Wikidata with Esperanto descriptions

PREFIX schema: <http://schema.org/>
SELECT ?property ?desc WHERE {
  ?property schema:description ?desc .
  FILTER ( LANG( ?desc ) = 'eo' )
}
LIMIT 10

Which properties in Wikidata have descriptions written in Esperanto?

Show me all properties in Wikidata that include a description in Esperanto, along with the description text.

SELECT * WHERE { ?var1 <http://schema.org/description> "string1"@eo . }


Question: Entities with 'actor' in their English description

SELECT ?entity ?description WHERE { ?entity schema:description ?description . FILTER(LANG(?description) = 'en') . FILTER(CONTAINS(LCASE(?description), 'actor')) } LIMIT 10

Which entities have a description in English that mentions 'actor'?

Show me entities whose English description includes the word 'actor'.

SELECT * WHERE { VALUES ( ?var1 ) { ( "string1"@simple ) } ?var2 <http://schema.org/description> ?var1 . }


Question: Subclasses of legume with 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 ?subclass ?label ?image WHERE {
  ?subclass wdt:P279 wd:Q145909 .
  OPTIONAL {
    ?subclass wdt:P18 ?image .
  }
  ?subclass rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
LIMIT 100

What are the subclasses of legume, and what images are associated with them?

List the English names of all subclasses of legume and show their images if available.

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


Question: Antarctic geographic features with GNIS ID but no GeoNames ID and no country assignment, along with their coordinates.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?item ?gnisId ?label ?lat ?long WHERE {
  ?item wdt:P804 ?gnisId .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" ) .
  }
  FILTER NOT EXISTS {
    ?item wdt:P1566 ?geonamesId .
  }
  OPTIONAL {
    ?item wdt:P625 ?coord .
    BIND( geof:latitude ( ?coord ) AS ?lat ) BIND( geof:longitude ( ?coord ) AS ?long )
  }
  OPTIONAL {
    ?item p:P625 ?statement .
    ?statement ps:P625 ?coord .
    ?coord wikibase:geoLatitude ?lat ; wikibase:geoLongitude ?long .
  }
  FILTER NOT EXISTS {
    ?item wdt:P17 ?country .
  }
}

What are the names and coordinates of geographic features in Antarctica that have a GNIS ID, no GeoNames ID, and are not located in any country?

List all Antarctic landmarks identified by GNIS ID that are not assigned to any country and lack a GeoNames ID, including their English names and geographic coordinates.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P804> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var4 . } OPTIONAL { VALUES ( ?var5 ) { ( <http://www.wikidata.org/prop/novalue/P17> ) } ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . } OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/P625> ) ?var7 . ?var7 <http://wikiba.se/ontology#geoLatitude> ?var8 ; <http://wikiba.se/ontology#geoLongitude> ?var9 . } FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . }


Question: What properties describe the song "María Mercedes" by Thalía, and what are their values?

SELECT ?property ?propertyLabel ?value ?valueLabel WHERE { wd:Q1166263 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . OPTIONAL { ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") } . FILTER(LANG(?propertyLabel) = "en") } LIMIT 100

List the direct claims (properties and values) associated with the Wikidata item for the single "María Mercedes", along with their English labels.

Show me the English labels of the properties used for the music single "María Mercedes" and the entities or values they point to.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 ?var3 <http://www.wikidata.org/entity/Q1166263> . ?var2 <http://wikiba.se/ontology#directClaim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: List of symbols in Wikidata

SELECT ?symbol ?symbolLabel WHERE { ?symbol wdt:P31 wd:Q80071 . ?symbol rdfs:label ?symbolLabel . FILTER(LANG(?symbolLabel) = "en") }

What are some examples of symbols in Wikidata?

Show me the English labels of all items classified as symbols in Wikidata.

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


Question: What are the English-named list pages on Wikidata that don't have a description?

SELECT ?listItem ?label WHERE { ?listItem wdt:P31 wd:Q13406463 . OPTIONAL { ?listItem schema:description ?description . } FILTER ( !BOUND(?description) ) ?listItem rdfs:label ?label . FILTER (LANG(?label) = "en") }

Show me Wikidata list items without descriptions, along with their English names.

Which Wikimedia list pages are missing descriptions but have English labels?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13406463> . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar". } }


Question: Films directed by Howard Hawks without an entry in the Lexikon des Internationalen Films, along with their release dates.

SELECT DISTINCT ?var1 ?var1Label ?var3 ?directorLabel WHERE { ?var1 wdt:P31 wd:Q11424 ; wdt:P57 wd:Q51581 . OPTIONAL { ?var1 wdt:P3107 ?var5 . } OPTIONAL { ?var1 wdt:P577 ?var3 . } ?var1 rdfs:label ?var1Label . wd:Q51581 rdfs:label ?directorLabel . FILTER ( !BOUND(?var5) ) FILTER (LANG(?var1Label) = "en") FILTER (LANG(?directorLabel) = "en") } ORDER BY ASC(?var1Label)

Which films directed by Howard Hawks are not listed in the Lexikon des Internationalen Films, and when were they released?

Show me the English titles and release years of Howard Hawks films that don’t have an ID in the Lexikon des Internationalen Films.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P57> <http://www.wikidata.org/entity/Q51581> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3107> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P57> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . } ORDER BY ASC( ?var1Label )


Question: What are the types of armed conflict?

SELECT ?subclass ?subclassLabel WHERE { VALUES ?armedConflict { wd:Q350604 } ?subclass wdt:P279 ?armedConflict . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") }

Can you list all the subclasses of armed conflict in Wikidata?

Show me the different kinds of armed conflicts, such as war, battle, and siege.

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q350604> ) } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } }


Question: Total normalized citations per author per year for researchers employed by Maastricht University

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?year(SUM(?citationsPerAuthor) AS ?totalCitationsPerAuthor) ?authorLabel WHERE {
  {
    SELECT ?authorLabel ?year((COUNT(DISTINCT ?citation) / COUNT(DISTINCT ?auth)) AS ?citationsPerAuthor) WHERE {
      ?author wdt:P108 wd:Q1137652 .
      ?publication wdt:P50 ?author .
      ?citation wdt:P2860 ?publication .
      ?publication wdt:P577 ?pubDate .
      FILTER(isLiteral(?pubDate) && datatype(?pubDate) = xsd:dateTime)
      BIND(STR(YEAR(?pubDate)) AS ?year)
      ?author rdfs:label ?authorLabel .
      FILTER(LANG(?authorLabel) = "en")
      ?publication(wdt:P50 | wdt:P2093) ?auth .
    }
    GROUP BY ?author ?authorLabel ?year
  }
}
GROUP BY ?year ?authorLabel
ORDER BY ASC(?year)

For each year, what is the sum of average citations per co-author across all publications by authors employed at Maastricht University?

Show the total normalized citation impact (sum of citations per co-author) for each Maastricht University researcher, grouped by publication year.

SELECT ?var1 ( SUM ( ?var2 ) AS ?var3 ) ?var4Label WHERE { { SELECT ?var4Label ?var5 ?var1 ( ( COUNT ( DISTINCT ?var6 )/COUNT ( DISTINCT ?var7 ) ) AS ?var2 ) WHERE { { ?var8 <http://www.wikidata.org/prop/direct/P108> <http://www.wikidata.org/entity/Q1137652> . } UNION { ?var8 <http://www.wikidata.org/prop/direct/P1416> [ <http://www.wikidata.org/prop/direct/P361> * <http://www.wikidata.org/entity/Q1137652> ] . } BIND ( STR ( YEAR ( ?var9 ) ) AS ?var1 ). ?var5 ( <http://www.wikidata.org/prop/direct/P50> | <http://www.wikidata.org/prop/direct/P2093> ) ?var7 . ?var5 <http://www.wikidata.org/prop/direct/P50> ?var8 . ?var6 <http://www.wikidata.org/prop/direct/P2860> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P577> ?var9 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . } GROUP BY ?var5 ?var4Label ?var1 } } GROUP BY ?var1 ?var4Label ORDER BY ASC( ?var1 )


Question: What are the most common properties used to link entities to Dublin, and how many times are they used?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?property wd:Q1761 .
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

Which relationships connect the most people or places to Dublin, and how frequent are they?

How many entities are connected to Dublin via each property, and which connections occur more than once?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1761> . 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: List countries with their ISO 3166-1 alpha-2 codes and English descriptions.

SELECT ?isoCode ?countryLabel ?countryDescription WHERE { ?country wdt:P297 ?isoCode . ?country rdfs:label ?countryLabel . ?country schema:description ?countryDescription . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?countryDescription) = "en") } LIMIT 100

What are the English names and descriptions of countries along with their two-letter ISO country codes?

Show me up to 100 countries, their ISO country codes, and their English Wikipedia-style descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P297> ?var1 . } 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: Actors born in Kerala, India, with their date of birth and death

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 ?actor ?actorLabel ?familyNameLabel ?birthDate ?deathDate WHERE {
  ?actor wdt:P31 wd:Q5 .
  ?actor wdt:P19 wd:Q1186 .
  ?actor wdt:P106 wd:Q33999 .
  OPTIONAL {
    ?actor wdt:P734 ?familyName .
    ?familyName rdfs:label ?familyNameLabel .
    FILTER ( LANG( ?familyNameLabel ) = "en" )
  }
  OPTIONAL {
    ?actor wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?actor wdt:P570 ?deathDate .
  }
  ?actor rdfs:label ?actorLabel .
  FILTER ( LANG( ?actorLabel ) = "en" )
}
ORDER BY ASC ( ?actorLabel )

Who are the actors born in Kerala, and when were they born or died?

List all actors from Kerala along with their birth dates and, if available, their death dates and family names.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5Label ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q1186> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P734> ?var2 . } 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". } } ORDER BY ASC( ?var1Label )


Question: What are the direct parent classes of subclasses of pathogen transmission?

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 ?child ?childLabel ?parent ?parentLabel WHERE {
  ?child wdt:P279 ?parent .
  ?parent wdt:P279 * wd:Q525512 .
  ?child rdfs:label ?childLabel .
  ?parent rdfs:label ?parentLabel .
  FILTER(LANG(?childLabel) = "en")
  FILTER(LANG(?parentLabel) = "en")
}

Which specific transmission methods are direct subclasses of broader pathogen transmission categories?

List all direct parent-child relationships among pathogen transmission types, showing both the specific method and its broader category.

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


Question: What properties are used to connect other entities to Andrea Vaturi, and how often?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) ?label WHERE {
  ?item ?property wd:Q2990883 .
  OPTIONAL {
    ?property wdt:P1478 ?propertyLabel .
    FILTER(LANG(?propertyLabel) = "en")
  }
  BIND(COALESCE(?propertyLabel , REPLACE(REPLACE(REPLACE(REPLACE(STR(?property) , "http://schema.org/" , "schema:") , "http://www.wikidata.org/prop/direct/" , "wdt:") , "http://www.wikidata.org/prop/statement/" , "ps:") , "http://www.wikidata.org/prop/qualifier/" , "pq:")) AS ?label)
}
GROUP BY ?property ?label
HAVING(?count > 1)
ORDER BY DESC(?count)

Which relationships link other people or pages to the Italian ice dancer Andrea Vaturi, and which ones appear more than once?

Show me the most common properties that relate other items to Andrea Vaturi, including Wikipedia links and ice dancing partnerships, with counts greater than one.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q2990883> . 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: What properties link other entities to Halyna Kukhar, and how often are they used?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?entity) AS ?count) WHERE {
  ?entity ?property wd:Q4249778 .
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

Which properties are used to connect other people or things to the figure skater Halyna Kukhar, and which ones appear more than once?

Show me the most common relationships that connect other entities to Halyna Kukhar, excluding those that appear only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q4249778> . 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: What are the titles of people who serve as heads of government?

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 ?label WHERE {
  ?headOfGovernment wdt:P31 wd:Q2285706 .
  ?headOfGovernment rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 100

Can you show me the English labels of all entities that are instances of head of government?

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


Question: What properties are used to link other entities to Barbara Fusar-Poli more than once, and how many times are they used?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) WHERE {
  ?item ?property wd:Q273375 .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
}
GROUP BY ?property
HAVING(?count > 1)
ORDER BY DESC(?count)

Which direct properties connect other items to Barbara Fusar-Poli with a frequency higher than one, sorted by popularity?

How many times has Barbara Fusar-Poli been linked via direct properties like "trained by" or "participant", and which ones are most common?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q273375> . 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: Most common properties linking Aleksandr Gorshkov to other entities in Wikidata.

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

What properties are used most often to connect Aleksandr Gorshkov to other items in Wikidata, and how many times are they used?

Show me the relationships that link Aleksandr Gorshkov to other entities, sorted by how frequently they appear, excluding those used only once.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1393578> . 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: What are all the boats and types of boats in Wikidata?

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 ?item ?itemLabel WHERE {
  ?item wdt:P31 ?class .
  ?class wdt:P279 * wd:Q35872 .
  ?item rdfs:label ?itemLabel .
}

List all entities that are instances of a boat or any subclass of a boat.

Show me all boats, including subclasses like lifeboats and tugs, with their labels.

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


Question: What are the names of myocardial infarction in English, German, French, and Italian, along with its diagram and Wikipedia link?

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { wd:Q12152 rdfs:label ?label . VALUES (?lang ?sort) { ("en" 1) ("de" 2) ("fr" 3) ("it" 4) } FILTER(LANG(?label) = ?lang) OPTIONAL { wd:Q12152 wdt:P18 ?image . } OPTIONAL { wd:Q12152 wdt:P625 ?coordinates . } ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q12152 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } ORDER BY ?sort

Show the multilingual labels for heart attack (myocardial infarction), its image, and the English Wikipedia page.

Can you list the translations of "myocardial infarction" in four languages, the corresponding medical diagram, and the English Wikipedia article?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q12152> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q12152> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q12152> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q12152> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: Eiffel Tower English label, image, coordinates, and English Wikipedia link

SELECT ?label ?image ?coord ?wikipedia WHERE { wd:Q243 rdfs:label ?label . FILTER (LANG(?label) = "en" || LANG(?label) = "de" || LANG(?label) = "fr" || LANG(?label) = "it") . OPTIONAL { wd:Q243 wdt:P18 ?image . } OPTIONAL { wd:Q243 wdt:P625 ?coord . } OPTIONAL { ?wikipedia schema:about wd:Q243 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ASC( IF(LANG(?label) = "en", 1, IF(LANG(?label) = "de", 2, IF(LANG(?label) = "fr", 3, IF(LANG(?label) = "it", 4, 5)))) )

What is the English label, image, geographic coordinates, and English Wikipedia article for the Eiffel Tower?

Please provide the Eiffel Tower’s label in English (preferred), German, French, or Italian, along with its image, coordinates, and link to its English Wikipedia page, prioritizing English.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <https://query.wikidata.org/bigdata/namespace/wdq/676757> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <https://query.wikidata.org/bigdata/namespace/wdq/676757> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <https://query.wikidata.org/bigdata/namespace/wdq/676757> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <https://query.wikidata.org/bigdata/namespace/wdq/676757> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What properties are used to link other entities to Anna Nagornyuk more than once, and what are their English labels?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(COUNT(?item) AS ?count) ?propertyLabel WHERE {
  ?item ?property wd:Q4767375 .
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyEntity)
  ?propertyEntity rdfs:label ?propertyLabel .
  FILTER(LANG(?propertyLabel) = "en")
}
GROUP BY ?property ?propertyLabel
HAVING(?count > 1)
ORDER BY DESC(?count)

Which relationships connect Anna Nagornyuk to other items in Wikidata, and how many times does each occur? Show only those used more than once.

How many times is each property used to connect entities to the figure skater Anna Nagornyuk, and which of them are used more than once?

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q4767375> . 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: What is the Czech name for the village Ostrolovský Újezd?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label WHERE {
  wd:Q1935426 rdfs:label ?label .
  FILTER(LANGMATCHES(LANG(?label) , "cs"))
}

Show me how Ostrolovský Újezd is called in Czech

SELECT ?var1Label WHERE { <http://www.wikidata.org/entity/Q1935426> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( LANGMATCHES ( LANG ( ?var2 ) , "cs" ) ) ) . }


Question: What are the types of zoos, such as petting zoos or marine mammal parks?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item(SAMPLE(?qualifier) AS ?qualifierProperty) WHERE {
  ?item p:P279 ?statement .
  ?statement ps:P279 wd:Q43501 .
  OPTIONAL {
    ?statement wikibase:qualifier ?qualifier .
  }
}
GROUP BY ?item
LIMIT 101

Which entities are classified as subclasses of a zoo in Wikidata?

List all known types of zoos (like safari parks or herpetariums) and indicate if any qualifiers are used on their subclass-of statements.

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


Question: Which arrondissement in France contains the commune of Hem?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?arrondissement WHERE {
  wd:Q1047719 wdt:P131 ?arrondissement .
  ?arrondissement wdt:P31 wd:Q194203 .
}

In which arrondissement is the French commune of Hem located?

Tell me the arrondissement that Hem belongs to in France.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18524218> . ?var1 <http://www.wikidata.org/prop/P150> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P150> <http://www.wikidata.org/entity/Q1047719> . ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q194203> . ?var3 <http://www.wikidata.org/prop/P150> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/p150> ?var1 . }


Question: What country, administrative region, and continent is Oudhuijzerweg in?

SELECT DISTINCT ?administrativeEntity ?country ?continent ?administrativeEntityLabel ?countryLabel ?continentLabel WHERE { wd:Q19403216 wdt:P131 ?administrativeEntity ; wdt:P17 ?country . ?country wdt:P30 ?continent . ?administrativeEntity rdfs:label ?administrativeEntityLabel . ?country rdfs:label ?countryLabel . ?continent rdfs:label ?continentLabel . FILTER(LANG(?administrativeEntityLabel) = "en") FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?continentLabel) = "en")}

In which country and municipality is the street Oudhuijzerweg located, and on which continent is that country?

Please list the administrative division, country, and continent associated with the street Oudhuijzerweg in the Netherlands.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q19403216> 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 Wikidata item has the IMDb ID tt4461060?

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

Which movie is associated with the IMDb identifier tt4461060?

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

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


Question: What continent is Cameroon located in, and what are its administrative subdivisions and countries that include it?

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 DISTINCT ?item ?itemLabel WHERE {
  {
    wd:Q1009 wdt:P30 ?item .
  } UNION {
    ?item wdt:P131 wd:Q1009 .
  } UNION {
    ?item wdt:P17 wd:Q1009 .
  }
  ?item rdfs:label ?itemLabel .
}

List all places and regions that are part of or located in Cameroon, along with its continent.

Show me the continent, administrative regions, and countries associated with Cameroon.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q1009> 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: Humans born after 1900 with their gender, country of citizenship, birth date, and death date.

SELECT ?human ?humanLabel ?genderLabel ?countryLabel ?birthDate ?deathDate WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P21 ?gender . ?human wdt:P27 ?country . ?human wdt:P569 ?birthDate . OPTIONAL { ?human wdt:P570 ?deathDate . } ?human rdfs:label ?humanLabel . ?gender rdfs:label ?genderLabel . ?country rdfs:label ?countryLabel . FILTER (lang(?humanLabel) = "en") FILTER (lang(?genderLabel) = "en") FILTER (lang(?countryLabel) = "en") FILTER (?birthDate > "1900-01-01T00:00:00Z"^^xsd:dateTime) } LIMIT 20000

Who are the humans born after January 1, 1900, and what are their gender, country, birth date, and death date?

List up to 20,000 humans born after 1900, including their names, gender, country of citizenship, birth date, and death date, all in English.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . FILTER ( ( ( ?var4 > "1900-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> "en". } } LIMIT 20000


Question: English label, image, and Wikipedia article for Adam Kraft, a German architect

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { wd:Q350212 rdfs:label ?label . FILTER (LANG(?label) IN ("en", "de", "fr", "it")) VALUES (?lang ?priority) { ("en" "1"^^xsd:integer) ("de" "2"^^xsd:integer) ("fr" "3"^^xsd:integer) ("it" "4"^^xsd:integer) } FILTER (?lang = LANG(?label)) OPTIONAL { wd:Q350212 wdt:P18 ?image . } OPTIONAL { wd:Q350212 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle schema:about wd:Q350212 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ASC(?priority) LIMIT 1

What is the English name, image, and English Wikipedia page for the German architect Adam Kraft?

Please provide the English label, image, and English Wikipedia article for Adam Kraft, and if available, his geographic coordinates.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/statement/Q6875020-511b21f4-419c-f9d7-ede8-b6b5a47f2bd7> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/statement/Q6875020-511b21f4-419c-f9d7-ede8-b6b5a47f2bd7> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/statement/Q6875020-511b21f4-419c-f9d7-ede8-b6b5a47f2bd7> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/statement/Q6875020-511b21f4-419c-f9d7-ede8-b6b5a47f2bd7> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: What are the titles of scholarly articles authored by Eric Agol?

SELECT DISTINCT ?article ?label WHERE { ?article wdt:P31 wd:Q13442814 ; wdt:P50 wd:Q29345588 . OPTIONAL { ?article rdfs:label ?label . FILTER(LANG(?label) = "en") } } LIMIT 100

Can you list the English-language titles of academic papers written by Eric Agol?

Show me the names of research articles where Eric Agol is listed as an author.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . ?var1 <http://www.wikidata.org/prop/direct/P2093> ?var3 . FILTER ( ( CONTAINS ( ?var3 , "Eric Agol" ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } } LIMIT 100


Question: What is the English name, description, and image of Thekua?

SELECT ?label ?description ?image WHERE { OPTIONAL { wd:Q7780996 rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { wd:Q7780996 wdt:P18 ?image . } OPTIONAL { wd:Q7780996 schema:description ?description . FILTER (LANG(?description) = "en") } }

English label, description, and image of Thekua (Q7780996)

Show me the English name and description of Thekua, along with its image from Wikimedia Commons.

SELECT ?var1Label ?var2 ?var3 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q7780996> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { <http://www.wikidata.org/entity/Q7780996> <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { <http://www.wikidata.org/entity/Q7780996> <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } }


Question: Show the English (en-gb), German, French, and Italian labels for tiramisu, along with its image and Wikipedia link.

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { VALUES (?label ?sortOrder) { ("tiramisu (lang:en-gb)" 1) ("Tiramisu (lang:de)" 3) ("tiramisu (lang:fr)" 4) ("tiramisù (lang:it)" 5) } OPTIONAL { wd:Q131582 wdt:P18 ?image . } OPTIONAL { wd:Q131582 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q131582 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ?sortOrder

What are the labels for tiramisu in English, German, French, and Italian, and what is its image and Wikipedia page?

Please provide the labels for tiramisu in English (en-gb), German, French, and Italian, its image from Wikimedia Commons, and its English Wikipedia article, ordered by language as listed.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { OPTIONAL { <http://www.wikidata.org/entity/Q131582> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = ?var5 ) ) ) . VALUES ( ?var5 ?var6 ) { ( "en""1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "en""2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "de""3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "fr""4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ( "it""5"^^<http://www.w3.org/2001/XMLSchema#integer> ) } } OPTIONAL { <http://www.wikidata.org/entity/Q131582> <http://www.wikidata.org/prop/direct/P18> ?var2 . } OPTIONAL { <http://www.wikidata.org/entity/Q131582> <http://www.wikidata.org/prop/direct/P625> ?var3 . } OPTIONAL { ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q131582> ; <http://schema.org/inLanguage> "en"; <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } } ORDER BY ASC( ?var6 )


Question: Danish people with photos in Wikidata

SELECT ?human ?humanLabel ?image WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P27 wd:Q756617 . ?human wdt:P18 ?image . OPTIONAL { ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en") } } LIMIT 10

Who are some humans from Denmark that have images associated with them in Wikidata?

Show me images and names of Danish citizens from Wikidata.

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


Question: Which women named Alice are married to men named Robert, Bob, or Rob?

SELECT DISTINCT ?alicePerson ?robertVariantPerson ?aliceLabel ?robertLabel WHERE {  VALUES ?aliceName { wd:Q650689 }  VALUES ?robertVariantName { wd:Q18105736 wd:Q4927937 wd:Q1795088 }  ?alicePerson wdt:P735 ?aliceName .  ?robertVariantPerson wdt:P735 ?robertVariantName .  ?alicePerson (wdt:P26|^wdt:P26) ?robertVariantPerson .  ?alicePerson rdfs:label ?aliceLabel .  ?robertVariantPerson rdfs:label ?robertLabel .  FILTER(LANG(?aliceLabel) = "en")  FILTER(LANG(?robertLabel) = "en")}

Who are the married couples where the wife has the given name Alice and the husband has a variant of the name Robert (such as Bob, Rob, or Robert)?

List all pairs of spouses where one is named Alice and the other is named Robert, Bob, or Rob.

SELECT DISTINCT ?var1 ?var2 ?var1Label ?var2Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q650689> ) } VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q18105736> ) ( <http://www.wikidata.org/entity/Q4927937> ) ( <http://www.wikidata.org/entity/Q1795088> ) } ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P735> ?var4 . ?var1 ( <http://www.wikidata.org/prop/direct/P26> |^ <http://www.wikidata.org/prop/direct/P26> ) ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Image of John Wynne with SNAC ARK ID w6cp723z

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

What is the image associated with the SNAC ARK ID w6cp723z?

Show me the Wikimedia Commons image for the person whose SNAC ARK ID is w6cp723z.

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


Question: Does Albert Einstein have recorded children, place of birth, and father in Wikidata?

SELECT (EXISTS { wd:Q937 p:P40 ?s1 } AS ?hasChildren) (EXISTS { wd:Q937 p:P19 ?s2 } AS ?hasPlaceOfBirth) (EXISTS { wd:Q937 p:P22 ?s3 } AS ?hasFather) WHERE {}

Does Wikidata contain information about Albert Einstein's children, birthplace, and father?

Show whether Albert Einstein has known children, a documented place of birth, and a recorded father in Wikidata.

SELECT * WHERE { BIND ( EXISTS { <http://www.wikidata.org/entityhttp://www.wikidata.org/entity/Q15712491> <http://www.wikidata.org/prop/directP40> ?var1 . } AS ?var2 ). BIND ( EXISTS { <http://www.wikidata.org/entityhttp://www.wikidata.org/entity/Q15712491> <http://www.wikidata.org/prop/directP19> ?var1 . } AS ?var3 ). BIND ( EXISTS { <http://www.wikidata.org/entityhttp://www.wikidata.org/entity/Q15712491> <http://www.wikidata.org/prop/directP22> ?var1 . } AS ?var4 ). }


Question: How many scholarly works citing the 2016 IUPHAR/BPS Guide to PHARMACOLOGY were published each year?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?year ( COUNT( DISTINCT ?citingWork ) AS ?count ) WHERE {
  BIND( wd:Q28603128 AS ?targetWork ) .
  ?citingWork wdt:P2860 ?targetWork .
  ?citingWork wdt:P577 ?pubDate .
  BIND( STR( YEAR( ?pubDate ) ) AS ?year )
}
GROUP BY ?year
ORDER BY DESC ( ?year )

Show the number of publications that reference the 2016 IUPHAR/BPS Guide to PHARMACOLOGY, grouped by year of publication.

Which years saw the most citations of the 2016 IUPHAR/BPS Guide to PHARMACOLOGY, and how many citations occurred in each year?

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q28603128> AS ?var5 ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var6 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: Cryovolcanoes without Arabic descriptions and their locations.

PREFIX schema: <http://schema.org/>
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 ?cryovolcano ?location WHERE {
  ?cryovolcano wdt:P31 wd:Q478788 .
  FILTER ( NOT EXISTS {
    ?cryovolcano schema:description ?desc .
    FILTER ( LANG( ?desc ) = "ar" )
  }
  ) .
  OPTIONAL {
    ?cryovolcano wdt:P376 ?location .
  }
  ?cryovolcano rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ASC ( ?label )

Which cryovolcanoes do not have an Arabic description, and on which celestial bodies are they located?

List the English-named cryovolcanoes that aren't described in Arabic, along with the astronomical bodies they are on.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q478788> . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "ar" ) ) ) . } ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var3 . } } ORDER BY ASC( ?var1Label )


Question: List 10 female humans with English labels.

SELECT ?humanLabel WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P21 wd:Q6581072 . ?human rdfs:label ?humanLabel . FILTER (langMatches(lang(?humanLabel), "en")) } LIMIT 10

Who are some notable female humans in Wikidata, listed with their English names?

Show me 10 examples of women from Wikidata, using their English labels.

SELECT ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/prop/direct/Q6581072> . } LIMIT 10


Question: What are the geographic features in Antarctica with a GNIS ID and latitude south of -52.9 degrees?

SELECT ?item ?lat WHERE { ?item wdt:P804 ?gnis . ?item p:P625 / psv:P625 ?coord . ?coord wikibase:geoLatitude ?lat . FILTER (?lat < -52.9) }

Show me Antarctic locations identified by the USGS GNIS system that are located farther south than -52.9° latitude.

List Antarctic geographic features that have a GNIS Antarctica ID and are located in the southern part of the continent (below -52.9° latitude).

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P804> [] . ?var1 ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var2 . ?var2 <http://wikiba.se/ontology#geoLatitude> ?var3 . FILTER ( ( ( ?var3 > "-52.9"^^<http://www.w3.org/2001/XMLSchema#decimal> ) ) ) . }


Question: What are some aspects or facets of cancer according to Wikidata?

SELECT ?item ?itemLabel WHERE { ?item p:P1269 ?statement . ?statement ps:P1269 wd:Q12078 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Can you list the topics that are considered facets of cancer?

Show me the items that describe different dimensions of cancer, such as systemic therapy or cancer dormancy.

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


Question: What is the English label and description of the V&A item with ID O121385?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?description WHERE {
  ?item wdt:P3929 "O121385" .
  OPTIONAL {
    ?item rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Can you tell me the name and description in English of the object in the Victoria and Albert Museum with ID O121385?

Show me the English name and description for the V&A Museum object identified by O121385.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3929> "O121519". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People with occupation politician

SELECT ?politician WHERE { ?politician wdt:P106 wd:Q82955 .}

Who are the politicians listed in Wikidata?

List all individuals whose profession is politician.

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


Question: What properties are used on the artillery game video game genre, and what are their values in English?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?property ( SAMPLE( ?propItemLabel ) AS ?propertyLabel ) ( COUNT( ?value ) AS ?valueCount ) ( GROUP_CONCAT( ?valueLabel ; SEPARATOR = ', ' ) AS ?valueLabels ) WHERE {
  wd:Q122207 ?property ?value .
  ?value rdfs:label ?valueLabel .
  FILTER ( LANG( ?valueLabel ) = 'en' ) .
  ?propItem wikibase:directClaim ?property .
  ?propItem rdfs:label ?propItemLabel .
  FILTER ( LANG( ?propItemLabel ) = 'en' ) .
}
GROUP BY ?property

For the video game genre "artillery game", list each property, its English label, how many values it has, and what those values are labeled as in English.

Can you show me a summary of the English-labeled properties and their values for the artillery game genre?

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q122207> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1


Question: Spanish municipalities that are capitals in Cebuano Wikipedia

SELECT ?municipality ?municipalityLabel ?page_title WHERE { ?municipality wdt:P31 wd:Q2074737 . ?article schema:about ?municipality ; schema:isPartOf <https://ceb.wikipedia.org/> ; schema:name ?page_title . FILTER (CONTAINS(?page_title, "kapital")) OPTIONAL { ?municipality rdfs:label ?municipalityLabel . FILTER(LANG(?municipalityLabel) = "en") } }

Which Spanish municipalities are referred to as "kapital" (capital) in Cebuano Wikipedia articles?

Show me the Cebuano Wikipedia page titles of Spanish municipalities that are capitals.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2074737> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://ceb.wikipedia.org/> ; <http://schema.org/name> ?var2 . FILTER ( ( CONTAINS ( ?var2 , "kapital" ) ) ) . } GROUP BY ?var1 ?var1Label ?var2


Question: What is the English label and description for the German occupation code 25244?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?occupation ?occupationLabel ?description WHERE {
  ?occupation wdt:P1021 "25244" .
  ?occupation rdfs:label ?occupationLabel
  FILTER ( LANG( ?occupationLabel ) = "en" ) .
  OPTIONAL {
    ?occupation schema:description ?description FILTER ( LANG( ?description ) = "en" )
  }
}

Which occupation in Germany is classified under code 25244, and what is its English description?

Show me the English name and description of the occupation with KldB-2010 code 25244.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1021> "25104". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List all computer scientists and their occupation statements on Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?person ?statement WHERE {
  ?person wdt:P106 / wdt:P279 * wd:Q82594 .
  ?person p:P106 ?statement .
}

Who are the people listed as computer scientists or related professions on Wikidata, and what are their occupation statements?

Show me every occupation claim made for individuals whose profession is a computer scientist or any subclass of computer science.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q82594> . ?var1 <http://www.wikidata.org/prop/P106> ?var2 . { SELECT DISTINCT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q82594> ; <http://www.wikidata.org/prop/P106> ?var2 . } GROUP BY ?var1 } }


Question: What are some examples of subclasses in Wikidata?

SELECT ?subclass ?superclass ?subclassLabel WHERE { ?subclass wdt:P279 ?superclass . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = 'en') . FILTER(STRSTARTS(STR(?subclass), "http://www.wikidata.org/entity/Q")) . FILTER(STRSTARTS(STR(?superclass), "http://www.wikidata.org/entity/Q")) } LIMIT 10

Which entities are subclasses of other entities in Wikidata?

Can you list some categories and their subcategories in Wikidata?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } LIMIT 10


Question: Films starring Czech actor Josef Polášek, ordered by release date, with English titles and Czech Wikipedia links.

PREFIX schema: <http://schema.org/>
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 ?film ?filmLabel ?csWikipediaUrl ?releaseDate WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P161 wd:Q12026516 .
  ?film wdt:P577 ?releaseDate .
  OPTIONAL {
    ?csWikipediaUrl schema:about ?film ; schema:inLanguage "cs" ; schema:isPartOf <https://cs.wikipedia.org/> .
  }
  ?film rdfs:label ?filmLabel .
  FILTER ( LANG( ?filmLabel ) = "en" )
}
ORDER BY ASC ( ?releaseDate )

Which films did Josef Polášek appear in, and what are their English titles, release dates, and Czech Wikipedia pages?

List all films featuring Josef Polášek, sorted by release date, showing their English titles and links to their Czech Wikipedia articles if available.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P161> <http://www.wikidata.org/entity/Q12026516> . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var3 . OPTIONAL { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "cs". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } } ORDER BY ASC( ?var3 )


Question: List of motherboard models in Wikidata

SELECT ?motherboard ?motherboardLabel WHERE { ?motherboard wdt:P31 wd:Q4321 . ?motherboard rdfs:label ?motherboardLabel . FILTER(LANG(?motherboardLabel) = "en") }

What are the specific models of motherboards documented in Wikidata?

Show me the English names of all known motherboard models that are instances of the motherboard class.

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


Question: Movie with IMDb ID tt0458320

SELECT ?movie WHERE { ?movie wdt:P345 "tt0458320" . }

Tell me the title of the film identified by tt0458320 on IMDb.

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


Question: What is the Wikidata item for the Freebase ID `/m/06mt91`?

SELECT ?item WHERE { ?item wdt:P646 "/m/06mt91" . }

Which entity on Wikidata has the Freebase identifier /m/06mt91?

Can you tell me who corresponds to the Freebase ID /m/06mt91 in Wikidata?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/06mt91". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Creators of artworks with English labels and descriptions.

SELECT ?creator ?label ?description WHERE { ?work wdt:P170 ?creator . ?creator rdfs:label ?label . ?creator schema:description ?description . FILTER(LANG(?label) = "en") . FILTER(LANG(?description) = "en") } LIMIT 100

Who are the creators of creative works that have both an English label and an English description on Wikidata?

List up to 100 creators of creative works along with their English labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P170> ?var1 . } 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: People with the given name George and their qualifier properties (e.g., series ordinal).

SELECT ?person ?statement (SAMPLE(?qualifierLabel) AS ?sampledQualifier) WHERE { { SELECT DISTINCT ?person ?statement WHERE { ?statement ps:P735 wd:Q15921732 . ?person p:P735 ?statement . } } OPTIONAL { ?statement ?qualifier ?qualifierValue . ?mainProperty wikibase:qualifier ?qualifier . ?mainProperty rdfs:label ?qualifierLabel . FILTER(LANG(?qualifierLabel) = "en") } } GROUP BY ?person ?statement

Which people have the given name "George", and what qualifiers are associated with their name claims?

Show me all individuals named George and the qualifiers used on their given name statements, such as series ordinal.

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


Question: Female Iranian people with known birth and death dates, in English.

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 ?person ?personLabel ?birthDate ?deathDate WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P27 wd:Q794 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P569 ?birthDate .
  ?person wdt:P570 ?deathDate .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ASC(?deathDate) ASC(?birthDate)

Who are the female Iranian humans with recorded birth and death dates, sorted by when they died?

List the names, birth dates, and death dates of all known female Iranian people, using English labels, ordered by death date.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q794> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?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> "fa,en". } } ORDER BY ASC( ?var5 )ASC( ?var4 )


Question: What is the English label and description of the MoMA work with ID 157408?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P2014 "157408" . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") . OPTIONAL { ?item schema:description ?description FILTER(LANG(?description) = "en") } }

Can you tell me the title and a brief description in English of the film held by the Museum of Modern Art under the ID 157408?

Show me the English name and description of the item in Wikidata that has the Museum of Modern Art work ID 157408.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2014> "15725". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: List places in Stockholm with coordinates between 17.5°E–18.5°E and 59.0°N–60.0°N, along with their images and Wikimedia Commons categories.

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory WHERE { ?item wdt:P625 ?coord . FILTER(geof:longitude(?coord) >= 17.5 && geof:longitude(?coord) <= 18.5) FILTER(geof:latitude(?coord) >= 59.0 && geof:latitude(?coord) <= 60.0) OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 3000

What are the English-named locations in the Stockholm area with geographic coordinates between 17.5 and 18.5 degrees east and 59.0 and 60.0 degrees north, and do they have associated images or Commons categories?

Show me all locations in Sweden near Stockholm (within 17.5–18.5°E and 59.0–60.0°N), including their names in English, photos from Wikimedia Commons, and the corresponding 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(14 68)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(14 68)"^^<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 IMDb ID tt3684500?

SELECT ?item ?label WHERE { ?item wdt:P345 "tt3684500" . ?item rdfs:label ?label . FILTER(LANG(?label) = "en") }

Which film is identified by the IMDb identifier tt3684500?

Can you tell me the English title of the movie with IMDb ID tt3684500?

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


Question: What are all the broader categories that mountain belongs to, including indirect parent classes?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?superclass WHERE {
  wd:Q8502 wdt:P279 * ?superclass .
}

Show me the full hierarchy of classes that mountain is a subclass of, up to the most general category.

What are the superclasses of mountain in the Wikidata taxonomy?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q30277524> AS ?var2 ). ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var1 . }


Question: What is the title and description of the MoMA artwork with ID 109519?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?description WHERE {
  ?item wdt:P2014 "109519" .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) OPTIONAL {
    ?item schema:description ?description .
    FILTER ( LANG( ?description ) = "en" )
  }
}

Can you tell me the English name and description of the artwork in the Museum of Modern Art that has the work ID 109519?

Please provide the English label and description for the MoMA artwork identified by the ID 109519.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2014> "87875". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the members of the National Assembly of Vietnam?

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 DISTINCT ?person ?personLabel WHERE {
  ?person wdt:P39 wd:Q10841192 .
  ?person rdfs:label ?personLabel
  FILTER(LANG(?personLabel) = 'en')
}

List all individuals who have held the position of member of the National Assembly of Vietnam, along with their names in English.

Can you provide the names of people who have served as members of Vietnam’s National Assembly?

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


Question: What are the occupations of Douglas Adams?

SELECT ?person ?personLabel ?occupationLabel WHERE { BIND( wd:Q42 AS ?person ) . ?person rdfs:label ?personLabel . ?person wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?occupationLabel) = "en") }

Can you list Douglas Adams and all the professions he is known for?

Who is Douglas Adams, and what types of writing or roles did he have?

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { BIND ( <http://www.wikidata.org/entity/Q42> AS ?var1 ). 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 . } }


Question: What are the birth and death dates of Henry Wylie Norman?

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

When was Henry Wylie Norman born and when did he die?

Can you tell me the full name, date of birth, and date of death of Sir Henry Wylie Norman, the British Field Marshal?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q466914> 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: Who were some people born in Middlesex, and what are their birth and death dates?

SELECT ?personLabel ?birthDate ?deathDate WHERE { ?person wdt:P19 wd:Q19186 ; wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

List the names, birth dates, and death dates of humans born in the historic county of Middlesex.

Can you show me the birth and death information for people from Middlesex?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q19186> 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 Martin Landau?

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 ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q294641 rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) .
  OPTIONAL {
    wd:Q294641 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q294641 wdt:P570 ?deathDate .
  }
}

When was Martin Landau born and when did he die?

Can you tell me Martin Landau’s date of birth and date of death?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q294641> 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: Who were the matrons, and what were their birth and death dates?

SELECT ?person ?personLabel ?birth ?death WHERE { ?person wdt:P106 wd:Q1396008 . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birth . } OPTIONAL { ?person wdt:P570 ?death . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10

Can you list humans who worked as matrons along with their dates of birth and death?

I want to know the birth and death dates of people who held the occupation of matron.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1396008> 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 types of ammunition cartridges and their direct parent categories?

SELECT ?var1 ?var1Label ?var3Label WHERE { ?var1 wdt:P279+ wd:Q37144 . ?var1 wdt:P279 ?var3 . ?var1 rdfs:label ?var1Label . ?var3 rdfs:label ?var3Label . FILTER(LANG(?var1Label) = "en") FILTER(LANG(?var3Label) = "en") }

What are the subclasses of cartridge in ammunition, and what is their immediate superclass?

List all ammunition cartridge types and their direct parent classes in the Wikidata knowledge graph.

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


Question: UK MPs in the 2017–19 Parliament with dual citizenship

SELECT ?person ?personLabel ( COUNT( DISTINCT ?country ) AS ?citizenshipCount ) ( GROUP_CONCAT( DISTINCT ?countryLabel ; SEPARATOR = ", " ) AS ?citizenships ) WHERE { ?person p:P39 [ ps:P39 wd:Q30524710 ] . ?person wdt:P27 ?country . ?person rdfs:label ?personLabel . ?country rdfs:label ?countryLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?countryLabel) = "en") } GROUP BY ?person ?personLabel HAVING ( COUNT( DISTINCT ?country ) > 1 )

Which members of the UK House of Commons during the 57th Parliament hold citizenship in more than one country?

List the names and countries of citizenship for UK MPs in the 57th Parliament who have more than one nationality.

SELECT ?var1 ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = ", " ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 ; <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q16707842> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q29974940> ] . 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 HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) )


Question: Historical and geological entities part of the Universe with their duration in years.

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 ?var1 ?var1Label ( ( YEAR( ?var2 ) - YEAR( ?var3 ) ) AS ?var4 ) WHERE {
  ?var1 wdt:P361 + wd:Q1 .
  ?var1 wdt:P580 ?var3 .
  ?var1 wdt:P582 ?var2 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" ) FILTER ( isLiteral( ?var3 ) && isLiteral( ?var2 ) )
}

Which entities that are part of the Universe have defined start and end times, and how long did they last in years?

List all entities that are part of the Universe, along with their English labels and the duration between their start and end times in years.

SELECT DISTINCT ?var1 ?var1Label ( ( ?var2 - ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> * <http://www.wikidata.org/entity/Q1> . ?var1 <http://www.wikidata.org/prop/direct/P580> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P582> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What Wikidata item is linked to the English Wikipedia page about milk?

PREFIX schema: <http://schema.org/>
SELECT ?item WHERE {
  <https://en.wikipedia.org/wiki/Milk> schema:about ?item .
}

Find the Wikidata entity for the article on milk on English Wikipedia.

Which item on Wikidata corresponds to the Wikipedia page "Milk"?

SELECT ?var1 WHERE { <https://nl.wikipedia.org/wiki/melk_(drank)> <http://schema.org/about> ?var1 . }


Question: What are the geographic coordinates of Mainz, and what are the coordinates of the administrative regions it belongs to?

SELECT ?mainzCoordinates ?administrativeEntityCoordinates WHERE { wd:Q1720 wdt:P625 ?mainzCoordinates . OPTIONAL { wd:Q1720 wdt:P131 ?administrativeEntity . ?administrativeEntity wdt:P625 ?administrativeEntityCoordinates . } }

Coordinates of Mainz and its administrative regions

Show me where Mainz is located and where its historical and current administrative regions are centered.

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


Question: Human settlements in Spain with native Basque name "Ezkirotz"

SELECT ?settlement ?settlementLabel WHERE { ?settlement wdt:P17 wd:Q29 . ?settlement wdt:P31 wd:Q486972 . ?settlement wdt:P1705 "Ezkirotz"@eu . }

What human settlement in Spain is called "Ezkirotz" in Basque?

Show me the Spanish settlement whose official Basque name is Ezkirotz.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q29> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P1705> "string1". }


Question: What is the English label and description of the entity with Art & Architecture Thesaurus ID 300107186?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P1014 "300107186" . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") }

Find the name and English description of the place identified by the AAT ID 300107186.

Which province in southern Thailand has the Getty AAT ID 300107186, and what is its official name?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1014> "300107186". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label and description of the entity with Art & Architecture Thesaurus ID 300310537?

SELECT ?item ?label ?description WHERE { ?item wdt:P1014 "300310537" . OPTIONAL { ?item rdfs:label ?label . FILTER (LANG(?label) = "en") } OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Show me the English name and definition of the term identified by AAT ID 300310537.

What is the English term and its description in Wikidata for the Getty AAT identifier 300310537?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1014> "300310537". OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People born in West Chester who are human.

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 ?personLabel WHERE {
  wd:Q310582 wdt:P19 ?birthplace .
  ?person wdt:P19 ?birthplace ; wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

Who else was born in the same place as Matisyahu?

List the names of all humans born in West Chester, Pennsylvania, the birthplace of Matisyahu.

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


Question: What countries have diplomatic relations with Turkey, and what properties are used to qualify those relations?

SELECT ?country (SAMPLE(?qualifier) AS ?qualifierProperty) WHERE { ?country p:P530 ?statement . ?statement ps:P530 wd:Q43 . OPTIONAL { ?statement ?qualifier ?value . } } GROUP BY ?country

Can you list the countries that maintain diplomatic relations with Turkey and show one example of a qualifier used on each relation?

Show me the countries that have diplomatic ties with Turkey, along with any additional metadata (like start date or source) attached to those diplomatic statements.

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


Question: Countries and their current heads of government, including the office held.

SELECT ?countryLabel ?officeLabel ?holderLabel WHERE { ?country wdt:P31 wd:Q6256 . OPTIONAL { ?country wdt:P1313 ?office . ?office rdfs:label ?officeLabel . FILTER(LANG(?officeLabel) = "en") OPTIONAL { ?office wdt:P1308 ?holder . ?holder rdfs:label ?holderLabel . FILTER(LANG(?holderLabel) = "en") } } ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } ORDER BY ASC(?countryLabel)

Which countries have a head of government, and who holds that position?

List all countries along with the title of their head of government and the name of the person currently holding that office.

SELECT( STRAFTER ( STR ( ?var1 ) , "string1" ) AS ?var2 ) ?var1Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1313> ?var3 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1308> ?var4 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Angela Merkel’s spouses and when they married her

SELECT DISTINCT ?spouse ?spouseLabel ?startDate WHERE { ?spouse p:P26 ?statement . ?statement ps:P26 wd:Q567 . ?statement pq:P580 ?startDate . ?spouse rdfs:label ?spouseLabel . FILTER(LANG(?spouseLabel) = "en") } ORDER BY ?startDate LIMIT 10

Who are Angela Merkel’s spouses and when did each marriage begin?

List Angela Merkel’s spouses in order of marriage start date, along with the start dates.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var1 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } ?var2 <http://www.wikidata.org/prop/P26> ?var1 . ?var1 <http://www.wikidata.org/prop/statement/P26> <http://www.wikidata.org/entity/Q567> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: Watercourses in the Czech Republic with Czech Wikipedia names and coordinates.

SELECT ?watercourse ?name ?coordinate WHERE { ?watercourse wdt:P17 wd:Q213 ; (wdt:P31/wdt:P279*) wd:Q355304 ; wdt:P625 ?coordinate . ?page schema:about ?watercourse ; schema:name ?name ; schema:isPartOf <https://cs.wikipedia.org/> . }

What are the names and geographic coordinates of watercourses in the Czech Republic as listed on the Czech Wikipedia?

List all watercourses in the Czech Republic along with their Czech Wikipedia titles and GPS coordinates.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q355304> . OPTIONAL { BIND ( IF ( CONTAINS ( STR ( ?var2 ) , " (" ) , STRBEFORE ( STR ( ?var2 ) , " (" ) , STR ( ?var2 ) ) AS ?var3 ). ?var1 ^ <http://schema.org/about> [ <http://schema.org/name> ?var2 ; <http://schema.org/isPartOf> <https://cs.wikipedia.org/> ] ; <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { BIND ( REPLACE ( STRAFTER ( STRBEFORE ( STR ( ?var5 ) , ", long " ) , ", lat " ) , ",", "." ) AS ?var6 ). BIND ( REPLACE ( STRAFTER ( STRBEFORE ( STR ( ?var5 ) , ")" ) , ", long " ) , ",", "." ) AS ?var7 ). BIND ( STRDT ( CONCAT ( "Point(", ?var7 , " ", ?var6 , ")" ) , <http://www.opengis.net/ont/geosparql#wktLiteral> ) AS ?var4 ). BIND ( STRBEFORE ( STR ( ?var5 ) , " (" ) AS ?var3 ). FILTER ( ( !( BOUND ( ?var3 ) ) ) ) . ?var1 ^ <http://schema.org/about> [ <http://schema.org/name> ?var5 ; <http://schema.org/isPartOf> <https://ceb.wikipedia.org/> ] . FILTER ( ( REGEX ( ?var5 , "string1" ) ) ) . } FILTER ( ( BOUND ( ?var3 ) && BOUND ( ?var4 ) ) ) . }