Question: Ancestors of Emmanuel Macron up to two generations and their children.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?ancestor ?ancestorLabel ?child WHERE {
  {
    ?ancestor wdt:P40 wd:Q3052772 .
    OPTIONAL {
      ?ancestor wdt:P40 ?child .
      FILTER ( ?child != wd:Q3052772 )
    }
  } UNION {
    ?grandparent wdt:P40 wd:Q3052772 .
    ?ancestor wdt:P40 ?grandparent .
    OPTIONAL {
      ?ancestor wdt:P40 ?child .
      FILTER ( ?child != wd:Q3052772 && ?child != ?grandparent )
    }
  }
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER ( LANG( ?ancestorLabel ) = "en" )
}

Who are the parents and grandparents of Emmanuel Macron, and who are their children?

List all known ancestors of Emmanuel Macron (up to grandparents) along with one of their children.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q3052772> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P40> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P40> ?var2 . } 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 usernames MSR_Tlse, envlh, Anthere, ash_crow, or maxlath?

SELECT ?item ?twitterUsername WHERE { ?item p:P2002 ?statement . ?statement ps:P2002 ?twitterUsername . VALUES ?twitterUsername { "MSR_Tlse" "envlh" "Anthere" "ash_crow" "maxlath" } } ORDER BY ?twitterUsername

Who are the people or organizations on Wikidata with the Twitter handles 'MSR_Tlse', 'envlh', 'Anthere', 'ash_crow', and 'maxlath'?

List the Wikidata entities associated with the Twitter usernames: MSR_Tlse, envlh, Anthere, ash_crow, and maxlath.

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


Question: What are the Twitter/X usernames "Anthere" and "envlh" associated with on Wikidata?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Anthere" "envlh" } } ORDER BY ?username

Who uses the Twitter handles "Anthere" and "envlh"?

List the Wikidata items that have the Twitter usernames "Anthere" or "envlh".

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


Question: What is the superclass of sport?

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

According to Wikidata, what category does sport belong to as a subclass?

Show me the direct parent class of the entity "sport" in Wikidata.

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


Question: What are the 10 oldest cities in the world, along with their earliest written records and native names?

SELECT ?city ?earliestRecord ?nativeLabel WHERE { ?city wdt:P31 wd:Q515 . ?city wdt:P1249 ?earliestRecord . ?city wdt:P1705 ?nativeLabel . } ORDER BY ASC(?earliestRecord) LIMIT 10

Can you list cities with their first known written mention and their official or original language names, sorted from oldest to newest?

Show me the native names of the oldest cities, when they were first recorded in writing, and their Wikidata IDs.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q515> . ?var1 <http://www.wikidata.org/prop/direct/P1249> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var3 . } ORDER BY ASC( ?var2 ) LIMIT 10


Question: What are the most commonly used properties to link entities to India in Wikidata?

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

Which properties connect the most items to India, and how many times are they used?

Show me all properties that link more than one item to India, sorted by frequency.

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


Question: What are the occupations of Douglas Adams?

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

Can you list the professions Douglas Adams was known for?

What types of writers and performers was Douglas Adams involved in?

ASK WHERE { BIND ( <http://www.wikidata.org/entity/Q42> AS ?var1 ). }


Question: Which episodes of The Simpsons feature Nancy Cartwright as the voice of Bart Simpson?

SELECT DISTINCT ?work ?actor ?actorLabel WHERE { ?work p:P725 ?statement . ?statement ps:P725 ?actor . ?statement pq:P453 wd:Q5480 . ?actor rdfs:label ?actorLabel . FILTER(LANG(?actorLabel) = "en") } LIMIT 100

Who voiced Bart Simpson in The Simpsons, and in which episodes did they perform that role?

List all The Simpsons episodes and seasons where Nancy Cartwright provided the voice for Bart Simpson.

SELECT DISTINCT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/P725> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P725> ?var2 . ?var3 <http://www.wikidata.org/prop/qualifier/P453> <http://www.wikidata.org/entity/Q5480> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 100


Question: Cultural monuments in Trutnov with their coordinates and labels

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?monument ?monumentLabel ?coordinates WHERE {
  ?monument wdt:P1435 wd:Q385405 .
  ?monument wdt:P131 wd:Q320950 .
  OPTIONAL {
    ?monument wdt:P625 ?coordinates .
  }
  ?monument rdfs:label ?monumentLabel .
}
LIMIT 100

What are the cultural monuments located in Trutnov, and what are their names and geographic coordinates?

List all heritage-designated monuments in Trutnov along with their labels and locations.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1435> <http://www.wikidata.org/entity/Q385405> . ?var1 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q320950> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,sk,cs,en". } } LIMIT 10000


Question: People born after April 15, 1452 and died before May 2, 1519, who lived between 10 and 100 years.

SELECT ?personLabel ?birthDate ?birthPlace ?deathDate ?birthPlaceLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P569 ?birthDate . ?person wdt:P570 ?deathDate . BIND( ( YEAR( ?deathDate ) - YEAR( ?birthDate ) ) AS ?age ) . FILTER ( ?birthDate >= "1452-04-15"^^xsd:date ) FILTER ( ?deathDate <= "1519-05-02"^^xsd:date ) FILTER ( ?age > 10 && ?age < 100 ) OPTIONAL { ?person wdt:P19 ?birthPlace . } OPTIONAL { ?person rdfs:label ?personLabel . FILTER ( lang(?personLabel) = "en" ) } OPTIONAL { ?birthPlace rdfs:label ?birthPlaceLabel . FILTER ( lang(?birthPlaceLabel) = "en" ) } } LIMIT 10

Who were the humans that lived during Leonardo da Vinci’s lifetime and were between 10 and 100 years old?

List the names, birth and death dates, and birthplaces of people who were alive between 1452 and 1519 and lived at least 10 years but less than 100 years.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var3Label WHERE { BIND ( ( YEAR ( ?var4 ) - YEAR ( ?var2 ) ) AS ?var5 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( ( ?var5 > "10"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( ?var5 < "100"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( ?var2 > "1452-04-15"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var4 < "1519-05-02"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var3 . } }


Question: What items are located in Grenoble?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
  ?item wdt:P131 wd:Q1289 .
}
LIMIT 1000

Items administratively located in Grenoble

List all entities that are part of Grenoble’s administrative territory

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P131> <http://www.wikidata.org/entity/Q1289> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,fr". } } LIMIT 1000


Question: List humans with their birth date, birth place (in English), death date, and reference URL.

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 ?birthDate ?birthPlace ?deathDate ?birthPlaceLabel ?referenceUrl WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P569 ?birthDate .
  ?human wdt:P570 ?deathDate .
  OPTIONAL {
    ?human wdt:P19 ?birthPlace .
    ?birthPlace rdfs:label ?birthPlaceLabel .
    FILTER(LANG(?birthPlaceLabel) = "en")
  }
  OPTIONAL {
    ?human wdt:P854 ?referenceUrl .
  }
}
LIMIT 25

Who are some humans, and what are their birth dates, birth places, death dates, and reference URLs?

Show me up to 25 humans, including their date of birth, place of birth (with English label), date of death, and any reference URLs associated with their data.

SELECT ?var1 ?var2 ?var3 ?var2Label ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var5 <http://www.wikidata.org/prop/direct/P569> ?var1 . ?var5 <http://www.wikidata.org/prop/direct/P570> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P19> ?var2 . } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P19> ?var2 . } OPTIONAL { } OPTIONAL { ?var5 <http://www.wikidata.org/prop/direct/P854> ?var4 . } } LIMIT 25


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

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

Who are the people on Wikidata with the Twitter handles envlh and Pyb75?

Show me the Wikidata entities associated with the Twitter usernames envlh and Pyb75.

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


Question: People born in Ravenna, Ohio, with their images

SELECT ?person ?personLabel ?image WHERE { ?person wdt:P19 wd:Q989843 . OPTIONAL { ?person wdt:P18 ?image . } ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 100

Who are the people born in Ravenna, Ohio, and do they have any photos available?

List the English names of people born in Ravenna, Ohio, along with their images if available.

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


Question: Which Wikidata entities are associated with the Twitter usernames jylgallou, Leetchiweb, bif_o, FerryLuc, and FrDesouche?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "jylgallou" "Leetchiweb" "bif_o" "FerryLuc" "FrDesouche"
  }
}

Who are the people or organizations behind these Twitter accounts: jylgallou, Leetchiweb, bif_o, FerryLuc, and FrDesouche?

Find the Wikidata items linked to the following Twitter handles: jylgallou, Leetchiweb, bif_o, FerryLuc, and FrDesouche.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "jylgallou" ) ( "Leetchiweb" ) ( "debousso" ) ( "Kimyongur" ) ( "abbeamar" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "bif_o" ) ( "fandetv" ) ( "FerryLuc" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "whitebkas" ) ( "string7" ) ( "string8" ) ( "TacoTaxFR" ) ( "string9" ) ( "anoriant92" ) ( "string10" ) ( "FrDesouche" ) ( "string11" ) ( "string12" ) ( "pcd35" ) ( "buchermdm" ) } } ORDER BY ASC( ?var3 )


Question: Which papers cite "The flight activity of some East African mosquitos (Diptera, Culicidae). I. Studies on a high steel tower in Zika Forest, Uganda"?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?citingArticle WHERE {
  ?citingArticle wdt:P2860 wd:Q22330878 .
}
LIMIT 10000

What academic articles reference the study on mosquito flight activity in Zika Forest, Uganda?

List all scholarly works that cite the 1965 paper on mosquito flight behavior in Zika Forest, Uganda.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2860> <http://www.wikidata.org/entity/Q22330878> . } LIMIT 10000


Question: Where was the article 'Biology of Zika Virus Infection in Human Skin Cells' published?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?publication WHERE {
  wd:Q22330706 wdt:P1433 ?publication
}

What journal published the academic paper on Zika virus infection in human skin cells?

Which publication is the scholarly article Q22330706 associated with?

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1433> <http://www.wikidata.org/entity/Q22330706> . } LIMIT 10000


Question: Is there a ship with IMO number 9162148 in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?ship wdt:P458 "9162148" .
}

Does the ship Koyo Maru have the IMO number 9162148?

Confirm whether the IMO number 9162148 is assigned to any ship in Wikidata.

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


Question: Is there a ship with the IMO number 7302110?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?ship wdt:P458 "7302110" .
}

Check if any ship has the IMO number 7302110.

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


Question: Is there a ship with IMO number 6908034 in Wikidata?

Does the ship with IMO number 6908034 have a record in Wikidata?

Confirm whether the vessel identified by IMO number 6908034 is registered in Wikidata.

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


Question: Which Wikidata items are associated with the Twitter handles EU_H2020, EvoMRI, and kylecopas?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "EU_H2020" "EvoMRI" "kylecopas" } }

Who are the people or organizations on Wikidata that have the Twitter usernames EU_H2020, EvoMRI, or kylecopas?

Show me the Wikidata entities for Horizon 2020, Daniel Mietchen, and Kyle Copas based on their Twitter/X usernames: EU_H2020, EvoMRI, and kylecopas.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "EU_H2020" ) ( "EuCitSci" ) ( "kylecopas" ) ( "ErichPrem" ) ( "EvoMRI" ) ( "Mboathomas" ) ( "string2" ) ( "string3" ) ( "string4" ) } }


Question: People born in the United States

SELECT ?person ?personLabel WHERE { ?person wdt:P19 wd:Q30 ; wdt:P31 wd:Q5 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who are the people born in the United States?

List the names of all humans who were born in the United States.

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


Question: What artworks were created by James Ensor?

SELECT ?item ?label WHERE { ?item wdt:P170 wd:Q158840 . ?item rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

Can you list the English titles of all artworks created by the Belgian painter James Ensor?

Show me the names of James Ensor’s creative works.

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


Question: What countries, continents, or administrative regions is Wilanów Palace located in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?location WHERE {
  wd:Q47473(wdt:P17 | wdt:P30 | wdt:P131) ?location .
}

Can you tell me the geographical hierarchy of Wilanów Palace, such as its country and district?

Show me the direct location relationships of Wilanów Palace, including its country and administrative division.

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


Question: Educational institutions in Ahmedabad, India

SELECT ?educationalOrgLabel ?cityLabel WHERE { ?city (wdt:P31/wdt:P279*) wd:Q515 . ?city wdt:P17 wd:Q668 . ?educationalOrg (wdt:P31/wdt:P279*) wd:Q5341295 . ?educationalOrg wdt:P131 ?city . ?city rdfs:label ?cityLabel . ?educationalOrg rdfs:label ?educationalOrgLabel . FILTER(LANG(?cityLabel) = "en" && LANG(?educationalOrgLabel) = "en") . FILTER(CONTAINS(LCASE(?cityLabel), "ahmedabad")) }

What educational organizations are located in Ahmedabad, India?

List the names of educational organizations in Ahmedabad along with the city name, where both are labeled in English.

SELECT ?var1Label ?var2Label WHERE { ?var2 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q668> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5341295> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 ?var3Label "Ahmedabad"@en . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the Douban film ID for the movie with IMDb ID tt5931802?

SELECT ?film ?doubanId WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P345 "tt5931802" . OPTIONAL { ?film wdt:P4529 ?doubanId . } }

Which film has the IMDb ID tt5931802, and what is its Douban ID?

Find the Douban ID of the film identified by IMDb ID tt5931802.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P345> "tt5931802". OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P4529> ?var2 . } }


Question: Children of U.S. presidents named Robert and their occupations

SELECT ?child ?childLabel ?occupation ?occupationLabel WHERE { ?president wdt:P39 wd:Q11696 ; wdt:P40 ?child . ?child wdt:P735 wd:Q4927937 ; wdt:P106 ?occupation . ?child rdfs:label ?childLabel . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?childLabel) = "en") FILTER(LANG(?occupationLabel) = "en") }

Who are the children of U.S. presidents with the given name Robert, and what are their occupations?

List the English labels of children of U.S. presidents named Robert along with their occupations.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en ; <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> ; <http://www.wikidata.org/prop/direct/P40> ?var1 . ?var1 ( <http://www.wikidata.org/prop/direct/P735> / <http://www.w3.org/2000/01/rdf-schema#label> ) "Robert"@en ; <http://www.wikidata.org/prop/direct/P106> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Properties with optional qualifiers constraint

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 ?property ?propertyLabel WHERE {
  ?property wdt:P2302 wd:Q21510851 .
  ?property rdfs:label ?propertyLabel .
}
LIMIT 100

Which Wikidata properties require that qualifiers are optional?

List all Wikidata properties that allow optional qualifiers, along with their labels in different languages.

SELECT DISTINCT ?var1 ?var2 WHERE { <http://www.wikidata.org/prop/P26> <http://www.wikidata.org/prop/direct/P2302> ?var1 . FILTER ( ( ( ?var1 = <http://www.wikidata.org/entity/Q21510851> ) ) ) . ?var1 ?var2 ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: Heritage sites in Saxony with LfDS ID 09276121

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?heritageSite ?label WHERE {
  ?heritageSite wdt:P1708 "09276121" .
  ?heritageSite rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" || LANG( ?label ) = "de" )
}

Which cultural heritage sites in Germany have the LfDS object ID 09276121?

Show me the names of heritage sites identified by the LfDS ID 09276121.

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


Question: Is KMyMoney a human?

Does KMyMoney belong to a category that is a subclass of human beings?

Can KMyMoney be classified as a human or any type of human?

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


Question: Items depicting literature and their qualifiers

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?statement(SAMPLE(?qualifierProperty) AS ?qualifier) WHERE {
  {
    SELECT DISTINCT ?item ?statement WHERE {
      ?statement ps:P180 wd:Q8242 .
      ?item p:P180 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?value .
  }
}
GROUP BY ?item ?statement

What items depict literature, and what additional information (qualifiers) are associated with those depictions?

Show me the works that depict literature, along with one example of a qualifier for each depiction statement.

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


Question: What places or events are named after poetry?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?itemLabel WHERE {
  ?item p:P138 ?statement .
  ?statement ps:P138 wd:Q482 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}

Can you list entities that have been named in honor of poetry?

Which items, such as streets, glaciers, or days, take their name from the literary form of poetry?

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


Question: What are the English-named places in South Asia and East Africa with coordinates between 13°E–98°E and -3°N–36°N, along with their images and Wikimedia Commons categories?

SELECT ?item ?itemLabel ?coord ?image ?commonsCategory ?address WHERE { ?item wdt:P625 ?coord . BIND(STRBEFORE(STRAFTER(STR(?coord), "POINT("), " ") AS ?lonStr) BIND(STRBEFORE(STRAFTER(STR(?coord), " "), ")") AS ?latStr) BIND(xsd:double(?lonStr) AS ?lon) BIND(xsd:double(?latStr) AS ?lat) FILTER(?lon >= 13 && ?lon <= 98) FILTER(?lat >= -3 && ?lat <= 36) OPTIONAL { ?item wdt:P18 ?image . } OPTIONAL { ?item wdt:P373 ?commonsCategory . } OPTIONAL { ?item wdt:P969 ?address . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } LIMIT 3000

Show me places in the region from Kenya to India that have English names, their geographic coordinates, and any associated images or Commons categories.

List up to 3,000 locations in the area bounded by longitude 13 to 98 and latitude -3 to 36, including their names, images, and Wikimedia Commons categories, if available.

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


Question: Museums in New York City with their locations, images, founding years, and annual visitors.

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 ?museum ?museumLabel ?coordinates ?image ?inception ?visitors WHERE {
  ?museum wdt:P31 wd:Q33506 .
  ?museum wdt:P131 wd:Q60 .
  OPTIONAL {
    ?museum wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?museum wdt:P18 ?image .
  }
  OPTIONAL {
    ?museum wdt:P571 ?inception .
  }
  OPTIONAL {
    ?museum wdt:P1174 ?visitors .
  }
  ?museum rdfs:label ?museumLabel .
  FILTER ( LANG( ?museumLabel ) = "en" )
}

What are the museums in New York City, and what are their coordinates, images, founding dates, and number of annual visitors?

List all museums in New York City along with their English names, geographic coordinates, images, when they were founded, and how many visitors they get per year.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q33506> . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/131> *) <http://www.wikidata.org/entity/Q60> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P571> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1174> ?var5 . } 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> "en,en". } }


Question: Which Wikidata entities have the Twitter usernames "azaroth42", "sadads", "wikidata", or "Wikimedia"?

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . VALUES ?username { "azaroth42" "sadads" "wikidata" "Wikimedia" } }

Who are the people or organizations on Wikidata that use "azaroth42", "sadads", "wikidata", or "Wikimedia" as their Twitter/X handle?

Show me the Wikidata items corresponding to the Twitter usernames: azaroth42, sadads, wikidata, and Wikimedia.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "sadads" ) ( "string1" ) ( "glamwiki" ) ( "Wikimedia" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "azaroth42" ) ( "GettyHub" ) ( "wikidata" ) } }


Question: French-speaking people with the surname Violland

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 ?person WHERE {
  ?person rdfs:label ?label .
  FILTER ( LANG( ?label ) = "fr" ) FILTER ( CONTAINS( LCASE( ?label ) , "violland" ) ) ?person wdt:P31 wd:Q5 .
}

Who are the French people named Violland?

List all humans whose French name includes "Violland".

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


Question: Armed conflicts that started or ended today in history

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 ?conflictLabel(YEAR(?startDate) AS ?startYear)(YEAR(?endDate) AS ?endYear) ?conflict WHERE {
  BIND(MONTH(NOW ()) AS ?currentMonth)
  BIND(DAY(NOW ()) AS ?currentDay)
  ?conflict wdt:P31 / wdt:P279 * wd:Q350604 .
  OPTIONAL {
    ?conflict wdt:P580 ?startDate .
  }
  OPTIONAL {
    ?conflict wdt:P582 ?endDate .
  }
  FILTER((BOUND(?startDate) && MONTH(?startDate) = ?currentMonth && DAY(?startDate) = ?currentDay) ||(BOUND(?endDate) && MONTH(?endDate) = ?currentMonth && DAY(?endDate) = ?currentDay))
  ?conflict rdfs:label ?conflictLabel .
  FILTER(LANG(?conflictLabel) = "en")
}
LIMIT 20

Which armed conflicts began or ended on this day of the year?

Show me battles and military conflicts that started or ended today, along with their start and end years.

SELECT DISTINCT ?var1Label ( YEAR ( ?var2 ) AS ?var3 )( YEAR ( ?var4 ) AS ?var5 ) ?var1 WHERE { BIND ( MONTH ( NOW ( ) ) AS ?var6 ). BIND ( DAY ( NOW ( ) ) AS ?var7 ). { ?var1 <http://www.wikidata.org/prop/direct/P580> ?var2 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . } FILTER ( ( ( MONTH ( ?var2 ) = ?var6 ) && ( DAY ( ?var2 ) = ?var7 ) || ( MONTH ( ?var4 ) = ?var6 ) && ( DAY ( ?var4 ) = ?var7 ) ) ) . { SELECT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var8 . VALUES ( ?var8 ) { ( <http://www.wikidata.org/entity/Q350604> ) } } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 20


Question: Does Wikidata contain an entity with GND ID 1129897346?

Is there a person in Wikidata identified by the German National Library ID 1129897346?

Confirm whether the GND ID 1129897346 corresponds to a known entity in Wikidata.

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


Question: Galaxies without SIMBAD IDs and their English names

SELECT ?galaxy ?label WHERE { ?galaxy wdt:P31 wd:Q318 . OPTIONAL { ?galaxy rdfs:label ?label . FILTER(LANG(?label) = 'en') } . MINUS { ?galaxy p:P3083 [] } }

Which galaxies are listed in Wikidata but do not have a SIMBAD identifier, and what are their English labels?

List all galaxies (excluding those with SIMBAD IDs) along with their English names.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q318> . MINUS { ?var1 <http://www.wikidata.org/prop/P3083> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de, en, fr, pl, it, eo, kk, uk". } }


Question: Who is the father of Andries Bicker?

SELECT DISTINCT ?father WHERE { wd:Q434290 wdt:P22 ?father .}

Father of Andries Bicker.
Tell me who Andries Bicker’s father is.

SELECT DISTINCT ?var1 WHERE { ?var2 ?var3 ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P22> ?var1 . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q434290> ) ) ) . }


Question: Battles whose English name starts with "battle"

SELECT ?battle ?battleLabel WHERE { ?battle wdt:P31 wd:Q178561 ; rdfs:label ?battleLabel . FILTER ( LANG(?battleLabel) = "en" ) FILTER ( STRSTARTS( ?battleLabel, "battle" ) ) }

What are the battles in Wikidata that have English labels starting with "battle"?

List all historical battles classified in Wikidata with English names beginning with "battle".

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q178561> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( ?var1Label , "battle" ) ) ) . }


Question: Image of the person with SNAC ARK ID w69z96c3

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

What image is linked to the SNAC ARK ID w69z96c3?

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

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


Question: What are the ISO 3166-1 alpha-2 codes and HDS IDs for all sovereign states?

SELECT ?country ?iso2 ?hds_id WHERE { ?country wdt:P31 wd:Q3624078 . OPTIONAL { ?country wdt:P297 ?iso2 . } OPTIONAL { ?country wdt:P902 ?hds_id . } }

Can you list countries with their two-letter country codes and entries in the Historical Dictionary of Switzerland?

Which countries have entries in the Historical Dictionary of Switzerland, and what are their ISO country codes?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3624078> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P297> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P300> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P902> ?var4 . } }


Question: List all male given names in Wikidata.

SELECT ?maleGivenName ?name WHERE { ?maleGivenName wdt:P31 wd:Q12308941 . ?maleGivenName wdt:P1705 ?name . }

What are the male first names recorded in Wikidata?

Show me the native labels of all items that are instances of male given names.

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


Question: Which Wikidata entity has the VIAF ID 171145187?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel WHERE {
  ?item wdt:P214 "171145187" .
  ?item rdfs:label ?itemLabel .
}

Is there a person in Wikidata with the VIAF identifier 171145187, and what is their name?

Show me the name of the person associated with the Virtual International Authority File ID 171145187.

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


Question: What are the curling competitions and events listed in Wikidata, sorted alphabetically by 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 ?event ?label WHERE {
  ?event wdt:P641 wd:Q136851 ; wdt:P31 ?instanceOf .
  FILTER ( ?instanceOf IN ( wd:Q1079023 , wd:Q16510064 , wd:Q167170 ) ) .
  ?event rdfs:label ?label .
}
ORDER BY ASC ( ?label )

Can you list all curling championships, sporting events, and multi-sport events that include curling, along with their names in any language?

Show me all the events associated with the sport of curling, such as tournaments and championships, ordered by their labels.

SELECT ?var1 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P641> <http://www.wikidata.org/entity/Q136851> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P31> [] . } } ORDER BY ASC( ?var2Label )


Question: What items in Wikidata have an IMDb ID?

SELECT ?item ?imdbId WHERE { ?item wdt:P345 ?imdbId . }

List all entities with their IMDb identifiers.

Show me the IMDb IDs for people and films in Wikidata.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2439> [] ; <http://schema.org/dateModified> [] . }


Question: What properties are used for the music genre "pagan metal", and what are their values in English?

SELECT ?property ?propertyLabel (COUNT(?value) AS ?valueCount) (GROUP_CONCAT(?valueLabel; SEPARATOR=", ") AS ?valueLabels) WHERE { wd:Q1457545 ?property ?value . ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") . ?propertyItem wikibase:directClaim ?property . ?propertyItem rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") . } GROUP BY ?property ?propertyLabel

For each property applied to pagan metal, show its English label, how many values it has, and what those values are labeled as in English.

List the English labels of properties connected to pagan metal, along with the count of their values and the English names of those values.

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


Question: What are the Twitter accounts of Tyson Fury, Larry Augustin, and Kikkan Randall?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?username WHERE {
  ?person wdt:P2002 ?username .
  VALUES ?username {
    "Tyson_Fury" "lmaugustin" "kikkanimal"
  }
}
ORDER BY ?username

Show me the entities in Wikidata that have the Twitter usernames Tyson_Fury, lmaugustin, or kikkanimal.

Which people on Wikidata use the Twitter handles Tyson_Fury, lmaugustin, and kikkanimal?

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


Question: What film has the KINENOTE ID 18074?

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

Can you tell me the name of the movie identified by the KINENOTE number 18074?

Which film is linked to the identifier 18074 in the KINENOTE movie database?

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


Question: What are the English descriptions and names of the IMDb persons with IDs nm0000003 and nm0000004?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?imdbId ?person ?label ?description WHERE {
  VALUES ?imdbId {
    "nm0000003" "nm0000004"
  }
  ?person wdt:P345 ?imdbId .
  ?person rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  ?person schema:description ?description .
  FILTER(LANG(?description) = "en")
}
ORDER BY ?imdbId

Who are the people associated with IMDb IDs nm0000003 and nm0000004, and what are their English-language biographical descriptions?

Please provide the names and English descriptions of the actors identified by IMDb person IDs nm0000003 and nm0000004.

SELECT * WHERE { VALUES ( ?var1 ) { ( "nm0000003" ) ( "nm0000004" ) } ?var2 <http://www.wikidata.org/prop/direct/P345> ?var1 . ?var2 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . }


Question: What is the Japanese Wikipedia page for the Tokyo Metropolitan Teien Art Museum?

SELECT DISTINCT ?label ?page WHERE { ?page schema:about wd:Q743773 ; schema:inLanguage "ja" . FILTER(STRSTARTS(STR(?page), "https://ja.wikipedia.org/wiki/")) . wd:Q743773 rdfs:label ?label . FILTER(LANG(?label) = "ja") }

What is the Japanese name of the Tokyo Metropolitan Teien Art Museum, and where can I find its Japanese Wikipedia article?

Show me the Japanese label and Wikipedia link for the Tokyo Metropolitan Teien Art Museum.

SELECT DISTINCT ?var1Label ?var2 WHERE { ?var2 <http://schema.org/about> <http://www.wikidata.org/entity/Q743773> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "ja". FILTER ( ( ( SUBSTR ( STR ( ?var2 ) ,"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: What properties are used for Takebashi Station, their English labels, the values, their formatter URLs, and corresponding Japanese Wikipedia pages?

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 ?object ?objectLabel ?formatterUrl ?japanesePage WHERE {
  wd:Q80564 ?propertyStatement ?object .
  ?property wikibase:directClaim ?propertyStatement .
  OPTIONAL {
    ?property wdt:P1630 ?formatterUrl
  }
  OPTIONAL {
    ?japanesePage schema:about ?object ; schema:inLanguage "ja" ;
    FILTER(STRSTARTS(STR(?japanesePage) , "https://ja.wikipedia.org/"))
  }
  OPTIONAL {
    ?property rdfs:label ?propertyLabel .
    FILTER(LANG(?propertyLabel) = "en")
  }
  OPTIONAL {
    ?object rdfs:label ?objectLabel .
    FILTER(LANG(?objectLabel) = "en")
  }
}

For Takebashi Station in Tokyo, which properties have associated formatter URLs and Japanese Wikipedia articles describing their values?

List all properties of Takebashi Station along with their English labels, the values they point to, any URL templates for those values, and the Japanese Wikipedia pages about those values.

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/Q80564> ?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: Which organizations have Twitter accounts named Wikimedia, TechCrunch, PBALille, or MozDevNet?

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

What are the Wikidata entities corresponding to the Twitter usernames Wikimedia, TechCrunch, PBALille, and MozDevNet?

Show me the Wikidata items for the Twitter accounts @Wikimedia, @TechCrunch, @PBALille, and @MozDevNet.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "Nordengail" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "Jastrow75" ) ( "safeincom" ) ( "string6" ) ( "dicare_org" ) ( "string7" ) ( "fpetit2017" ) ( "string8" ) ( "PBALille" ) ( "OrangeHDF" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "LoicHay" ) ( "communagir" ) ( "string13" ) ( "Vultr" ) ( "weebclout" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "ash_crow" ) ( "aid_agency" ) ( "string17" ) ( "MozDevNet" ) ( "DaliboLabs" ) ( "pgstef" ) ( "ioguix" ) ( "fcouchet" ) ( "string18" ) ( "CarloDrift" ) ( "Wikimedia" ) ( "tvorange" ) ( "PoulpyWP" ) ( "string19" ) ( "The_LSN" ) ( "OliBerne" ) ( "Reelwens" ) ( "string20" ) ( "TechCrunch" ) } } ORDER BY ASC( ?var3 )


Question: Fictional characters with "mayor" listed as their military or police rank

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

Who are the people or characters whose military or police rank is recorded as mayor in Wikidata?

Show me entities that have "mayor" as their military or police rank, along with any qualifiers on that claim.

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


Question: French-labeled humans with 'Kiriakides' in their name

SELECT DISTINCT ?item ?label WHERE { ?item rdfs:label ?label . FILTER(LANG(?label) = "fr") FILTER(contains(lcase(?label), "kiriakides")) ?item wdt:P31 wd:Q5 .}

Who are the people named Kiriakides that have a French label?

List all humans whose French label contains the name Kiriakides.

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


Question: What are the English-labeled documentary films and their countries of origin?

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 ?film ?filmLabel ?countryLabel WHERE {
  ?film wdt:P31 wd:Q93204 .
  ?film wdt:P495 ?country .
  ?film rdfs:label ?filmLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?filmLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}

Which countries produced documentary films, and what are their English titles?

Can you list documentary films with their English names and where they were produced?

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


Question: Is Bernard Friot a type of software?

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

Does the category that Bernard Friot belongs to include software?

Could Bernard Friot be classified as a kind of computer program?

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


Question: What is the Wikidata item for the French name 'Aude Pépin' who is a human?

SELECT ?person WHERE { ?person rdfs:label "Aude Pépin"@fr . ?person wdt:P31 wd:Q5 .}

Who is Aude Pépin in French, and how do we know they are a human in Wikidata?

Find the Wikidata entity for the person named 'Aude Pépin' in French, confirmed to be a human.

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


Question: Television programs and the series they belong to.

SELECT ?program ?seriesLabel WHERE { ?program wdt:P31 wd:Q15416 . ?program wdt:P179 ?series . ?series rdfs:label ?seriesLabel . FILTER(LANGMATCHES(LANG(?seriesLabel), "en")) } LIMIT 100

What television programs are part of which series, and what are the names of those series in English?

List up to 100 television programs along with the English names of the series they are part of.

SELECT ?var1 ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q15416> . ?var1 <http://www.wikidata.org/prop/direct/P179> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } LIMIT 100


Question: What are some subclasses of film?

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

Can you list all the types of films that are subclasses of cinematic work?

Show me the English labels of all film genres and subcategories that are directly or indirectly classified under film.

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


Question: What BAFTA awards has Jodie Foster won?

SELECT ?awardLabel WHERE { wd:Q41351 wdt:P166 ?award . ?award wdt:P31 wd:Q732997 . ?award rdfs:label ?awardLabel . FILTER(LANG(?awardLabel) = "en") }

Which British Academy Film Awards has Jodie Foster received?

List the BAFTA award categories that Jodie Foster has been awarded.

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


Question: Paintings created by artists who died after 1923, with a Commons-compatible image URL but no direct image on Wikidata.

SELECT ?painting WHERE { ?painting wdt:P31 wd:Q3305213 . ?painting wdt:P170 ?artist . ?artist wdt:P570 ?deathDate . BIND(YEAR(?deathDate) AS ?deathYear) . FILTER(?deathYear >= 1923) . ?painting p:P4765 ?statement . ?statement ps:P4765 ?url . MINUS { ?painting wdt:P18 [] . } } LIMIT 25000

Which paintings have a freely usable image URL but no uploaded image on Wikidata, and were created by artists who died in 1923 or later?

List all paintings from artists who died after 1923 that are linked to a Commons-compatible image URL but do not have a direct image on Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P4765> ?var4 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> [] . } BIND ( YEAR ( ?var5 ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P170> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P570> ?var5 . FILTER ( ( ( ?var6 >= "1923"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } LIMIT 25000


Question: Top 100 languages by number of speakers with their Wikimedia codes

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 ?languoid ?languoidLabel ?languageCode WHERE {
  ?languoid wdt:P31 / wdt:P279 * wd:Q17376908 ; wdt:P424 ?languageCode ; wdt:P1098 ?speakerCount .
  ?languoid rdfs:label ?languoidLabel .
  FILTER(LANG(?languoidLabel) = "en")
}
ORDER BY DESC(?speakerCount)
LIMIT 100

What are the 100 most spoken languages and dialects, along with their English names and Wikimedia language codes?

List the top 100 languoids (languages or dialects) ordered by speaker count, showing their English names and Wikimedia language codes.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q17376908> ; <http://www.wikidata.org/prop/direct/P424> ?var2 ; <http://www.wikidata.org/prop/direct/P1098> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en,fr". } } ORDER BY DESC( ?var3 ) LIMIT 100


Question: Image of Edgar Chahine with SNAC ARK ID w6g7469m

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

What is the Wikimedia Commons image associated with Edgar Chahine, identified by SNAC ARK ID w6g7469m?

Show me the image of the person whose SNAC ARK ID is w6g7469m.

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


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

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

Can you find the Wikimedia Commons image associated with the SNAC ARK ID w6vq33p5?

Show me the image of Alphonse Daudet, identified by the SNAC ARK ID w6vq33p5.

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


Question: People with their net worth in USD

SELECT ?person ?personLabel ?netWorth WHERE { ?person wdt:P2218 ?netWorth . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 1000

Who are the people with the highest net worth, and how much are they worth?

List the names and net worth values of all individuals in Wikidata who have a declared net worth.

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


Question: Is there a person in Wikidata with the AlloCiné ID 576000?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?person wdt:P1266 "576000" .
}

Does the AlloCiné database list a person with ID 576000 in Wikidata?

Which person is identified as 576000 in the AlloCiné film database?

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


Question: Who is the person with AlloCiné ID 82464?

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

What is the name of the actor or actress listed as 82464 on AlloCiné?

Find the Wikidata entry for the person identified by AlloCiné person ID 82464.

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


Question: Scholarly articles published in 2016 without Arabic descriptions

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?article ?publicationDate WHERE {
  ?article wdt:P31 wd:Q13442814 .
  ?article wdt:P577 ?publicationDate .
  FILTER NOT EXISTS {
    ?article schema:description ?desc .
    FILTER ( LANG( ?desc ) = "ar" )
  }
}
LIMIT 10

Which scholarly articles have a publication date but no Arabic description?

Show me up to 10 scholarly articles that have a publication date and are not described in Arabic.

SELECT ?var1 ?var2 ( LANG ( ?var3 ) AS ?var4 ) WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q13442814> . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "ar" ) ) ) . } ) ) . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var2 . } LIMIT 10


Question: Italian label of the main Wikimedia category for Milan

SELECT ?category ?label WHERE { wd:Q490 wdt:P910 ?category . ?category rdfs:label ?label . FILTER (LANG(?label) = "it") } LIMIT 50

What is the Italian name of the main Wikipedia category for the city of Milan?

Show me the Italian-language category page title for Milan on Wikimedia.

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


Question: Does Wikidata have an entry for the VIAF ID 48150747069916302640?

Is there a person in Wikidata identified by the VIAF number 48150747069916302640?

Check if the Virtual International Authority File identifier 48150747069916302640 is linked to any entity in Wikidata.

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


Question: Media projects where Stephen King is an executive producer.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?media WHERE {
  ?media wdt:P1431 wd:Q39829 .
}

Which TV shows or movies has Stephen King executive produced?

List all the films and TV series for which Stephen King served as executive producer.

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


Question: What is the image of the Milan–Saronno railway?

SELECT ?railway ?railwayLabel ?image WHERE { VALUES ?railway { wd:Q802775 } ?railway rdfs:label ?railwayLabel . FILTER(LANG(?railwayLabel) = "en") OPTIONAL { ?railway wdt:P18 ?image . } }

Can you show me the official image and English label for the Milan–Saronno railway line?

What is the name and Wikimedia Commons image associated with the Milan–Saronno railway in Italy?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q802775> . 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> "it". } }


Question: Who won each edition of the Six Nations Championship?

SELECT ?edition ?winner ?winnerLabel WHERE { ?edition wdt:P31 wd:Q105445345; wdt:P1346 ?winner. ?winner rdfs:label ?winnerLabel. FILTER(LANG(?winnerLabel) = "en") }

List the winners of the Six Nations Championship editions along with the year they won.

Which teams have won the Six Nations Championship in its various editions?

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


Question: Image of George Fetherling with SNAC ARK ID w61j9b23

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

What is the image associated with George Fetherling, who has the SNAC ARK ID w61j9b23?

Show me the image of the person identified by the SNAC ARK ID w61j9b23, if one exists.

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


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

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

Show the Wikimedia Commons image associated with Barack Obama’s SNAC identifier.

Does the entity identified by SNAC ARK ID w6f29nwg have an image on Wikimedia Commons?

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


Question: Image of Joseph Augustine Cushman with SNAC ARK ID w6c850x0

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

What is the image associated with Joseph Augustine Cushman in Wikidata?

Can you find the Wikimedia Commons image for the geologist Joseph Augustine Cushman, identified by SNAC ARK ID w6c850x0?

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


Question: Which entities on Wikidata have Twitter usernames "Wikimedia", "WIRED", or "mySociety"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitter WHERE {
  ?item wdt:P2002 ?twitter .
  VALUES ?twitter {
    "Wikimedia" "WIRED" "mySociety"
  }
}
ORDER BY ?twitter

What are the Wikidata items associated with the Twitter accounts @Wikimedia, @WIRED, and @mySociety?

List the Wikidata entities that use "Wikimedia", "WIRED", or "mySociety" as their Twitter username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "adzebill" ) ( "Wikimedia" ) ( "muckymaiya" ) ( "string2" ) ( "Charlyescp" ) ( "Auregann" ) ( "string3" ) ( "mySociety" ) ( "Libratone" ) ( "Wikidata" ) ( "LibrisNytt" ) ( "string4" ) ( "dicare_org" ) ( "string5" ) ( "string6" ) ( "SoeurRose" ) ( "string7" ) ( "brainwane" ) ( "lisacrost" ) ( "string8" ) ( "string9" ) ( "DGclassics" ) ( "string10" ) ( "PBALille" ) ( "string11" ) ( "gira_pat" ) ( "string12" ) ( "HajinsunTV" ) ( "nicomo" ) ( "dsquintana" ) ( "string13" ) ( "bkeegan" ) ( "bhecht" ) ( "string14" ) ( "string15" ) ( "WIRED" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "Wikicite" ) ( "chandresWP" ) } } ORDER BY ASC( ?var3 )


Question: What are the key details about the church building "Kirk in the Hills" in Wikidata?

SELECT ?property ?value WHERE { VALUES ?property { wdt:P31 wdt:P17 wdt:P131 wdt:P625 wdt:P373 wdt:P18 wdt:P646 wdt:P1566 wdt:P856 wdt:P10689 } wd:Q1361058 ?property ?value . } ORDER BY ?property

Can you list the properties (like country, location, and type) associated with Kirk in the Hills?

What information is available for the church named Kirk in the Hills, such as where it is located and what it is an instance of?

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var3 <http://wikiba.se/ontology#claim> ?var5 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#qualifier> ?var7 . ?var3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var4 <http://wikiba.se/ontology#claim> ?var8 . ?var4 <http://wikiba.se/ontology#qualifier> ?var9 . ?var4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 ?var5 ?var10 . ?var10 ?var6 ?var2 . ?var10 ?var9 <http://www.wikidata.org/entity/Q1361058> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the most common research topics in the works authored by Patricia Y W Dankers, and how many works cover each?

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

List the main subjects of Patricia Dankers' publications in English, sorted by how many times each subject appears.

Which topics does Patricia Y W Dankers frequently write about, and how often do they appear in her publications?

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


Question: Does Wikidata contain a person with AlloCiné ID 23118?

Is there a person in Wikidata whose AlloCiné person ID is 23118?

Confirm if the AlloCiné ID 23118 is assigned to any person in Wikidata.

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


Question: Television episodes with their story arcs, main series, and episode numbers, sorted by series and ordinal.

SELECT DISTINCT ?episode ?episodeLabel ?arc ?arcLabel ?series ?seriesLabel ?ordinal WHERE { ?episode wdt:P31 wd:Q21191270 . ?episode wdt:P361 ?arc . ?episode p:P179 ?stmt . ?stmt pq:P1545 ?ordinal . ?stmt ps:P179 ?series . ?episode rdfs:label ?episodeLabel . ?arc rdfs:label ?arcLabel . ?series rdfs:label ?seriesLabel . FILTER(LANG(?episodeLabel) = "en") FILTER(LANG(?arcLabel) = "en") FILTER(LANG(?seriesLabel) = "en") } ORDER BY ASC(?series) ASC(xsd:integer(?ordinal))

What are the television episodes, their story arcs, the series they belong to, and their episode numbers, ordered by series name and episode number?

List all TV episodes, including their story arc, main series, and position in the series, sorted alphabetically by series and numerically by episode number.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q21191270> . ?var1 <http://www.wikidata.org/prop/direct/P361> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P179> ?var3 . ?var1 <http://www.wikidata.org/prop/P179> ?var6 . ?var6 <http://www.wikidata.org/prop/qualifier/P1545> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". } } ORDER BY ASC( ?var3 )ASC( <http://www.w3.org/2001/XMLSchema#integer> ( ?var4 ) )


Question: What film has the AlloCiné ID 4307?

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

Which movie is identified by the AlloCiné film ID 4307?

Tell me the name of the film with AlloCiné ID 4307.

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


Question: Does the film with AlloCiné ID 4307 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?film wdt:P1265 "4307" .
}

What film is identified by the AlloCiné film ID 4307?

Find the film in Wikidata that has the AlloCiné ID 4307.

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


Question: Does the film with AlloCiné ID 254179 exist in Wikidata?

Is there a film in Wikidata identified by the AlloCiné film ID 254179?

Check if the AlloCiné film ID 254179 is assigned to any film in Wikidata.

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


Question: What is the entity on Wikidata with the Twitter handle "le_gorafi"?

SELECT ?entity ?twitterHandle WHERE { ?entity wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "le_gorafi" } } ORDER BY ?entity

Which Wikidata item is associated with the Twitter username le_gorafi?

Can you find the Wikidata entity that has the Twitter handle le_gorafi?

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


Question: Does the film with AlloCiné ID 239790 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?film wdt:P1265 "239790" .
}

Is there a movie in Wikidata identified by the AlloCiné film ID 239790?

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


Question: Does the film with AlloCiné ID 250469 exist in Wikidata?

Is there a film in Wikidata identified by the AlloCiné ID 250469?

Confirm if the movie 'Our Patriots' is linked to AlloCiné ID 250469 in Wikidata.

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


Question: Does the film with AlloCiné ID 219219 exist in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
ASK WHERE {
  ?film wdt:P1265 "219219" .
}

Is there a film in Wikidata identified by the AlloCiné film ID 219219?

Confirm whether the movie 'Miss Météo' has the AlloCiné film ID 219219 in Wikidata.

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


Question: Entities partially coincident with cities and their qualifiers

SELECT ?entity ?qualifierProperty ?qualifierValue WHERE { ?entity p:P1382 ?statement . ?statement ps:P1382 wd:Q515 . ?statement ?qualifierProperty ?qualifierValue . FILTER(?qualifierProperty != ps:P1382 && ?qualifierProperty != rdf:type) }

What qualifiers are used in statements that say an entity is partially coincident with a city?

Show me the entities that have a "partially coincident with city" statement and what qualifiers are attached to those statements.

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


Question: French political parties active since 2017 with BnF ID or YouTube channel

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?party ?partyLabel ?youtube ?endDate ?bnfId WHERE {
  ?party wdt:P31 wd:Q7278 .
  ?party wdt:P17 wd:Q142 .
  OPTIONAL {
    ?party wdt:P2397 ?youtube .
  }
  OPTIONAL {
    ?party wdt:P268 ?bnfId .
  }
  OPTIONAL {
    ?party wdt:P582 ?endDate .
  }
  OPTIONAL {
    ?party rdfs:label ?partyLabel .
    FILTER(LANG(?partyLabel) = "en")
  }
  FILTER(! BOUND(?endDate) || ?endDate >= xsd:date("2017-01-01"))
}

Which political parties in France have not been dissolved before 2017, and what are their BnF IDs or YouTube channels?

List active French political parties (not dissolved before 2017), along with their BnF identifiers and YouTube channel IDs, if available.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q7278> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q142> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2397> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P112> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P268> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P582> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P576> ?var6 . } FILTER ( ( !( BOUND ( ?var4 ) && ( STR ( ?var4 ) < "2017" ) || BOUND ( ?var6 ) && ( STR ( ?var6 ) < "2017" )) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,fr,en". } }


Question: Creative works by Swedish National Biography (SBL) figures, their images, locations, and external links.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?creatorLabel ?workLabel ?coordinates ?image ?locationLabel ?descriptionUrl WHERE {
  ?creator wdt:P3217 ?sblId .
  ?work wdt:P170 ?creator .
  ?work wdt:P18 ?image .
  OPTIONAL {
    ?work wdt:P276 ?location .
    ?location rdfs:label ?locationLabel .
    FILTER ( LANG( ?locationLabel ) = "en" ) .
    ?location wdt:P625 ?coordinates .
  }
  OPTIONAL {
    ?work wdt:P973 ?descriptionUrl .
  }
  ?creator rdfs:label ?creatorLabel .
  FILTER ( LANG( ?creatorLabel ) = "en" ) .
  ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" )
}

What paintings or artworks were created by people listed in the Dictionary of Swedish National Biography, and where are they located?

Show me the images, locations, and description URLs of artworks created by individuals with a Dictionary of Swedish National Biography ID.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6Label ?var7 ?var8 ?var9 ?var10Label ?var11 WHERE { { BIND ( IRI ( CONCAT ( "string1", ?var12 ) ) AS ?var9 ). ?var10 <http://www.wikidata.org/prop/direct/P3217> ?var12 . ?var4 <http://www.wikidata.org/prop/direct/P170> ?var10 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P276> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P625> ?var3 . } { ?var4 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var4 <http://www.wikidata.org/prop/direct/P973> ?var8 . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv", "en". } }


Question: People born in the 17th century

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?birthDate WHERE {
  ?person wdt:P569 ?birthDate .
  ?person wdt:P31 wd:Q5 .
  FILTER ( YEAR( ?birthDate ) > 1600 && YEAR( ?birthDate ) < 1700 )
}

Who were born between 1600 and 1700?
List all humans born in the 1600s.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q15222012> <http://www.wikidata.org/prop/direct/P569> ?var2 . FILTER ( ( ( "1700"^^<http://www.w3.org/2001/XMLSchema#integer> > YEAR ( <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var2 ) ) ) ) ) . FILTER ( ( ( "1600"^^<http://www.w3.org/2001/XMLSchema#integer> < YEAR ( <http://www.w3.org/2001/XMLSchema#dateTime> ( ?var2 ) ) ) ) ) . }


Question: What are the properties and values associated with the Anbetungskirche in Wikidata?

SELECT ?property ?value ?valueLabel WHERE { wd:Q488835 ?property ?value . FILTER(STRSTARTS(STR(?property), "http://www.wikidata.org/prop/direct/")) OPTIONAL { ?value rdfs:label ?valueLabel . FILTER(LANG(?valueLabel) = "en") } } LIMIT 100

Which entities are linked to the Anbetungskirche, and what are their English labels?

Can you list the direct facts about the Anbetungskirche, including the names of related places and people?

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


Question: Image of the person with SNAC ARK ID w6pz5b9r

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

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

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

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


Question: Properties linking resources to the 2014–15 FIS Snowboard World Cup with more than one usage.

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

Which properties are used to connect external resources to the 2014–15 FIS Snowboard World Cup more than once, and how many times?

Show me the properties that are used to associate more than one external resource with the 2014–15 FIS Snowboard World Cup, ordered by how frequently they are used.

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


Question: Ship with IMO number 7725594

Is there a ship with IMO number 7725594?

Check if a ship exists with IMO number 7725594.

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


Question: List of Wikidata properties related to rail transport.

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

What are the Wikidata properties that describe aspects of rail transport systems?

Can you show me the English labels of all Wikidata properties that are classified as being related to rail transport?

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


Question: What is the image of Clinton L. Merriam in Wikimedia Commons?

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

Can you find the image associated with the SNAC ARK ID w6mc9pnd?

Show me the Commons image for the American politician identified by SNAC ARK ID w6mc9pnd.

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


Question: Countries with English Wikivoyage travel guides and their article URLs.

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 ?countryLabel ?wikivoyagePage WHERE {
  ?country wdt:P31 wd:Q3624078 .
  ?wikivoyagePage schema:about ?country .
  ?wikivoyagePage schema:isPartOf <https://en.wikivoyage.org/> .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?countryLabel) = "en")
}

Which sovereign states have dedicated travel guides on English Wikivoyage, and what are the titles of those guides?

Show me the names of all countries and their corresponding English Wikivoyage pages.

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://en.wikivoyage.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the Spanish name for Japan?

SELECT ?label WHERE { wd:Q17 rdfs:label ?label . FILTER (LANGMATCHES(LANG(?label), "es")) } LIMIT 1

Can you tell me how Japan is called in Spanish?

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


Question: What is the Spanish name of Japan, and what is its short name in Wikidata?

SELECT ?label ?shortName WHERE { wd:Q17 rdfs:label ?label . FILTER (LANGMATCHES(LANG(?label), "es")) OPTIONAL { wd:Q17 wdt:P1813 ?shortName . } } LIMIT 1

Show me the Spanish label and the abbreviated name of Japan.

What is Japan called in Spanish, and what is its official short name (like an abbreviation or emoji)?

SELECT ?var1Label ?var2 WHERE { <http://www.wikidata.org/entity/Q17> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( LANGMATCHES ( LANG ( ?var1Label ) , "es" ) ) ) . OPTIONAL { ?var1Label <http://www.wikidata.org/prop/direct/P1813> ?var2 . } } LIMIT 1


Question: What are the superclass categories of a split-finger fastball in baseball?

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

What classes is a split-finger fastball a subclass of, up to five levels up in the hierarchy?

List all the broader categories that a split-finger fastball belongs to through its classification hierarchy.

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


Question: Music singles by The Beatles with MusicBrainz ID b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d

SELECT ?artist ?artistLabel ?singleLabel WHERE { ?artist wdt:P434 "b10bbbfc-cf9e-42e0-be17-e2c3e1d2600d" . ?single wdt:P31 wd:Q134556 . ?single wdt:P175 ?artist . ?artist rdfs:label ?artistLabel . ?single rdfs:label ?singleLabel . FILTER(LANG(?artistLabel) = "en") FILTER(LANG(?singleLabel) = "en") } LIMIT 10

What are the English-labeled music singles performed by The Beatles?

List the English titles of music singles released by The Beatles, identified by their MusicBrainz artist ID.

SELECT ?var1 ?var1Label ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P434> ?var3 . FILTER ( ( ?var3 IN ( "string1" ) ) ) . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q134556> . ?var2 <http://www.wikidata.org/prop/direct/P175> ?var4 ; ?var4 ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10


Question: Who are the humans named André Pau in French?

SELECT DISTINCT ?person WHERE { ?person rdfs:label "André Pau"@fr . ?person wdt:P31 wd:Q5 . }

Which people named André Pau in French are classified as humans in Wikidata?

List all individuals with the French name 'André Pau' who are humans.

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


Question: Paintings in the Smithsonian American Art Museum and their creation years.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?item ?year WHERE {
  ?item wdt:P195 wd:Q1192305 ; wdt:P31 wd:Q3305213 ; wdt:P571 ?inception .
  BIND( YEAR( ?inception ) AS ?year ) .
  FILTER ( ?year >= 1 && ?year < 2100 )
}
LIMIT 100

What are the creation years of paintings held by the Smithsonian American Art Museum?

List the paintings from the Smithsonian American Art Museum along with the years they were created.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q1192305> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . { BIND ( YEAR ( ?var3 ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P571> ?var3 . } UNION { MINUS { ?var1 <http://www.wikidata.org/prop/direct/P571> [] . } BIND ( ( ( ( YEAR ( ?var4 ) - YEAR ( ?var5 ) ) /"2"^^<http://www.w3.org/2001/XMLSchema#integer> ) + YEAR ( ?var5 ) ) AS ?var2 ). ?var1 <http://www.wikidata.org/prop/direct/P170> ?var6 . ?var6 <http://www.wikidata.org/prop/direct/P569> ?var5 . ?var6 <http://www.wikidata.org/prop/direct/P570> ?var4 . } UNION { MINUS { ?var1 <http://www.wikidata.org/prop/direct/P571> [] . } ?var1 <http://www.wikidata.org/prop/direct/P170> ?var6 . MINUS { ?var6 <http://www.wikidata.org/prop/direct/P570> [] . } BIND ( ( YEAR ( ?var5 ) +"50"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var2 ). ?var6 <http://www.wikidata.org/prop/direct/P569> ?var5 . } FILTER ( ( ( "1"^^<http://www.w3.org/2001/XMLSchema#integer> <= ?var2 ) && ( ?var2 < "2100"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } LIMIT 40001


Question: What properties describe All Hallows Bread Street, and what are their values?

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

Can you list the English labels of properties and their associated values for the church All Hallows Bread Street?

Show me the direct properties used to describe All Hallows Bread Street in Wikidata, along with their labels and the labels of their values where available.

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


Question: What administrative region is Pontils located in?

SELECT ?unit ?unitLabel WHERE { wd:Q1248581 wdt:P131 ?unit . ?unit rdfs:label ?unitLabel . FILTER(LANG(?unitLabel) = "en") }

Which comarca does the municipality of Pontils belong to?

Tell me the immediate higher-level administrative division of Pontils, Spain.

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


Question: Books by J.K. Rowling and their English labels

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

What are the English titles of books authored by J.K. Rowling, and what is her name in English?

List the English labels of literary works authored by J.K. Rowling along with her name in English.

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


Question: Find the English description of the entity with National Library of Spain ID XX450954.

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P950 "XX450954" . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

What is the English description of the country with the National Library of Spain ID XX450954?

Show me the entity and its English description that has the BNE ID XX450954.

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


Question: What church was replaced by All Saints' Church in Annesley?

SELECT ?oldChurch ?oldChurchLabel ?property ?propertyLabel WHERE { ?oldChurch ?propertyUri wd:Q4729306 . ?property wikibase:directClaim ?propertyUri . OPTIONAL { ?oldChurch rdfs:label ?oldChurchLabel . FILTER(LANG(?oldChurchLabel) = "en") } OPTIONAL { ?property rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } } LIMIT 100

Which property links Annesley Old Church to All Saints' Church, Annesley, and what is the name of that property?

Can you tell me which building was superseded by All Saints' Church, Annesley, and what Wikidata property describes this replacement?

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


Question: What advocacy groups in Belgium have known geographic coordinates?

SELECT DISTINCT ?org ?orgLabel ?coord WHERE { ?org wdt:P31 wd:Q431603 . ?org wdt:P17 wd:Q31 . ?org wdt:P625 ?coord . ?org rdfs:label ?orgLabel . FILTER(LANG(?orgLabel) = "en") }

List the names and locations of advocacy organizations based in Belgium.

Which Belgian organizations focused on advocacy have their coordinates recorded in Wikidata?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q23138> . ?var1 ?var3 <http://www.wikidata.org/entity/Q31> . ?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> "de,en". } }


Question: What are the abstract categories or classes that water is an instance of, up to four levels deep in the type hierarchy?

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 ?entity ?entityLabel ?directType WHERE {
  {
    wd:Q283 wdt:P31 ?entity .
  } UNION {
    wd:Q283 wdt:P31 ?entity1 .
    ?entity1 wdt:P31 ?entity .
  } UNION {
    wd:Q283 wdt:P31 ?entity1 .
    ?entity1 wdt:P31 ?entity2 .
    ?entity2 wdt:P31 ?entity .
  } UNION {
    wd:Q283 wdt:P31 ?entity1 .
    ?entity1 wdt:P31 ?entity2 .
    ?entity2 wdt:P31 ?entity3 .
    ?entity3 wdt:P31 ?entity .
  }
  OPTIONAL {
    ?entity rdfs:label ?entityLabel .
    FILTER(LANG(?entityLabel) = "en")
  }
  OPTIONAL {
    ?entity wdt:P31 ?directType .
  }
}

List the English-labeled types of water through its chain of "instance of" relationships, and what each type is an instance of.

Show me the ontology classes reachable from water via up to four "instance of" links, along with their labels and their own types.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q283> ; <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> "4"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P31> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: List all Wikidata properties with their English labels.

SELECT DISTINCT ?property ?propertyLabel WHERE { ?property rdf:type wikibase:Property . ?property rdfs:label ?propertyLabel . FILTER (LANG(?propertyLabel) = "en") }

What are all the properties in Wikidata and their English labels?

Can you show me every property in Wikidata that has an English label?

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( CONTAINS ( ?var1Label , "" ) && ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Who are the Polish politicians who died on this day in history?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?deathYear ?image WHERE {
  BIND(MONTH(NOW ()) AS ?currentMonth)
  BIND(DAY(NOW ()) AS ?currentDay)
  ?person wdt:P106 wd:Q82955 ; wdt:P570 ?deathDate ; wdt:P18 ?image ; wdt:P27 wd:Q36 .
  BIND(YEAR(?deathDate) AS ?deathYear)
  FILTER(MONTH(?deathDate) = ?currentMonth && DAY(?deathDate) = ?currentDay)
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 10

Show me the names, years of death, and images of Polish politicians who died on today’s date.

Which Polish politicians have their death anniversary today?

SELECT ?var1 ?var1Label ( YEAR ( ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( MONTH ( NOW ( ) ) AS ?var5 ). BIND ( DAY ( NOW ( ) ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P570> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q36> . FILTER ( ( ( MONTH ( ?var2 ) = ?var5 ) && ( DAY ( ?var2 ) = ?var6 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } } LIMIT 10


Question: What property is most commonly used to indicate that an item is about semiconductors?

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

Most frequent property used to classify items as semiconductors in Wikidata

Show me the main property used to tag semiconductor-related items in Wikidata, ordered by usage count.

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


Question: Artists who died today, with their death year and image.

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 ?artist ?artistLabel(YEAR(?deathDate) AS ?deathYear) ?image WHERE {
  ?artist wdt:P106 wd:Q483501 ; wdt:P570 ?deathDate ; wdt:P18 ?image ; rdfs:label ?artistLabel .
  FILTER(LANG(?artistLabel) = "en")
  FILTER(MONTH(?deathDate) = MONTH(NOW ()) && DAY(?deathDate) = DAY(NOW ()))
}

Which artists died on this day of the year, and what year did they die? Include their images.

Show me a list of artists who passed away on today’s date, including their names, the year they died, and a photo.

SELECT ?var1 ?var1Label ( YEAR ( ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( MONTH ( NOW ( ) ) AS ?var5 ). BIND ( DAY ( NOW ( ) ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q483501> ; <http://www.wikidata.org/prop/direct/P570> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . FILTER ( ( ( MONTH ( ?var2 ) = ?var5 ) && ( DAY ( ?var2 ) = ?var6 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } }