Question: Number of children and birth year range for each person on Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?parent ( COUNT( ?child ) AS ?count ) ( MIN( ?year ) AS ?minYear ) ( MAX( ?year ) AS ?maxYear ) WHERE {
  ?parent wdt:P40 ?child .
  ?child wdt:P569 ?birthDate .
  BIND( YEAR( ?birthDate ) AS ?year )
}
GROUP BY ?parent
LIMIT 10

For each person, how many children do they have, and what are the earliest and latest birth years of their children?

Show me a list of people along with the count of their children and the earliest and latest birth years among those children.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var4 )( MIN ( ?var5 ) AS ?var2 )( MAX ( ?var5 ) AS ?var3 ) WHERE { } GROUP BY ?var1 } }


Question: What are the journals or publications where Daniel Kahneman has published the most works, and how many did he publish in 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 ?venue ?venueName ( COUNT( ?work ) AS ?count ) WHERE {
  ?work wdt:P50 wd:Q1001 .
  ?work wdt:P1433 ?venue .
  ?venue rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) OPTIONAL {
    ?venue wdt:P1813 ?shortName
  }
  BIND( COALESCE ( ?shortName , ?label ) AS ?venueName )
}
GROUP BY ?venue ?venueName
ORDER BY DESC ( ?count )

List Daniel Kahneman’s publication venues, using their short names if available, and count how many works he published in each, sorted by popularity.

Show me the English names of the journals and books Daniel Kahneman has published in, preferring abbreviations over full titles, along with the number of publications per venue.

SELECT ?var1 ?var2Label ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q1686479> . ?var3 <http://www.wikidata.org/prop/direct/P1433> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1813> ?var6 . } BIND ( COALESCE ( ?var6 , ?var5Label ) AS ?var2Label ). } GROUP BY ?var1 ?var2Label ORDER BY DESC( ?var4 )


Question: Who is the child of Louis Sparre?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?child WHERE {
  ?child wdt:P22 wd:Q735994 .
}

List the children of the Swedish painter and designer Louis Sparre.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P22> ?var2 . ?var2 <http://www.wikidata.org/prop/statement/P22> <http://www.wikidata.org/entity/Q735994> . } LIMIT 101


Question: What are the English labels and descriptions for the Wikimedia category "Nobel laureates in Chemistry"?

SELECT ?labelType ?label WHERE { VALUES ?labelType { rdfs:label skos:prefLabel skos:altLabel schema:description } wd:Q5838278 ?labelType ?label . FILTER(LANGMATCHES(LANG(?label), "en")) } ORDER BY ?labelType

Show all English-language labels (like rdfs:label, skos:prefLabel) and descriptions for the category page of Nobel laureates in Chemistry on Wikidata.

Retrieve the English names and descriptions associated with the Wikidata item for the category of Nobel Prize in Chemistry winners.

SELECT ?var1 ?var2 ?var3 ?var2Label ?var3Label WHERE { { VALUES ( ?var1 ?var4 ) { ( <http://www.wikidata.org/entity/Q5838278> <http://www.wikidata.org/entity/Q5838278> ) } ?var4 ?var5 ?var6 . } UNION { SELECT * WHERE { VALUES ( ?var1 ?var4 ) { ( <http://www.wikidata.org/entity/Q5838278> <http://www.wikidata.org/entity/Q5838278> ) } ?var6 ?var5 ?var4 . } LIMIT 5000 } BIND ( IF ( ( ?var5 = <http://www.w3.org/2000/01/rdf-schema#label> ), <http://www.w3.org/2004/02/skos/core#prefLabel> , ?var5 ) AS ?var2 ). BIND ( IF ( ( ?var6 = <http://www.wikidata.org/entity/Q5> ), <http://www.cidoc-crm.org/cidoc-crm/E21_Person> , IF ( ( ?var6 = <http://www.wikidata.org/entity/Q2221906> ), <http://www.cidoc-crm.org/cidoc-crm/E53_Place> , IF ( ( ?var6 = <http://www.wikidata.org/entity/Q16334295> ), <http://www.cidoc-crm.org/cidoc-crm/E74_Group> , ?var6 ) ) ) AS ?var3 ). OPTIONAL { ?var7 <http://wikiba.se/ontology#directClaim> ?var5 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var8 . FILTER ( ( LANGMATCHES ( LANG ( ?var8 ) , "en" ) ) ) . } BIND ( COALESCE ( ?var8 , REPLACE ( REPLACE ( REPLACE ( REPLACE ( STR ( ?var2 ) , ".*/", "" ) , ".*#", "" ) , "_", " " ) , "([A-ZÅÄÖ])", " $1" ) ) AS ?var2Label ). OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( LANGMATCHES ( LANG ( ?var3Label ) , "en" ) ) ) . } }


Question: Who are the male grandfathers of Clas Sparre?

SELECT DISTINCT ?grandfather ?father WHERE { ?grandfather wdt:P21 wd:Q6581097 . ?grandfather wdt:P40 ?father . ?father wdt:P40 wd:Q6184922 . } LIMIT 101

List the males who are the fathers of Clas Sparre's parents.

Find all male individuals whose child is the parent of the pilot Clas Sparre.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/P21> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P21> <http://www.wikidata.org/entity/Q6581097> . ?var1 <http://www.wikidata.org/prop/P40> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P40> ?var2 . ?var2 <http://www.wikidata.org/prop/P40> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P40> <http://www.wikidata.org/entity/Q6184922> . } LIMIT 101


Question: Show the public profiles of Julian Hocker including his ORCID, GitHub, Twitter, official website, image, and labels in English, German, French, and Italian.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?name ?image ?coordinates ?youtubeId ?githubUsername ?twitterUsername ?facebookUsername ?instagramUsername ?website ?orcid ?wikipediaArticle WHERE {
  wd:Q100466271 rdfs:label ?name .
  VALUES ( ?lang ?priority ) {
    ( "en" 1 ) ( "de" 2 ) ( "fr" 3 ) ( "it" 4 )
  }
  FILTER ( LANG( ?name ) = ?lang ) OPTIONAL {
    wd:Q100466271 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P625 ?coordinates .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P1651 ?youtubeId .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P2037 ?githubUsername .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P2002 ?twitterUsername .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P2013 ?facebookUsername .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P2003 ?instagramUsername .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P856 ?website .
  }
  OPTIONAL {
    wd:Q100466271 wdt:P496 ?orcid .
  }
  OPTIONAL {
    ?wikipediaArticle schema:about wd:Q100466271 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ?priority

What are Julian Hocker’s academic online profiles, such as his ORCID, GitHub, Twitter, and official website, along with his name in multiple languages?

Please retrieve Julian Hocker’s name in English, German, French, and Italian, along with his image, ORCID, GitHub username, Twitter handle, official website, and any available YouTube, Facebook, or Instagram links.

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


Question: What are the country of citizenship, gender, place of birth, and place of death of Jorge Luis Borges?

SELECT ?citizenshipLabel ?genderLabel ?birthPlaceLabel ?deathPlaceLabel WHERE {
  wd:Q909 wdt:P27 ?citizenship .
  wd:Q909 wdt:P21 ?gender .
  wd:Q909 wdt:P19 ?birthPlace .
  wd:Q909 wdt:P20 ?deathPlace .

  ?citizenship rdfs:label ?citizenshipLabel .
  ?gender rdfs:label ?genderLabel .
  ?birthPlace rdfs:label ?birthPlaceLabel .
  ?deathPlace rdfs:label ?deathPlaceLabel .

  FILTER(LANG(?citizenshipLabel) = "en")
  FILTER(LANG(?genderLabel) = "en")
  FILTER(LANG(?birthPlaceLabel) = "en")
  FILTER(LANG(?deathPlaceLabel) = "en")
}

Tell me where Jorge Luis Borges was born and died, his gender, and which country he was a citizen of.

Can you provide details about Jorge Luis Borges' nationality, biological sex, birth location, and death location in English?

SELECT ?var1 ?var2Label ?var3Label ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var6Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "es,en". } ?var1 ?var7Label "Borges"@en . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P20> ?var5 . } } LIMIT 1


Question: What are the places and organizations linked to Mark Wilson Jones, their locations, and how are they connected to him?

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 ?image ?entity ?entityLabel ?coord ?propLabel WHERE {
  wd:Q20853425 ?prop ?entity .
  BIND(IRI(REPLACE(STR(?prop) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propEntity)
  .
  ?propEntity rdfs:label ?propLabel .
  FILTER(LANG(?propLabel) = "en")
  OPTIONAL {
    ?entity wdt:P18 ?image
  }
  OPTIONAL {
    ?entity wdt:P625 ?coord
  }
  ?entity rdfs:label ?entityLabel .
  FILTER(LANG(?entityLabel) = "en")
}

Which institutions and countries are associated with Mark Wilson Jones, and what are their coordinates and the nature of the association?

Show me the entities connected to Mark Wilson Jones, including their images, geographic coordinates, and the English names of the relationships linking them to him.

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


Question: Subclasses of food

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?subclass ?subclassLabel WHERE {
  ?subclass wdt:P279 wd:Q2095 .
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = "en" )
}
LIMIT 200

What are some specific types of food that are subclasses of the general category "food"?

List up to 200 English-labeled food items that are direct subclasses of "food" in Wikidata.

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/P279> <http://www.wikidata.org/entity/Q2095> . } LIMIT 200


Question: Cats that are Chief Mousers at 10 Downing Street

SELECT ?cat ?catLabel WHERE { ?cat wdt:P31 wd:Q146 . ?cat wdt:P39 wd:Q198641 . ?cat rdfs:label ?catLabel . FILTER(LANG(?catLabel) = "en") }

Which house cats have held the position of Chief Mouser to the Cabinet Office?

List the names of the cats that serve as Chief Mouser to the Cabinet Office.

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


Question: How many subclasses of iridocyclitis are listed in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ( COUNT( ?subclass ) AS ?count ) WHERE {
  ?subclass wdt:P279 wd:Q145790 .
}

What is the number of direct subtypes of iridocyclitis in Wikidata?

List the count of diseases that are classified as subclasses of iridocyclitis.

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


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

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

Image of Eugène Sauzay (SNAC ARK ID w6cr9gx4)

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

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


Question: Who has the Dictionary of Swedish National Biography ID 6426?

SELECT ?person WHERE { ?person wdt:P3217 "6426" . } LIMIT 1

Which person is identified by the SBL ID 6426 in the Swedish National Biography?

Find the Wikidata item for the individual with SBL ID 6426.

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


Question: Image of the person with SNAC ARK ID w6rn551m

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

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

Show me the Wikimedia Commons image for Vera Brittain, identified by SNAC ARK ID w6rn551m.

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


Question: Who are the screenwriters of films, and what are the titles of those films?

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 ?film ?filmLabel ?screenwriter ?screenwriterLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P58 ?screenwriter .
  OPTIONAL {
    ?film rdfs:label ?filmLabel .
    FILTER(LANG(?filmLabel) = "en")
  }
  OPTIONAL {
    ?screenwriter rdfs:label ?screenwriterLabel .
    FILTER(LANG(?screenwriterLabel) = "en")
  }
}
LIMIT 100

List films and their screenwriters with English labels.

Show me a list of movies along with the names of the people who wrote their screenplays.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 4200


Question: How many direct subclasses does the toy category have in Wikidata?

SELECT (COUNT(DISTINCT ?subclass) AS ?count) WHERE { ?subclass wdt:P279 wd:Q11422 . }

What is the count of items that are direct subclasses of toy?

List the number of types of toys recognized as subclasses in Wikidata.

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


Question: Films and their production companies

SELECT ?film ?productionCompany ?productionCompanyLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P272 ?productionCompany . ?productionCompany rdfs:label ?productionCompanyLabel . FILTER(LANG(?productionCompanyLabel) = "en") } LIMIT 200

Which films were produced by which companies?

List 200 films along with the names of the companies that produced them, in English.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P272> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 12600


Question: Films and their production companies

SELECT ?film ?productionCompany ?productionCompanyLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P272 ?productionCompany . ?productionCompany rdfs:label ?productionCompanyLabel . FILTER(LANG(?productionCompanyLabel) = "en") }

Which films have been produced by which companies, and what are the companies' names?

List English-labeled production companies of all films in Wikidata.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P272> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 15200


Question: Films and their producers

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 ?film ?producer ?producerLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P162 ?producer .
  ?producer rdfs:label ?producerLabel .
  FILTER ( LANG( ?producerLabel ) = "en" )
}
LIMIT 200

Which films have been produced by whom, and what are the producers' names?

List 200 films along with the names of their producers.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P162> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 11000


Question: What is the hierarchy of Bierlast, and what are its type and superclass?

SELECT DISTINCT ?instanceLabel ?typeLabel ?subclassLabel WHERE { wd:Q857913 wdt:P31 ?type . ?type wdt:P279 ?subclass . wd:Q857913 rdfs:label ?instanceLabel . ?type rdfs:label ?typeLabel . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?instanceLabel) = "en") FILTER(LANG(?typeLabel) = "en") FILTER(LANG(?subclassLabel) = "en")}

What class does Bierlast belong to, and what is the broader category of that class?

Show the English labels for Bierlast, its type (unit of volume), and its superclass (unit of measurement).

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q105210> ) } BIND ( <http://www.wikidata.org/entity/Q857913> AS ?var5 ). ?var5 ( <http://www.wikidata.org/prop/direct/P31> ?| <http://www.wikidata.org/prop/direct/P279> ?) ?var1 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) ?var4 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> */ <http://www.wikidata.org/prop/direct/P279> *) ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P31> | <http://www.wikidata.org/prop/direct/P279> ) ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de, en". } }


Question: Films and their producers

SELECT ?film ?producer ?producerLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P162 ?producer . ?producer rdfs:label ?producerLabel . FILTER(LANG(?producerLabel) = "en") } LIMIT 200

Which films have been produced by whom, and what are the producers' names in English?

Show me a list of films along with the names of their producers in English.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P162> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 26000


Question: Films and their screenwriters with English titles and names

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film ?filmLabel ?screenwriter ?screenwriterLabel WHERE {
  ?film wdt:P31 wd:Q11424 .
  ?film wdt:P58 ?screenwriter .
  ?film wdt:P1476 ?filmLabel .
  ?screenwriter rdfs:label ?screenwriterLabel .
  FILTER(LANG(?filmLabel) = "en")
  FILTER(LANG(?screenwriterLabel) = "en")
}
LIMIT 200

Which films have English titles and who wrote their screenplays, with the screenwriters' names in English?

List films along with their English titles and the names of their screenwriters in English.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 36800


Question: Films and their composers

SELECT ?film ?composer ?composerLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P86 ?composer . ?composer rdfs:label ?composerLabel . FILTER(LANG(?composerLabel) = "en") } LIMIT 200

List films along with the names of their composers.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P86> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 53000


Question: List films and their screenwriters.

SELECT ?film ?filmLabel ?screenwriter ?screenwriterLabel WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P58 ?screenwriter . ?film rdfs:label ?filmLabel . ?screenwriter rdfs:label ?screenwriterLabel . FILTER(LANG(?filmLabel) = "en") FILTER(LANG(?screenwriterLabel) = "en") } LIMIT 100

Show me the names of films along with the names of the people who wrote their screenplays.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P58> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "[AUTO_LANGUAGE], en". } } LIMIT 200 OFFSET 70600


Question: What is the Wikidata item for the movie with OMDB ID 106984?

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

Which movie in Wikidata has the Open Movie Database ID 106984?

Can you find the movie titled "Italy Italy" using its OMDB identifier?

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


Question: What geographical locations is the New Synagogue in Poznań connected to through administrative and continental hierarchies?

SELECT DISTINCT ?location WHERE { wd:Q11793456 (wdt:P30 | wdt:P17 | wdt:P131)* ?location . }

List all countries, cities, and continents associated with the New Synagogue in Poznań, including indirect relationships.

What is the full geographical context of the New Synagogue in Poznań, from the local city up to the continent?

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


Question: What city does Tunis–Carthage International Airport serve, and what are the geographic coordinates of both the airport and the city?

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 ?airportLabel ?cityLabel ?city ?airportCoords ?cityCoords WHERE {
  BIND( wd:Q1141214 AS ?airport ) ?airport wdt:P931 ?city ; wdt:P625 ?airportCoords .
  ?city wdt:P625 ?cityCoords .
  ?airport rdfs:label ?airportLabel .
  ?city rdfs:label ?cityLabel .
  FILTER ( LANG( ?airportLabel ) = "en" || LANG( ?airportLabel ) = "" ) FILTER ( LANG( ?cityLabel ) = "en" || LANG( ?cityLabel ) = "" )
}

Find the name of the city served by Tunis–Carthage International Airport along with the coordinates of the airport and the city.

Where is Tunis–Carthage International Airport located, and which city does it serve? Provide the coordinates for both locations.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q1141214> ) } ?var4 <http://www.wikidata.org/prop/direct/P81> ?var1 ; <http://www.wikidata.org/prop/direct/P625> ?var5 . ?var1 <http://www.wikidata.org/prop/direct/P931> ?var2 ; <http://www.wikidata.org/prop/direct/P625> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who held the office of President of Bolivia and what qualifiers (like end time or replacement) are associated with their terms?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?item ?statement ?property ( SAMPLE( ?qp ) AS ?qualifierProperty ) WHERE {
  {
    SELECT DISTINCT ?item ?statement ?property WHERE {
      ?statement ?prop wd:Q373548 .
      ?item ?claim ?statement .
      ?property wikibase:statementProperty ?prop ; wikibase:claim ?claim .
      FILTER ( ?property != wd:P31 )
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qp ?qualifierValue .
    ?qualifierTemplate wikibase:qualifier ?qp .
  }
}
GROUP BY ?item ?statement ?property

Which individuals or elections are linked to the position of President of Bolivia, and what additional details (such as who replaced them) are recorded in Wikidata?

List all people and elections associated with the office of President of Bolivia, along with any qualifiers like start/end dates or succession details.

SELECT ?var1 ?var2 ?var3 ( SAMPLE ( ?var4 ) AS ?var5 ) WHERE { { SELECT DISTINCT ?var1 ?var2 ?var3 WHERE { ?var2 ?var6 <http://www.wikidata.org/entity/Q373548> . ?var1 ?var7 ?var2 . ?var3 <http://wikiba.se/ontology#statementProperty> ?var6 . ?var3 <http://wikiba.se/ontology#claim> ?var7 . FILTER ( ( ( ?var3 != <http://www.wikidata.org/entity/P31> ) ) ) . } LIMIT 101 } OPTIONAL { ?var2 ?var4 ?var8 . ?var9 <http://wikiba.se/ontology#qualifier> ?var4 . } } GROUP BY ?var1 ?var2 ?var3


Question: What movie has the IMDb ID tt5471272?

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

Which film on Wikidata is associated with the IMDb identifier tt5471272?

Tell me the Wikidata entry for the movie with IMDb ID tt5471272.

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


Question: Top Russian chess players with most Wikipedia articles in languages other than French.

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?player ( COUNT( DISTINCT ?article ) AS ?articleCount ) WHERE {
  ?player wdt:P31 wd:Q5 .
  ?player wdt:P106 wd:Q10873124 .
  ?player wdt:P27 wd:Q159 .
  ?article schema:about ?player .
  FILTER NOT EXISTS {
    ?frenchArticle schema:about ?player .
    ?frenchArticle schema:inLanguage "fr" .
  }
}
GROUP BY ?player
ORDER BY DESC ( ?articleCount )
LIMIT 300

Which Russian chess players have the highest number of Wikipedia articles written about them, excluding French-language articles?

List the 300 Russian chess players who are mentioned in the most non-French Wikipedia articles, ranked by article count.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10873124> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q159> . ?var2 <http://schema.org/about> ?var1 . FILTER ( ( NOT EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "fr". } ) ) . } GROUP BY ?var1 ORDER BY DESC( ?var3 ) LIMIT 300


Question: What are the years BC with Kölsch Wikipedia pages and their labels in Kölsch?

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/>
SELECT ?year ?date ?label ?wikipediaPage ?pageTitle WHERE {
  ?year wdt:P31 wd:Q29964144 .
  ?year wdt:P585 ?date .
  ?year rdfs:label ?label .
  FILTER ( LANG( ?label ) = "ksh" ) .
  OPTIONAL {
    ?wikipediaPage schema:about ?year ; schema:inLanguage "ksh" ; schema:name ?pageTitle .
  }
}
ORDER BY ASC ( ?date )

Which years before Christ have labels in the Kölsch language, and what are their corresponding Wikipedia articles in Kölsch?

List all years BC in chronological order, showing their Kölsch labels and links to their Kölsch Wikipedia pages if they exist.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q29964144> . ?var1 <http://www.wikidata.org/prop/direct/P585> ?var2 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "ksh" ) ) ) . OPTIONAL { ?var4 <http://schema.org/about> ?var1 ; <http://schema.org/inLanguage> "ksh"; <http://schema.org/name> ?var5 . } } ORDER BY ASC( ?var2 )


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

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

What is the official X (Twitter) account for Wikidata?

Tell me the entity on Wikidata that uses "wikidata" as its X username.

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


Question: Who has the Twitter username "BarackObama"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?twitterUsername WHERE {
  ?person wdt:P2002 ?twitterUsername .
  FILTER(?twitterUsername = "BarackObama")
}

Which Wikidata entity is associated with the Twitter handle "BarackObama"?

Show me the person who uses "BarackObama" as their Twitter username.

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


Question: Which Wikidata entities are associated with the Twitter usernames: envlh, AlexHinojo, EvoMRI, jncardoux, lully1804, OKFN, RIOJournal, sanseveria, and Wikimedia?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "envlh" "AlexHinojo" "EvoMRI" "jncardoux" "lully1804" "OKFN" "RIOJournal" "sanseveria" "Wikimedia"
  }
}

Who are the people and organizations on Wikidata that have the Twitter handles envlh, AlexHinojo, EvoMRI, jncardoux, lully1804, OKFN, RIOJournal, sanseveria, and Wikimedia?

List the Wikidata items and their corresponding Twitter usernames for the following handles: envlh, AlexHinojo, EvoMRI, jncardoux, lully1804, OKFN, RIOJournal, sanseveria, and Wikimedia.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "string2" ) ( "Ploumplum1" ) ( "looniverse" ) ( "oswdhome" ) ( "GuyHomard" ) ( "WikiBrest" ) ( "lully1804" ) ( "AlexHinojo" ) ( "string3" ) ( "viquipedia" ) ( "string4" ) ( "jncardoux" ) ( "string5" ) ( "string6" ) ( "EPNGuichen" ) ( "string7" ) ( "mnlmoreau" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "EvoMRI" ) ( "UVADSI" ) ( "Wikimedia" ) ( "RIOJournal" ) ( "OKFN" ) ( "string11" ) ( "Histrobot" ) ( "sanseveria" ) ( "string12" ) ( "string13" ) ( "string14" ) } }


Question: Taxa and the year their scientific names were published, distinguishing between main statements and references.

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?taxon ?taxonLabel ?publicationYear ?sourceType WHERE {
  {
    BIND( "mainsnak" AS ?sourceType ) .
    ?taxon p:P574 / ps:P574 ?publicationYear .
  } UNION {
    BIND( "reference" AS ?sourceType ) .
    ?taxon ?statementProperty ?statement .
    ?statement ps:P574 ?publicationYear .
    ?statement prov:wasDerivedFrom ?reference .
    ?reference pr:P574 ?publicationYear .
  }
  OPTIONAL {
    ?taxon rdfs:label ?taxonLabel .
    FILTER ( LANG( ?taxonLabel ) = "en" )
  }
}
LIMIT 100

When were the scientific names of taxa like Homotherium and obelisk formally published, and are these dates from main statements or references?

Show me the taxa along with their English labels, the year their scientific names were published, and whether the date comes from the main statement or a reference citation.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ?var2 ?var3 WHERE { { BIND ( "mainsnak" AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/P574> / <http://www.wikidata.org/prop/statement/P574> ) ?var2 . } UNION { BIND ( "reference" AS ?var3 ). ?var4 <http://www.wikidata.org/prop/reference/P574> ?var2 . ?var5 <http://www.w3.org/ns/prov#wasDerivedFrom> ?var4 . ?var1 ?var6 ?var5 . } } LIMIT 100 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs,sk,en". } }


Question: Teachta Dála members who started their term after their electoral district was established.

SELECT ?person ?personLabel ?termStart ?constituency ?constituencyLabel ?constituencyInception ?constituencyDissolution WHERE { ?person p:P39 ?statement . ?statement ps:P39 wd:Q654291 . ?statement pq:P580 ?termStart . ?statement pq:P768 ?constituency . ?constituency wdt:P571 ?constituencyInception . OPTIONAL { ?constituency wdt:P576 ?constituencyDissolution . } ?person rdfs:label ?personLabel . ?constituency rdfs:label ?constituencyLabel . FILTER(LANG(?personLabel) = "en") FILTER(LANG(?constituencyLabel) = "en") FILTER (?termStart > ?constituencyInception) } LIMIT 100

Which members of the Irish Dáil were elected to constituencies that were created before their term began?

Show me the names of Teachta Dála representatives, the constituencies they represented, and confirm that their terms began after those constituencies were founded.

SELECT ?var1 ?var1Label ?var2 ?var3Label ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/P39> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q654291> . ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var2 . ?var6 <http://www.wikidata.org/prop/qualifier/P768> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P571> ?var4 . ?var3 <http://www.wikidata.org/prop/direct/P576> ?var5 . FILTER ( ( ( ?var2 > ?var4 ) ) ) . FILTER ( ( ( ?var7 < ?var5 ) ) ) . } LIMIT 100


Question: Countries and their license plate codes

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?licensePlateCode WHERE {
  ?country wdt:P31 wd:Q6256 .
  OPTIONAL {
    ?country wdt:P395 ?licensePlateCode .
  }
}
LIMIT 100

What are the license plate codes for countries?

List all countries along with their vehicle license plate codes, showing empty values where the code is not available.

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


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

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

Show the Wikimedia Commons image for the entity identified by w6gn13dq in SNAC.

Find the photo of the person whose SNAC ARK ID is w6gn13dq.

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


Question: What Linux distributions are derived from Debian?

SELECT ?project (SAMPLE(?label) AS ?projectLabel) WHERE { { ?project wdt:P144 wd:Q7715973 . } UNION { ?project wdt:P144 ?step1 . ?step1 wdt:P144 wd:Q7715973 . } UNION { ?project wdt:P144 ?step1 . ?step1 wdt:P144 ?step2 . ?step2 wdt:P144 wd:Q7715973 . } ?project rdfs:label ?label . FILTER(LANG(?label) = "en") } GROUP BY ?project

Can you list software projects that are based on Debian, up to three levels of dependency?

Show me the names of operating systems that trace their origin to Debian through direct or indirect adaptation.

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/Q7715973> ; <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> "3"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "3"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P144> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P144> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Countries with population between 100,000 and 600,000, ordered by population descending.

SELECT ?country ?countryLabel ?population WHERE { ?country wdt:P31 wd:Q3624078 ; wdt:P1082 ?population ; rdfs:label ?countryLabel . FILTER ( ?population >= 100000 && ?population < 600000 ) FILTER ( lang(?countryLabel) = "en" ) } ORDER BY DESC(?population) LIMIT 100

Which sovereign states have a population of at least 100,000 but less than 600,000, and what are their populations?

List the top 20 countries by population that have between 100,000 and 600,000 people, along with their names and population numbers.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3624078> ; <http://www.wikidata.org/prop/direct/P1082> ?var2 . FILTER ( ( ( ?var2 >= "100000"^^<http://www.w3.org/2001/XMLSchema#integer> ) && ( ?var2 < "600000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 ) LIMIT 100


Question: Which Wikidata entities have the Twitter usernames "N_Hulot" or "xcaitucoli"?

SELECT ?person ?twitterUsername WHERE { ?person wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "N_Hulot" "xcaitucoli" } }

Who are the people on Wikidata whose Twitter/X handle is "N_Hulot" or "xcaitucoli"?

Show me the Wikidata items for Nicolas Hulot and Xavier Caïtucoli based on their Twitter usernames N_Hulot and xcaitucoli.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "N_Hulot" ) ( "string3" ) ( "string4" ) ( "xcaitucoli" ) ( "ODDO_BHF" ) ( "JuMottet" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "AnodeAsso" ) } }


Question: Paintings of Henry VIII with their titles and images.

SELECT ?painting ?paintingLabel ?image WHERE { ?painting wdt:P31 wd:Q3305213 . ?painting wdt:P180 wd:Q38370 . OPTIONAL { ?painting wdt:P18 ?image . } ?painting rdfs:label ?paintingLabel . }

What are the paintings depicting Henry VIII, and what are their titles and images?

Show me all paintings of Henry VIII, including their names and any available images from Wikimedia Commons.

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


Question: FIFA rankings for national football teams without external references

SELECT ?team ?teamLabel ?rank WHERE {  ?team p:P1352 ?statement .  ?statement ps:P1352 ?rank ;             pq:P447 wd:Q253414 .  ?team rdfs:label ?teamLabel .  FILTER(LANG(?teamLabel) = "en")  MINUS {    ?statement prov:wasDerivedFrom [ pr:P854 [] ] .  } }

What are the current FIFA world rankings for men's and women's national football teams, excluding those with cited sources?

List all national football teams and their FIFA-assigned world rankings, but only include those without reference URLs.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P1352> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P1352> ?var2 ; <http://www.wikidata.org/prop/qualifier/P447> <http://www.wikidata.org/entity/Q253414> . OPTIONAL { ?var4 <http://www.wikidata.org/prop/qualifier/P587> ?var3 . } MINUS { ?var4 <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P854> [] ] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: What is the French label of the Wikimedia category Q32081749, and does it have an English equivalent?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT(xsd:string(?frLabel) AS ?frenchLabel)(xsd:string(?enLabel) AS ?englishLabel) WHERE {
  wd:Q32081749 rdfs:label ?frLabel .
  FILTER(LANGMATCHES(LANG(?frLabel) , "fr"))
  OPTIONAL {
    wd:Q32081749 rdfs:label ?enLabel .
    FILTER(LANGMATCHES(LANG(?enLabel) , "en"))
  }
}
LIMIT 1

Show the French and English labels for the category "Catégorie:Wikipédia:Grèbe roussâtre" — if one is missing, leave it blank.

Retrieve the French label of Wikidata item Q32081749, and include its English label if it exists.

SELECT DISTINCT( <http://www.w3.org/2001/XMLSchema#string> ( ?var1 ) AS ?var2 )( <http://www.w3.org/2001/XMLSchema#string> ( ?var3 ) AS ?var4 ) WHERE { <http://www.wikidata.org/entity/Q32081749> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . <http://www.wikidata.org/entity/Q32081749> <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . FILTER ( ( LANGMATCHES ( LANG ( ?var1 ) , "FR" ) ) ) . FILTER ( ( LANGMATCHES ( LANG ( ?var3 ) , "EN" ) ) ) . } LIMIT 10


Question: Wikipedia categories for municipalities and their English labels

SELECT ?municipality ?categoryLabel WHERE { ?municipality (wdt:P31/wdt:P279*) wd:Q15284 . ?municipality wdt:P910 ?category . ?category rdfs:label ?categoryLabel . FILTER(LANG(?categoryLabel) = "en") } LIMIT 10

What are the English Wikipedia categories associated with municipalities?

List the English Wikipedia category names for all municipalities and their subclasses.

SELECT ?var1 ( "Len" AS ?var2 ) ?var3 WHERE { ?var4 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q15284> . MINUS { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4167836> . } BIND ( SUBSTR ( STR ( ?var4 ) , ( STRLEN ( STR ( <http://www.wikidata.org/entity/> ) ) +"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var1 ). BIND ( CONCAT ( """, SUBSTR ( STR ( ?var4Label ) ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) , """ ) AS ?var3 ). ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var4Label . FILTER ( ( ( LANG ( ?var4Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( LCASE ( ?var4Label ) , "category:"@en ) ) ) . } LIMIT 10


Question: Which entities have the Twitter usernames "envlh", "Ludovic_P_", or "Reporterre"?

SELECT ?entity ?twitterUsername WHERE { ?entity wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "envlh" "Ludovic_P_" "Reporterre" } }

Who are the people or organizations on Wikidata with the Twitter handles @envlh, @Ludovic_P_, and @Reporterre?

Show me the Wikidata entities linked to the Twitter usernames envlh, Ludovic_P_, and Reporterre.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "Ludovic_P_" ) ( "PoulpyWP" ) ( "HealingMB" ) ( "Jules78120" ) ( "Reporterre" ) ( "Mac_Picsou" ) ( "string2" ) } }


Question: Which Wikidata items have the Twitter usernames C8TV, PascalElbe, or TPMP?

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "C8TV" "PascalElbe" "TPMP" } }

Who or what are the entities on Wikidata that use C8TV, PascalElbe, and TPMP as their Twitter/X handles?

Show me the entities corresponding to the Twitter accounts @C8TV, @PascalElbe, and @TPMP (without the @ symbol) in Wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "lohaxejes" ) ( "string2" ) ( "BuchsBryan" ) ( "string3" ) ( "string4" ) ( "TPMP" ) ( "string5" ) ( "C8TV" ) ( "string6" ) ( "PascalElbe" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "Gif_TPMP" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "Laura_Czd" ) ( "Vuvu921" ) } }


Question: Who are the members of the band Coldplay?

SELECT ?member ?memberLabel WHERE { ?member wdt:P31 wd:Q5 ; wdt:P463 wd:Q45188 . ?member rdfs:label ?memberLabel . FILTER(lang(?memberLabel) = "en") }

List the English names of all humans who are members of Coldplay.

Which people are part of the musical group Coldplay?

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


Question: Which Wikidata entities have the Twitter username "xamarinhq" or "GPGTools"?

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

What entity on Wikidata is associated with the Twitter handle "xamarinhq"?

Find the Wikidata item for the Twitter account "xamarinhq".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "xamarinhq" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "GPGTools" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) } }


Question: Lighthouses with BabelNet IDs and their English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?lighthouse ?lighthouseLabel WHERE {
  ?lighthouse wdt:P31 wd:Q39715 ; wdt:P2581 [] .
  ?lighthouse rdfs:label ?lighthouseLabel .
  FILTER(LANG(?lighthouseLabel) = "en")
}

Which lighthouses have a BabelNet ID, and what are their English labels?

List all lighthouses that are assigned a BabelNet ID, along with their English names.

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


Question: What is the title of the book "Nineteen Eighty-Four" by George Orwell in Wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?title WHERE {
  wd:Q208460 wdt:P1476 ?title .
}

Show the English title of the novel Nineteen Eighty-Four.

What is the title associated with the Wikidata item for George Orwell's 1984 novel?

SELECT ?var1 WHERE { <http://example.org/book/book1> <http://purl.org/dc/elements/1.1/title> "string1". }


Question: People and organizations whose field of work is art, along with their images.

SELECT ?item ?label ?image WHERE { ?item wdt:P101 wd:Q735 . OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 100

Who are the people and organizations associated with the field of art, and do they have any images available?

List the names of individuals and institutions working in the field of art, and show their images if available.

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


Question: Birth and death years of William Blake from the Dictionary of National Biography article.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?birthYear ?deathYear WHERE {
  wd:Q19079499 wdt:P921 ?person .
  ?person wdt:P31 wd:Q5 .
  OPTIONAL {
    ?person wdt:P569 ?birth .
    BIND( YEAR( ?birth ) AS ?birthYear )
  }
  OPTIONAL {
    ?person wdt:P570 ?death .
    BIND( YEAR( ?death ) AS ?deathYear )
  }
}

What are the birth and death years of the person described in the biographical article "Blake, William (1757-1827) (DNB00)"?

Show the birth and death years of William Blake as the main subject of the DNB biographical entry.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P1343> <http://www.wikidata.org/entity/Q19079499> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var5 . } BIND ( YEAR ( ?var5 ) AS ?var2 ). OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var6 . } BIND ( YEAR ( ?var6 ) AS ?var3 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru, en". } ?var7 <http://schema.org/isPartOf> <https://ru.wikisource.org/> ; <http://schema.org/about> ?var1 . } ORDER BY ASC( ?var2 )ASC( ?var3 )


Question: What are the subtopics or aspects related to The Holocaust as listed in Wikidata?

SELECT ?facet ?facetLabel ?topicLabel WHERE { ?facet wdt:P1269 wd:Q2763 . OPTIONAL { ?facet rdfs:label ?facetLabel . FILTER(LANG(?facetLabel) = "en") } wd:Q2763 rdfs:label ?topicLabel . FILTER(LANG(?topicLabel) = "en") } LIMIT 10

Show me the Wikipedia sections or articles that focus on specific parts of The Holocaust.

Which items are categorized as facets of The Holocaust in Wikidata, and what are their English labels?

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


Question: List people and their employers in English, with labels.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?personLabel ?employer ?employerLabel WHERE {
  ?person wdt:P108 ?employer .
  ?person rdfs:label ?personLabel .
  ?employer rdfs:label ?employerLabel .
  FILTER(LANG(?personLabel) = "en")
  FILTER(LANG(?employerLabel) = "en")
}
ORDER BY ?person
LIMIT 1000

Who are the people and which organizations employ them, according to Wikidata, with English labels?

Show me a list of people and their employers, including their English labels, limited to 1000 results.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var4Label WHERE { <http://www.wikidata.org/entity/p108> <http://wikiba.se/ontology#claim> ?var5 . ?var6 <http://www.wikidata.org/prop/qualifier/p794> ?var4 . <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 ?var5 ?var6 . ?var2 <http://wikiba.se/ontology#claim> ?var5 . ?var2 <http://wikiba.se/ontology#statementProperty> ?var7 . ?var6 ?var7 ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,bg". } } ORDER BY ASC( ?var3 ) LIMIT 1000


Question: Which castles are depicted most frequently in the Welsh Landscape Collection, and where are they located?

SELECT DISTINCT ?castle (SAMPLE(?label) AS ?castleLabel) (COUNT(DISTINCT ?depiction) AS ?depictionCount) (SAMPLE(?coord) AS ?coordinates) WHERE { ?depiction wdt:P361 wd:Q21542493 . ?depiction wdt:P180 ?castle . ?castle wdt:P31/wdt:P279* wd:Q23413 . ?castle rdfs:label ?label . ?castle wdt:P625 ?coord . FILTER(LANG(?label) = "en") } GROUP BY ?castle ORDER BY DESC(?depictionCount) ASC(?label)

Show me the castles from the Welsh Landscape Collection, ranked by how often they appear, along with their coordinates and names.

What are the top castles featured in the National Library of Wales’ engraved print collection, and what are their geographic positions?

SELECT DISTINCT ?var1 ( SAMPLE ( ?var2 ) AS ?var3Label )( COUNT ( DISTINCT ?var4 ) AS ?var5 )( SAMPLE ( ?var6 ) AS ?var6 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P361> <http://www.wikidata.org/entity/Q21542493> . ?var4 <http://www.wikidata.org/prop/direct/P180> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var6 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q23413> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . } } GROUP BY ?var1 ORDER BY DESC( ?var5 )ASC( ?var2 )


Question: How many events feature Larry Page as a speaker?

SELECT (COUNT(?event) AS ?count) WHERE { ?event wdt:P823 wd:Q4934 . }

How many public speaking events is Larry Page recorded as having participated in on Wikidata?

Count the number of events where Larry Page was the speaker.

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


Question: Wikipedia article about miniature circuit breaker

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?article WHERE {
  ?article schema:about wd:Q1805035 ; schema:isPartOf ?wiki .
  ?wiki wikibase:wikiGroup "wikipedia" .
}
LIMIT 1

Is there a Wikipedia article about the miniature circuit breaker?

Show me a Wikipedia page about a miniature circuit breaker.

SELECT ?var1 WHERE { ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Article> ; <http://schema.org/about> <http://www.wikidata.org/entity/Q1805035> ; <http://schema.org/inLanguage> "fr"; <http://schema.org/isPartOf> ?var2 . ?var2 <http://wikiba.se/ontology#wikiGroup> "string1". } LIMIT 1


Question: Which Wikidata entities have the Twitter handles DDUGLERY, GilAverous, fbonneau, JP_Sueur, BonnivardE, larep_fr, leloiret, TF1LeJT, or F3Centre?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?twitterHandle WHERE {
  ?entity wdt:P2002 ?twitterHandle .
  VALUES ?twitterHandle {
    "DDUGLERY" "GilAverous" "fbonneau" "JP_Sueur" "BonnivardE" "larep_fr" "leloiret" "TF1LeJT" "F3Centre"
  }
}

Who are the people or organizations on Wikidata that use these Twitter accounts: DDUGLERY, GilAverous, fbonneau, JP_Sueur, BonnivardE, larep_fr, leloiret, TF1LeJT, and F3Centre?

List the Wikidata items corresponding to the Twitter usernames DDUGLERY, GilAverous, fbonneau, JP_Sueur, BonnivardE, larep_fr, leloiret, TF1LeJT, and F3Centre.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "DDUGLERY" ) ( "string5" ) ( "GilAverous" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "TF1LeJT" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "fbonneau" ) ( "JP_Sueur" ) ( "string15" ) ( "string16" ) ( "G_Peltier" ) ( "string17" ) ( "BonnivardE" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "larep_fr" ) ( "F3Centre" ) ( "leloiret" ) } }


Question: Which organizations have Twitter/X usernames "Europol" and "GenDigitalInc"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?username WHERE {
  VALUES ?username {
    "Europol" "GenDigitalInc"
  }
  ?entity wdt:P2002 ?username .
}

What entities on Wikidata are associated with the Twitter/X handles "Europol" and "GenDigitalInc"?

Show me the Wikidata entities that use "Europol" or "GenDigitalInc" as their Twitter/X username.

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


Question: Which Wikidata items have Twitter usernames 'atterres', 'La_FAGE', 'latrive', 'lemondefr', 'MonniauxD', or 'PhBaptiste'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle WHERE {
  ?item wdt:P2002 ?twitterHandle .
  FILTER(?twitterHandle = 'atterres' || ?twitterHandle = 'La_FAGE' || ?twitterHandle = 'latrive' || ?twitterHandle = 'lemondefr' || ?twitterHandle = 'MonniauxD' || ?twitterHandle = 'PhBaptiste')
}

Who are the people or organizations on Wikidata that use these Twitter handles: atterres, La_FAGE, latrive, lemondefr, MonniauxD, and PhBaptiste?

List the Wikidata entities linked to the Twitter accounts @atterres, @La_FAGE, @latrive, @lemondefr, @MonniauxD, and @PhBaptiste (without the @ symbol).

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "Gjpvernant" ) ( "string1" ) ( "string2" ) ( "MonniauxD" ) ( "string3" ) ( "string4" ) ( "bismatoj" ) ( "latrive" ) ( "lemondefr" ) ( "atterres" ) ( "Irnerius" ) ( "string5" ) ( "PhBaptiste" ) ( "coulhon" ) ( "string6" ) ( "yannbisiou" ) ( "string7" ) ( "string8" ) ( "SnesupFsu" ) ( "SgenCFDT" ) ( "LeymarieS" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "La_FAGE" ) ( "string12" ) ( "string13" ) ( "Quotes_PS" ) ( "MCochard_" ) } }


Question: Which Wikidata items have the Twitter usernames "lemondefr", "decodeurs", or "a_berut"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  {
    ?item wdt:P2002 "lemondefr" .
    BIND("lemondefr" AS ?username)
  } UNION {
    ?item wdt:P2002 "decodeurs" .
    BIND("decodeurs" AS ?username)
  } UNION {
    ?item wdt:P2002 "a_berut" .
    BIND("a_berut" AS ?username)
  }
}

Who or what entities on Wikidata are associated with the Twitter handles lemondefr, decodeurs, and a_berut?

Show me the entities on Wikidata that use lemondefr, decodeurs, or a_berut as their X (Twitter) username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "lemondefr" ) ( "decodeurs" ) ( "a_berut" ) ( "AdrienSnk" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Sansdieux" ) } }


Question: People with more than two articles on Russian Wikisource, ordered by article count.

SELECT ?person ?label (COUNT(?person) AS ?articleCount) WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P570 ?deathDate . ?article schema:isPartOf <https://ru.wikisource.org/> ; schema:about ?person . ?person rdfs:label ?label . FILTER(LANG(?label) = "ru") } GROUP BY ?person ?label HAVING (?articleCount > 1) ORDER BY DESC(?articleCount)

Who are the Russian-language Wikipedia-linked individuals with the most articles on Russian Wikisource, and how many articles do they have?

List humans who have died and are covered in more than one article on Russian Wikisource, showing their Russian names and the number of articles.

SELECT DISTINCT ?var1 ?var1Label ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <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> "ru, en". } ?var4 <http://schema.org/isPartOf> <https://ru.wikisource.org/> ; <http://schema.org/about> ?var1 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var2 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var2 )


Question: Which Wikidata items have the Twitter usernames "envlh", "NHM_London", or "turbomalec"?

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

Who or what entities on Wikidata are associated with the Twitter handles envlh, NHM_London, and turbomalec?

Show me the entities on Wikidata that use "envlh", "NHM_London", or "turbomalec" as their Twitter/X usernames.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "envlh" ) ( "string1" ) ( "NHM_London" ) ( "XboxFR" ) ( "linsurge_" ) ( "string2" ) ( "turbomalec" ) } }


Question: What is the English title and description of the film with ČSFD ID 6169?

SELECT ?film ?filmLabel ?description WHERE { ?film wdt:P2529 "6169" . OPTIONAL { ?film rdfs:label ?filmLabel . FILTER (LANG(?filmLabel) = "en") } OPTIONAL { ?film schema:description ?description . FILTER (LANG(?description) = "en") } }

Which film in Wikidata has the ČSFD ID 6169, and what is its English title and description?

Show me the English name and description of the movie identified by ČSFD ID 6169.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2529> "6169". 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: How many administrative regions contain Pickering, Ontario?

SELECT (COUNT(?container) AS ?count) WHERE { ?container wdt:P150 wd:Q386626 . }

What is the number of administrative entities that directly contain the city of Pickering?

List the count of administrative divisions that include Pickering as a subdivision.

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


Question: Which Wikidata entities have the Twitter handles "teddyriner", "Gnougnou25", and "Thom_astro"?

SELECT ?person ?twitterHandle WHERE { ?person wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "teddyriner" "Gnougnou25" "Thom_astro" } }

Who are the people on Wikidata with the Twitter usernames teddyriner, Gnougnou25, and Thom_astro?

Please list the Wikidata items for the Twitter accounts teddyriner, Gnougnou25, and Thom_astro.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "teddyriner" ) ( "string4" ) ( "string5" ) ( "PmaxP01" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "Gnougnou25" ) ( "axus94" ) ( "string11" ) ( "Thom_astro" ) ( "Sportmagfr" ) ( "string12" ) ( "cnnsport" ) } }


Question: What artworks are held by the Philadelphia Museum of Art, and do they have images available?

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

List the English names of items in the Philadelphia Museum of Art’s collection and show their images if any exist.

Which pieces from the Philadelphia Museum of Art’s collection are documented with images on Wikimedia Commons?

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


Question: Film directors with their birth dates, genders, and countries of origin in English.

SELECT ?directorLabel ?birthDate ?genderLabel ?countryLabel WHERE { ?director wdt:P106 wd:Q2526255 . ?director rdfs:label ?directorLabel . ?director wdt:P569 ?birthDate . ?director wdt:P21 ?gender . ?gender rdfs:label ?genderLabel . ?director wdt:P495 ?country . ?country rdfs:label ?countryLabel . FILTER (LANG(?directorLabel) = "en") FILTER (LANG(?genderLabel) = "en") FILTER (LANG(?countryLabel) = "en") }

Who are the film directors, and what are their birth dates, genders, and countries of origin, with all information in English?

List the names, birth dates, genders, and countries of origin of all film directors, ensuring all labels are in English.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var5 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q2526255> . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . ?var5 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var5 <http://www.wikidata.org/prop/direct/P21> ?var6 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var5 <http://www.wikidata.org/prop/direct/P495> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . }


Question: People born in 1864

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

List all individuals whose date of birth falls within the year 1864.

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


Question: Artworks in the National Gallery of Art collection without external links and with images.

SELECT ?item ?label ?image WHERE { ?item wdt:P195 wd:Q214867 . OPTIONAL { ?item wdt:P18 ?image . } ?item rdfs:label ?label . FILTER (LANG(?label) = "en") FILTER (NOT EXISTS { ?item wdt:P973 ?url . }) }

Which artworks in the National Gallery of Art do not have a webpage describing them, and what are their titles and images?

Show me the titles and images of artworks in the National Gallery of Art that aren’t linked to any external website.

SELECT ?var1 ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q214867> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var4 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#description> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P973> ?var5 . } ) ) . }


Question: Which entity has the X (Twitter) username 'thebeatles'?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?twitterUsername WHERE {
  ?entity wdt:P2002 ?twitterUsername .
  VALUES(?twitterUsername) {("thebeatles")
  }
}

Who is the entity on Wikidata that uses 'thebeatles' as its X (Twitter) username?

Show me the Wikidata item and its X username for the account 'thebeatles'.

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


Question: Wikidata item for Twitter username kamihaeri

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

Which Wikidata item corresponds to the Twitter handle kamihaeri?

Find the person on Wikidata who has the Twitter username kamihaeri.

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


Question: Image of William Henry Bartlett with SNAC ARK ID w63203gz

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

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

Show me the Wikimedia Commons image for William Henry Bartlett, identified by SNAC ARK ID w63203gz.

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


Question: Which Wikidata items have Twitter usernames including DevilleSy, EHESS_fr, fnielsen, leojoubert, martinfkde, Pyb75, samgoeta, turbomalec, UNESCO, or wikidata?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "DevilleSy" "EHESS_fr" "fnielsen" "leojoubert" "martinfkde" "Pyb75" "samgoeta" "turbomalec" "UNESCO" "wikidata"
  }
}

Who are the people or organizations on Wikidata that use any of these Twitter handles: DevilleSy, EHESS_fr, fnielsen, leojoubert, martinfkde, Pyb75, samgoeta, turbomalec, UNESCO, or wikidata?

List all Wikidata entities linked to the Twitter accounts DevilleSy, EHESS_fr, fnielsen, leojoubert, martinfkde, Pyb75, samgoeta, turbomalec, UNESCO, and wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "YKastell" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "EHESS_fr" ) ( "string4" ) ( "Paris" ) ( "cecileLG" ) ( "samgoeta" ) ( "string5" ) ( "_batou_" ) ( "Jokrates" ) ( "mozilla" ) ( "string6" ) ( "string7" ) ( "Ostpolitik" ) ( "string8" ) ( "string9" ) ( "petaramesh" ) ( "quibuzzqui" ) ( "ccastaner" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "FC_actu" ) ( "JobProdDev" ) ( "pixeltoo" ) ( "string13" ) ( "martinfkde" ) ( "string14" ) ( "jsamwrites" ) ( "UNESCO" ) ( "999Share" ) ( "wikidata" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "lienhart85" ) ( "string18" ) ( "string19" ) ( "PoulpyWP" ) ( "fnielsen" ) ( "pudo" ) ( "string20" ) ( "string21" ) ( "DevilleSy" ) ( "string22" ) ( "xkeepah" ) ( "Pyb75" ) ( "string23" ) ( "Techmoan" ) ( "numerennes" ) ( "string24" ) ( "NHM_London" ) ( "linsurge_" ) ( "string25" ) ( "turbomalec" ) ( "string26" ) ( "string27" ) ( "string28" ) ( "looniverse" ) ( "leojoubert" ) ( "dbourrion" ) } }


Question: What properties are used to link entities to Hajdú-Bihar County in English?

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

Which properties connect other items to Hajdú-Bihar County, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that have Hajdú-Bihar County as their object in Wikidata.

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


Question: Signatories of documents with German labels

SELECT ?signatory ?label ?description WHERE { ?document wdt:P1891 ?signatory . ?signatory rdfs:label ?label . FILTER (LANG(?label) = "de") OPTIONAL { ?signatory schema:description ?description } } LIMIT 100

Which countries or people signed official documents and have German-language names?

Show me the German names of all entities that signed official documents.

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


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

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

Who is the person on Wikidata with the Twitter handle daveharte?

Find the Wikidata entry for the Twitter user daveharte.

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


Question: German labels of properties and values for the Verdana typeface.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property(SAMPLE(?propLabel) AS ?label)(COUNT(?value) AS ?count)(GROUP_CONCAT(?valLabel ; SEPARATOR = ", ") AS ?valueLabels) WHERE {
  wd:Q610791 ?property ?value .
  BIND(IRI(REPLACE(STR(?property) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/")) AS ?propertyEntity)
  .
  ?propertyEntity rdfs:label ?propLabel .
  ?value rdfs:label ?valLabel .
  FILTER(LANG(?propLabel) = "de")
  FILTER(LANG(?valLabel) = "de")
}
GROUP BY ?property

What are the German-language property names and their corresponding values for the Verdana font?

Show me a summary of Verdana’s Wikidata statements in German, including property names, how many values each has, and the labels 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/Q610791> ?var1 ?var3 . ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . ?var6 <http://wikiba.se/ontology#directClaim> ?var1 . ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } GROUP BY ?var1


Question: Which institution has the Twitter username "upemlv"?

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . VALUES ?username { "upemlv" } }

What is the name of the university on X (formerly Twitter) with the username upemlv?

Find the entity associated with the X username "upemlv".

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


Question: Which entity has the Twitter username "ogcnice"?

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

What is the Wikidata entity associated with the X (Twitter) handle "ogcnice"?

Can you find the organization that uses "ogcnice" as its X (formerly Twitter) username?

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


Question: What drugs interact with (RS)-methadone (ChEMBL ID: CHEMBL651), and what are their ChEMBL IDs and English names?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?interactingDrug ?chemblId ?label WHERE {
  ?drug wdt:P592 "CHEMBL651" .
  ?drug wdt:P769 ?interactingDrug .
  ?interactingDrug wdt:P592 ?chemblId .
  OPTIONAL {
    ?interactingDrug rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}

List of drugs that have significant pharmacological interactions with CHEMBL651, including their ChEMBL IDs and English labels.

Show me the English names and ChEMBL IDs of all drugs that interact with the drug having ChEMBL ID CHEMBL651.

SELECT ?var1 ?var2 ?var3Label WHERE { ?var4 ( <http://www.wikidata.org/prop/P592> / <http://www.wikidata.org/prop/statement/P592> ) "CHEMBL651". ?var4 <http://www.wikidata.org/prop/direct/P769> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P592> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } }


Question: Which Wikidata entities have the Twitter usernames "dinart33", "ffhandball", "gatienjp", "LCI", "LONGUEVRE", "TF1", or "WalyDIA"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?twitterUsername WHERE {
  ?entity wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "dinart33" "ffhandball" "gatienjp" "LCI" "LONGUEVRE" "TF1" "WalyDIA"
  }
}

Who are the people or organizations behind these Twitter accounts: dinart33, ffhandball, gatienjp, LCI, LONGUEVRE, TF1, and WalyDIA?

Can you tell me the Wikidata items linked to the Twitter handles TF1, LCI, and WalyDIA?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "TF1" ) ( "AudreyTort" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "gatienjp" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "WalyDIA" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "LONGUEVRE" ) ( "string12" ) ( "string13" ) ( "ffhandball" ) ( "moodchillx" ) ( "alex0464" ) ( "lowaya971" ) ( "JejayLH" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "HovineYann" ) ( "LCI" ) ( "string18" ) ( "TMC" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "jeromesapo" ) ( "string22" ) ( "string23" ) ( "string24" ) ( "TF1Pro" ) ( "xgandon" ) ( "string25" ) ( "string26" ) ( "HandNewsfr" ) ( "dinart33" ) ( "string27" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "MaryPatrux" ) ( "xavham" ) ( "string31" ) ( "string32" ) ( "JChofto" ) ( "thierryce" ) } }


Question: What are all the superclass categories of Sunday in Wikidata?

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

What classes is Sunday a subclass of, directly or indirectly?

List all the abstract categories that Sunday is classified under via the subclass hierarchy.

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


Question: Airport with IATA code AUO, its country, and coordinates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?airport ?airportLabel ?country ?coordinates WHERE {
  ?airport wdt:P238 "AUO" .
  ?airport wdt:P17 ?country .
  ?airport wdt:P625 ?coordinates .
  ?airport rdfs:label ?airportLabel .
  FILTER(LANG(?airportLabel) = "en")
}

What is the name, country, and geographic coordinates of the airport with IATA code AUO?

Please provide the name, country, and location coordinates of the airport that has the IATA code AUO.

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


Question: What Wikidata item has the Twitter username "BibusBrest"?

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

Which entity on Wikidata is associated with the Twitter handle BibusBrest?

Show me the Wikidata item for the Twitter account @BibusBrest (without the @ symbol).

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


Question: Wikidata entities with Twitter handles ash_crow, BFMTV, chunkymark, joelgombin, lemondefr, qz, and wikidata.

SELECT ?entity ?twitterHandle WHERE { ?entity wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "ash_crow" "BFMTV" "chunkymark" "joelgombin" "lemondefr" "qz" "wikidata" } }

Which entities on Wikidata have the Twitter usernames ash_crow, BFMTV, chunkymark, joelgombin, lemondefr, qz, or wikidata?

Show me the Wikidata items that are linked to the Twitter accounts ash_crow, BFMTV, chunkymark, joelgombin, lemondefr, qz, and wikidata.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "Erdrokan" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "XboxFR" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "pierrebrt" ) ( "lemondefr" ) ( "Blouchtika" ) ( "qz" ) ( "string16" ) ( "string17" ) ( "Pymouss" ) ( "string18" ) ( "PoulpyWP" ) ( "Thaliane_K" ) ( "string19" ) ( "BFMTV" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "ellensalvi" ) ( "palais_au" ) ( "string24" ) ( "string25" ) ( "lesagithes" ) ( "string26" ) ( "chunkymark" ) ( "ash_crow" ) ( "le_RESET" ) ( "wikidata" ) ( "string27" ) ( "string28" ) ( "MyHumanKit" ) ( "string29" ) ( "string30" ) ( "string31" ) ( "string32" ) ( "Phangere" ) ( "string33" ) ( "joelgombin" ) } }


Question: Which entities on Wikidata have the Twitter usernames 'UN', 'thebeatles', or 'France'?

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . VALUES ?username { "UN" "thebeatles" "France" } }

What are the entities in Wikidata that are associated with the Twitter accounts @UN, @thebeatles, or @France?

List the Wikidata entities that have Twitter usernames 'UN', 'thebeatles', or 'France'.

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


Question: How many doctoral students did Vannevar Bush have?

SELECT (COUNT(?student) AS ?count) WHERE { ?student wdt:P184 wd:Q299595 .}

According to Wikidata, how many people received their PhD under Vannevar Bush’s supervision?

Can you tell me the number of individuals who listed Vannevar Bush as their doctoral advisor?

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


Question: What are the birth and death dates of Theodore M. Davis?

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND(wd:Q1348898 AS ?person) . OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?person wdt:P569 ?birthDate } OPTIONAL { ?person wdt:P570 ?deathDate } }

What is the full name, date of birth, and date of death of the American Egyptologist Theodore M. Davis?

Can you provide the English label, birth date, and death date for the Wikidata entity Q1348898, which represents Theodore M. Davis?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1348898> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Richard Scott, the 10th Duke of Buccleuch?

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

Can you tell me when the 10th Duke of Buccleuch was born and whether he has passed away?

Show me the name, birth date, and death date of the current Duke of Buccleuch.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q4982454> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English label of Cusworth Hall and Park, and what are its birth and death dates?

SELECT ?var1Label ?var3 ?var4 WHERE { BIND( wd:Q3007917 AS ?var1 ) . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") OPTIONAL { ?var1 wdt:P569 ?var3 . } OPTIONAL { ?var1 wdt:P570 ?var4 . } }

Can you tell me the name of Cusworth Hall and Park in English, along with any recorded dates of birth and death?

Is Cusworth Hall and Park a person? If not, what is its name in English, and why are there no birth or death dates?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q3007917> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the location and country of the airport with IATA code EIL?

SELECT ?airport ?airportLabel ?country ?coordinates WHERE { ?airport wdt:P238 "EIL" . ?airport wdt:P17 ?country . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

Can you tell me the name, coordinates, and country of Eielson Air Force Base?

Where is Eielson Air Force Base located, and what are its geographic coordinates?

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


Question: What are the birth and death dates of Ogasawara Nagamichi?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?personLabel ?birthDate ?deathDate WHERE {
  wd:Q10859981 rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  OPTIONAL {
    wd:Q10859981 wdt:P569 ?birthDate .
  }
  OPTIONAL {
    wd:Q10859981 wdt:P570 ?deathDate .
  }
}

When was Ogasawara Nagamichi born and when did he die?

Can you tell me the English name of Ogasawara Nagamichi along with his birth and death dates?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q10859981> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Aneta Corsaut?

SELECT ?personLabel ?birthDate ?deathDate WHERE { wd:Q4761730 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") . OPTIONAL { wd:Q4761730 wdt:P569 ?birthDate . } OPTIONAL { wd:Q4761730 wdt:P570 ?deathDate . } }

Can you tell me when Aneta Corsaut was born and when she died?

Show me the English name, birth date, and death date of the actress Aneta Corsaut.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q4761730> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the birth and death dates of Eddie Adams?

SELECT ?personLabel ?birthDate ?deathDate WHERE { wd:Q496027 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") OPTIONAL { wd:Q496027 wdt:P569 ?birthDate . } OPTIONAL { wd:Q496027 wdt:P570 ?deathDate . } }

Can you tell me when Eddie Adams was born and when he died?

Show me the name, birth date, and death date of the American photojournalist Eddie Adams.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q496027> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the English name, date of birth, and date of death of Alle Teyes?

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 ?var1Label ?var3 ?var4 WHERE {
  BIND(wd:Q24283931 AS ?var1)
  ?var1 rdfs:label ?var1Label .
  FILTER(LANG(?var1Label) = "en")
  OPTIONAL {
    ?var1 wdt:P569 ?var3 .
  }
  OPTIONAL {
    ?var1 wdt:P570 ?var4 .
  }
}

English name, birth date, and death date of Dutch politician Alle Teyes

Please provide the label, birth date, and death date for the person Alle Teyes.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q24283931> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the birth date of Noëlle Boisson, and is she deceased?

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

When was Noëlle Boisson born, and does Wikidata record her date of death?

Can you provide the English name, birth date, and death date (if any) for the French film editor Noëlle Boisson?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q516046> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the date of birth of Julius Malema, and is he deceased?

SELECT ?personLabel ?birthDate ?deathDate WHERE { wd:Q983163 rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") OPTIONAL { wd:Q983163 wdt:P569 ?birthDate . } OPTIONAL { wd:Q983163 wdt:P570 ?deathDate . } }

Julius Malema: birth date and death date

Can you tell me Julius Malema’s date of birth and whether he has passed away?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q983163> AS ?var1 ). ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: How many gene products are encoded by the ADAMTS2 gene?

SELECT (COUNT(?geneProduct) AS ?count) WHERE { ?geneProduct wdt:P702 wd:Q14881709 . }

What is the number of protein products encoded by the human ADAMTS2 gene?

Tell me how many proteins are produced from the ADAMTS2 gene in humans.

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


Question: What properties link to Steve Allen in Wikidata?

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

Which relationships connect other entities to Steve Allen?

Show me all the properties (including qualifiers) where Steve Allen is the object, such as cast member, composer, or influenced by.

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


Question: What is the English name, country, and coordinates of the airport with IATA code PTV?

SELECT ?airport ?airportLabel ?country ?coordinates WHERE { ?airport wdt:P17 ?country . ?airport wdt:P238 "PTV" . ?airport wdt:P625 ?coordinates . ?airport rdfs:label ?airportLabel . FILTER(LANG(?airportLabel) = "en") }

Where is Porterville Municipal Airport located, and what are its coordinates?

Give me the country and GPS coordinates of the airport whose IATA code is PTV.

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


Question: What properties are used to describe the television program "Q15416", and what are the labels of those properties and their values?

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

For the television program Q15416, list each property, its English name, how many times it appears, and the English labels of its values.

Can you show me the properties linked to the television program Q15416, along with their labels, usage counts, and the English names of the things they point to?

SELECT ?var1 ( SAMPLE ( ?var2 ) AS ?var2 )( COUNT ( ?var3 ) AS ?var4 )( GROUP_CONCAT ( ?var5 ; SEPARATOR = ", " ) AS ?var5 ) WHERE { <http://www.wikidata.org/entity/Q15416> ?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: Items marked as duplicates of Belgium in Wikidata

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wikibase: <http://wikiba.se/ontology#>
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:P2959 wd:Q31 .
      ?item p:P2959 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?value .
    ?qualifierProperty wikibase:qualifier wd:P2959 .
  }
}
GROUP BY ?item ?statement

Which items in Wikidata are identified as duplicates of Belgium, and do those duplicate statements have any additional details?

List all items in Wikidata that are duplicates of Belgium, along with any qualifiers attached to their duplicate statements.

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