Question: How many works cite Ian M. Carr’s publications each year, and how many are self-citations?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?year ( COUNT( DISTINCT ?citing ) AS ?count ) ?isSelfCitation WHERE {
  ?ianWork wdt:P50 wd:Q43472673 .
  ?citing wdt:P2860 ?ianWork .
  ?citing wdt:P577 ?date .
  BIND( STR( YEAR( ?date ) ) AS ?year ) BIND( IF( EXISTS {
    ?citing wdt:P50 wd:Q43472673
  }
  , "self-citation" , "external-citation" ) AS ?isSelfCitation )
}
GROUP BY ?year ?isSelfCitation
ORDER BY DESC ( ?year )

For each year, how many works that cite Ian M. Carr’s research are authored by him versus other researchers?

Show me the annual count of works citing Ian M. Carr’s publications, distinguishing between self-citations and external citations.

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


Question: Which Wikidata entities have the Twitter usernames antagomir, MMMarksman, OKFFI, RIOJournal, or yrochat?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "antagomir" "MMMarksman" "OKFFI" "RIOJournal" "yrochat"
  }
}

Who are the people or organizations on Wikidata associated with the Twitter accounts @antagomir, @MMMarksman, @OKFFI, @RIOJournal, and @yrochat?

List the Wikidata items and their corresponding Twitter usernames for antagomir, MMMarksman, OKFFI, RIOJournal, and yrochat.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "jlehtoma" ) ( "string1" ) ( "string2" ) ( "sckottie" ) ( "RIOJournal" ) ( "string3" ) ( "string4" ) ( "praymurray" ) ( "string5" ) ( "string6" ) ( "OKFFI" ) ( "string7" ) ( "MMMarksman" ) ( "string8" ) ( "string9" ) ( "antagomir" ) ( "heluc" ) ( "yrochat" ) ( "AvoinTiede" ) ( "rOpenSci" ) ( "PHOS2016" ) ( "string10" ) } }


Question: Most recent portrait paintings with images and creation dates.

SELECT ?image ?inceptionDate WHERE { ?portrait wdt:P136 wd:Q1400853 ; wdt:P571 ?inceptionDate ; wdt:P18 ?image . } ORDER BY DESC(?inceptionDate) LIMIT 3

What are the three most recent portrait paintings that have both an image and a known creation date?

Show me the images and creation years of the three latest portrait paintings in Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q1400853> ; <http://www.wikidata.org/prop/direct/P571> ?var2 ; <http://www.wikidata.org/prop/direct/P18> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "AUTO_LANGUAGE,en". } } ORDER BY ASC( ?var2 ) LIMIT 500 OFFSET 497


Question: How many playoff events are associated with tennis, and can you give one example?

SELECT
  (SAMPLE(?playoffEvent) AS ?examplePlayoff)
  (COUNT(DISTINCT ?playoffEvent) AS ?count)
WHERE {
  ?playoffEvent wdt:P31 wd:Q868291 ; wdt:P641 wd:Q847 .
}

Show me an example of a tennis playoff event and how many such events exist in total.

What is the total number of playoff tournaments for tennis, and what is one of them?

SELECT( <http://www.wikidata.org/entity/Q847> AS ?var1 )( SAMPLE ( ?var2 ) AS ?var3 )( COUNT ( DISTINCT ?var2 ) AS ?var4 )( <http://www.wikidata.org/entity/Q868291> AS ?var5 )( "string1" AS ?var6 )( "string2" AS ?var7 ) WHERE { { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q868291> ; <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> . } }


Question: Living rowing athletes and their ages

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?age WHERE {
  ?person ( wdt:P106 / wdt:P279 * ) wd:Q26270618 ; wdt:P569 ?birthDate . MINUS {
    ?person wdt:P570 [] .
  } MINUS {
    ?person wdt:P20 [] .
  }
  BIND( year( NOW () ) - year( ?birthDate ) AS ?age )
}

How old are living people who are involved in rowing as an occupation?

List the names and current ages of all living individuals whose occupation is rowing or a subclass of rowing.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q26270618> ; <http://www.wikidata.org/prop/direct/P569> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P570> [] . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P20> [] . } BIND ( ( ( NOW ( ) - ?var3 ) /"365"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var2 ). }


Question: What landmarks in Nuenen are depicted in artworks, and do they have images?

SELECT ?item ?itemLabel ?image WHERE { ?item wdt:P180 wd:Q153516 . OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Show me the English names of things shown in depictions of Nuenen, along with any available images of them.

Which buildings or structures in Nuenen appear in visual artworks, and where can I see pictures of them?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P180> <http://www.wikidata.org/entity/Q153516> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 333


Question: Airports in Italy with ICAO code LIBD

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 ?airport ?airportLabel ?icaoCode ?iataCode ?image WHERE {
  ?airport wdt:P31 wd:Q1248784 ; wdt:P17 wd:Q38 ; wdt:P239 ?icaoCode ; wdt:P238 ?iataCode ; rdfs:label ?airportLabel .
  FILTER(LANG(?airportLabel) = "en")
  OPTIONAL {
    ?airport wdt:P18 ?image .
  }
  FILTER(REGEX(?icaoCode , "LIBD" , "i"))
}

What is the name, IATA code, and image of the airport in Italy with ICAO code LIBD?

Show me the details of the Italian airport whose ICAO code is LIBD, including its IATA code and an image.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1248784> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . ?var1 <http://www.wikidata.org/prop/direct/P239> ?var3 ; <http://www.wikidata.org/prop/direct/P238> ?var4 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } FILTER ( ( REGEX ( ?var3 , "LIBD", "i" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P239> ?var3 . } }


Question: What is the Wikidata item for the person named Lê Long Tích?

SELECT DISTINCT ?item WHERE { ?item rdfs:label "Lê Long Tích"@en }

Find the entity in Wikidata with the label "Lê Long Tích".

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> "Tich Le"@fr . }


Question: People with an ethnic group who are not African American, German, Jewish, Sorb, Banat Swabian, or Warmian.

SELECT ?person WHERE { ?person wdt:P172 ?ethnicGroup . FILTER NOT EXISTS { ?person wdt:P172 ?excludedGroup . VALUES ?excludedGroup { wd:Q49085 wd:Q146521 wd:Q42884 wd:Q7325 wd:Q445618 wd:Q29705197 } } }

Which individuals are associated with an ethnic group but are not members of the African American, German, Jewish, Sorb, Banat Swabian, or Warmian ethnic groups?

List all people who have an ethnic group assigned in Wikidata, excluding those belonging to African Americans, Germans, Jewish people, Sorbs, Banat Swabians, or Warmian people.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P172> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q49085> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q146521> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q42884> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q7325> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q445618> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q29705197> . } ) ) . }


Question: Who are the Chilean people with Spanish-language names in Wikidata?

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

List the Spanish labels of individuals who were born in Chile.

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/p17> <http://www.wikidata.org/entity/Q298> . FILTER ( ( ( LANG ( ?var1 ) = "es" ) ) ) . }


Question: How many classes have "main subject" as a typical property?

SELECT (COUNT(?class) AS ?count) WHERE { ?class wdt:P1963 wd:P921 . }

For how many types of items is the property "main subject" commonly used?

List the number of Wikidata classes for which the main subject property is typically applied.

SELECT( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1963> <http://www.wikidata.org/entity/P921> . }


Question: What are the ISO codes, coordinates, and description of the Flemish Region in Belgium?

PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?region ?countryCode ?label ?latitude ?longitude ?description ?isoCode WHERE {
  ?region wdt:P31 wd:Q83057 .
  ?region rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) ?region wdt:P17 ?country .
  ?country wdt:P297 ?countryCode .
  ?region ( wdt:P31 / wdt:P279 * ) ?subclass .
  ?subclass wdt:P2452 "A.ADM1" .
  ?region wdt:P300 ?isoCode .
  OPTIONAL {
    ?region wdt:P1448 ?officialName .
  }
  OPTIONAL {
    ?region schema:description ?description .
    FILTER ( LANG( ?description ) = "en" ) ?region p:P625 ?coordinateStatement .
    ?coordinateStatement psv:P625 ?coordinateValue .
    ?coordinateValue wikibase:geoLatitude ?latitude .
    ?coordinateValue wikibase:geoLongitude ?longitude .
  }
  FILTER ( STR( ?label ) = "Flemish Region" )
}

Can you provide the latitude, longitude, country code, and ISO 3166-2 subdivision code for the Flemish Region, along with its English description?

Show me the geographic and administrative details of the Flemish Region, including its coordinates, country (Belgium), and official subdivision code.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q83057> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var9Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var10 . ?var10 <http://www.wikidata.org/prop/direct/P297> ?var3 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var11 . ?var11 <http://www.wikidata.org/prop/direct/P2452> "A.ADM1". ?var1 <http://www.wikidata.org/prop/direct/P300> ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var12 . } OPTIONAL { ?var1 <http://schema.org/description> ?var7 . FILTER ( ( ( LANG ( ?var7 ) = "en" ) ) ) . ?var1 <http://www.wikidata.org/prop/P625> ?var13 . ?var13 <http://www.wikidata.org/prop/statement/value/P625> ?var14 . ?var14 <http://wikiba.se/ontology#geoLatitude> ?var5 . ?var14 <http://wikiba.se/ontology#geoLongitude> ?var6 . } FILTER ( ( ( STR ( ?var9Label ) = "Flanders" ) || ( STR ( ?var9Label ) = "Flanders" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P300> ?var8 . } }


Question: Places with ethnic groups that are not humans or fictional characters

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?place WHERE {
  ?place wdt:P172 ?ethnicGroup .
  ?place wdt:P31 / wdt:P279 * wd:Q486972 .
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q5
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q20643955
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q15632617
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q22988604
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q203904
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q16334295
  })
  FILTER(NOT EXISTS {
    ?place wdt:P31 wd:Q21070568
  })
}

Which settlements are associated with an ethnic group but are not classified as humans, biblical figures, or fictional beings?

List all places like towns and villages that have an ethnic group assigned, excluding any entities that are human or human-like (e.g., fictional characters or mythological figures).

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P172> ?var2 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q20643955> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15632617> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22988604> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q203904> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16334295> . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21070568> . } ) ) . }


Question: Events that took place in Cologne with known dates

SELECT ?item ?itemLabel WHERE { ?item (wdt:P276|wdt:P131) wd:Q365 ; wdt:P585 ?time . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What events occurred in Cologne and when did they happen?

List the names of events held in Cologne along with their dates.

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


Question: English label, description, and image of Calpastatin

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

What is the English label and description of Calpastatin, and does it have an associated image?

Show me the English name and biological description of the protein Calpastatin, along with any image available on Wikimedia Commons.

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


Question: List cities with over a million people and their administrative divisions and countries.

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 ?city ?cityLabel ?administrative_entity ?administrative_entityLabel ?country ?countryLabel WHERE {
  ?city wdt:P31 wd:Q1637706 .
  OPTIONAL {
    ?city wdt:P131 ?administrative_entity .
    ?administrative_entity rdfs:label ?administrative_entityLabel .
    FILTER ( LANG( ?administrative_entityLabel ) = "en" )
  }
  OPTIONAL {
    ?city wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "en" )
  }
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG( ?cityLabel ) = "en" )
}

What are the cities with a population over one million, and in which administrative regions and countries are they located?

Show me the names of large cities (over 1 million residents), the districts or regions they belong to, and their countries, all in English.

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


Question: What are the Spanish labels of properties associated with Juan de Barroeta, how many objects does each have, and what are those objects called in Spanish?

SELECT ?property (SAMPLE(?propLabel) AS ?propertyLabel) (COUNT(?object) AS ?count) (GROUP_CONCAT(?objLabel; SEPARATOR=", ") AS ?objectLabels) WHERE { wd:Q3755493 ?property ?object . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "es") . ?object rdfs:label ?objLabel . FILTER(LANG(?objLabel) = "es") } GROUP BY ?property

Show me all the ways Juan de Barroeta is connected to other entities in Spanish, including the property names, how many connections per property, and the names of those entities.

For the Spanish painter Juan de Barroeta, list each property linking him to other items, its Spanish name, the number of associated items, and their Spanish labels.

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


Question: Is Phusion Passenger classified as software?

ASK WHERE { wd:Q334824 wdt:P31 ?type . ?type wdt:P279* wd:Q7397 }

Does Phusion Passenger belong to the category of software through its type hierarchy?

Is Phusion Passenger an instance of something that is a subclass of software?

ASK WHERE { <http://www.wikidata.org/entity/Q334824> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: How many items in Wikidata are located in Germany or its administrative subdivisions?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( DISTINCT ?item ) AS ?count ) WHERE {
  {
    ?item wdt:P17 wd:Q183 .
  } UNION {
    ?item wdt:P131 wd:Q183 .
  }
}

What is the total number of entities in Wikidata that have Germany as their country or are situated within Germany’s administrative regions?

Count all items in Wikidata that are either directly in Germany or located within any of its administrative territories.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { { { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q183> . } } }


Question: What materials is the painting "The Triumph of Death" made of?

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 ?material ?materialLabel WHERE {
  wd:Q644856 wdt:P186 ?material .
  ?material rdfs:label ?materialLabel .
  FILTER(LANG(?materialLabel) = "en")
}
LIMIT 50

In what materials was Pieter Bruegel the Elder's painting "The Triumph of Death" created?

List the English labels of the materials used in the painting "The Triumph of Death".

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q644856> <http://www.wikidata.org/prop/direct/P186> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } LIMIT 50


Question: What are some venues with English labels?

SELECT DISTINCT ?venue ?venueLabel WHERE { ?venue wdt:P31 wd:Q17350442 ; rdfs:label ?venueLabel . FILTER(LANG(?venueLabel) = "en") } LIMIT 20

Can you list venues that have English-language names?

Show me entities classified as venues with their English names.

SELECT DISTINCT ?var1 ?var1Label WHERE { VALUES ( ?var2 ) { ( "N01009" ) ( "N01020" ) } ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q17350442> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Subclasses and superclasses of question answering up to two levels deep

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?entity ?entityLabel ?superclass WHERE {
  {
    wd:Q1074173 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?superclass
    }
  } UNION {
    wd:Q1074173 wdt:P279 ?intermediate .
    ?intermediate wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?superclass
    }
  } UNION {
    ?entity wdt:P279 wd:Q1074173 .
    OPTIONAL {
      ?entity wdt:P279 ?superclass
    }
  } UNION {
    ?entity wdt:P279 ?intermediate .
    ?intermediate wdt:P279 wd:Q1074173 .
    OPTIONAL {
      ?entity wdt:P279 ?superclass
    }
  }
  ?entity rdfs:label ?entityLabel .
  FILTER ( LANG( ?entityLabel ) = "en" )
}

What are the direct subclasses and superclasses of question answering, and what are their own superclasses, within two levels of hierarchy?

List all entities that are up to two steps away from question answering via subclass relationships, along with their English labels and direct superclasses.

SELECT ?var1 ?var1Label ?var2 WHERE { { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1074173> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } UNION { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q1074173> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } 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: What is the English name of the language with the IETF code fr-150?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?language ?languageLabel WHERE {
  ?language wdt:P305 "fr-150" .
  ?language rdfs:label ?languageLabel .
  FILTER(LANG(?languageLabel) = "en")
}
LIMIT 1000

Which language is identified by the code fr-150 in Wikidata?

What does the language code fr-150 refer to in English?

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P305> "fr-150". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 1000


Question: What countries, regions, and continents is náměstí Budovatelů located in?

SELECT DISTINCT ?var1 WHERE { wd:Q45106806 (wdt:P30|wdt:P17|wdt:P131)+ ?var1 . }

Can you list all administrative and geographic entities that náměstí Budovatelů belongs to, from local to global?

Starting from the square náměstí Budovatelů in Karviná, what larger geographic areas does it belong to, including country and continent?

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


Question: What are the recurring time expressions defined in Wikidata?

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

List all instances of recurring dates or time periods like "first weekend of the month".

Which time expressions in Wikidata represent recurrent events such as "last week of August" or "25 Azar"?

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q14795564> . }


Question: What are the English labels of entities connected to the Empire State Building?

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

Which entities are linked to the Empire State Building, and what are their English names?

Show me all the direct relationships from the Empire State Building to other entities, along with the English labels of those entities.

SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { <http://www.wikidata.org/entity/Q9188> ?var1 ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . }


Question: What are the occupations of Willy Alberti?

SELECT ?occupation WHERE { wd:Q321160 wdt:P106 ?occupation }

Can you list all the jobs Willy Alberti had during his career?

What professions is Willy Alberti known for according to Wikidata?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q321160> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What are the occupations of Willem Bilderdijk?

SELECT ?occupation WHERE { wd:Q1375186 wdt:P106 ?occupation }

List the professions that Willem Bilderdijk had.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1375186> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What is the occupation of Frederik Willem Conrad?

SELECT ?occupation WHERE { wd:Q2794775 wdt:P106 ?occupation .}

What job did Frederik Willem Conrad have?

Can you tell me the occupation associated with the person Frederik Willem Conrad in Wikidata?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2794775> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What is the occupation of Lieve Geelvinck?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?occupation WHERE {
  wd:Q1824411 wdt:P106 ?occupation
}

What job did the Dutch politician Lieve Geelvinck have?

Can you tell me the profession of Lieve Geelvinck?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1824411> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What is the occupation of J.P. Kloos?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?occupation WHERE {
  wd:Q1921195 wdt:P106 ?occupation .
}

What job did the Dutch architect J.P. Kloos have?

Tell me the profession of J.P. Kloos, the Dutch architect born in 1905.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1921195> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What are the occupations of Pieter Louwerse?

SELECT ?occupation WHERE { wd:Q2611511 wdt:P106 ?occupation . }

List all the occupations associated with the Dutch writer and poet Pieter Louwerse.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2611511> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What are the occupations of Robert Wilson?

SELECT ?occupation WHERE { wd:Q171034 wdt:P106 ?occupation .}

List the professions Robert Wilson has held.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q171034> <https://www.wikidata.org/wiki/Property:P106> ?var1 . }


Question: What are all the version numbers of LibreOffice and their corresponding release dates?

SELECT DISTINCT ?version ?releaseDate WHERE { wd:Q10135 p:P348 ?statement . ?statement ps:P348 ?version . ?statement pq:P577 ?releaseDate .}

LibreOffice versions and when they were released

Show me the release history of LibreOffice, including version numbers and dates.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q10135> <http://www.wikidata.org/prop/P348> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P348> ?var1 . ?var3 <http://www.wikidata.org/prop/qualifier/P577> ?var2 . }


Question: Current members of the Western Australian Legislative Assembly and their Twitter handles and electoral districts.

SELECT ?member ?memberLabel ?districtLabel ?twitter WHERE { ?member p:P39 ?statement . ?statement ps:P39 wd:Q20165902 . ?statement pq:P768 ?district . ?member wdt:P2002 ?twitter . FILTER (NOT EXISTS { ?statement pq:P582 ?end . }) ?member rdfs:label ?memberLabel . ?district rdfs:label ?districtLabel . FILTER(LANG(?memberLabel) = "en") FILTER(LANG(?districtLabel) = "en") } ORDER BY ASC(?districtLabel)

Who are the current members of the Western Australian Legislative Assembly, what electoral districts do they represent, and what are their Twitter usernames?

List the names, electoral districts, and Twitter usernames of all currently serving members of the Western Australian Legislative Assembly, sorted by district name.

SELECT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q20165902> . ?var4 <http://www.wikidata.org/prop/qualifier/P768> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var3 . FILTER ( ( NOT EXISTS { ?var4 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var2Label )


Question: Economists born in Trier

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P106 wd:Q188094 ; wdt:P19 wd:Q3138 .
}

Who are the economists that were born in Trier?

List all people who are economists and were born in Trier.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1985433> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1028181> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: Actors born in Germany

SELECT ?person WHERE { ?person wdt:P106 wd:Q33999 ; wdt:P19 wd:Q183 . } LIMIT 10

Who are some actors that were born in Germany?

List people whose occupation is actor and place of birth is Germany.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2278134> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1028181> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: What are the occupations and place of birth of Jan Roelf Mensinga?

SELECT ?occupation ?occupationLabel ?placeOfBirth ?placeOfBirthLabel WHERE { wd:Q41327220 wdt:P106 ?occupation . wd:Q41327220 wdt:P19 ?placeOfBirth . ?occupation rdfs:label ?occupationLabel . ?placeOfBirth rdfs:label ?placeOfBirthLabel . FILTER(LANG(?occupationLabel) = "en") FILTER(LANG(?placeOfBirthLabel) = "en") }

Tell me about Jan Roelf Mensinga’s profession and where he was born.

Is Jan Roelf Mensinga a cartographer born in Amsterdam?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q41327220> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1734662> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: Who are the actors born in Berlin?

SELECT ?person WHERE { ?person wdt:P106 wd:Q33999 ; wdt:P19 wd:Q64 . }

List all people who are actors and were born in Berlin.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q18603316> <https://www.wikidata.org/wiki/Property:P106> <https://www.wikidata.org/wiki/Q1734662> ; <https://www.wikidata.org/wiki/Property:P19> <https://www.wikidata.org/wiki/Q727> . }


Question: List of recurring tournaments with their names

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?tournament ?tournamentName WHERE {
  ?tournament wdt:P31 wd:Q15259995 .
  ?tournament schema:name ?tournamentName .
}
LIMIT 100

What are the names of all recurring tournaments in Wikidata?

Show me the names of all events that are instances of recurring tournaments, including their labels in all languages.

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


Question: Tennis qualification events with labels containing "qualif" and their languages and years.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label ?lang ?altName ?year ?altYear(?label != ?altName AS ?hasAltName)(STRAFTER(STR(?item) , "y/") AS ?itemId) WHERE {
  ?item wdt:P641 wd:Q847 ; rdfs:label ?label .
  FILTER(CONTAINS(LCASE(STR(?label)) , "qualif"))
  BIND(LANG(?label) AS ?lang)
  OPTIONAL {
    ?item schema:name ?altName ; schema:inLanguage ?lang .
  }
  BIND(xsd:integer(REPLACE(STR(?label) , "^(\\d{4}).*" , "$1")) AS ?year)
  BIND(xsd:integer(REPLACE(STR(?altName) , "^(\\d{4}).*" , "$1")) AS ?altYear)
}
ORDER BY ?lang ?year ?label

What are the tennis qualification events that include "qualif" in their name, and in which languages and years are they held?

List all tennis qualification events that have "qualif" in their label, along with their language, optional alternative names, and the year extracted from the label.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ( ( ?var5 != ?var6 ) AS ?var7 )( STRAFTER ( STR ( ?var5 ) , " " ) AS ?var8 )( STRAFTER ( STR ( ?var1 ) , "y/" ) AS ?var9 )( "P31" AS ?var10 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q46190676> ) , "y/" ) AS ?var11 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q47345468> ) , "y/" ) AS ?var12 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q47443726> ) , "y/" ) AS ?var13 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q21170330> ) , "y/" ) AS ?var14 )( STRAFTER ( STR ( <http://www.wikidata.org/entity/Q47382471> ) , "y/" ) AS ?var15 ) WHERE { BIND ( LANG ( ?var5 ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> ; <http://wikiba.se/ontology#statements> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( CONTAINS ( STR ( ?var5 ) , "ualif" ) ) ) . OPTIONAL { [] <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> ?var2 ; <http://schema.org/name> ?var6 . } BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( REPLACE ( STR ( ?var5 ) , "string1", "$2" ) ) AS ?var3 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( REPLACE ( STR ( ?var6 ) , "string1", "$2" ) ) AS ?var4 ). } ORDER BY ASC( ?var2 )ASC( ?var8 )ASC( ?var3 )ASC( ?var4 )ASC( ?var2 )ASC( ?var8 )ASC( ?var5 )


Question: Most common properties linking entities to the pianist occupation in Wikidata.

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

What properties are used to associate people with the occupation of pianist, and how many times is each used?

Show me the properties that connect individuals to the pianist role in Wikidata, 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/Q486748> . 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 to the academic article "Stroke Prevention and Cognitive Reserve: Emerging Approaches to Modifying Risk and Delaying Onset of Dementia"?

SELECT DISTINCT ?property WHERE { ?item ?property wd:Q36705541 .}

Which relationships connect other items to the scholarly article on stroke prevention and cognitive reserve?

Show me all the ways other entities are connected to the article about stroke prevention and cognitive reserve.

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


Question: All properties and values associated with Orangey the cat actor.

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?value WHERE {
  wd:Q677525 ?property ?value .
}

What information is stored in Wikidata about the cat actor Orangey?

Show me all the data Wikidata has about Orangey, including descriptions and statements.

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


Question: How many Wikipedia pages exist in each language about Al Gore?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?language(COUNT(DISTINCT ?page) AS ?count) WHERE {
  ?page schema:about wd:Q19673 ; schema:inLanguage ?language .
}
GROUP BY ?language
ORDER BY DESC(?count)

Which languages have Wikipedia articles about Al Gore, and how many articles are there per language?

Show the distribution of Wikipedia language editions that have articles about Al Gore, ordered by the number of articles.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var2 <http://schema.org/about> <http://www.wikidata.org/entity/Q19673> . } GROUP BY ?var1


Question: What are the superclass categories of a designated heritage property (Part IV) in Ontario?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?ancestor WHERE {
  wd:Q15080599 wdt:P279 + ?ancestor
}
LIMIT 20

What classes does the municipal heritage designation (Part IV) belong to through inheritance?

Show me the hierarchy of classes above the designated heritage property (Part IV) under Ontario’s Heritage Act.

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


Question: What types of organizations and entities are based in Singapore?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?type ?typeLabel WHERE {
  ?item wdt:P17 wd:Q334 .
  ?item wdt:P31 ?type .
  FILTER(STRSTARTS(STR(?item) , "http://www.wikidata.org/entity/Q"))
}

Can you list entities located in Singapore and classify them by their type?

What are the different kinds of things (like businesses, teams, or roads) that are located in Singapore?

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


Question: What organization is Ee-Peng Lim affiliated with or employed by, and what is its image, start/end date, and any associated academic degree?

SELECT ?image ?organization ?orgLabel ?startDate ?endDate ?degreeLabel WHERE {
  VALUES ?property { p:P108 p:P1416 }
  wd:Q47454126 ?property ?statement .
  ?statement ps:P108|ps:P1416 ?organization .
  ?organization rdfs:label ?orgLabel .
  FILTER(LANG(?orgLabel) = "en")

  OPTIONAL {
    ?organization wdt:P18 ?image .
  }

  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }

  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }

  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Which organization has Ee-Peng Lim been affiliated with or employed by, and can you show me its image, the time period of the association, and any academic degree linked to that role?

Please provide the name, image, and any start/end dates or academic degrees related to Ee-Peng Lim’s affiliation or employment with an organization.

SELECT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6Label WHERE { { <http://www.wikidata.org/entity/Q47454126> <http://www.wikidata.org/prop/P1416> ?var7 . } UNION { <http://www.wikidata.org/entity/Q47454126> <http://www.wikidata.org/prop/P108> ?var7 . } { ?var7 <http://www.wikidata.org/prop/statement/P1416> ?var2 . } UNION { ?var7 <http://www.wikidata.org/prop/statement/P108> ?var2 . } ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P512> ?var8 . ?var8 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What is the English name for Kölsch beer and the German name for Altbier beer?

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

Show me the English label for Kölsch and the German label for Altbier.

Retrieve the English and German labels for Kölsch and Altbier beer styles respectively.

SELECT ?var1 ?var2 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } { <http://www.wikidata.org/entity/Q4626> ?var1 ?var2 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } UNION { <http://www.wikidata.org/entity/Q44924> ?var1 ?var2 . FILTER ( ( ( LANG ( ?var1 ) = "de" ) ) ) . } }


Question: People with the surname Joubert and French native names

SELECT DISTINCT ?person ?nativeName WHERE { ?person wdt:P734 wd:Q21450154 . ?person wdt:P1559 ?nativeName . }

Who are the people named Joubert whose native name is in French?

List all individuals with the last name Joubert who have a French native name.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> "joubert"@fr . }


Question: Argentine Chamber of Deputies members who started serving before 2014 and are still in office

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?chamberId ?person ?parliamentaryGroup ?electoralDistrict ?startDate WHERE {
  ?person p:P39 ?statement .
  ?statement ( ps:P39 / wdt:P279 * ) wd:Q18229570 ; pq:P580 ?startDate .
  FILTER NOT EXISTS {
    ?statement pq:P582 ?endDate
  }
  OPTIONAL {
    ?statement pq:P768 ?electoralDistrict
  }
  OPTIONAL {
    ?statement pq:P4100 ?parliamentaryGroup
  }
  OPTIONAL {
    ?person wdt:P4454 ?chamberId
  }
  FILTER ( ?startDate < "2014-01-01T00:00:00Z" ^^ xsd:dateTime )
}

Who are the members of the Argentine Chamber of Deputies that began their term before 2014 and have not yet left office?

List all individuals who have been serving as members of the Argentine Chamber of Deputies since before 2014 without ending their term.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var4 ?var5 ?var6 WHERE { ?var2 <http://www.wikidata.org/prop/P39> ?var7 . ?var7 ( <http://www.wikidata.org/prop/statement/P39> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q18229570> ; <http://www.wikidata.org/prop/qualifier/P580> ?var5 . FILTER ( ( NOT EXISTS { ?var7 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } ) ) . OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P768> ?var4 . } OPTIONAL { ?var7 <http://www.wikidata.org/prop/qualifier/P4100> ?var3 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P4454> ?var1 . } BIND ( COALESCE ( ?var5 , "3001-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) AS ?var8 ). FILTER ( ( ( ?var8 < "2014-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,en,es". } }


Question: What are the properties and values of the Wikidata statement with ID s:Q18556900-43176D0D-BC2F-4ED6-B7B8-E50BF8532E11?

PREFIX s: <http://www.wikidata.org/entity/statement/>
SELECT ?property ?value WHERE {
  s:Q18556900-43176D0D-BC2F-4ED6-B7B8-E50BF8532E11 ?property ?value .
}

Show me all details of the statement that has the identifier s:Q18556900-43176D0D-BC2F-4ED6-B7B8-E50BF8532E11.

What metadata is associated with the statement s:Q18556900-43176D0D-BC2F-4ED6-B7B8-E50BF8532E11 in Wikidata?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/statement/Q18556900-43176D0D-BC2F-4ED6-B7B8-E50BF8532E11> ?var1 ?var2 . }


Question: Works originally in Polish

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?work WHERE {
  ?work p:P364 ?statement .
  ?statement ps:P364 wd:Q809 .
}
LIMIT 101

What films and TV shows were originally produced in Polish?

List up to 101 works that have Polish as their original language.

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


Question: List up to 50 landmarks and locations within 100 km of Karlsruhe, Germany, with their coordinates.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?location WHERE {
  ?item wdt:P625 ?location .
  BIND(SUBSTR(STR(?location) , 7) AS ?coords)
  BIND(STRBEFORE(?coords , " ") AS ?lon)
  BIND(SUBSTR(STRAFTER(?coords , " ") , 1 , STRLEN(STRAFTER(?coords , " ")) - 1) AS ?lat)
  FILTER(xsd:double(?lon) >= 7.0 && xsd:double(?lon) <= 10.0)
  FILTER(xsd:double(?lat) >= 48.0 && xsd:double(?lat) <= 50.0)
}
ORDER BY ?item
LIMIT 50

What are the geographic locations within a 100-kilometer radius of 8°E, 49°N, and what are their coordinates?

Show me 50 places near the coordinates 8°E and 49°N, including their names and exact geographic coordinates.

SELECT DISTINCT ?var1 ?var2 WHERE { SERVICE <http://wikiba.se/ontology#around> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#center> "POINT(8 49)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#radius> "100". <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#distance> ?var3 . } } ORDER BY ASC( ?var3 ) LIMIT 50


Question: What are the Gene Ontology annotations (molecular function, biological process, or cellular component) for the protein with UniProt ID O24853?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 DISTINCT ?goTermLabel ?goId ?goTerm ?goCategory WHERE {
  ?protein wdt:P352 "O24853" .
  {
    ?protein p:P680 ?statement .
  } UNION {
    ?protein p:P681 ?statement .
  } UNION {
    ?protein p:P682 ?statement .
  }
  {
    ?statement ps:P680 ?goTerm .
  } UNION {
    ?statement ps:P681 ?goTerm .
  } UNION {
    ?statement ps:P682 ?goTerm .
  }
  ?goTerm wdt:P279 * ?goCategory ; wdt:P686 ?goId .
  FILTER(?goCategory IN(wd:Q2996394 , wd:Q5058355 , wd:Q14860489))
  OPTIONAL {
    ?goTerm rdfs:label ?goTermLabel .
    FILTER(LANG(?goTermLabel) = "en")
  }
}

Which biological processes and molecular functions are associated with the protein O24853 according to the Gene Ontology?

List the Gene Ontology terms, their IDs, and categories (e.g., molecular function or biological process) for the protein identified by UniProt ID O24853.

SELECT DISTINCT ?var1Label ?var2 ?var1 ?var3 ?var4Label ?var5Label ?var6Label ?var7 WHERE { ?var8 <http://www.wikidata.org/prop/direct/P352> "O24853". { ?var8 <http://www.wikidata.org/prop/P680> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P681> ?var9 . } UNION { ?var8 <http://www.wikidata.org/prop/P682> ?var9 . } ?var9 <http://www.wikidata.org/prop/qualifier/P459> ?var4 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) ?var5 . ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P813> ) ?var6 . OPTIONAL { ?var9 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P698> ) ?var10 . } { ?var9 <http://www.wikidata.org/prop/statement/P680> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P681> ?var1 . } UNION { ?var9 <http://www.wikidata.org/prop/statement/P682> ?var1 . } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var3 ; <http://www.wikidata.org/prop/direct/P686> ?var2 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q2996394> ) || ( ?var3 = <http://www.wikidata.org/entity/Q5058355> ) || ( ?var3 = <http://www.wikidata.org/entity/Q14860489> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P591> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Composers or musical works with both Swedish Musical Heritage ID and IMSLP ID

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?swedishId ?imslpTitle WHERE {
  ?item wdt:P4607 ?swedishId .
  ?item wdt:P839 ?imslpTitle .
}

Which musical works or composers are listed in both the Swedish Musical Heritage database and IMSLP?

Show me the Swedish Musical Heritage IDs and IMSLP page titles for items that appear in both databases.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4607> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P839> ?var3 . }


Question: Image of the person with SNAC ARK ID w68k8zhh

SELECT ?image WHERE { ?person wdt:P3430 "w68k8zhh" . OPTIONAL { ?person wdt:P18 ?image . } }

What is the Wikimedia Commons image of the person identified by the SNAC ARK ID w68k8zhh?

Show me the photo of Errol Barrow from Wikimedia Commons, given his SNAC ARK ID is w68k8zhh.

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


Question: What are the main topics covered by items related to the wiki concept or The Web Conference 2018?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?mainSubject ?mainSubjectLabel WHERE {
  {
    ?item wdt:P921 wd:Q171 .
  } UNION {
    ?item wdt:P361 wd:Q48910401 .
  }
  ?item wdt:P921 ?mainSubject .
  FILTER ( ?mainSubject != wd:Q171 ) ?mainSubject rdfs:label ?mainSubjectLabel .
  FILTER ( LANG( ?mainSubjectLabel ) = "en" )
}
ORDER BY ?mainSubjectLabel

Can you list the English-labeled main subjects of all works that are either about wiki or part of The Web Conference 2018, excluding wiki itself?

Show me all the topics that are associated with wiki-related or Web Conference 2018-related items, excluding the topic of wiki.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q47035167> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P361> +) <http://www.wikidata.org/entity/Q47035167> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P921> / <http://www.wikidata.org/prop/direct/P1269> +) <http://www.wikidata.org/entity/Q47035167> . } ?var3 <http://www.wikidata.org/prop/direct/P921> ?var1 , ?var2 . FILTER ( ( ( <http://www.wikidata.org/entity/Q47035167> != ?var1 ) && ( <http://www.wikidata.org/entity/Q47035167> != ?var2 ) && ( ?var1 != ?var2 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What are the locations associated with F. H. Thompson (e.g., employer or country of citizenship), their coordinates, and their images?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?image ?location ?locationLabel ?coordinates ?propertyLabel WHERE {
  {
    wd:Q45089702 wdt:P108 ?location .
    BIND( wdt:P108 AS ?prop )
  } UNION {
    wd:Q45089702 wdt:P27 ?location .
    BIND( wdt:P27 AS ?prop )
  }
  OPTIONAL {
    ?location wdt:P18 ?image .
  }
  ?location wdt:P625 ?coordinates .
  ?property wikibase:directClaim ?prop .
  ?property rdfs:label ?propertyLabel .
  ?location rdfs:label ?locationLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" && LANG( ?locationLabel ) = "en" )
}

Show me where F. H. Thompson worked or was a citizen of, along with the location’s coordinates and any available images, and specify whether it was his employer or country.

List the places linked to archaeologist F. H. Thompson through employment or citizenship, including their geographic coordinates and images, and identify the nature of the relationship.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ( ?var4Label AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q45089702> ?var6 ?var2 . ?var2 (( <http://www.wikidata.org/prop/P159> / <http://www.wikidata.org/prop/qualifier/P625> )|( <http://www.wikidata.org/prop/direct/P276> */ <http://www.wikidata.org/prop/direct/P625> )) ?var3 . ?var7 <http://wikiba.se/ontology#directClaim> ?var6 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P18> ?var1 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,jp,nl,no,ru,sv,zh". } ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . }


Question: List items with their AAT IDs and corresponding Getty AAT URLs.

SELECT ?item ?itemLabel ?url WHERE { ?item wdt:P1014 ?aatId . BIND( IRI( CONCAT( "https://vocab.getty.edu/page/aat/", ?aatId ) ) AS ?url ) . ?item rdfs:label ?itemLabel . }

What are the items in Wikidata that have an Art & Architecture Thesaurus ID, and what are their official Getty AAT URLs?

Show me all entities that have an AAT identifier along with their English labels and the direct URLs to their Getty AAT pages.

SELECT ?var1 ?var1Label ?var2 WHERE { BIND ( IRI ( REPLACE ( ?var3 , "^(.+)$", ?var4 ) ) AS ?var2 ). <http://www.wikidata.org/entity/P1014> <http://www.wikidata.org/prop/direct/P1630> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P1014> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who are the people whose occupation is Olympic competitor?

SELECT ?person ?personLabel WHERE { ?person wdt:P106 wd:Q58825429 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Show me the names of people who have the occupation of Olympic competitor.

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


Question: What properties are used on Douglas Adams, and what types and categories do those properties belong to in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?propertyItem ?propertyItemLabel ?directClaim ?propertyType ?class ?classLabel WHERE {
  wd:Q42 ?directClaim ?value .
  ?propertyItem wikibase:directClaim ?directClaim .
  ?propertyItem wikibase:propertyType ?propertyType .
  ?propertyItem(wdt:P31 / wdt:P279 *) ?class .
  ?propertyItem rdfs:label ?propertyItemLabel .
  ?class rdfs:label ?classLabel .
  FILTER(LANG(?propertyItemLabel) = "en" || LANG(?propertyItemLabel) = "")
  FILTER(LANG(?classLabel) = "en" || LANG(?classLabel) = "")
}
GROUP BY ?propertyItem ?propertyItemLabel ?directClaim ?propertyType ?class ?classLabel
ORDER BY ASC(?propertyType) ASC(?propertyItem) ASC(?class)

For each property applied to Douglas Adams, what is its data type (e.g., CommonsMedia, WikibaseItem), and what classes classify that property in Wikidata’s hierarchy?

Can you list the metadata of all properties linked to Douglas Adams, including their labels, types, and hierarchical classifications in Wikidata?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label WHERE { <http://www.wikidata.org/entity/Q42> ?var2 ?var5 . ?var1 <http://wikiba.se/ontology#directClaim> ?var2 . ?var1 <http://wikiba.se/ontology#propertyType> ?var3 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } } ORDER BY ASC( ?var3 )ASC( ?var1 )ASC( ?var4 )


Question: Is the United Nations Climate Change Conference a type of software?

Does the United Nations Climate Change Conference belong to a category that is a subclass of software?

Confirm whether the COP climate conferences are considered software or a kind of software.

ASK WHERE { <http://www.wikidata.org/entity/Q7888355> ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7397> . <http://www.bigdata.com/queryHints#Prior> <http://www.bigdata.com/queryHints#gearing> "forwards". }


Question: Authors of the article "Tumor antigens as proteogenomic biomarkers in invasive ductal carcinomas" and their ORCID IDs.

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 ?author ( STR( ?label ) AS ?authorLabel ) ( COALESCE ( ?orcid , CONCAT ( "https://orcid.org/" , ENCODE_FOR_URI( STR( ?label ) ) ) ) AS ?orcidUrl ) WHERE {
  wd:Q34914935 wdt:P50 ?author .
  OPTIONAL {
    ?author wdt:P496 ?orcid .
  }
  ?author rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

Who are the authors of the scholarly article "Tumor antigens as proteogenomic biomarkers in invasive ductal carcinomas", and what are their ORCID identifiers?

List the English names of the authors of the article "Tumor antigens as proteogenomic biomarkers in invasive ductal carcinomas" along with their ORCID IDs, and if any ORCID is missing, provide a link using their name.

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q34914935> <http://www.wikidata.org/prop/direct/P50> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,da,de,es,fr,nl,no,ru,sv,zh". } }


Question: Lighthouses in Spain without Spanish descriptions

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 ?lighthouse ?lighthouseLabel WHERE {
  ?lighthouse wdt:P31 wd:Q39715 ; wdt:P17 wd:Q29 .
  OPTIONAL {
    ?lighthouse schema:description ?desc .
    FILTER ( LANG( ?desc ) = "es" )
  }
  FILTER ( ! BOUND( ?desc ) ) .
  ?lighthouse rdfs:label ?lighthouseLabel .
  FILTER ( LANG( ?lighthouseLabel ) = "en" )
}

Which lighthouses in Spain do not have a description in Spanish?

Show me the English names of lighthouses located in Spain that lack a Spanish description.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "es" ) ) ) . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P360> <http://www.wikidata.org/entity/Q29> . }


Question: Who is Linda Fagerström?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Linda Fagerström" @en .
}

Which person has the name 'Linda Fagerström' in English?

Show me the Wikidata items for the person named Linda Fagerström.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> "Linda Fage"@fr . }


Question: What image is associated with Jonathan Skinner in Wikidata?

SELECT ?image WHERE {
  ?item wdt:P3430 "w61n8fx6" .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
}

Can you find the Commons image for the person with SNAC ARK ID w61n8fx6?

Show the image of the individual identified by the SNAC ARK ID w61n8fx6, if available.

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


Question: Who were born on March 16, 1976?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P569 ?birthDate .
  FILTER(?birthDate >= "1976-03-16T00:00:00Z" ^^ xsd:dateTime && ?birthDate <= "1976-03-16T23:59:59Z" ^^ xsd:dateTime)
}

Can you list all people born on March 16, 1976?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( ?var2 >= "1976-03-16T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1976-03-16T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: List English names of newspapers from Finland.

SELECT ?var1 ?var1Label WHERE { ?var1 (wdt:P31/wdt:P279*) wd:Q11032 ; wdt:P495 wd:Q33 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } ORDER BY ASC(?var1Label) LIMIT 200

What are the names of newspapers in Finland, in English?

Show me a list of Finnish newspapers with their English labels, sorted alphabetically.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11032> ; ?var2 <http://www.wikidata.org/entity/Q33> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fi,sv". } OPTIONAL { } } ORDER BY ASC( ?var1Label ) LIMIT 200


Question: What are all the libraries in the United Kingdom?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?library WHERE {
  ?library ( wdt:P31 / wdt:P279 * ) wd:Q7075 .
  ?library wdt:P17 wd:Q145 .
}

Can you list all institutions in the UK that are classified as libraries or subclasses of libraries?

Show me libraries, including academic, public, and digital ones, located in the United Kingdom.

SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7075> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . }


Question: Number of articles citing "Urban-rural differences in Roman Dorset..." grouped by year and author presence.

SELECT ?year (COUNT(DISTINCT ?citingArticle) AS ?count) ?hasAuthor WHERE { BIND(wd:Q35547590 AS ?citedArticle) . ?citingArticle wdt:P2860 ?citedArticle . ?citingArticle wdt:P577 ?publicationDate . BIND(STR(YEAR(?publicationDate)) AS ?year) . BIND(IF(EXISTS { ?citingArticle wdt:P50 [] }, "has author", "no author") AS ?hasAuthor) } GROUP BY ?year ?hasAuthor ORDER BY DESC(?year)

How many articles citing the 2015 bioarchaeological study on Roman Dorset were published each year, and did they have authors?

Show me the count of citing articles for "Urban-rural differences in Roman Dorset..." broken down by publication year and whether they list at least one author.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q35547590> AS ?var5 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . OPTIONAL { BIND ( IF ( EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P50> ?var6 . } , "string1", "string2" ) AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P50> ?var6 . } BIND ( STR ( YEAR ( ?var7 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P577> ?var7 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: What educational institutions did Taylor Lauritsen attend, and what degrees did he earn, along with the start and end dates of his studies?

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/>
SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE {
  wd:Q47069741 p:P69 ?statement .
  ?statement ps:P69 ?institution .
  ?institution rdfs:label ?institutionLabel .
  FILTER(LANG(?institutionLabel) = "en")
  OPTIONAL {
    ?statement pq:P580 ?startDate .
  }
  OPTIONAL {
    ?statement pq:P582 ?endDate .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

List Taylor Lauritsen’s academic background: the universities he attended, the degrees obtained, and the time periods he studied there.

Show the educational history of Michael Taylor Lauritsen, including the institutions, degree titles, and enrollment periods — only in English labels.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q47069741> <http://www.wikidata.org/prop/P69> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P69> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P512> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Who are the members of the German Bundestag who hold a doctoral degree, and what are their degrees?

SELECT DISTINCT ?person ?personLabel ?degreeLabel WHERE { ?person wdt:P39 wd:Q1939555 ; wdt:P512 ?degree . ?person rdfs:label ?personLabel . ?degree rdfs:label ?degreeLabel . FILTER(langMatches(lang(?personLabel), "en")) FILTER(langMatches(lang(?degreeLabel), "en")) }

List German Bundestag members along with their academic degrees in English.

Show me the names of people serving in the German parliament who have earned a doctorate, and specify the type of doctorate they hold.

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


Question: How many instances are there for each subclass of gunpowder magazine?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?subclass ?subclassLabel(COUNT(?instance) AS ?count) WHERE {
  ?subclass wdt:P279 wd:Q17504814 .
  ?instance wdt:P31 ?subclass .
  ?subclass rdfs:label ?subclassLabel .
  FILTER(LANG(?subclassLabel) = "en")
}
GROUP BY ?subclass ?subclassLabel
ORDER BY DESC(?count)

Which subclass of gunpowder magazine has the most instances in Wikidata, and how many are there?

List the subclasses of gunpowder magazine along with the number of their instances, sorted by count in descending order.

SELECT DISTINCT * WHERE { { SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q17504814> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { SELECT ?var4 ?var4Label ?var2 ?var3 WHERE { { SELECT ?var4 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q17504814> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . } GROUP BY ?var4 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } }


Question: What are the superclass categories of optimization problem in Wikidata?

SELECT DISTINCT ?superclass ?superclassLabel WHERE { wd:Q984063 wdt:P279+ ?superclass . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?superclassLabel) = "en") }

What are all the direct and indirect parent classes of the optimization problem?

List all English-labeled superclasses of the optimization problem, including all levels of inheritance.

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


Question: Deceased UK Members of Parliament with birth and death years

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 ?mp ?mpLabel ?birthYear ?deathYear WHERE {
  ?mp wdt:P31 wd:Q5 ; wdt:P39 ?position .
  ?position wdt:P279 * wd:Q16707842 .
  OPTIONAL {
    ?mp wdt:P569 ?birth .
    BIND(YEAR(?birth) AS ?birthYear)
  }
  ?mp wdt:P570 ?death .
  BIND(YEAR(?death) AS ?deathYear)
  .
  ?mp rdfs:label ?mpLabel .
  FILTER(LANG(?mpLabel) = "en")
}
LIMIT 10

Who are the deceased members of the UK House of Commons, and what were their birth and death years?

List the names, birth years, and death years of all deceased British Members of Parliament.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q16707842> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P39> [ <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q16707842> ] . } ) ) . OPTIONAL { BIND ( YEAR ( ?var4 ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . } BIND ( YEAR ( ?var5 ) AS ?var3 ). ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What type of artwork is Adele Bloch-Bauer II?

SELECT ?instanceType ?instanceLabel WHERE { wd:Q4681871 wdt:P31 ?instanceType . ?instanceType rdfs:label ?instanceLabel . FILTER (LANG(?instanceLabel) = "en") } LIMIT 50

What is the English label for the category that Adele Bloch-Bauer II belongs to?

Show the English name of the class that Adele Bloch-Bauer II is an example of.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q4681871> <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } LIMIT 50


Question: Who is the human with Facebook username 'rihanna'?

SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P2013 "rihanna" . ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en") } LIMIT 10

Which person has the Facebook username 'rihanna'?

Tell me the name of the person whose Facebook username is rihanna.

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


Question: Occupations related to music with GND identifiers

SELECT ?occupation ?occupationLabel ?gnd WHERE { ?occupation wdt:P279* wd:Q12737077 . ?occupation wdt:P227 ?gnd . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = 'en') . FILTER(CONTAINS(STR(?occupationLabel), "music")) } ORDER BY DESC(?gnd) LIMIT 500

Which music-related occupations have official GND (German National Library) identifiers?

List all English-language occupations in the music field that are linked to GND IDs, sorted by identifier value.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q21146257> . ?var1 <http://wikiba.se/ontology#identifiers> ?var2 . FILTER ( ( ( ?var2 != "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( CONTAINS ( STR ( ?var3Label ) , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de". } } ORDER BY DESC( ?var2 ) LIMIT 500


Question: List space probes launched from Earth, their launch sites, coordinates, and launch dates.

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 ?probe ?probeLabel ?launchSite ?launchSiteLabel ?coordinates ?launchDate WHERE {
  ?probe wdt:P31 wd:Q26529 .
  ?probe wdt:P619 ?launchDate .
  ?probe wdt:P1427 ?launchSite .
  ?launchSite wdt:P625 ?coordinates .
  ?probe rdfs:label ?probeLabel .
  ?launchSite rdfs:label ?launchSiteLabel .
  FILTER ( LANG( ?probeLabel ) = "en" ) FILTER ( LANG( ?launchSiteLabel ) = "en" )
}

What are the names of space probes, their launch locations, the geographic coordinates of those locations, and the UTC launch dates?

Show me the English labels of space probes, the launch sites they used (with their labels), the WKT coordinates of those launch sites, and the exact UTC times of their launches.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q26529> . ?var1 <http://www.wikidata.org/prop/direct/P619> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P1427> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P375> ?var7 . ?var2 <http://www.wikidata.org/prop/direct/P625> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Tennis events not part of a tour with multiple statements

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 ?item ?itemLabel WHERE {
  {
    SELECT ?item WHERE {
      ?item wdt:P641 wd:Q847 .
      FILTER NOT EXISTS {
        ?item wdt:P3450 []
      }
      ?item ?p ?o .
      FILTER ( ?p != rdfs:label )
    }
    GROUP BY ?item
    HAVING ( COUNT( ?p ) > 1 )
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

What tennis-related items are not seasons of a competition and have more than one property?

List tennis tournaments and players that are not part of a tour and have detailed information.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q847> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P31> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P279> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P361> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P3450> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1269> [] . } ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://wikiba.se/ontology#statements> "1"^^<http://www.w3.org/2001/XMLSchema#integer> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Authors of the paper "Semantics derived automatically from language corpora contain human-like biases" and their ORCID IDs.

SELECT ?author ?authorLabel ?displayValue WHERE { wd:Q38378096 wdt:P50 ?author . OPTIONAL { ?author wdt:P496 ?orcid . } BIND(COALESCE(?orcid, ?authorLabel) AS ?displayValue) ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") }

Who are the authors of the 2017 paper on bias in language models, and what are their ORCID identifiers?

List the authors of the article about human-like biases in word embeddings along with their ORCID numbers.

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q38378096> <http://www.wikidata.org/prop/direct/P50> ?var1 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P496> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,da,de,es,fr,nl,no,ru,sv,zh". } }


Question: What are the ISO 3166-2 codes and Russian/English alternative names for the federal subjects of Russia?

PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?subdivision ?isoCode ?altLabelRu ?altLabelEn WHERE {
  ?subdivision wdt:P300 ?isoCode ; wdt:P17 wd:Q159 ; wdt:P131 wd:Q159 .
  FILTER ( NOT EXISTS {
    wd:Q159 wdt:P576 ?dissolved
  }
  ) OPTIONAL {
    ?subdivision skos:altLabel ?altLabel .
    FILTER ( LANG( ?altLabel ) = "ru" ) .
    BIND( ?altLabel AS ?altLabelRu )
  }
  OPTIONAL {
    ?subdivision skos:altLabel ?altLabel .
    FILTER ( LANG( ?altLabel ) = "en" ) .
    BIND( ?altLabel AS ?altLabelEn )
  }
}

List all administrative regions of Russia with their ISO codes and their names in Russian and English.

Show me the alternative names in Russian and English for each region of Russia, along with its ISO code.

SELECT ?var1 ?var2 ?var1Label ?var3 ?var2Label ?var4 ?var5 ?var5Label ?var6 ?var7 ?var8 WHERE { BIND ( <http://www.wikidata.org/entity/Q159> AS ?var2 ). BIND ( CONCAT ( "en,", ?var7 ) AS ?var8 ). ?var1 <http://www.wikidata.org/prop/direct/P300> ?var3 ; <http://www.wikidata.org/prop/direct/P17> ?var2 ; <http://www.wikidata.org/prop/direct/P131> ?var5 . FILTER ( ( NOT EXISTS { ?var5 <http://www.wikidata.org/prop/direct/P576> ?var9 . } ) ) . ?var2 <http://www.wikidata.org/prop/direct/P37> ?var10 . ?var10 <http://www.wikidata.org/prop/direct/P424> ?var7 . OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P300> ?var4 . } OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var6 . FILTER ( ( LANG ( ?var6 ) IN ( "ru", "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the image of the Wimbledon Championships?

SELECT ?image WHERE { wd:Q41520 wdt:P18 ?image .}

What image is associated with the Wimbledon Championships on Wikimedia Commons?

Show me the official image of the Wimbledon Championships.

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


Question: Who are the people with French native names containing "Antoine"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item WHERE {
  ?item wdt:P1559 ?name .
  FILTER(LANG(?name) = "fr" && CONTAINS(LCASE(?name) , "antoine"))
}

List all individuals whose French-language names include the name "Antoine".

Find entities that have "Antoine" as part of their name in French.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1559> "antoine"@fr . }


Question: Most frequently used property for the given name Nicolas in Wikidata

SELECT ?property (COUNT(?property) AS ?count)
WHERE {
  {
    SELECT ?property WHERE {
      ?item ?usedProperty wd:Q7029481 .
      ?property wikibase:directClaim ?usedProperty .
      ?property rdf:type wikibase:Property .
    }
    LIMIT 10000
  }
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

What property is used most often to assign the name Nicolas to people in Wikidata, and how many times is it used?

Show the property that has been used the most times to link the name Nicolas to entities, along with its usage count.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q7029481> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: Images of Reza Shah from SNAC ARK ID w6ns1qvx

SELECT ?image WHERE { ?person wdt:P3430 "w6ns1qvx" . OPTIONAL { ?person wdt:P18 ?image . } }

What images are associated with Reza Shah in Wikidata, identified by the SNAC ARK ID w6ns1qvx?

Show me the Wikimedia Commons images of Reza Shah using his SNAC ARK ID w6ns1qvx.

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


Question: Politicians with names starting with Q

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?label WHERE {
  ?person wdt:P106 wd:Q82955 ; rdfs:label ?label .
  FILTER(STRSTARTS(?label , "Q"))
}
LIMIT 10

Who are the politicians whose names start with the letter Q?

List up to 10 politicians whose names begin with Q.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh". } FILTER ( ( STRSTARTS ( ?var2Label , "Q" ) ) ) . } LIMIT 10


Question: Swiss politicians with the most Wikipedia language versions

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?politician ?politicianLabel ( COUNT( DISTINCT ?language ) AS ?articleCount ) WHERE {
  ?politician wdt:P31 wd:Q5 .
  ?politician wdt:P27 wd:Q39 .
  ?politician wdt:P106 wd:Q82955 .
  ?article schema:about ?politician .
  ?article schema:inLanguage ?language .
  FILTER ( STRSTARTS( STR( ?article ) , "https://" ) && CONTAINS( STR( ?article ) , ".wikipedia.org/" ) )
}
GROUP BY ?politician ?politicianLabel
ORDER BY DESC ( ?articleCount )

Which Swiss politicians have Wikipedia articles in the most languages, and how many languages are there for each?

List Swiss politicians along with the count of different language versions of their Wikipedia pages, sorted from most to least.

SELECT ?var1 ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) 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/Q39> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,fr,it". } FILTER ( ( ( SUBSTR ( STR ( ?var4 ) ,"11"^^<http://www.w3.org/2001/XMLSchema#integer> ,"15"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 )


Question: What types of settlements is Bukonys classified as in Wikidata?

SELECT ?type WHERE { wd:Q1003301 wdt:P31 ?type . }

Is Bukonys a village or a human settlement according to Wikidata?

What categories does the Lithuanian village Bukonys belong to?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1003301> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var1 . }


Question: Type of Luis Fernando Silva

SELECT ?type WHERE { wd:Q10320544 wdt:P31 ?type . }

What is Luis Fernando Silva an instance of?

Show the class that Luis Fernando Silva belongs to in Wikidata.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q10320544> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var1 . }


Question: What is the taxonomic classification of the genus Rosema?

SELECT ?taxon WHERE { wd:Q10364615 wdt:P31 ?taxon }

What category does the insect genus Rosema belong to?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q10364615> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ?var1 . }


Question: Martin Mulsow books publication year and title

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 ?year ?title WHERE {
  ?work wdt:P50 wd:Q1404613 .
  ?work wdt:P577 ?date .
  ?work rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  BIND( YEAR( ?date ) AS ?year ) .
  BIND( SUBSTR( ?label , 1 , 20 ) AS ?title )
}
ORDER BY ?year

What are the publication years and English titles of Martin Mulsow’s works, truncated to 20 characters?

List Martin Mulsow’s published works with their publication year and the first 20 characters of their English titles, sorted by year.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1404613> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1404613> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: What types of entities are Chehalis, Washington and "The British List: A Checklist of Birds of Britain (8th edition)"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?cityType ?listType WHERE {
  wd:Q249441 wdt:P31 ?cityType .
  wd:Q56168938 wdt:P31 ?listType .
}

Is Chehalis, Washington a city and is "The British List" a scholarly article? Show their Wikidata types.

What class does Chehalis, Washington belong to, and what class does the 8th edition of The British List belong to?

SELECT ?var1 ?var2 WHERE { <http://dbpedia.org/resource/Chehalis,_Washington> <http://www.wikidata.org/prop/direct/P31> ?var2 . <http://dbpedia.org/resource/List_of_birds_of_Great_Britain> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What type of work is Dante’s Inferno, and what category does a concrete pump belong to?

SELECT ?infernoType ?pumpSuperclass WHERE { wd:Q4509219 wdt:P31 ?infernoType . wd:Q786115 wdt:P279 ?pumpSuperclass .}

Is Dante’s Inferno a literary work, and is a concrete pump a type of pump?

What is the classification of Dante’s Inferno and the parent class of concrete pump?

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q786115> <http://www.wikidata.org/prop/direct/P31> ?var2 . <http://dbpedia.org/resource/Inferno_(Dante)> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: Musical ensembles that play heavy metal and their countries of origin.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ensemble ?country WHERE {
  ?ensemble wdt:P31 / wdt:P279 * wd:Q2088357 ; wdt:P136 / wdt:P279 * wd:Q38848 ; wdt:P495 ?country .
}

Which musical ensembles are associated with heavy metal music, and from which countries do they originate?

List all musical ensembles whose genre is heavy metal or a subgenre of it, along with the country where each ensemble originated.

SELECT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2088357> ; ( <http://www.wikidata.org/prop/direct/P136> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q38848> ; <http://www.wikidata.org/prop/direct/P495> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the title of the item with IMDb ID tt0164543?

SELECT ?item ?itemLabel WHERE { ?item wdt:P345 "tt0164543" . ?item rdfs:label ?itemLabel .}

Which item has the IMDb identifier tt0164543, and what are its labels?

Show me the title(s) of the film or media item identified by tt0164543 on IMDb.

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


Question: What is the title of the movie with IMDb ID tt0316949?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label WHERE {
  ?item wdt:P345 "tt0316949" .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'de' )
}

Movie with IMDb ID tt0316949 — what is its name?

Give me the title of the film identified by tt0316949 on IMDb.

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


Question: Who were the spouses of Bulgarian monarchs?

SELECT ?monarch ?monarchLabel ?spouse ?spouseLabel WHERE { ?monarch wdt:P27 wd:Q219; wdt:P106 wd:Q116; wdt:P26 ?spouse. ?monarch rdfs:label ?monarchLabel. ?spouse rdfs:label ?spouseLabel. FILTER(LANG(?monarchLabel) = 'en') FILTER(LANG(?spouseLabel) = 'en') }

List the consorts of kings and queens of Bulgaria.

Which women were married to rulers of Bulgaria?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/List_of_Bulgarian_consorts> <http://www.wikidata.org/prop/direct/P31> ?var2 . }


Question: What is the category or type of Miki Muster in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?instance WHERE {
  wd:Q6960645 wdt:P31 ?instance .
}

Is Miki Muster classified as a human in Wikidata?

What class does the Slovenian cartoonist Miki Muster belong to?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Miki_Muster> <http://www.wikidata.org/prop/direct/P31> ?var2 . }


Question: What type of entity is the Germantown order of battle?

SELECT ?type WHERE { wd:Q5552053 wdt:P31 ?type . }

What is the classification of the Germantown order of battle in Wikidata?

Is the Germantown order of battle categorized as an order of battle in Wikidata?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Germantown_order_of_battle> <http://www.wikidata.org/prop/direct/P31> ?var2 . }


Question: What is the type or class of the 1940 Republican National Convention in Wikidata?

SELECT ?type WHERE { wd:Q4564760 wdt:P31 ?type . }

What category does the 1940 Republican National Convention belong to according to Wikidata?

What is the instance type of the 1940 Republican National Convention?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/1940_Republican_National_Convention> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What type of event is the Dewey–Stassen debate?

SELECT ?var1 WHERE { wd:Q3042325 wdt:P31 ?var1 .}

Instance type of the Dewey–Stassen debate.

Tell me the category that the Dewey–Stassen debate belongs to.

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Dewey–Stassen_debate> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What type of government is the Government of New York?

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

What is the classification of the New York State government in Wikidata?

Which category does the New York state government belong to?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/AMK152/NyGov> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What type of entity is WikiProject Women's History?

SELECT ?instanceOf WHERE { wd:Q18377637 wdt:P31 ?instanceOf . }

What is the category or class that WikiProject Women's History belongs to?

Is WikiProject Women's History an instance of a WikiProject?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/WikiProject_Women's_History/Did_You_Know> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: What type of entity is the Fortress of Klis?

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

What class does the Fortress of Klis belong to?

SELECT ?var1 WHERE { <http://dbpedia.org/resource/Fortress_of_Klis> <http://www.wikidata.org/prop/direct/P31> ?var1 . }


Question: German municipalities with images on Wikimedia Commons

SELECT ?municipality ?label WHERE { ?municipality wdt:P31 wd:Q262166 . ?municipality wdt:P18 ?image . ?municipality rdfs:label ?label . FILTER(LANG(?label) = "en") } ORDER BY ?municipality

Which municipalities in Germany have images available on Wikimedia Commons, and what are their English names?

Show me the English names of all municipalities in Germany that have an associated image on Wikimedia Commons.

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