Question: What is the most specific category that both Bill Clinton and the band Neu! belong to?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonClass ?label WHERE {
  wd:Q1124 wdt:P31 ?type1 .
  ?type1 wdt:P279 * ?commonClass .
  wd:Q181874 wdt:P31 ?type2 .
  ?type2 wdt:P279 * ?commonClass .
  ?commonClass rdfs:label ?label .
  FILTER(LANG(?label) = "en")
}
ORDER BY ?label
LIMIT 1

What is the highest-level concept shared by Bill Clinton and the German rock band Neu! in Wikidata’s ontology?

Which ontological class is the most specific common superclass of Bill Clinton and the musical group Neu!?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q1124> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q181874> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most general category that both Bruce Arians' occupation and Seattle's type belong to?

SELECT DISTINCT ?common WHERE { VALUES ?common { wd:Q35120 } wd:Q4046340 wdt:P106 ?occupation . ?occupation wdt:P279* ?common . wd:Q5083 wdt:P31 ?type . ?type wdt:P279* ?common . }

What is the highest-level class in Wikidata that connects American football coach and the city of Seattle through their hierarchical types?

Find the common superclass in the ontology that links Bruce Arians' profession and Seattle's classification.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q4046340> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q5083> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most specific shared category (in the subclass hierarchy) that includes both humans and companies?

SELECT ?commonClass (?dist1 + ?dist2 AS ?totalDistance)
WHERE {
  {
    SELECT ?commonClass (COUNT(?mid) AS ?dist1)
    WHERE {
      wd:Q5 wdt:P279* ?commonClass .
      wd:Q5 wdt:P279+ ?mid .
      ?mid wdt:P279* ?commonClass .
    }
    GROUP BY ?commonClass
  }
  {
    SELECT ?commonClass (COUNT(?mid) AS ?dist2)
    WHERE {
      wd:Q4830453 wdt:P279* ?commonClass .
      wd:Q4830453 wdt:P279+ ?mid .
      ?mid wdt:P279* ?commonClass .
    }
    GROUP BY ?commonClass
  }
}
ORDER BY ASC(?totalDistance)
LIMIT 1

Which class is the closest common ancestor of "human" and "company" in Wikidata's taxonomy, measured by the fewest subclass steps?

How far is the nearest shared superclass between the category of humans and the category of companies, and what is it called?

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q22686> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q2283> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: What is the most abstract category that both Nigeria and a television program like Major League Baseball on CBS belong to?

SELECT ?commonClass ( (?distNigeria + ?distTV) AS ?totalDist ) WHERE { { SELECT ?commonClass ( COUNT( ?mid1 ) AS ?distNigeria ) WHERE { wd:Q6256 wdt:P279+ ?mid1 . ?mid1 wdt:P279* ?commonClass . } GROUP BY ?commonClass } { SELECT ?commonClass ( COUNT( ?mid2 ) AS ?distTV ) WHERE { wd:Q15416 wdt:P279+ ?mid2 . ?mid2 wdt:P279* ?commonClass . } GROUP BY ?commonClass } } ORDER BY ASC( ?totalDist ) LIMIT 1

Which class is the closest common ancestor in the hierarchy between a country and a TV show?

Find the superclass that minimizes the total distance from the class of Nigeria and the class of Major League Baseball on CBS.

SELECT ?var1 ( ( ?var2 + ?var3 ) AS ?var4 ) 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/Q1033> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var2 ; <http://www.bigdata.com/rdf/gas#maxIterations> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } 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/Q6738164> ; <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> "10"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } ORDER BY ASC( ?var4 ) LIMIT 1


Question: Iranian films with SourehCinema ID but no CiNetMag ID

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 ?film ?label WHERE {
  ?film wdt:P31 wd:Q11424 ; wdt:P495 wd:Q794 ; wdt:P3139 ?sourehcinemaid . MINUS {
    ?film wdt:P3128 ?cinetmagid .
  }
  ?film rdfs:label ?label .
  FILTER(LANG(?label) = "fa")
}
ORDER BY ?label

Which Iranian films are listed on SourehCinema but not on CiNetMag?

List all Iranian movies that have a SourehCinema identifier but do not have a CiNetMag identifier.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q794> . ?var1 <http://www.wikidata.org/prop/direct/P3139> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P3128> ?var3 . } } GROUP BY ?var1


Question: Image of James Alexander Robertson (SNAC ARK ID: w64q8vfh)

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

Is there an image available for James Alexander Robertson in Wikidata, given his SNAC ARK ID is w64q8vfh?

Retrieve the Wikimedia Commons image linked to the entity with SNAC ARK ID w64q8vfh, which corresponds to James Alexander Robertson.

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


Question: Humans with a Dictionary of Swedish National Biography ID who are depicted in freely licensed visual artworks but have no image on Wikimedia Commons.

SELECT ?human ?sblId ?artwork WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P3217 ?sblId . MINUS { ?human wdt:P18 [] . } ?artwork (wdt:P31/wdt:P279*) wd:Q4502142 ; wdt:P180 ?human ; wdt:P4765 [] . }

Which Swedish historical figures, identified by their SBL ID, are depicted in artworks with freely available images, but do not have their own photos on Wikimedia Commons?

Show me visual artworks that depict Swedish biographical subjects (with SBL IDs) and have freely licensed images online, but where the subjects themselves lack Wikimedia Commons images.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P3217> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> [] . } ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q4502142> ; <http://www.wikidata.org/prop/direct/P180> ?var1 ; <http://www.wikidata.org/prop/direct/P4765> [] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: List of all named cats in Wikidata.

SELECT ?cat WHERE { ?cat (wdt:P31 / wdt:P279*) wd:Q146 . }

Which notable cats are recorded in Wikidata as instances of the house cat species?

Show me all the individual cats that have been documented in Wikidata, including those belonging to any subclass of the domestic cat.

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


Question: Is Bandiera Rossa a human?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  wd:Q806325 wdt:P31 / wdt:P279 * wd:Q5 .
}

Is the Italian labor movement song "Bandiera Rossa" classified as a human or any of its subclasses in Wikidata?

Check whether Bandiera Rossa (Q806325) is an instance of human (Q5) or any of its transitive subclasses.

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


Question: What is the image associated with the SNAC ARK ID w65b0878?

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

Can you show me the photo of William P. Gottlieb from Wikimedia Commons?

Which image on Commons is linked to the Social Networks and Archival Context identifier w65b0878?

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


Question: What are the mass and height of humans in Wikidata?

SELECT ?human ?mass ?height WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P2067 ?mass . ?human wdt:P2048 ?height . } LIMIT 100

Can you list 100 humans with their mass in kilograms and height in centimeters?

Show me the mass and height of people, where mass is in kg and height is in cm.

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


Question: What are Douglas Adams' occupations, and is there a photo of him?

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 ?propLabel ?writerLabel ?adamsImage WHERE {
  wd:Q42 wdt:P106 ?writer .
  ?writer rdfs:label ?writerLabel .
  FILTER(LANG(?writerLabel) = "en")
  .
  wd:P106 rdfs:label ?propLabel .
  FILTER(LANG(?propLabel) = "en")
  .
  OPTIONAL {
    wd:Q42 wdt:P18 ?adamsImage
  }
}
ORDER BY ?writerLabel
LIMIT 200

Can you list all the professions associated with Douglas Adams, along with his image?

Show me the English labels of Douglas Adams' occupations and include his portrait if available.

SELECT ?var1 ?var2Label ?var3 ?var4Label ?var5 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { BIND ( <http://www.wikidata.org/entity/Q728405> AS ?var3 ). BIND ( "N/A" AS ?var1 ). BIND ( "identity"@en AS ?var2Label ). } UNION { <http://www.wikidata.org/entity/Q42> ?var1 ?var3 . ?var6 ?var7 ?var1 . ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P18> ?var5 . } FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } ORDER BY ASC( ?var1 )ASC( ?var3 ) LIMIT 200


Question: What are the Twitter/X usernames for CLARIAH-NL, the Netherlands, and Boston?

SELECT ?entity ?username WHERE { VALUES ?entity { wd:Q120245593 wd:Q55 wd:Q100 } ?entity wdt:P2002 ?username . }

Which of these organizations — CLARIAH-NL, the Netherlands, or Boston — have a Twitter account, and what are their usernames?

Show me the X (Twitter) handles for CLARIAH-NL, the Netherlands, and Boston if they exist.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "CLARIAH_NL" ) } }


Question: Image of the person with SNAC ARK ID w6qz2cqq

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

What image is linked to the SNAC ARK ID w6qz2cqq?

Can you find the Wikimedia Commons image for the individual identified by the SNAC ARK ID w6qz2cqq?

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


Question: Who are the humans with the surname "Houitte"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?label WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P734 wd:Q98218784 .
  OPTIONAL {
    ?person rdfs:label ?label
    FILTER(LANG(?label) = 'fr')
  }
}

Can you list French people whose last name is Houitte?

Which individuals are known to have the family name Houitte and are classified as humans?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Houitte"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: South African artists with DACS IDs

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 ?artist ?artistLabel ?dacsId WHERE {
  ?artist wdt:P4663 ?dacsId .
  ?artist wdt:P27 wd:Q258 .
  ?artist rdfs:label ?artistLabel .
  FILTER(LANG(?artistLabel) = "en")
}
ORDER BY ASC(?artistLabel)

Who are the South African artists that have a DACS ID, and what are their IDs?

List all South African artists registered with the DACS organization, sorted alphabetically by name, along with their DACS identification numbers.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P4663> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q258> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var1Label )


Question: Image of Randall Davidson with SNAC ARK ID w68g9ngp

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

What is the image of the person identified by the SNAC ARK ID w68g9ngp?

Show me the Wikimedia Commons image associated with the SNAC ARK ID w68g9ngp.

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


Question: What is the image of Balcomb Greene in the SNAC database?

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

Show the Wikimedia Commons image associated with the SNAC ARK ID w6ww7tw3.

Can you find the picture linked to the SNAC identifier w6ww7tw3?

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


Question: Is there a movie in Wikidata with the IMDb ID tt0999971?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P345 "tt0999971" .
}

Does the film "Diary of a Nanny 1" have an entry in Wikidata?

Can you confirm that tt0999971 is a valid IMDb identifier for a Wikidata item?

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


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

SELECT ?movie WHERE { ?movie wdt:P345 "tt0094500" } LIMIT 1

Which movie on Wikidata has the IMDb identifier tt0094500?

Find the Wikidata entity for the film identified by tt0094500 on IMDb.

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


Question: What movie has the IMDb ID tt0002844?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P345 "tt0002844" .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANGMATCHES( LANG( ?itemLabel ) , "en" ) )
}

Can you tell me the title of the film identified by tt0002844 on IMDb?

Is there a film in Wikidata with the IMDb identifier tt0002844, and what is its name?

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


Question: What academic discipline has the GND ID 4062862-0?

SELECT ?discipline ?disciplineLabel WHERE { ?discipline wdt:P227 "4062862-0" . ?discipline rdfs:label ?disciplineLabel . FILTER(LANG(?disciplineLabel) = "en") }

Which entity in Wikidata is identified by the German National Library ID 4062862-0?

Can you tell me the name of the field associated with GND ID 4062862-0?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "4062862-0". } LIMIT 1


Question: What is the German label and description of Bayer?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label ?description WHERE {
  wd:Q152051 rdfs:label ?label .
  wd:Q152051 schema:description ?description .
  FILTER ( LANG( ?label ) = "de" ) FILTER ( LANG( ?description ) = "de" )
}

Can you show me how Bayer is described in German?

What does the German Wikipedia page say about Bayer AG?

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


Question: Westerland in German: English names, GND and GeoNames IDs, and coordinates

SELECT DISTINCT ?place ?placeLabel ?englishLabel ?gndId ?geonamesId ?coordinates WHERE { ?place rdfs:label "Westerland" @de . ?place wdt:P625 ?coordinates . OPTIONAL { ?place wdt:P227 ?gndId . } OPTIONAL { ?place wdt:P1566 ?geonamesId . } OPTIONAL { ?place rdfs:label ?englishLabel . FILTER (LANG(?englishLabel) = "en") } }

What are the geographic locations named "Westerland" in German, and what are their English names, GND IDs, GeoNames IDs, and coordinates?

Show me all places called "Westerland" in German, along with their English labels, GND and GeoNames identifiers, and geographic coordinates.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Westerland"@de . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P227> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var4 . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: How many cultural heritage monuments in Hesse (denkXweb) have each number of statements in Wikidata?

SELECT ?statementCount (COUNT(*) AS ?itemCount)
WHERE {
  {
    SELECT ?item (COUNT(?statement) AS ?statementCount)
    WHERE {
      ?item wdt:P1769 ?id .
      ?item ?p ?statement .
      FILTER(STRSTARTS(STR(?p), 'http://www.wikidata.org/prop/'))
    }
    GROUP BY ?item
  }
}
GROUP BY ?statementCount
ORDER BY ?statementCount

For each possible number of statements, how many Hesse cultural heritage monuments in Wikidata have exactly that many statements?

Show me a breakdown of how many Hesse heritage sites in Wikidata have 4 statements, 5 statements, 7 statements, etc., based on their denkXweb IDs.

SELECT ?var1 ( COUNT (* ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P1769> ?var4 ; <http://wikiba.se/ontology#statements> ?var1 . } GROUP BY ?var1 ORDER BY ASC( ?var1 )


Question: What properties are commonly associated with cities and their types (like towns or villages)?

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 ?subclass ?subclassLabel ?property ?propertyLabel WHERE {
  wd:Q515 wdt:P279 * ?subclass .
  ?subclass wdt:P279 * wd:Q486972 .
  ?subclass wdt:P1963 ?property .
  ?subclass rdfs:label ?subclassLabel .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?subclassLabel ) = 'en' ) FILTER ( LANG( ?propertyLabel ) = 'en' )
}
ORDER BY ?subclass ?property

Which data fields, such as population or country, are typically used to describe cities and other human settlements?

Can you list the properties that apply to cities and their subclasses within the category of human settlements?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q515> AS ?var5 ). ?var5 <http://www.wikidata.org/prop/direct/P279> * ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P1963> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . } }


Question: What are the top 10 Wikidata properties and their classification types under "data element"?

SELECT ?property ?propertyLabel ( GROUP_CONCAT( DISTINCT ?propertyTypeLabel ; SEPARATOR = ", " ) AS ?types ) WHERE { ?propertyType wdt:P279* wd:Q18616576 . ?property ( wdt:P31 / wdt:P279* ) ?propertyType . ?property rdfs:label ?propertyLabel . ?propertyType rdfs:label ?propertyTypeLabel . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyTypeLabel) = "en") } GROUP BY ?property ?propertyLabel LIMIT 10

Which Wikidata properties are classified as types of data elements, and what are their specific property types?

List the top 10 Wikidata properties in English along with the categories of property types they belong to, such as "identifier" or "authority control".

SELECT ?var1 ?var1Label ( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = ", " ) AS ?var3 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q18616576> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <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". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 ?var1Label LIMIT 10


Question: Members of the Social Democratic Party of Germany, their languages, and gender.

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 ?var1 ?var1Label ?var3 ?var4 ?var4Label WHERE {
  ?var1 wdt:P102 wd:Q49768 .
  OPTIONAL {
    ?var1 wdt:P1412 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P21 ?var4 .
  }
  ?var1 rdfs:label ?var1Label .
  ?var4 rdfs:label ?var4Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var4Label) = "en")
}
ORDER BY ASC(?var1Label)

Who are the members of the Social Democratic Party of Germany, what languages do they speak, and what is their gender?

List all members of the German Social Democratic Party along with their spoken languages and gender, sorted alphabetically by name.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q49768> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nds". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1416> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var4 . } } ORDER BY ASC( ?var6Label )ASC( ?var1Label )


Question: Stephen Alstrup publications from 1999 to 2019 with truncated English titles

SELECT ?year ?truncatedLabel WHERE { ?work wdt:P50 wd:Q28865053 . ?work wdt:P577 ?date . BIND(YEAR(?date) AS ?year) . ?work rdfs:label ?titleLabel . FILTER(LANG(?titleLabel) = "en") . BIND(SUBSTR(?titleLabel, 1, 20) AS ?truncatedLabel) } ORDER BY ?year

What are the publication years and first 20 characters of the English titles of works authored by Stephen Alstrup?

List Stephen Alstrup’s published works with their publication years and shortened English titles (first 20 characters).

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/Q28865053> . ?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/Q28865053> . ?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: French-labeled people with the surname Audic

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person ?personLabel WHERE {
  ?person wdt:P734 wd:Q25379765 .
  ?person wdt:P31 wd:Q5 .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "fr" )
}

Who are the people named Audic in French-speaking contexts?

List the French labels of all humans with the surname Audic.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Joël Audic"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Which Wikidata item has the Twitter username "RIOJournal"?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "RIOJournal" } }

What is the Wikidata entity associated with the X handle "RIOJournal"?

Find the organization or journal on Wikidata that uses "RIOJournal" as its X (Twitter) username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Elhuyar" ) ( "RIOJournal" ) ( "string5" ) ( "string6" ) ( "string7" ) } }


Question: People with the French alternative name "Hugo", their given names, and birth/death dates.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT ?person ?personLabel ?image ?givenName ?birthDate ?deathDate WHERE {
  ?person skos:altLabel "Hugo" @fr ; wdt:P31 wd:Q5 ; wdt:P735 ?givenName ; wdt:P569 ?birthDate ; wdt:P570 ?deathDate .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en" || LANG(?personLabel) = "fr")
}

Who are the people known as "Hugo" in French, and what are their given names and life dates?

Show me all humans who have "Hugo" as an alternative name in French, along with their given names and approximate birth and death years.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { BIND ( YEAR ( ?var4 ) AS ?var6 ). BIND ( YEAR ( ?var5 ) AS ?var7 ). ?var1 ?var8 "Hugo"@fr . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?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> "fr". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } }


Question: Current mayors of Calgary who hold office without an end date

SELECT ?person ?personLabel ?position ?positionLabel ?start ?end WHERE {  VALUES (?mayor) { (wd:Q30185) }  BIND(wd:Q4145705 AS ?council) .   ?person p:P39 ?statement .  ?statement ps:P39 ?position .  ?position wdt:P279* ?mayor .  ?position wdt:P361 ?council .   OPTIONAL { ?statement pq:P580 ?start . }  OPTIONAL { ?statement pq:P582 ?end . }   BIND(COALESCE(?end, "9999-12-31T00:00:00Z"^^xsd:dateTime) AS ?endCoalesced)  FILTER(?endCoalesced >= NOW())   OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }  OPTIONAL { ?position rdfs:label ?positionLabel . FILTER(LANG(?positionLabel) = "en") }} ORDER BY ?person ?position ?start ?end

Who are the current mayors of Calgary, and when did they start their term?

List all people who are currently serving as mayor of Calgary, along with their full names and the position title.

SELECT ?var1 ?var2 ?var2Label ?var3Label ?var4 ?var4Label ?var5 ?var6 ?var7 ?var7Label ?var8Label ?var9Label WHERE { VALUES ( ?var7 ) { ( <http://www.wikidata.org/entity/Q30185> ) } BIND ( <http://www.wikidata.org/entity/Q4145705> AS ?var8 ). OPTIONAL { ?var8 <http://www.wikidata.org/prop/direct/P1001> ?var9 . } ?var2 <http://www.wikidata.org/prop/P39> ?var1 . ?var1 <http://www.wikidata.org/prop/statement/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P279> * ?var7 . ?var4 <http://www.wikidata.org/prop/direct/P361> ?var8 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P1001> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/qualifier/P580> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/qualifier/P582> ?var6 . } BIND ( COALESCE ( ?var6 , "9999-12-31T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) AS ?var10 ). FILTER ( ( ( ?var10 >= NOW ( ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )ASC( ?var4 )ASC( ?var5 )ASC( ?var6 )


Question: What are the gene variants that predict a better prognosis for colorectal cancer, and which genes are they variants of?

SELECT ?geneLabel ?variantLabel WHERE {
  VALUES (?disease) { (wd:Q188874) }
  ?variant wdt:P3358 ?disease ;
        wdt:P3433 ?gene .
  ?gene rdfs:label ?geneLabel .
  ?variant rdfs:label ?variantLabel .
  FILTER(LANG(?geneLabel) = "en")
  FILTER(LANG(?variantLabel) = "en")
}

List the biological variants associated with improved outcomes in colorectal cancer and their corresponding parent genes.

Which genes have variants that serve as positive prognostic markers for colorectal cancer?

SELECT ?var1Label ?var2Label WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q188874> ) } ?var2 <http://www.wikidata.org/prop/direct/P3358> ?var3 ; <http://www.wikidata.org/prop/direct/P3433> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: Which Wikidata item is linked to the Twitter username 'elonmusk'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "elonmusk"
  }
}

Who has the Twitter handle 'elonmusk' on Wikidata?

Show me the entity on Wikidata that has the X (Twitter) username 'elonmusk'.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "stksfvbs" ) ( "PMKaiponen" ) } }


Question: Music singles starting with "The Memory" and their performers.

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 ?single ?singleLabel ?performer WHERE {
  ?single wdt:P31 wd:Q134556 ; rdfs:label ?singleLabel .
  ?single wdt:P175 ?performer .
  FILTER(LANG(?singleLabel) = "en")
  FILTER(STRSTARTS(?singleLabel , "The Memory"))
}
LIMIT 10

Which music singles have titles starting with "The Memory", and who performed them?

Show me the English titles of music singles that begin with "The Memory" and list the artists who performed them.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( ?var1Label , "The Memory" ) ) ) . } LIMIT 10


Question: What property is most commonly used to link Transfermarkt as a value in Wikidata?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?property(COUNT(?property) AS ?count) WHERE {
  ?item ?usedProperty wd:Q2449070 .
  ?property wikibase:directClaim ?usedProperty .
  ?property rdf:type wikibase:Property .
}
GROUP BY ?property
ORDER BY DESC(?count)
LIMIT 1

Which Wikidata property has Transfermarkt as its value the most times?

How is Transfermarkt most frequently referenced as a source in Wikidata, and which property is used for that?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q2449070> . ?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: What is the English label of the property that describes how customers use products?

SELECT ?label WHERE { wd:P2283 rdfs:label ?label . FILTER (LANG(?label) = "en") }

Which property in Wikidata indicates that a customer uses a product, and what is its English name?

How is the relationship between a customer and a product expressed in Wikidata, in English?

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q852835> ?var2 <http://www.wikidata.org/entity/Q2424752> . ?var3 ?var4 ?var2 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . }


Question: Authors of the article "The association of asthma, nasal allergies, and positive skin prick tests with obesity, leptin, and adiponectin" and their ORCID IDs, with URLs generated from names if ORCID is missing.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?author ?authorLabel ( COALESCE ( ?orcid , CONCAT ( "https://orcid.org/" , ENCODE_FOR_URI( ?authorLabel ) ) ) AS ?orcidUrl ) WHERE {
  wd:Q47522274 wdt:P50 ?author .
  OPTIONAL {
    ?author wdt:P496 ?orcid .
  }
  ?author rdfs:label ?authorLabel .
  FILTER ( LANG( ?authorLabel ) = "en" )
}

Who are the authors of the 2014 scientific article on asthma and obesity, and what are their ORCID identifiers or fallback URLs based on their names?

List the English names of all authors of the article on asthma and obesity, along with their ORCID IDs; if an ORCID is not available, generate a link using their name.

SELECT ?var1 ?var1Label ( COALESCE ( ?var2 , CONCAT ( "string1", ENCODE_FOR_URI ( ?var1Label ) ) ) AS ?var3 ) WHERE { <http://www.wikidata.org/entity/Q47522274> <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 is the English name of the TV series that includes the episode "Cripples, Bastards, and Broken Things"?

SELECT ?series ?seriesLabel WHERE { wd:Q3150755 wdt:P179 ?series . ?series rdfs:label ?seriesLabel . FILTER (LANG(?seriesLabel) = "en") } LIMIT 50

Which TV series is "Cripples, Bastards, and Broken Things" an episode of? (in English)

Please provide the English label of the series that the episode "Cripples, Bastards, and Broken Things" belongs to.

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


Question: Image of Carlo Fontana with SNAC ARK ID w6qv6990

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

What is the image associated with Carlo Fontana in Wikidata, given his SNAC ARK ID is w6qv6990?

Show me the Wikimedia Commons image of the Italian architect Carlo Fontana, identified by the SNAC ARK ID w6qv6990.

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


Question: What properties are used for Hulk in Wikidata, along with their labels, how many values each has, and what those values are?

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

For the Marvel character Hulk, what are the English labels of the properties that describe him, how many values does each property have, and what are the English labels of those values?

List all properties of Hulk in English, including the count of values and the labels of those values, grouped by property.

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


Question: List inns with their English names, geographic coordinates, and images from Wikimedia Commons.

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

What are the English names, locations, and images of all inns in Wikidata?

Show me the English labels, coordinates, and associated images of all establishments classified as inns, including those without coordinates or images.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q256020> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en,ca,gl,eu,fr,de,it". } }


Question: Common names of species in the genus Mus

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 ?species ?speciesLabel ?commonName WHERE {
  ?species wdt:P171 wd:Q39275 .
  ?species wdt:P1843 ?commonName .
  ?species rdfs:label ?speciesLabel .
  FILTER(LANG(?speciesLabel) = "en")
}

What are the common names of the mouse species belonging to the genus Mus?

List the English names of mouse species under the genus Mus and their common names in other languages.

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


Question: Portuguese labels and descriptions of causes of death in Wikidata

SELECT ?cause ?causeLabel ?causeDescription WHERE { ?person wdt:P509 ?cause . ?cause rdfs:label ?causeLabel . ?cause schema:description ?causeDescription . FILTER (langMatches(lang(?causeLabel), "pt")) FILTER (langMatches(lang(?causeDescription), "pt")) } LIMIT 100

What are the causes of death that have Portuguese labels and descriptions on Wikidata?

Show me up to 100 causes of death with their Portuguese labels and descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P509> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "pt" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "pt" ) ) ) . } LIMIT 100


Question: What are some rock music bands from Spain?

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 ?var1 ?var1Label WHERE {
  ?var1 wdt:P31 wd:Q215380 .
  ?var1 wdt:P136 wd:Q11399 .
  ?var1 wdt:P495 wd:Q29 .
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
}

List English-named musical groups from Spain that play rock music.

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


Question: Image of Willis A. Gorman from SNAC ARK ID w69w0h51

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w69w0h51?

Show me the picture of the person whose SNAC ARK ID is w69w0h51.

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


Question: English label and description of the person with KVAB member ID 979.

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

Who is the Belgian physicist with KVAB member ID 979, and what is their English description?

Show me the name and English description of the person identified as member 979 in the Royal Flemish Academy of Belgium for Science and the Arts.

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


Question: Who have been the United States Ambassadors to China, and when did each of them start their term?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?person ?personLabel ?startDate WHERE {
  ?person p:P39 [ ps:P39 wd:Q7889282 ; pq:P580 ?startDate ] .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}

List the people who held the position of United States Ambassador to China along with the start dates of their appointments.

When did each U.S. Ambassador to China begin their service?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P39> [ <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q7889282> ; <http://www.wikidata.org/prop/qualifier/P580> ?var2 ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "zh,en". } }


Question: What Dutch films are not listed on MovieMeter?

SELECT ?film WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P495 wd:Q55 . MINUS { ?film wdt:P1970 ?movieMeterId . } }

Can you list films from the Netherlands that don't have a MovieMeter identifier?

Which films originating in the Netherlands lack a MovieMeter ID?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q55> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1970> ?var2 . } } GROUP BY ?var1


Question: Humans named Jean Lamy in French

SELECT ?person WHERE { ?person rdfs:label "Jean Lamy" @fr . ?person wdt:P31 wd:Q5 . }

Who are the people named Jean Lamy in French?

List all individuals in Wikidata with the French name "Jean Lamy".

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Jean Lamy"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: List all municipalities in Valladolid Province, Spain, with their INE code, population, area, elevation, postal code, coordinates, official website, coat of arms, and native name.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?municipality ?ineCode ?coordinates ?population ?postalCode ?area ?elevation ?website ?coatOfArms ?nativeLabel WHERE {
  ?municipality wdt:P31 wd:Q2074737 .
  ?municipality wdt:P131 wd:Q71097 .
  OPTIONAL {
    ?municipality wdt:P772 ?ineCode .
  }
  OPTIONAL {
    ?municipality wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?municipality wdt:P1082 ?population .
  }
  OPTIONAL {
    ?municipality wdt:P281 ?postalCode .
  }
  OPTIONAL {
    ?municipality wdt:P2046 ?area .
  }
  OPTIONAL {
    ?municipality wdt:P2044 ?elevation .
  }
  OPTIONAL {
    ?municipality wdt:P856 ?website .
  }
  OPTIONAL {
    ?municipality wdt:P94 ?coatOfArms .
  }
  OPTIONAL {
    ?municipality wdt:P1705 ?nativeLabel .
  }
}
ORDER BY ASC(?ineCode)

What are the population, area, elevation, and other details of each municipality in Valladolid Province, Spain?

Please provide a comprehensive list of Spanish municipalities in Valladolid Province, including their INE codes, population figures, geographic coordinates, official websites, and coat of arms images.

SELECT DISTINCT ?var1 ?var2 ?var3Label ?var4 ?var5 ?var6 ?var7 ?var8 ?var9 ?var10 ?var11 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q2074737> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q71097> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var11 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P772> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P6> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P281> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2046> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2044> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P94> ?var10 . } } ORDER BY ASC( ?var2 )


Question: Sources of 2015 population data for Swedish urban areas and their usage counts.

SELECT ?source ?sourceLabel (COUNT(*) AS ?populationSourceCount) WHERE {
  ?urbanArea wdt:P31 wd:Q12813115 .
  ?urbanArea p:P1082 ?populationStmt .
  ?populationStmt ps:P1082 ?populationValue ;
                 pq:P585 "2015-12-31T00:00:00Z"^^xsd:dateTime .
  ?populationStmt prov:wasDerivedFrom ?reference .
  ?reference pr:P248 ?source .
  OPTIONAL {
    ?source rdfs:label ?sourceLabel .
    FILTER(LANG(?sourceLabel) = "en")
  }
}
GROUP BY ?source ?sourceLabel
ORDER BY DESC(?populationSourceCount)
LIMIT 20

Which publications or databases provided population figures for Swedish urban areas in 2015, and how many areas relied on each source?

Show me the sources cited for the 2015 population data of Swedish urban areas, along with how many urban areas each source was used for.

SELECT ?var1 ?var1Label ( COUNT (* ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12813115> . ?var3 <http://www.wikidata.org/prop/direct/P775> ?var4 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P776> ?var5 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/P1082> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P1082> ?var7 ; <http://www.wikidata.org/prop/qualifier/P585> ?var8 . OPTIONAL { ?var6 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var9 . ?var9 <http://www.wikidata.org/prop/reference/P248> ?var1 . } FILTER ( ( ( ?var8 = "2015-12-31T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/P1082> [ <http://www.wikidata.org/prop/statement/P1082> ?var10 ; <http://www.wikidata.org/prop/qualifier/P585> ?var11 ] . FILTER ( ( ( ?var11 = "2010-12-31T00: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> "sv,en". } } GROUP BY ?var1 ?var1Label


Question: Image of the person with SNAC ARK ID w6x16wz4

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

What is the image associated with Carol Channing in Wikidata?

Can you show me the Wikimedia Commons image for the individual identified by the SNAC ARK ID w6x16wz4?

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


Question: Classes in Wikidata with Franco-Provençal labels and descriptions

SELECT ?class ?label ?description WHERE { ?class rdfs:label ?label . ?class schema:description ?description . FILTER (LANG(?label) = "frc") . FILTER (LANG(?description) = "frc") } LIMIT 100

Which items in Wikidata have both a label and a description in Franco-Provençal?

Show me up to 100 items from Wikidata that have labels and descriptions in the Franco-Provençal language.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> ?var1 . } LIMIT 100 } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "frc" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "frc" ) ) ) . } LIMIT 100


Question: List 100 examples of volcanoes.

SELECT ?volcano WHERE { ?volcano wdt:P31 wd:Q8072 . } LIMIT 100

What are some volcanoes listed in Wikidata?

Can you show me 100 items that are classified as volcanoes in Wikidata?

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


Question: What is the image of Leinestraße U-Bahn station?

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

Show the Wikimedia Commons image associated with Leinestraße station.

What picture represents Leinestraße on Wikidata?

SELECT * WHERE { BIND ( <http://www.wikidata.org/entity/Q668563> AS ?var1 ). <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . ?var3 ?var4 ?var2 . }


Question: What properties are used to describe the "Hello, world!" program in Wikidata?

SELECT DISTINCT ?property ?propertyLabel ?propertyDescription WHERE { ?property wikibase:directClaim ?directProperty . wd:Q131303 ?directProperty ?value . ?property a wikibase:Property . ?property rdfs:label ?propertyLabel . ?property schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") } LIMIT 100

Can you list the English labels and descriptions of all properties associated with the "Hello, world!" program?

Which attributes, such as image or inventor, are linked to the "Hello, world!" program in Wikidata, and what do they mean?

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


Question: Wikidata properties with English labels and their types, sorted by type.

SELECT ?property ?propertyLabel ?propertyType WHERE { ?property wikibase:propertyType ?propertyType . ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } ORDER BY ASC(?propertyType)

What are all the Wikidata properties, their English labels, and what types do they have, ordered by type?

Please list all Wikidata properties along with their English names and their data types, sorted alphabetically by type.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://wikiba.se/ontology#propertyType> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } } ORDER BY ASC( ?var2 )


Question: French Nobel Prize in Literature winners with award year and image

SELECT DISTINCT ?person ?personLabel ?awardLabel (SAMPLE(?date) AS ?awardYear) (SAMPLE(?image) AS ?imageURL) WHERE { ?person wdt:P27 wd:Q142 . ?person p:P166 ?awardStatement . ?awardStatement ps:P166 wd:Q37922 ; pq:P585 ?date . OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . wd:Q37922 rdfs:label ?awardLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?awardLabel) = "en") } GROUP BY ?person ?personLabel ?awardLabel ORDER BY ASC(?awardYear)

Who are the French recipients of the Nobel Prize in Literature, and in which years did they win, along with their images?

List all French Nobel laureates in Literature in chronological order, including the year they won and a link to their image.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3Label ( SAMPLE ( ?var4 ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var7 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . ?var1 <http://www.wikidata.org/prop/P166> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P166> ?var9 ; <http://www.wikidata.org/prop/qualifier/P585> ?var4 . VALUES ( ?var9 ?var3Label ) { ( <http://www.wikidata.org/entity/Q37922> "string1" ) } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ?var2 ?var3Label ORDER BY ASC( ?var5 )


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

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

Which movie has the IMDb identifier tt5662906, and what is its English name?

Find the English label for the film listed on IMDb as tt5662906.

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


Question: House cats born in the United States with their Wikipedia pages and images.

SELECT DISTINCT ?cat ?catLabel ?wikipediaPage (SAMPLE(?image) AS ?sampledImage) WHERE { ?cat wdt:P31 wd:Q146 . ?cat wdt:P19 wd:Q30 . OPTIONAL { ?cat wdt:P18 ?image . } OPTIONAL { ?wikipediaPage schema:about ?cat . ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> . } ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") } GROUP BY ?cat ?catLabel ?wikipediaPage LIMIT 50

Which house cats were born in the United States, and what are their English Wikipedia pages and images?

Show me a list of house cats born in the United States, including their names, English Wikipedia links, and one representative image each.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q146> . ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q30> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE],en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } GROUP BY ?var1 ?var1Label ?var2 ?var4 LIMIT 50


Question: Scholarly articles and textbooks and their main topics

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?work ?subjectLabel WHERE {
  VALUES ?type {
    wd:Q13442814 wd:Q7433672 wd:Q10870555 wd:Q18918145 wd:Q83790 wd:Q187685 wd:Q732577
  }
  ?work wdt:P31 ?type .
  ?work wdt:P921 ?subject .
  ?subject rdfs:label ?subjectLabel .
}
LIMIT 10

What are the main subjects of scholarly articles, scientific books, textbooks, and other academic publications?

List the main topics of academic works like journal articles, theses, and reports.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q13442814> ) || ( ?var4 = <http://www.wikidata.org/entity/Q7433672> ) || ( ?var4 = <http://www.wikidata.org/entity/Q10870555> ) || ( ?var4 = <http://www.wikidata.org/entity/Q18918145> ) || ( ?var4 = <http://www.wikidata.org/entity/Q83790> ) || ( ?var4 = <http://www.wikidata.org/entity/Q187685> ) || ( ?var4 = <http://www.wikidata.org/entity/Q732577> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P921> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OFFSET 0 LIMIT 10


Question: Does John Dikeman have a VIAF ID of 303139372?

Is there a Wikidata item associated with the VIAF identifier 303139372?

Confirm whether the Virtual International Authority File ID 303139372 is linked to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "303139372". }


Question: List academic publications such as scholarly articles, textbooks, and reports published after 2010.

SELECT ?publication ?publicationDate WHERE { ?publication wdt:P31 ?publicationType . VALUES ?publicationType { wd:Q13442814 wd:Q7433672 wd:Q10870555 wd:Q18918145 wd:Q83790 wd:Q187685 wd:Q732577 } ?publication wdt:P577 ?publicationDate . FILTER ( ?publicationDate > "2010-01-01T00:00:00Z"^^xsd:dateTime ) } LIMIT 10

What are some scholarly articles, scientific books, and other academic publications released after 2010, and when were they published?

Show me the titles and publication dates of academic works like theses, reports, and journal articles from 2011 onwards.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 . FILTER ( ( ( ?var3 = <http://www.wikidata.org/entity/Q13442814> ) || ( ?var3 = <http://www.wikidata.org/entity/Q7433672> ) || ( ?var3 = <http://www.wikidata.org/entity/Q10870555> ) || ( ?var3 = <http://www.wikidata.org/entity/Q18918145> ) || ( ?var3 = <http://www.wikidata.org/entity/Q83790> ) || ( ?var3 = <http://www.wikidata.org/entity/Q187685> ) || ( ?var3 = <http://www.wikidata.org/entity/Q732577> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . FILTER ( ( ( ?var2 > "2010-00-00T00:00:00+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } OFFSET 0 LIMIT 10


Question: Who are the people associated with The X-Files as their notable work on Wikidata?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?statement WHERE {
  ?statement ps:P800 wd:Q2744 .
  ?person p:P800 ?statement .
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY ?person

Which individuals have The X-Files listed as a notable work in their Wikidata profile?

List the names of people who worked on The X-Files, as recorded in Wikidata.

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


Question: What are the details of Michael Jackson's song "Beat It", including its genre, release date, album, YouTube ID, and performer's image?

SELECT DISTINCT
  ?work ?workLabel
  ?performer ?performerLabel
  ?genre ?genreLabel
  ?publicationDate
  ?partOf ?partOfLabel
  ?youTubeId
  ?performerImage
WHERE {
  wd:Q210218 wdt:P31 wd:Q105543609 ;
             rdfs:label ?workLabel ;
             wdt:P175 ?performer ;
             wdt:P136 ?genre ;
             wdt:P577 ?publicationDate ;
             wdt:P361 ?partOf ;
             wdt:P1651 ?youTubeId .

  ?performer rdfs:label ?performerLabel ;
             wdt:P18 ?performerImage .

  ?partOf rdfs:label ?partOfLabel .
}
LIMIT 1

Show me information about the song "Beat It" — who performed it, what genre is it, when was it released, which album is it from, its YouTube ID, and a picture of the performer.

Can you provide the publication date, genre, part of (album), YouTube video ID, and image of Michael Jackson for the musical work "Beat It"?

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label ?var6 ?var3 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var1 <http://www.wikidata.org/prop/direct/P175> ?var2 ; <http://www.wikidata.org/prop/direct/P136> ?var3 ; <http://www.wikidata.org/prop/direct/P577> ?var5 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P361> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1651> ?var7 . } ?var2 <http://www.wikidata.org/prop/direct/P18> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q210218> ) ) ) . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q2831> ) ) ) . } LIMIT 10


Question: French labels and descriptions of properties used on the Rhône department.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?property ?propertyLabel ?propertyDescription WHERE {
  wd:Q46130 ?property ?value .
  FILTER(STRSTARTS(STR(?property) , "http://www.wikidata.org/prop/direct/"))
  .
  BIND(IRI(CONCAT("http://www.wikidata.org/entity/" , SUBSTR(STR(?property) , 37))) AS ?propEntity)
  .
  ?propEntity rdfs:label ?propertyLabel .
  ?propEntity schema:description ?propertyDescription .
  FILTER(LANG(?propertyLabel) = "fr")
  .
  FILTER(LANG(?propertyDescription) = "fr")
}
LIMIT 100

What are the French labels and descriptions of the properties associated with the Rhône department in Wikidata?

Show me the French labels and descriptions of all properties that are used to describe the Rhône department.

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


Question: What Spanish-language properties and values are associated with Barcelona?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?var1Label ?var2Label ?var3Label WHERE {
  BIND( wd:Q1492 AS ?var1 ) .
  ?var1 ?property ?value .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?var2Label .
  ?value rdfs:label ?var3Label .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var3Label ) = "es" ) .
  FILTER ( LANG( ?var2Label ) = "es" ) .
  FILTER ( LANG( ?var1Label ) = "es" ) .
}

In Spanish, what are the properties that link Barcelona to other entities, and what are those entities called?

Show me all Spanish labels of the relationships and their values for the city of Barcelona.

SELECT DISTINCT ?var1Label ?var2Label ?var3Label WHERE { BIND ( <http://www.wikidata.org/entity/Q1492> AS ?var1 ). ?var1 ?var4 ?var5 . ?var6 ?var7 ?var4 . ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var3Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "es" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "es" ) ) ) . }


Question: Items citing the article "Current aspects of modes of action of dapsone"

SELECT ?citingItem ?citingItemLabel ?propertyLabel WHERE { ?citingItem wdt:P2860 wd:Q39551898 . wd:P2860 rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") ?citingItem rdfs:label ?citingItemLabel . FILTER(LANG(?citingItemLabel) = "en") } LIMIT 100

Which scientific papers cite the article on the current aspects of dapsone's mode of action?

List all works that reference the study on dapsone's mechanisms of action.

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


Question: Is Pays de Caux a type of software?

Does the category of Pays de Caux include software, either directly or through inheritance?

Could Pays de Caux be considered a kind of software based on its classification in Wikidata?

ASK WHERE { <http://www.wikidata.org/entity/Q1640051> ( <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: What are the units of measurement used in Wikidata, excluding those used for price, SI conversion, or based-on relationships?

SELECT DISTINCT ?unit WHERE { [] wikibase:quantityUnit ?unit . ?unit wdt:P31/wdt:P279* wd:Q47574 . MINUS { ?unit wdt:P2370 [] . } MINUS { ?unit wdt:P144 [] . } MINUS { ?unit wdt:P2284 [] . } MINUS { ?unit wdt:P2442 [] . } }

Which entities in Wikidata are used as units of measurement and are not misused as conversion factors, prices, or adaptations of other works?

List all valid units of measurement in Wikidata that are not incorrectly assigned as price values, SI conversion targets, or based-on references.

SELECT DISTINCT ?var1 WHERE { [] <http://wikiba.se/ontology#quantityUnit> ?var1 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2370> [] . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P144> [] . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2284> [] . } MINUS { ?var1 <http://www.wikidata.org/prop/direct/P2442> [] . } } GROUP BY ?var1


Question: What are the English labels of properties and objects associated with the wolverine?

SELECT DISTINCT ?wolverineLabel ?propertyLabel ?objectLabel WHERE { wd:Q14334 ?property ?object . ?propertyEntity wikibase:directClaim ?property . ?propertyEntity rdfs:label ?propertyLabel . ?object rdfs:label ?objectLabel . wd:Q14334 rdfs:label ?wolverineLabel . FILTER (LANG(?wolverineLabel) = "en") FILTER (LANG(?propertyLabel) = "en") FILTER (LANG(?objectLabel) = "en") }

For the wolverine, what are the English labels of the properties used in its statements and the corresponding object labels?

Show me all the statements about the wolverine in English, including the property names and object values.

SELECT DISTINCT ?var1Label ?var2Label ?var3Label WHERE { BIND ( <http://www.wikidata.org/entity/Q14334> AS ?var1 ). ?var1 ?var4 ?var5 . ?var6 ?var7 ?var4 . ?var6 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Films shot at the Seine River and their filming qualifiers

SELECT ?film ?statement (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { { SELECT DISTINCT ?film ?statement WHERE { ?statement ps:P915 wd:Q1471 . ?film p:P915 ?statement . } } OPTIONAL { ?statement ?qualifierProperty ?value . ?qualifierProperty wdt:P2302 wd:P915 . } } GROUP BY ?film ?statement

Which films were filmed at the Seine River, and what additional details (like time or location specifics) are recorded about those filming locations?

List all films that have the Seine River as a filming location, along with any qualifier information attached to those filming location statements.

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


Question: What are some examples of ethnic slurs in English?

SELECT DISTINCT ?slur ?slurLabel WHERE { { ?slur wdt:P31 wd:Q1371427 . ?slur rdfs:label ?slurLabel . FILTER(LANG(?slurLabel) = "en") } UNION { ?slur wdt:P31 wd:Q1371427 . ?slur ontolex:lexicalForm ?form . ?form ontolex:form ?slurLabel . FILTER(LANG(?slurLabel) = "en") } } LIMIT 5000

Can you list the English-language terms used as ethnophaulisms (derogatory ethnic terms) in Wikidata?

Show me the English words and phrases that are classified as racial or ethnic slurs on Wikidata.

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


Question: Who is the person with AGORHA ID 77937, and what is their English label and description?

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

What is the name and English description of the architect identified by AGORHA ID 77937?

Please provide the English name and description of the individual linked to AGORHA ID 77937.

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


Question: What airports have runways made of materials other than concrete, asphalt, or gravel?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?airport ?airportLabel ?material ?materialLabel WHERE {
  ?airport p:P529 ?statement .
  ?statement pq:P186 ?material .
  ?material rdfs:label ?materialLabel .
  ?airport rdfs:label ?airportLabel .
  FILTER(LANG(?materialLabel) = "en")
  FILTER(LANG(?airportLabel) = "en")
  FILTER(?material NOT IN(wd:Q22657 , wd:Q133833 , wd:Q189259 , wd:Q202251 , wd:Q167510 , wd:Q643352))
}
LIMIT 100

Can you list the names of airports and the materials their runways are made from, excluding common paving materials like concrete and bitumen?

Which airports use unusual surfaces like grassland or loam for their runways instead of standard materials?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/P529> [ ?var5 ?var4 ] . ?var2 <http://wikiba.se/ontology#qualifier> ?var5 . FILTER ( ( ?var2 IN ( <http://www.wikidata.org/entity/P186> ) ) ) . FILTER ( ( ?var4 NOT IN ( <http://www.wikidata.org/entity/Q22657> , <http://www.wikidata.org/entity/Q133833> , <http://www.wikidata.org/entity/Q189259> , <http://www.wikidata.org/entity/Q202251> , <http://www.wikidata.org/entity/Q167510> , <http://www.wikidata.org/entity/Q643352> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 100


Question: What are the UniProt protein IDs and the species they are found in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?uniprotId ?taxon WHERE {
  ?protein wdt:P352 ?uniprotId .
  ?gene wdt:P688 ?protein ; wdt:P703 ?taxon .
}

For each protein identified by a UniProt ID, which species contain the gene that encodes it?

List all UniProt protein identifiers along with the species where their encoding genes are present.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P352> ?var1 . ?var4 <http://www.wikidata.org/prop/direct/P688> ?var3 ; <http://www.wikidata.org/prop/direct/P703> ?var2 . }


Question: Properties and values of Hanoi with property names in English

SELECT ?cityLabel ?property ?value ?propertyLabel WHERE { BIND( wd:Q1858 AS ?city ) . ?city ?property ?value . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") . ?city rdfs:label ?cityLabel . FILTER(LANG(?cityLabel) = "en") }

What are all the properties and their values for Hanoi, and what are their English labels?

Show me all the data about Hanoi, including the English names of the properties used.

SELECT ?var1Label ?var2 ?var3 ?var4Label WHERE { BIND ( <http://www.wikidata.org/entity/Q1858> AS ?var1 ). ?var1 ?var2 ?var3 . ?var4 <http://wikiba.se/ontology#directClaim> ?var2 . }


Question: Who is Aline Canellis, a person with a French label?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item WHERE {
  ?item rdfs:label "Aline Canellis" @fr .
  ?item wdt:P31 wd:Q5 .
}

Is there a human named Aline Canellis in French?

Find the human entity whose French label is 'Aline Canellis'.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "canellis"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Who is the football player with Transfermarkt ID 4733?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?player ?playerLabel WHERE {
  ?player wdt:P2446 "4733" .
  ?player rdfs:label ?playerLabel .
  FILTER ( LANG( ?playerLabel ) = "en" )
}

Does Wikidata contain information about a football player with the Transfermarkt ID 4733, and if so, who is it?

Find the name of the footballer in Wikidata whose Transfermarkt profile ID is 4733.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2446> "4733". }


Question: Composers and their musical works, including the type of work and the field of their work.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?composer ?composerLabel ?work ?workLabel ?workType ?workTypeLabel ?field ?fieldLabel WHERE {
  ?composer wdt:P31 wd:Q5 .
  ?composer wdt:P106 wd:Q36834 .
  ?work wdt:P86 ?composer .
  ?work wdt:P31 ?workType .
  ?composer wdt:P101 ?field .
}
LIMIT 100

Which human composers have created musical works, what types of works are they, and what are their fields of work?

List all composers along with the musical works they created, the category of each work (e.g., film, symphony), and the field they work in (e.g., film score).

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P86> ?var1 . ?var2 <http://www.wikidata.org/prop/direct/P31> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P425> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36834> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } } LIMIT 100


Question: What properties are commonly used to describe humans in Wikidata, excluding external identifiers like ORCID or ISBN?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?instanceType ?property WHERE {
  wd:Q42 wdt:P31 ?instanceType .
  ?instanceType wdt:P1963 ?property .
  FILTER NOT EXISTS {
    ?property wikibase:propertyType wikibase:ExternalId .
  }
}

Which attributes, such as occupation or nationality, are typically associated with people, according to Wikidata’s property usage patterns?

Show me the types of information (like field of work or citizenship) that are normally used when describing a human, but not external IDs.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q42> <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P1963> ?var2 . ?var2 <http://wikiba.se/ontology#claim> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es". } FILTER ( ( NOT EXISTS { ?var2 <http://wikiba.se/ontology#propertyType> <http://wikiba.se/ontology#ExternalId> . } ) ) . }


Question: Main subjects of works by Francesc Torres and how many works per subject

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 ?count ?subjectLabel WHERE {
  {
    SELECT ?subject ( COUNT( ?work ) AS ?count ) WHERE {
      ?work wdt:P50 wd:Q45372040 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC ( ?count )
  }
  ?subject rdfs:label ?subjectLabel .
  FILTER ( LANG( ?subjectLabel ) = "en" )
}

What are the main topics of the works authored by Francesc Torres, and how many works are there for each topic?

List the primary subjects of Francesc Torres’s publications along with the number of publications for each subject, in descending order of count.

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


Question: Which properties are most frequently used to link external resources to The Lord of the Rings (2001–2003 film trilogy)?

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

How many external resources are linked to The Lord of the Rings films via each property, and which ones are used more than once?

Show me the properties that connect more than one external resource to The Lord of the Rings movie trilogy, ordered by how often they’re used.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q1694177> . 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: Image of Milman Parry with SNAC ARK ID w6544pb1

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

What is the Wikimedia Commons image for Milman Parry, identified by SNAC ARK ID w6544pb1?

Show me the photograph of the person whose SNAC ARK ID is w6544pb1.

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


Question: What is the English description of Niger in the Great Russian Encyclopedia Online (old version)?

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

Can you tell me the name and description of the country with Great Russian Encyclopedia ID 2265040?

Which country has the ID 2265040 in the Great Russian Encyclopedia Online, and what is its English description?

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


Question: House cats with English Wikipedia pages and their language editions

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

Which house cats have English-language Wikipedia articles, and on which Wikipedia language editions can those articles be found?

List all famous house cats that have English names and the Wikipedia language versions that have articles about them.

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


Question: Who is the French-speaking human named Joël Barre?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?person WHERE {
  ?person rdfs:label "Joël Barre" @fr .
  ?person wdt:P31 wd:Q5 .
}

Find the human entity in Wikidata with the French label "Joël Barre".

What is the Wikidata item for the French official named Joël Barre?

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Joël Barré"@fr . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: Members of the Workers' Party in Brazil and their birthplaces.

SELECT DISTINCT ?member ?birthplace ?birthplaceLabel WHERE { ?member wdt:P102 wd:Q657089 . OPTIONAL { ?member wdt:P19 ?birthplace . ?birthplace rdfs:label ?birthplaceLabel . FILTER(LANG(?birthplaceLabel) = "pt") } }

Where were the members of the Workers' Party in Brazil born?

List the Brazilian politicians who are members of the Workers' Party and their places of birth in Portuguese.

SELECT ?var1 ?var2 ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q657089> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . } }


Question: Does the GND ID 126485550 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P227 "126485550" .
}

Is there a Wikidata item associated with the German National Library ID 126485550?

Confirm if the person with GND ID 126485550 is represented in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "126485550". }


Question: Who is the person with GND ID 1138206709?

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

What is the English label of the Wikidata item with GND identifier 1138206709?

Find the name in English of the individual identified by the German National Library ID 1138206709.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P227> "1138206709". }


Question: Is there a Wikidata item with VIAF ID 47883443?

Does the Virtual International Authority File identifier 47883443 exist in Wikidata?

Check if the VIAF ID 47883443 is linked to any person or entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "47883443". }


Question: Regions with Mount Everest as their highest point and their coordinates

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 ?region ?regionLabel ?coordinates WHERE {
  ?region wdt:P610 wd:Q513 .
  OPTIONAL {
    ?region wdt:P625 ?coordinates .
  }
  ?region wdt:P31 ?type .
  FILTER(?type IN(wd:Q6256 , wd:Q82794 , wd:Q5107 , wd:Q35657 , wd:Q173718))
  ?region rdfs:label ?regionLabel .
  FILTER(LANG(?regionLabel) = "en")
}

Which countries and regions have Mount Everest as their highest peak, and where are they located?

List the geographic regions that have Mount Everest as their highest point, along with their English labels and coordinates.

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


Question: What is the image of the person with SNAC ARK ID w63j481j?

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

Show me the Wikimedia Commons image associated with the SNAC ARK ID w63j481j.

Who is identified by the SNAC ARK ID w63j481j, and what does their portrait look like?

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


Question: People who died in 1336 with Greek labels

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?label ?deathDate WHERE {
  ?person wdt:P570 ?deathDate .
  OPTIONAL {
    ?person rdfs:label ?label .
    FILTER(LANG(?label) = "el")
  }
  FILTER(?deathDate >= "1336-01-01T00:00:00Z" ^^ xsd:dateTime && ?deathDate <= "1336-12-31T23:59:59Z" ^^ xsd:dateTime)
  FILTER(BOUND(?label))
}
ORDER BY ASC(?deathDate)

Who died in the year 1336 and have their names listed in Greek on Wikidata?

Show me the names in Greek of people who died between January 1 and December 31, 1336.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "336-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "336-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: English Wikipedia article titled "Albert Einstein" and its corresponding Wikidata item

SELECT DISTINCT ?item ?article WHERE { ?article schema:about ?item ; rdf:type schema:Article ; schema:name "Albert Einstein"@en . FILTER(STRSTARTS(STR(?article), "https://en.wikipedia.org/")) }

What Wikidata item is described by the English Wikipedia article "Albert Einstein"?

Show me the Wikidata entity and URL for the English Wikipedia page titled "Albert Einstein".

SELECT DISTINCT ?var1 ?var2 WHERE { ?var2 <http://schema.org/about> ?var1 . ?var2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> . ?var2 <http://schema.org/name> "string1"@en . }


Question: Does Markoosie Patsauq have a VIAF identifier?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?item wdt:P214 "287364231" .
}

Is there a Wikidata item for Markoosie Patsauq with the VIAF ID 287364231?

Confirm if the Virtual International Authority File ID 287364231 is assigned to any entity in Wikidata.

ASK WHERE { ?var1 <http://www.wikidata.org/prop/direct/P214> "287364231". }


Question: What are the 1000 most commonly used vehicles (like trains or trams) in public transport, ranked by how many operators use them, and who is one example user of each?

SELECT ?vehicle ?vehicleLabel ?usageCount ?exampleUserLabel WHERE { { SELECT ?vehicle (COUNT(*) AS ?usageCount) (SAMPLE(?user) AS ?exampleUser) WHERE { ?user wdt:P3438 ?vehicle . } GROUP BY ?vehicle ORDER BY DESC(?usageCount) LIMIT 1000 } ?vehicle rdfs:label ?vehicleLabel . ?exampleUser rdfs:label ?exampleUserLabel . FILTER(LANG(?vehicleLabel) = "en") FILTER(LANG(?exampleUserLabel) = "en") } ORDER BY DESC(?usageCount) ASC(?vehicle)

Which train, tram, or bus models are used the most across public transit systems, how many systems use each, and can you name one transit line that uses each?

Show me the top vehicles by usage count in public transport, including their names, how many times they’re used, and an example transit line that operates them.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var2 )( SAMPLE ( ?var4 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P3438> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "nl,en". } } ORDER BY DESC( ?var2 )ASC( ?var1 )


Question: What is the English description of the Broadway performer with IBDB ID 23743?

SELECT ?person ?personLabel ?description WHERE { ?person wdt:P1220 "23743" . OPTIONAL { ?person schema:description ?description . FILTER(LANG(?description) = "en") } }

Find the person in Wikidata who has the Internet Broadway Database ID 23743 and show their English description if available.

Who is the Broadway actor or actress identified by IBDB number 23743, and what is their English Wikipedia description?

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