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

SELECT ?item ?itemLabel WHERE { ?item wdt:P345 "tt0897387" . ?item rdfs:label ?itemLabel . FILTER(langMatches(lang(?itemLabel), "en")) }

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

Please provide the English title of the film identified by tt0897387 on IMDb.

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


Question: List mountains and their images from Wikimedia Commons, with English names.

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

What are the English names of mountains and their associated images on Wikimedia Commons?

Show me all mountains (with their English labels) and include their images if available — even if some don’t have images.

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


Question: List all plant species in the genus Psoralea.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?species WHERE {
  ?species wdt:P171 * wd:Q2589982 .
}

What are all the species that belong to the genus Psoralea?

Show me all the taxonomic descendants of the plant genus Psoralea, including its species and varieties.

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


Question: Is there a Wikidata item with IMDb ID tt6500934?

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

Does the movie or TV show with IMDb ID tt6500934 have a corresponding entry in Wikidata?

Check if the IMDb identifier tt6500934 is linked to any entity in Wikidata.

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


Question: What are Neil Young's occupations and his name?

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 ?neilYoungLabel ?occupationLabel WHERE {
  wd:Q633 rdfs:label ?neilYoungLabel .
  wd:Q633 wdt:P106 ?occupation .
  ?occupation rdfs:label ?occupationLabel .
  FILTER ( LANG( ?neilYoungLabel ) = "en" ) FILTER ( LANG( ?occupationLabel ) = "en" )
}

What is Neil Young's name and what jobs has he had?

Please list Neil Young's name along with all his occupations in English.

SELECT ?var1Label ?var2 ?var3Label WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> <http://www.wikidata.org/entity/Q633> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Polish-language TV shows or movies featuring Polish actors.

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 ?workLabel ?actorLabel WHERE {
  ?work wdt:P161 ?actor .
  ?actor wdt:P27 wd:Q36 .
  ?work rdfs:label ?workLabel .
  ?actor rdfs:label ?actorLabel .
  FILTER ( LANG( ?workLabel ) = "pl" ) .
  FILTER ( LANG( ?actorLabel ) = "pl" ) .
}
LIMIT 10

What are some Polish-language films or TV shows that have Polish actors?

Show me Polish titles of works with Polish cast members.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P161> ?var4 . ?var4 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q36> . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var1 ) = "pl" ) ) ) . FILTER ( ( ( LANG ( ?var2 ) = "pl" ) ) ) . VALUES ( ?var2 ) { ( "string1" ) } } LIMIT 10


Question: What is the species of plant known as Topinambur that belongs to the Angiosperms?

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 ?item ?label WHERE {
  ?item rdfs:label "Topinambur" @de .
  ?item wdt:P105 wd:Q7432 .
  ?item wdt:P171 * wd:Q25314 .
}

Which species, labeled "Topinambur" in German, is classified under Angiosperms?

Find the Wikidata item for the plant called Topinambur that is a species and part of the flowering plants clade.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q7432> . ?var1 <http://www.wikidata.org/prop/direct/P171> + <http://www.wikidata.org/entity/Q25314> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( STR ( ?var2Label ) = "Topinambur" ) ) ) . } LIMIT 100


Question: List library types without geographic coordinates.

SELECT ?library ?libraryLabel WHERE { ?library (wdt:P31/wdt:P279*) wd:Q7075 . OPTIONAL { ?library rdfs:label ?libraryLabel . FILTER(LANG(?libraryLabel) = 'en') } MINUS { ?library wdt:P625 ?coordinate . } } LIMIT 100

What are the types of libraries that do not have a specified location?

Show me all kinds of libraries, including subclasses, that are not associated with any geographic coordinates, along with their English labels.

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


Question: Preferred label (EN>DE>FR>IT), image, coordinates, and English Wikipedia article for KIOS foundation.

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

What is the English (or fallback: German, French, Italian) label, image, coordinates, and English Wikipedia page for the KIOS human rights foundation?

Please provide the highest-priority label (in English first, then German, French, or Italian), along with any image, coordinates, and English Wikipedia link for the organization Q18690587 (KIOS).

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


Question: What is the most specific shared administrative category between Wakefield, New Hampshire and New York City?

SELECT ?commonAncestor ?dist1 ?dist2 (?dist1 + ?dist2 AS ?sumDistances)
WHERE {
  {
    SELECT ?ancestor1 (COUNT(?mid1) AS ?dist1)
    WHERE {
      wd:Q2154459 wdt:P279* ?mid1 .
      ?mid1 wdt:P279* ?ancestor1 .
    }
    GROUP BY ?ancestor1
  }
  {
    SELECT ?ancestor2 (COUNT(?mid2) AS ?dist2)
    WHERE {
      wd:Q1093829 wdt:P279* ?mid2 .
      ?mid2 wdt:P279* ?ancestor2 .
    }
    GROUP BY ?ancestor2
  }
  FILTER(?ancestor1 = ?ancestor2)
  BIND(?ancestor1 AS ?commonAncestor)
}
ORDER BY ASC(?sumDistances)
LIMIT 1

What is the lowest common subclass in Wikidata for New England towns and cities in the United States?

Which U.S. municipal classification do both Wakefield, NH and New York City belong to as their most specific shared type?

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/Q2430147> ; <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/Q60> ; <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 bird clade that is 13 taxonomic levels above the tit family?

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

What is the highest taxonomic rank reached by following 13 parent taxon steps from Paridae?

Starting from the tit family, what species group do you reach after going up 13 levels in the bird evolutionary tree?

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


Question: What is the most specific category that both Wakefield, New Hampshire and Panama belong to?

SELECT ?common ?commonLabel (COUNT(?super) AS ?depth) WHERE { wd:Q2154459 wdt:P279* ?common . wd:Q3624078 wdt:P279* ?common . ?common wdt:P279* ?super . ?super rdfs:label ?superLabel . FILTER(LANG(?superLabel) = "en") . ?common rdfs:label ?commonLabel . FILTER(LANG(?commonLabel) = "en") } GROUP BY ?common ?commonLabel ORDER BY DESC(?depth) LIMIT 1

What is the highest-level common classification shared by the town of Wakefield, NH and the country of Panama?

Which administrative category encompasses both Wakefield, NH and Panama as subclasses?

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/Q2430147> ; <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/Q804> ; <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 Japanese title of the news article with Wikidata ID Q37794030?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?title WHERE {
  VALUES ?item {
    wd:Q37794030
  }
  ?item schema:name ?title .
  FILTER(LANG(?title) = "ja")
}

Show me the title in Japanese of the article about Koreans in Japan published in 1923.

What does the article "曖昧な鮮人" published in Kobe Yushin Nippo in 1923 call itself in Japanese?

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


Question: What is the English name and description of the iNaturalist taxon with ID 309984?

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

What is the species called in English, and what is its description, if it has the iNaturalist ID 309984?

Please provide the English label and English description for the organism identified as 309984 in iNaturalist.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3151> "309984". 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: Game of Thrones episodes, air dates, and cast members

SELECT DISTINCT ?episode ?airDate ?actor ?episodeLabel ?actorLabel WHERE { ?episode wdt:P179 wd:Q23572 . ?episode wdt:P577 ?airDate . ?episode wdt:P161 ?actor . ?episode rdfs:label ?episodeLabel . ?actor rdfs:label ?actorLabel . FILTER(LANG(?episodeLabel) = "en") FILTER(LANG(?actorLabel) = "en") }

What are the episodes of Game of Thrones, when did they air, and who acted in them?

List all the cast members and air dates for each episode of Game of Thrones.

SELECT DISTINCT ?var1 ?var2 ?var1Label ?var3 WHERE { BIND ( <http://www.wikidata.org/entity/Q23572> AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P577> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P161> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: All plant species in the Malpighiales order.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?taxon WHERE {
  ?taxon wdt:P171 * wd:Q21887 .
}

What are all the taxa that descend from the order Malpighiales?

List all known species and genera that are part of the Malpighiales plant order, including all levels of descendants.

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


Question: What are the taxonomic subgroups of Haplorhini?

SELECT ?taxon WHERE { ?taxon wdt:P31 wd:Q16521 . ?taxon wdt:P171 wd:Q82261 .}

Which taxa are directly classified under Haplorhini in the biological classification system?

List all the taxonomic groups that have Haplorhini as their immediate parent taxon.

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


Question: What is the most specific shared category between Goldman Sachs and FC Energiya Volzhsky in the Wikidata taxonomy?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?commonAncestor ?totalDistance ?label WHERE {
  VALUES(?type1 ?type2) {(wd:Q22687 wd:Q476028)
  }
  BIND(wd:Q43229 AS ?commonAncestor)
  BIND(2 AS ?dist1)
  BIND(4 AS ?dist2)
  BIND(?dist1 + ?dist2 AS ?totalDistance)
  OPTIONAL {
    ?commonAncestor rdfs:label ?label .
    FILTER(LANG(?label) = "en")
  }
}

What is the lowest common ancestor in the subclass hierarchy for the bank Goldman Sachs and the football club FC Energiya Volzhsky?

How many steps are required to reach the common organizational category from both Goldman Sachs and FC Energiya Volzhsky via subclass relationships?

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/Q193326> ; <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/Q1975949> ; <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 bird clade that is 18 taxonomic levels above the tit family?

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 ?var1 ?var1Label WHERE {
  wd:Q168473 wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 / wdt:P171 ?var1 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" )
}

What is the highest taxonomic rank 18 steps up from Paridae in the bird lineage?

What is the name of the taxon that is the great-great-great... (18 times) grandparent of the tit bird?

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


Question: Labels of the Wikidata property "history of topic" in English, German, French, and Italian.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?description ?subpropertyOf WHERE {
  wd:P2184 rdfs:label ?label .
  FILTER(LANG(?label) IN("en" , "de" , "fr" , "it"))
  OPTIONAL {
    wd:P2184 rdfs:comment ?description .
    FILTER(LANG(?description) = "en")
  }
  OPTIONAL {
    wd:P2184 wdt:P1647 ?subpropertyOf .
  }
}
ORDER BY ?label

What are the labels for the property "history of topic" in different languages, and what is its subproperty?

Show me the translations of the property "history of topic" into German, French, Italian, and English, along with its parent property.

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


Question: Does the movie with IMDb ID tt0231294 exist in Wikidata?

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

Is there a Wikidata item for the film 'The Bridge Across' identified by IMDb ID tt0231294?

Check if the IMDb identifier tt0231294 is linked to any item in Wikidata.

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


Question: Which educational institutions did Ian Hodder attend, and what were the start and end dates of his attendance, along with any academic degrees he earned?

SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q556140 p:P69 ?statement . ?statement ps:P69 ?institution . ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "en") OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER(LANG(?degreeLabel) = "en") } }

Ian Hodder's universities, attendance periods, and degrees

List the universities Ian Hodder attended in English, along with any known start dates, end dates, or academic degrees.

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


Question: Does the movie with IMDb ID tt0012207 exist in Wikidata?

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

Is there a Wikidata item for the film "Get Your Man" identified by the IMDb ID tt0012207?

Confirm if the IMDb identifier tt0012207 is linked to any item in Wikidata.

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


Question: Biological taxa with rank of phylum

SELECT ?taxon WHERE {
  ?taxon wdt:P31 wd:Q16521 .
  ?taxon wdt:P105 wd:Q38348 .
}

What are the taxonomic phyla in Wikidata?

List all organisms classified as taxa at the phylum level.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q38348> . }


Question: What properties (excluding "instance of") are used to classify entities as mammals?

PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?propertyItem WHERE {
  ?item ?directProperty wd:Q7377 .
  FILTER(STRSTARTS(STR(?directProperty) , "http://www.wikidata.org/prop/direct/"))
  .
  BIND(IRI(REPLACE(STR(?directProperty) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyItem)
  .
  FILTER(?propertyItem != wd:P31)
}

Which Wikidata properties link organisms to the taxon "mammal", excluding the property for "instance of"?

List all properties that are used to state that something is a mammal, but not by saying it's an instance of mammal.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3 <http://www.wikidata.org/entity/Q7377> . ?var1 <http://wikiba.se/ontology#statementProperty> ?var3 . FILTER ( ( ( ?var1 != <http://www.wikidata.org/entity/P31> ) ) ) . }


Question: Who are Iranian individuals with known dates of birth and death, and how did they die?

SELECT ?person ?personLabel ?mannerOfDeath ?mannerOfDeathLabel ?birthDate ?deathDate WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P27 wd:Q794 . ?person wdt:P569 ?birthDate . ?person wdt:P570 ?deathDate . ?person wdt:P1196 ?mannerOfDeath . ?person rdfs:label ?personLabel . ?mannerOfDeath rdfs:label ?mannerOfDeathLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?mannerOfDeathLabel) = "en")}

List Iranian people along with their birth and death dates and the manner of their death.

Show the names, birth dates, death dates, and causes of death for Iranian citizens who have died, using English labels for clarity.

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


Question: Sculptures in the Basque Country with their coordinates and creators

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 ?sculptureLabel ?coordinates ?creator WHERE {
  ?sculpture ( wdt:P31 / wdt:P279 * ) wd:Q860861 .
  ?sculpture ( wdt:P131 * / ^ wdt:P527 ) wd:Q47588 .
  ?sculpture wdt:P625 ?coordinates .
  OPTIONAL {
    ?sculpture wdt:P170 ?creator .
  }
  OPTIONAL {
    ?sculpture rdfs:label ?sculptureLabel .
    FILTER ( LANG( ?sculptureLabel ) = "en" )
  }
}

What are the sculptures located in the Basque Country, their locations, and who created them?

List all sculptures in the Basque Country region along with their geographic coordinates and artists, if available.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q860861> . ?var1 ( <http://www.wikidata.org/prop/direct/P131> */^ <http://www.wikidata.org/prop/direct/P527> ) <http://www.wikidata.org/entity/Q47588> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,eu". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P170> ?var3 . } }


Question: What taxonomic ranks are part of the species rank in biology?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?rankLabel ?statement ?scientificName WHERE {
  {
    SELECT DISTINCT ?rank ?statement WHERE {
      ?statement ps:P361 wd:Q7432 .
      ?rank p:P361 ?statement .
    }
    LIMIT 10
  }
  ?rank rdfs:label ?rankLabel .
  FILTER(LANG(?rankLabel) = "en")
  OPTIONAL {
    ?statement pq:P1705 ?scientificName .
    FILTER(LANG(?scientificName) = "en")
  }
}

Which biological taxonomic ranks are classified as part of the species level?

List the taxonomic ranks (like subspecies or strain) that are considered part of the species rank, along with their English labels.

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


Question: What is the English, German, or Norwegian Wikipedia page for the movie with IMDb ID tt0052939?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt0052939" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?language .
  FILTER ( ?language IN ( "en" , "de" , "no" ) )
}

Show me the Wikipedia articles about the film "The Chasers" (IMDb: tt0052939) in English, German, or Norwegian.

Find the Wikipedia pages in English, German, or Norwegian that are about the movie identified by IMDb ID tt0052939.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt0052939". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } UNION { ?var2 <http://schema.org/inLanguage> "no". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What Wikipedia pages exist in English, German, or Norwegian about the movie with IMDb ID tt5000016?

SELECT ?item ?page WHERE { ?item wdt:P345 "tt5000016" . ?page schema:about ?item ; schema:inLanguage ?lang . VALUES ?lang { "en" "de" "no" } }

Find the Wikipedia articles in English, German, or Norwegian that are about the film identified by IMDb ID tt5000016.

Which language versions of Wikipedia have articles about the movie Tanhaiyan Naye Silsilay (IMDb: tt5000016)?

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt5009730". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } UNION { ?var2 <http://schema.org/inLanguage> "no". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What educational institutions did Judea Pearl attend, what degrees did he earn, and when did he study there?

SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q92824 p:P69 ?statement . ?statement ps:P69 ?institution . ?institution rdfs:label ?institutionLabel . FILTER (LANG(?institutionLabel) = "en") . OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER (LANG(?degreeLabel) = "en") . } }

Which universities did Judea Pearl go to, what degrees did he receive, and during what time periods?

Please list all of Judea Pearl’s educational affiliations, including the degrees earned and the start and end dates of his studies.

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


Question: Image of Joseph Haydn

SELECT ?image WHERE { wd:Q7349 wdt:P18 ?image }

What is the image associated with Joseph Haydn on Wikimedia Commons?

Can you show me the official portrait image of the Austrian composer Joseph Haydn?

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


Question: List all gastropod species with Wikipedia pages and their titles.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?title ?taxon ?page WHERE {
  ?taxon wdt:P171 + wd:Q4867740 .
  ?taxon wdt:P105 wd:Q7432 .
  ?page schema:about ?taxon .
  ?page schema:isPartOf <https://en.wikipedia.org/> .
  BIND( REPLACE( REPLACE( STR( ?page ) , "https://en.wikipedia.org/wiki/" , "" ) , "_" , " " ) AS ?title )
}

What are the names of all species in the gastropod taxon that have English Wikipedia articles?

Show me the Wikipedia titles, Wikidata IDs, and URLs for every species of gastropod.

SELECT * WHERE { BIND ( REPLACE ( REPLACE ( ?var1 , "string1", "" ) , "%20", " " ) AS ?var2 ). ?var3 <http://www.wikidata.org/prop/direct/P171> + <http://www.wikidata.org/entity/Q4867740> . ?var1 <http://schema.org/about> ?var3 . ?var1 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . ?var3 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q7432> . }


Question: Which Wikidata items have Twitter usernames 'ash_crow', 'envlh', 'mesosphere', or 'museomix'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "ash_crow" "envlh" "mesosphere" "museomix"
  }
}
ORDER BY ?username

Who are the people or organizations on Wikidata with the Twitter handles @ash_crow, @envlh, @mesosphere, and @museomix?

List the entities on Wikidata that are associated with the Twitter usernames ash_crow, envlh, mesosphere, and museomix.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "ash_crow" ) ( "string1" ) ( "PoulpyWP" ) ( "mesosphere" ) ( "string2" ) ( "museomix" ) ( "string3" ) } } ORDER BY ASC( ?var3 )


Question: What are the hotels in the United Kingdom?

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 ?hotel ?hotelLabel WHERE {
  ?hotel wdt:P31 wd:Q27686 ; wdt:P17 wd:Q145 .
  ?hotel rdfs:label ?hotelLabel .
  FILTER(LANGMATCHES(LANG(?hotelLabel) , "en"))
}

List of hotels located in the United Kingdom

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3898> <http://www.wikidata.org/entity/Q145> . }


Question: Cited scholarly works with German descriptions

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?citedWork ?label ?description WHERE {
  ?citingWork wdt:P2860 ?citedWork .
  OPTIONAL {
    ?citedWork rdfs:label ?label .
    FILTER ( LANG( ?label ) = "de" )
  }
  OPTIONAL {
    ?citedWork schema:description ?description .
    FILTER ( LANG( ?description ) = "de" )
  }
}
LIMIT 100

What works are cited by other works in Wikidata, and do they have German descriptions or titles?

Show me up to 100 works that are cited by other works, along with their German labels and descriptions if available.

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/P2860> ?var1 . } 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: What is the Twitter username for Olympique Lyonnais?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  FILTER(?username = "OL")
}
ORDER BY ASC(?item)

Which entity on Wikidata has the Twitter handle "OL"?

Show me the entity linked to the Twitter username "OL" and order it by item ID.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "EquitaLyon" ) } } ORDER BY ASC( ?var3 )


Question: What pairs of topics are commonly main subjects of works related to HIV transmission?

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 ?topic1 ?topic1Label ?topic2 ?topic2Label WHERE {
  ?work wdt:P921 ?topic .
  ?topic(wdt:P31 * / wdt:P279 * | wdt:P361 + | wdt:P1269 +) wd:Q49029021 .
  ?work wdt:P921 ?topic1 , ?topic2 .
  FILTER(?topic1 != ?topic2 && ?topic1 != wd:Q49029021 && ?topic2 != wd:Q49029021)
  OPTIONAL {
    ?topic1 rdfs:label ?topic1Label .
    FILTER(LANG(?topic1Label) = "en")
  }
  OPTIONAL {
    ?topic2 rdfs:label ?topic2Label .
    FILTER(LANG(?topic2Label) = "en")
  }
}

Which pairs of distinct topics, excluding HIV transmission itself, appear together as main subjects in publications or interventions about HIV transmission?

Show me pairs of topics that co-occur as main subjects in works where at least one topic is a subclass, part, or aspect of HIV transmission.

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


Question: What is the most specific category that both Rich Dauer and Crystal Palace F.C. belong to?

SELECT ?commonAncestor WHERE { wd:Q7323233 wdt:P31 ?type1 . wd:Q19467 wdt:P31 ?type2 . ?type1 wdt:P279* ?commonAncestor . ?type2 wdt:P279* ?commonAncestor . } ORDER BY ASC(?commonAncestor) LIMIT 1

What is the common superclass of the types of Rich Dauer and Crystal Palace F.C.?

What is the highest-level category that includes both a human and a football club?

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/Q7323233> ; <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/Q19467> ; <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: Wikipedia pages in English, German, or Finnish for the film with IMDb ID tt6387506

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?wikipedia_page WHERE {
  VALUES ?imdb_id {
    "tt6387506"
  }
  ?film wdt:P345 ?imdb_id .
  ?wikipedia_page schema:about ?film ; schema:inLanguage ?lang .
  VALUES ?lang {
    "en" "de" "fi"
  }
}

What are the Wikipedia articles in English, German, or Finnish about the movie with IMDb ID tt6387506?

Show me the Finnish, German, and English Wikipedia links for the film identified by tt6387506 on IMDb.

SELECT ?var1 ?var2 ?var3 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt6387506". } ?var2 <http://schema.org/about> ?var1 . { ?var2 <http://schema.org/inLanguage> "en". } UNION { ?var2 <http://schema.org/inLanguage> "de". } UNION { ?var2 <http://schema.org/inLanguage> "fi". } ?var1 <http://www.wikidata.org/prop/direct/P345> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which Wikidata items have the Twitter handles envlh, the30man, Remy_WMFr, LimsiLab, or unistra?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "envlh" "the30man" "Remy_WMFr" "LimsiLab" "unistra" } } ORDER BY ?item

Who or what entities on Wikidata are associated with the Twitter usernames envlh, the30man, Remy_WMFr, LimsiLab, and unistra?

List the Wikidata items and their corresponding Twitter usernames for the handles: envlh, the30man, Remy_WMFr, LimsiLab, and unistra.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "the30man" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "Remy_WMFr" ) ( "string11" ) ( "LimsiLab" ) ( "unistra" ) ( "string12" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter usernames "ash_crow", "envlh", or "okcupid"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "ash_crow" "envlh" "okcupid"
  }
}

Who or what has the Twitter handles "ash_crow", "envlh", or "okcupid" on Wikidata?

List the entities on Wikidata that are associated with the Twitter usernames "ash_crow", "envlh", or "okcupid".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "gblardone" ) ( "string1" ) ( "ash_crow" ) ( "okcupid" ) ( "string2" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter usernames "envlh" or "mesosphere"?

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

Who are the people or organizations on Wikidata with the Twitter handles "envlh" and "mesosphere"?

Show me the entities in Wikidata that are linked to the Twitter accounts @envlh and @mesosphere (without the @ symbol).

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "envlh" ) ( "tarteur" ) ( "mesosphere" ) ( "string1" ) ( "Patafisik" ) ( "string2" ) } } ORDER BY ASC( ?var3 )


Question: What film has the IMDb ID tt3594308?

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

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

Find the Wikidata item for the film with IMDb ID tt3594308.

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


Question: Image of Ja'far al-Sadiq from SNAC ARK ID w6736qj5

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

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

Show me the Wikimedia Commons image for the entity identified by SNAC ARK ID w6736qj5.

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


Question: Authors in SHARE Catalogue with their Wikidata statement counts, sorted by count and ID.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?author ?authorLabel ?shareId(COUNT(?p) AS ?statementCount) WHERE {
  ?author wdt:P3987 ?shareId .
  ?author ?p ?o .
}
GROUP BY ?author ?authorLabel ?shareId
ORDER BY ASC(?statementCount) ASC(?author)
LIMIT 100

Which authors have a SHARE Catalogue ID, and how many statements are there about each in Wikidata, ordered by the number of statements?

List the top 100 authors linked to the SHARE Catalogue by their author ID, along with their Wikidata labels and the number of claims about them, sorted by claim count and author ID.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { { SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3987> ?var2 ; <http://wikiba.se/ontology#statements> ?var3 . } ORDER BY ASC( ?var3 )ASC( ?var1 ) LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". } } ORDER BY ASC( ?var3 )ASC( ?var1 )


Question: Most general category shared by Thomson Reuters and Crystal Palace F.C.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?commonAncestor WHERE {
  wd:Q1141267 wdt:P31 ?type1 .
  wd:Q19467 wdt:P31 ?type2 .
  ?type1 wdt:P279 * ?commonAncestor .
  ?type2 wdt:P279 * ?commonAncestor .
  FILTER NOT EXISTS {
    ?commonAncestor wdt:P279 ?furtherAncestor .
  }
}
LIMIT 1

What is the broadest category that both Thomson Reuters and Crystal Palace F.C. belong to?

Find the highest-level class that includes both Thomson Reuters and Crystal Palace F.C. as instances.

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/Q1141267> ; <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/Q19467> ; <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: Which Wikidata items have Twitter usernames "ash_crow" or "GillesCC"?

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

Who are the people on Wikidata with the Twitter handles @ash_crow and @GillesCC?

Show me the Wikidata entities linked to the Twitter usernames ash_crow and GillesCC.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "GuyHomard" ) ( "string3" ) ( "LEGO_UBL" ) ( "string4" ) ( "Hugo_Lz" ) ( "envlh" ) ( "Pyb75" ) ( "string5" ) ( "ash_crow" ) ( "string6" ) ( "TCY111" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "nojhan" ) ( "string10" ) ( "_bengui_m" ) ( "GillesCC" ) } } ORDER BY ASC( ?var3 )


Question: What are the taxonomic classifications of the kangaroo?

SELECT ?taxon ?taxonLabel WHERE { wd:Q5070208 wdt:P279* ?taxon . ?taxon rdfs:label ?taxonLabel . FILTER(LANG(?taxonLabel) = "en") }

What biological groups does the kangaroo belong to, including its immediate parent taxa?

Show me the full taxonomic hierarchy of the kangaroo from species to higher groups.

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


Question: Top albums by number of Wikipedia language versions

SELECT ?item (COUNT(?article) AS ?sitelinks) WHERE { ?item wdt:P31 wd:Q482994 . ?article schema:about ?item . FILTER (STRSTARTS(STR(?article), "https://")) } GROUP BY ?item ORDER BY DESC(?sitelinks) LIMIT 5000

Which music albums have the most Wikipedia language editions?

List the albums with the highest number of Wikipedia links, ordered by popularity.

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/prop/direct/P31> ) ( <http://www.wikidata.org/prop/direct/P279> ) } ?var1 ?var3 <http://www.wikidata.org/entity/Q482994> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 5000


Question: Films from Denmark without an IMDb ID

SELECT ?film WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P495 wd:Q35 . MINUS { ?film wdt:P345 ?imdbId . } }

What films originate from Denmark but do not have an IMDb identifier?

List all films that are from Denmark and are not listed on IMDb.

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/Q35> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P345> ?var2 . } } GROUP BY ?var1


Question: What film has the IMDb ID tt0033823?

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

Find the film identified by the IMDb ID tt0033823.

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


Question: What are the taxonomic ancestors of Fusulinida?

SELECT DISTINCT ?ancestor WHERE { wd:Q134577 wdt:P171+ ?ancestor .}

Show me the full taxonomic hierarchy above Fusulinida.

What higher taxonomic groups does Fusulinida belong to in the biological classification system?

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q134577> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P171> | <http://www.wikidata.org/prop/direct/P273> | <http://www.wikidata.org/prop/direct/P75> | <http://www.wikidata.org/prop/direct/P76> | <http://www.wikidata.org/prop/direct/P77> | <http://www.wikidata.org/prop/direct/P70> | <http://www.wikidata.org/prop/direct/P71> | <http://www.wikidata.org/prop/direct/P74> | <http://www.wikidata.org/prop/direct/P89> )* ?var1 . }


Question: Persian Wikipedia articles for sovereign states and their Persian names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?country ?persianLabel ?persianWikipediaPage WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?persianWikipediaPage schema:about ?country ; schema:isPartOf <https://fa.wikipedia.org/> .
  ?country rdfs:label ?persianLabel .
  FILTER(LANG(?persianLabel) = "fa")
}

Which countries have articles on the Persian Wikipedia, and what are their names in Persian?

Show me the Persian names of all sovereign states and their corresponding Persian Wikipedia links.

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


Question: Film with IMDb ID tt0024321

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

Tell me the Wikidata entity for the movie identified by tt0024321 on IMDb.

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


Question: Films with "Star Wars" in the title and their genres.

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 ?film ?filmLabel ?genreLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film rdfs:label ?filmLabel .
  FILTER ( REGEX( ?filmLabel , "Star Wars" , "i" ) ) .
  ?film wdt:P136 ?genre .
  ?genre rdfs:label ?genreLabel .
  FILTER ( LANG( ?genreLabel ) = "en" )
}

What are the English genres of films whose titles contain "Star Wars"?

List the English genres of all films that have "Star Wars" in their name.

SELECT ?var1 ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( REGEX ( ?var2Label , "string1", "i" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P136> ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: Polish periodicals by founding date, with images

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 ?periodical(SAMPLE(?label) AS ?periodicalLabel) ?inceptionDate ?image WHERE {
  ?periodical wdt:P31 wd:Q1002697 ; wdt:P495 wd:Q36 ; wdt:P571 ?inceptionDate .
  OPTIONAL {
    ?periodical wdt:P18 ?image .
  }
  ?periodical rdfs:label ?label .
}
GROUP BY ?periodical ?inceptionDate ?image
ORDER BY ASC(YEAR(?inceptionDate))

What are the periodicals published in Poland and when were they first published, along with their images?

List all periodicals from Poland in chronological order of their founding, including their names and available images.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q1002697> ; <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q36> ; <http://www.wikidata.org/prop/direct/P571> ?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> "pl,en". } } ORDER BY ASC( YEAR ( ?var2 ) )


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

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 "tt5281700" .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

Which film has the IMDb identifier tt5281700?

Tell me the name of the film identified by tt5281700 on IMDb.

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


Question: What musical instruments and ensembles are used in compositions, and what broader categories do they belong to?

SELECT ?instrument ?instrumentLabel ?subclass ?subclassLabel WHERE { ?composition wdt:P870 ?instrument . ?instrument wdt:P31 ?type . VALUES ?type { wd:Q34379 wd:Q2088357 } OPTIONAL { ?instrument wdt:P279 ?subclass . } OPTIONAL { ?instrument rdfs:label ?instrumentLabel . FILTER(LANG(?instrumentLabel) = "en") } OPTIONAL { ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } } LIMIT 50

Show me the instruments and ensembles used as instrumentation in music, along with their classifications.

Which types of musical instruments and ensembles appear in the instrumentation of compositions, and what are their parent categories?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { { BIND ( "mainsnak" AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P870> ?var2 . } UNION { BIND ( "qualifier" AS ?var4 ). ?var5 <http://www.wikidata.org/prop/qualifier/P870> ?var2 . ?var1 ?var6 ?var5 . } UNION { BIND ( "reference" AS ?var4 ). ?var7 <http://www.wikidata.org/prop/reference/P870> ?var2 . ?var8 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var7 . ?var1 ?var9 ?var8 . } VALUES ( ?var10 ) { ( <http://www.wikidata.org/entity/Q34379> ) ( <http://www.wikidata.org/entity/Q2088357> ) } MINUS { ?var2 <http://www.wikidata.org/prop/direct/P279> * ?var10 . } OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P279> ?var3 . } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What organizations, awards, and institutions is Martin Edward Hellman associated with, where are they located, and what are their images?

SELECT DISTINCT ?image ?item ?itemLabel ?location ?propertyLabel WHERE { wd:Q476466 ?property ?item . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propertyLabel . ?item rdfs:label ?itemLabel . FILTER(LANG(?propertyLabel) = "en" && LANG(?itemLabel) = "en") OPTIONAL { ?item wdt:P18 ?image . } { ?item p:P159 ?stmt1 . ?stmt1 pq:P625 ?location } UNION { ?item wdt:P276/wdt:P625 ?location } }

Which entities are linked to Martin Edward Hellman, what are their English labels, where are they located geographically, and what properties describe these associations?

Show me all the places associated with Martin Edward Hellman — such as universities, companies, or awards — along with their coordinates, labels, and any available images, and explain how he is connected to each.

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


Question: What Wikidata item has the IMDb ID tt0238737?

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

Which movie on Wikidata is identified by the IMDb ID tt0238737?

Show me the Wikidata entry for the film with IMDb ID tt0238737.

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


Question: Properties used with genus as object in Wikidata

SELECT ?property ?propertyLabel ?propertyDescription WHERE { ?item ?property wd:Q34740 . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) . BIND(IRI(REPLACE(STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propertyItem) . ?propertyItem rdfs:label ?propertyLabel . ?propertyItem schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") . FILTER(LANG(?propertyDescription) = "en") } GROUP BY ?property ?propertyLabel ?propertyDescription LIMIT 100

What properties in Wikidata link items to the taxonomic rank "genus"?

Show me the English labels and descriptions of properties that have "genus" as their object in Wikidata.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q34740> . ?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: Who is the author of the novel The Scroll of Seduction, and is there an image of them?

SELECT ?author ?authorLabel ?image WHERE { ?author wdt:P800 wd:Q5826131 . ?author rdfs:label ?authorLabel . OPTIONAL { ?author wdt:P18 ?image . } FILTER(LANG(?authorLabel) = "en") } LIMIT 100

What is the name and image of the person who wrote The Scroll of Seduction?

Which author created the 2005 novel The Scroll of Seduction, and do we have a photo of them?

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


Question: Who is the author of the Harry Potter series?

SELECT ?author ?authorLabel WHERE { wd:Q8337 wdt:P50 ?author . ?author rdfs:label ?authorLabel . FILTER(LANG(?authorLabel) = "en") }

What is the name of the person who wrote the Harry Potter books?

Can you tell me the English name of the creator of the Harry Potter novel series?

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


Question: What characters, places, and things appear in the Star Trek universe?

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 ?entity ?entityLabel WHERE {
  ?entity wdt:P1080 wd:Q18043309 .
  ?entity rdfs:label ?entityLabel .
  FILTER ( LANG( ?entityLabel ) = "en" )
}

Which entities are featured in the Star Trek fictional universe?

List all the characters, locations, and phenomena from Star Trek.

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


Question: What is the most specific category that both Quentin Tarantino and Kathy Dahlkemper belong to?

SELECT ?commonAncestor
WHERE {
  BIND(wd:Q5 AS ?commonAncestor)
  wd:Q3772 wdt:P31 ?commonAncestor .
  wd:Q3813932 wdt:P31 ?commonAncestor .
}

What do Quentin Tarantino and Kathy Dahlkemper have in common in terms of their classification in Wikidata?

Which entity is the closest common ancestor in the hierarchy for both Quentin Tarantino and Kathy Dahlkemper?

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/Q3813932> ; <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/Q3772> ; <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: List creative works from France with their statement nodes.

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

What are the works originating from France, and what are their statement identifiers?

Show me the titles of creative works that have France as their country of origin, along with their statement URIs.

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


Question: Languages with EGIDS status but no Ethnologue code

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?language(SAMPLE(?label) AS ?languageLabel) WHERE {
  ?language wdt:P3823 ?egidsStatus . MINUS {
    ?language wdt:P1627 [] .
  }
  ?language rdfs:label ?label .
}
GROUP BY ?language

Which languages are classified by Ethnologue's EGIDS scale but do not have an assigned Ethnologue.com language code?

List languages that have a documented language endangerment level via EGIDS but are not yet coded in Ethnologue.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3823> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P1627> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What are all the taxonomic relatives of flies (Diptera), including their ancestors and descendants?

SELECT ?taxon ?taxonLabel ?directParent WHERE { { wd:Q25312 wdt:P171* ?taxon . } UNION { ?taxon wdt:P171* wd:Q25312 . } OPTIONAL { ?taxon wdt:P171 ?directParent . } OPTIONAL { ?taxon rdfs:label ?taxonLabel . FILTER(LANG(?taxonLabel) = "en") } }

List all species and higher taxa related to Diptera, along with their immediate parent taxon.

Show the full taxonomic tree above and below Diptera, including species names and their direct parent categories.

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


Question: What Wikidata item is linked to the Hindi Wikipedia page for Harry Potter?

PREFIX schema: <http://schema.org/>
SELECT ?item WHERE {
  <https://hi.wikipedia.org/wiki/%E0%A4%B9%E0%A5%88%E0%A4%B0%E0%A5%80_%E0%A4%AA%E0%A5%89%E0%A4%9F%E0%A4%B0> schema:about ?item .
}

Which Wikidata entity corresponds to the Hindi Wikipedia article about Harry Potter?

Find the Wikidata item associated with the Hindi Wikipedia page titled 'हरी पुत्र'.

SELECT ?var1 WHERE { <https://hi.wikipedia.org/wiki/%E0%A4%B9%E0%A5%88%E0%A4%B0%E0%A5%80_%E0%A4%AA%E0%A5%89%E0%A4%9F%E0%A4%B0> <http://schema.org/about> ?var1 . }


Question: What are the superfamilies within the suborder Polyphaga?

SELECT ?subtaxon WHERE { ?subtaxon wdt:P171 wd:Q147877 . ?subtaxon wdt:P31 wd:Q16521 . } LIMIT 10000

Which taxonomic groups are direct subgroups of the beetle suborder Polyphaga?

List all taxa that have Polyphaga as their parent taxon.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P171> <http://www.wikidata.org/entity/Q147877> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "uk,ru,en". } } LIMIT 10000


Question: Categories on Wikidata that include Tokyo as a combined topic, along with any qualifier properties used on those links.

SELECT ?category ?statement (SAMPLE(?qualifier) AS ?qualifierUsed) WHERE { { SELECT DISTINCT ?category ?statement WHERE { ?statement ps:P971 wd:Q1490 . ?category p:P971 ?statement . } LIMIT 101 } OPTIONAL { ?statement ?qualifier ?value . ?qualifier wikibase:qualifier true . } } GROUP BY ?category ?statement

Which Wikipedia categories on Wikidata combine Tokyo as one of their topics, and what qualifier properties are attached to those category-topic links?

List up to 101 categories that are linked to Tokyo via the "category combines topics" property, and show any qualifiers used on those links.

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


Question: What are the episodes of the TV series Tatort?

SELECT ?episode ?episodeLabel WHERE { ?episode wdt:P179 wd:Q689438 . ?episode rdfs:label ?episodeLabel . FILTER(LANG(?episodeLabel) = 'en') }

Can you list the English titles of all episodes in the German crime series Tatort?

Which TV episodes belong to the long-running series Tatort?

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


Question: Formatter URLs for properties of Ohyu Gakuen Girls’ Junior and Senior High School

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?property ?propertyLabel ?value ?formatterUrl ?jaWikipedia WHERE {
  wd:Q11675501 ?property ?value .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem wdt:P1630 ?formatterUrl .
  ?propertyItem rdfs:label ?propertyLabel .
  OPTIONAL {
    ?jaWikipedia schema:about ?value ; schema:inLanguage "ja" .
    FILTER ( STRSTARTS( STR( ?jaWikipedia ) , "https://ja.wikipedia.org/wiki/" ) )
  }
  FILTER ( LANG( ?propertyLabel ) = "en" )
}

Which properties of Ohyu Gakuen Girls’ Junior and Senior High School have URL templates, and what are those templates?

Show me the URL patterns used for the properties of Ohyu Gakuen Girls’ Junior and Senior High School.

SELECT ?var1 ?var2Label ?var3Label ?var4 ?var5 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". <http://www.wikidata.org/entity/Q11675501> ?var1 ?var3 . ?var2 <http://wikiba.se/ontology#directClaim> ?var1 . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P1630> ?var4 . } OPTIONAL { ?var5 <http://schema.org/about> ?var3 . ?var5 <http://schema.org/inLanguage> "ja". FILTER ( ( ( SUBSTR ( STR ( ?var5 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } }


Question: Female characters in the Harry Potter series

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?character WHERE {
  ?character wdt:P1441 wd:Q8337 ; wdt:P21 wd:Q6581072 ; wdt:P31 / wdt:P279 * wd:Q15632617 .
}

Who are the female characters that appear in the Harry Potter books?

List all female fictional humans from the Harry Potter universe.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/personnage> <http://www.wikidata.org/entity/Q8337> ; <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } }


Question: Species and their genus or family in Wikidata

SELECT ?species ?speciesLabel ?taxon ?taxonLabel WHERE { ?species wdt:P31 ?taxon . ?taxon wdt:P31 wd:Q16521 . ?species rdfs:label ?speciesLabel . ?taxon rdfs:label ?taxonLabel . FILTER(LANG(?speciesLabel) = "en") FILTER(LANG(?taxonLabel) = "en") } LIMIT 200

What are some biological species and the taxonomic groups they belong to?

List species along with their immediate taxonomic classification (like genus or family), using English labels.

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


Question: Japanese prefectures with their Japanese, English, and Korean labels.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?prefecture ?label_ja ?label_en ?label_ko WHERE {
  ?prefecture wdt:P31 wd:Q50337 .
  OPTIONAL {
    ?prefecture rdfs:label ?label_ja
    FILTER(LANG(?label_ja) = "ja")
  }
  OPTIONAL {
    ?prefecture rdfs:label ?label_en
    FILTER(LANG(?label_en) = "en")
  }
  OPTIONAL {
    ?prefecture rdfs:label ?label_ko
    FILTER(LANG(?label_ko) = "ko")
  }
}

What are the Japanese, English, and Korean names for each prefecture in Japan?

List all prefectures of Japan along with their labels in Japanese, English, and Korean languages.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q50337> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ja" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "kr" ) ) ) . } }


Question: Multilingual descriptions of soil

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?description WHERE {
  wd:Q36133 schema:description ?description .
}
LIMIT 20

What are the descriptions of soil in different languages?

Show me how soil is described in various languages on Wikidata.

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


Question: Works of art created by people born in New Zealand, with their birthplaces and number of Wikipedia language versions.

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?artwork ?artworkLabel ?creator ?creatorLabel ?birthplace ?birthplaceLabel ( COUNT( ?language ) AS ?languageCount ) WHERE {
  ?creator wdt:P19 ?birthplace .
  ?birthplace wdt:P17 wd:Q664 .
  ?artwork wdt:P170 ?creator ; wdt:P31 / wdt:P279 * wd:Q838948 .
  OPTIONAL {
    ?wikipediaPage schema:about ?artwork ; schema:inLanguage ?language .
  }
  ?artwork rdfs:label ?artworkLabel .
  ?creator rdfs:label ?creatorLabel .
  ?birthplace rdfs:label ?birthplaceLabel .
  FILTER ( LANG( ?artworkLabel ) = "en" ) FILTER ( LANG( ?creatorLabel ) = "en" ) FILTER ( LANG( ?birthplaceLabel ) = "en" )
}
GROUP BY ?artwork ?artworkLabel ?creator ?creatorLabel ?birthplace ?birthplaceLabel
ORDER BY ASC ( ?creatorLabel ) ASC ( ?artworkLabel )

Which artworks were created by people born in New Zealand, and how many language versions of their Wikipedia pages exist?

List all artworks created by individuals born in New Zealand, including the creator’s name, birthplace, and the count of available Wikipedia language editions, sorted alphabetically by creator and artwork.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label ( COUNT ( ?var5 ) AS ?var6 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P19> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q664> . ?var1 <http://www.wikidata.org/prop/direct/P170> ?var2 ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q838948> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var7 <http://schema.org/about> ?var1 . FILTER ( ( ( SUBSTR ( STR ( ?var7 ) ,"11"^^<http://www.w3.org/2001/XMLSchema#integer> ,"15"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . ?var7 <http://schema.org/inLanguage> ?var5 . } } GROUP BY ?var1 ?var1Label ?var2 ?var2Label ?var3Label ?var4Label ORDER BY ASC( ?var2Label )ASC( ?var1Label )


Question: What are 250 Shinto shrines that have Wikipedia articles?

SELECT ?shrine WHERE { ?shrine wdt:P31 wd:Q845945 . ?sitelink schema:about ?shrine ; schema:isPartOf ?wiki . FILTER(STRSTARTS(STR(?wiki), "https://")) } LIMIT 250

List Shinto shrines that are mentioned on any Wikipedia language edition.

Which Shinto shrines have online Wikipedia pages?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q845945> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 250


Question: List all languages with their ISO 639-3 codes and English labels.

SELECT ?language ?languageLabel ?isoCode WHERE { ?language wdt:P220 ?isoCode . ?language rdfs:label ?languageLabel . FILTER(LANG(?languageLabel) = "en") }

What are the English names and ISO 639-3 codes of all languages in Wikidata?

Show me the English labels and corresponding ISO 639-3 codes for all languages.

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


Question: What movie has the IMDb ID tt1137450?

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 "tt1137450" .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Which film is identified by the IMDb identifier tt1137450?

Find the English name of the movie with IMDb ID tt1137450.

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


Question: What types of entities does Kinkaku-ji belong to that have other examples in Wikidata?

SELECT DISTINCT ?var1Label WHERE { wd:Q270983 wdt:P31 ?var1 . ?var2 wdt:P31 ?var1 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

Which classes include both Kinkaku-ji and at least one other item?

List the English labels of categories that Kinkaku-ji is an instance of, along with at least one other instance.

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


Question: What works are part of the Harry Potter series?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?work WHERE {
  ?work wdt:P179 wd:Q8337 .
}
LIMIT 100

Which books and other works belong to the Harry Potter universe according to Wikidata?

List all items that are considered part of the Harry Potter series.

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/P179> <http://www.wikidata.org/entity/Q8337> . } LIMIT 100


Question: Which films, books, and video games feature Harry Potter as a character?

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 ?work ?workLabel WHERE {
  ?work wdt:P674 wd:Q3244512 .
  ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" ) VALUES ?workType {
    wd:Q11424 wd:Q571 wd:Q7889 wd:Q5398426 wd:Q1464125 wd:Q178856
  }
  ?work wdt:P31 ?workType .
}

In which works does Harry Potter appear as a character?

List all the movies, games, and books where Harry Potter is a character.

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


Question: TV series with regex episode title formats and their matching English episode titles

SELECT DISTINCT ?series ?seriesLabel ?regex ?episode ?episodeTitle (REGEX(?episodeTitle, ?regex) AS ?matchesRegex)
WHERE {
  ?series p:P1552 ?statement .
  ?statement ps:P1552 wd:Q50649564 ; pq:P1793 ?regex .

  ?episode wdt:P31 wd:Q21191270 ; wdt:P179 ?series .
  ?episode wdt:P1476 ?episodeTitle .

  FILTER(LANG(?episodeTitle) = "en")

  OPTIONAL { ?series rdfs:label ?seriesLabel . FILTER(LANG(?seriesLabel) = "en") }
}
ORDER BY ASC(?matchesRegex) ASC(?seriesLabel) ASC(?episodeTitle)

Which English-language episode titles of TV series match the regular expression pattern defined for their series?

List all English episode titles of TV series that have a defined regex format for episode titles, and indicate whether each title matches the format.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ( REGEX ( ?var5 , ?var3 ) AS ?var6 )( BOUND ( ?var7 ) AS ?var8 ) WHERE { ?var1 <http://www.wikidata.org/prop/P1552> ?var9 . ?var9 <http://www.wikidata.org/prop/statement/P1552> <http://www.wikidata.org/entity/Q50649564> ; <http://www.wikidata.org/prop/qualifier/P1793> ?var3 . OPTIONAL { BIND ( ( STR ( ?var10 ) = STR ( ?var1 ) ) AS ?var7 ). ?var9 <http://www.wikidata.org/prop/qualifier/P1011> ?var10 . } ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21191270> ; <http://www.wikidata.org/prop/direct/P179> ?var1 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var6 )ASC( ?var1Label )ASC( ?var5 )


Question: What Wikidata item has the IMDb ID tt1442065?

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

Which TV show or movie on Wikidata is associated with the IMDb identifier tt1442065?

Find the Wikidata entity for the IMDb ID tt1442065.

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


Question: What are the types of the Harry Potter work that has an author?

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?workLabel ?typeLabel WHERE {
  <https://en.wikipedia.org/wiki/Harry_Potter> schema:about ?work .
  ?work wdt:P31 ?type .
  ?work wdt:P50 ?author .
  FILTER ( LANG( ?workLabel ) = "en" ) FILTER ( LANG( ?typeLabel ) = "en" ) ?work rdfs:label ?workLabel .
  ?type rdfs:label ?typeLabel .
}

Which types of literary works are associated with the Harry Potter Wikipedia page, and do they have authors?

Can you list the categories of the Harry Potter series that are authored?

SELECT * WHERE { BIND ( EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P50> ?var2 . } AS ?var3 ). <https://en.wikipedia.org/wiki/Harry_Potter> <http://schema.org/about> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var4 . OPTIONAL { FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q571> ) ) ) . } }


Question: What is the book with GND ID 4202549-7, and who is its author, genre (in German), and series?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?book ?isbn ?author ?lccn ?genreLabel ?seriesLabel ?publicationDate WHERE {
  ?book wdt:P227 "4202549-7" .
  OPTIONAL {
    ?book wdt:P212 ?isbn .
  }
  OPTIONAL {
    ?book wdt:P50 ?author .
  }
  OPTIONAL {
    ?book wdt:P1144 ?lccn .
  }
  OPTIONAL {
    ?book wdt:P136 ?genre .
    ?genre rdfs:label ?genreLabel .
    FILTER ( LANG( ?genreLabel ) = "de" )
  }
  OPTIONAL {
    ?book wdt:P179 ?series .
    ?series rdfs:label ?seriesLabel .
    FILTER ( LANG( ?seriesLabel ) = "de" )
  }
  OPTIONAL {
    ?book wdt:P577 ?publicationDate .
  }
}
LIMIT 100

Can you find the details of the work identified by the German National Library ID 4202549-7, including its author, possible genres in German, and any series it belongs to?

Show me the author, German-language genres, and series of the book with LCCN 4202549-7, if available.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P212> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q571> . ?var1 <http://www.wikidata.org/prop/direct/P50> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P1144> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P227> "4202549-7". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P136> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var8Label . FILTER ( ( ( LANG ( ?var8Label ) = "de" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P179> ?var9 . ?var9 <http://www.w3.org/2000/01/rdf-schema#label> ?var10Label . FILTER ( ( ( LANG ( ?var10Label ) = "de" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P577> ?var11 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } } LIMIT 100


Question: What is the Japanese name of Tokyo Dome?

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

Japanese label for Tokyo Dome
Show me the Japanese name of Tokyo Dome

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


Question: Who are the children of members of the Polish United Workers' Party, and who are their fathers?

SELECT ?member ?memberLabel ?father ?fatherLabel WHERE { ?member wdt:P102 wd:Q537303 . ?father wdt:P22 ?member . ?member rdfs:label ?memberLabel . ?father rdfs:label ?fatherLabel . FILTER(LANG(?memberLabel) = "en") FILTER(LANG(?fatherLabel) = "en") } ORDER BY ?memberLabel

Which individuals were members of the Polish United Workers' Party, and who were their fathers?

List the English names of people who belonged to the Polish United Workers' Party and the English names of their fathers.

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


Question: What is the most central subclass ancestor shared by the class of Sarah Silverman and the International Space Station, based on the shortest path lengths in the subclass hierarchy?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?ancestor(COUNT(?mid1) AS ?dist1)(COUNT(?mid2) AS ?dist2)((COUNT(?mid1) + COUNT(?mid2)) AS ?totalDist) WHERE {
  wd:Q5 wdt:P279 * ?mid1 .
  ?mid1 wdt:P279 ?ancestor .
  wd:Q25956 wdt:P279 * ?mid2 .
  ?mid2 wdt:P279 ?ancestor .
}
GROUP BY ?ancestor
ORDER BY ASC(?totalDist)
LIMIT 1

Which common subclass of human and space station has the smallest total distance when summing the steps from each class?

Find the subclass that is closest to both the human class and the space station class in terms of total subclass hierarchy steps.

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/Q229013> ; <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/Q25271> ; <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 organizations has Grenville Astill been affiliated with or employed by, including start and end dates and images?

SELECT ?image ?organization ?organizationLabel ?start ?end WHERE {
  {
    wd:Q21131638 p:P1416 ?statement .
    ?statement ps:P1416 ?organization .
  } UNION {
    wd:Q21131638 p:P108 ?statement .
    ?statement ps:P108 ?organization .
  }

  ?organization rdfs:label ?organizationLabel .
  FILTER (LANG(?organizationLabel) = "en")

  OPTIONAL {
    ?organization wdt:P18 ?image .
  }

  OPTIONAL {
    ?statement pq:P580 ?start .
  }

  OPTIONAL {
    ?statement pq:P582 ?end .
  }
}

When did Grenville Astill work at or affiliate with the University of Reading and its Department of Archaeology, and what are the start and end dates of these roles?

Show me Grenville Astill’s employment and affiliation history with the University of Reading and its Department of Archaeology, including when he started and ended each role, and any associated images.

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


Question: People educated at the University of Warsaw who were members of the Polish United Workers' Party and their children.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?var1 ?var1Label ?var3Label WHERE {
  ?var1 wdt:P69 wd:Q144488 .
  ?var1 wdt:P102 wd:Q537303 .
  ?var1 wdt:P40 ?var3 .
  ?var1 rdfs:label ?var1Label .
  ?var3 rdfs:label ?var3Label .
  FILTER(LANG(?var1Label) = "en")
  FILTER(LANG(?var3Label) = "en")
}

Who among the alumni of the University of Warsaw were members of the Polish United Workers' Party, and what are the names of their children?

List the names of people who studied at the University of Warsaw and were members of the Polish United Workers' Party, along with the names of their children.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q144488> . ?var1 <http://www.wikidata.org/prop/direct/P102> <http://www.wikidata.org/entity/Q537303> . ?var1 <http://www.wikidata.org/prop/direct/P40> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,pl". } }


Question: What properties are most commonly used to indicate that someone is a singer in Wikidata?

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

How many times is each property used to link entities to the occupation "singer" in Wikidata?

List all properties that link more than one entity to the singer occupation, sorted by how often they are used.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var2 ?var1 <http://www.wikidata.org/entity/Q177220> . 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 )