Question: Female humans with Basque Wikipedia articles

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 DISTINCT ?var2Label WHERE {
  ?var2 wdt:P31 wd:Q5 .
  ?var2 wdt:P21 wd:Q6581072 .
  ?var3 schema:about ?var2 .
  ?var3 schema:isPartOf <https://eu.wikipedia.org/> .
  ?var2 rdfs:label ?var2Label .
}
LIMIT 4000

Who are the female humans that have a Wikipedia page in Basque?

List the names of all female humans who have a Wikipedia article in the Basque language.

SELECT ?var1Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var3 <http://schema.org/about> ?var2 . ?var3 <http://schema.org/isPartOf> <https://eu.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "eu". } } LIMIT 4000


Question: Who were the notable human leaders of the Catuvellauni tribe, and what are their estimated birth and death years?

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

Can you list the English-labeled names of humans from the Catuvellauni tribe along with their birth and death dates?

What are the birth and death dates of the ancient British chieftains who were citizens of the Catuvellauni tribe?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q1051384> 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: Living comedians with Wikipedia pages and images on Wikimedia Commons

SELECT ?comedian ?comedianLabel ?imageName ?wikipediaPage WHERE { ?wikipediaPage schema:about ?comedian ; schema:isPartOf <https://en.wikipedia.org/> . ?comedian wdt:P31 wd:Q5 ; wdt:P106 wd:Q245068 ; wdt:P18 ?image . FILTER NOT EXISTS { ?comedian wdt:P570 ?deathDate } ?comedian rdfs:label ?comedianLabel . FILTER(LANG(?comedianLabel) = "en") BIND( IF( CONTAINS(str(?image), "Special:FilePath"), strafter(str(?image), "Special:FilePath/"), strafter(str(?image), "File:") ) AS ?imageName ) }

Who are the living human comedians who have an image on Wikimedia Commons and a page on English Wikipedia?

List the names of all living comedians who have an English Wikipedia page and a Commons image, along with the image filename and Wikipedia URL.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q245068> . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . } ) ) . } GROUP BY ?var1Label ?var2Label ?var1 ?var3 ?var4


Question: Most notable people or organizations associated with warehouses by Wikipedia page count

SELECT ?person (COUNT(?site) AS ?sitelinks) WHERE { ?warehouse wdt:P31 wd:Q1362225 . { ?warehouse wdt:P84 ?person . } UNION { ?warehouse wdt:P137 ?person . } UNION { ?warehouse wdt:P127 ?person . } ?site schema:about ?person . } GROUP BY ?person ORDER BY DESC(?sitelinks) LIMIT 1000

Who are the most well-known architects, operators, or owners of warehouses, based on how many Wikipedia articles mention them?

List the top 1000 people or organizations linked to warehouses through roles like architect or operator, ranked by their Wikipedia popularity.

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


Question: How many female citizens of Norway were born each year from 1930 onwards?

SELECT ?birthYear ?count WHERE { SELECT ?birthYear (COUNT(?person) AS ?count) WHERE { ?person wdt:P21 wd:Q6581072 ; wdt:P27 wd:Q20 ; wdt:P569 ?birthDate . FILTER ( YEAR(?birthDate) >= 1930 ) BIND( STR(YEAR(?birthDate)) AS ?birthYear ) } GROUP BY ?birthYear } ORDER BY ASC(?birthYear)

Can you show the number of Norwegian women born each year starting in 1930?

What is the yearly count of female Norwegians born from 1930 to 2009?

SELECT ?var1 ?var2 WHERE { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { BIND ( STR ( YEAR ( ?var4 ) ) AS ?var1 ). ?var3 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> ; <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q20> ; <http://www.wikidata.org/prop/direct/P569> ?var4 . FILTER ( ( ( <http://www.w3.org/2001/XMLSchema#integer> ( ?var1 ) >= "1930"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } GROUP BY ?var1 } ORDER BY ASC( ?var1 )


Question: Female CEOs with English labels, Wikimedia Commons images, and Dutch Wikipedia links.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?ceo ?ceoLabel(SAMPLE(?img) AS ?image) ?nlWikipediaPage WHERE {
  ?ceo wdt:P21 wd:Q6581072 .
  ?ceo wdt:P39 wd:Q484876 .
  OPTIONAL {
    ?ceo wdt:P18 ?img .
  }
  OPTIONAL {
    ?nlWikipediaPage schema:about ?ceo .
    ?nlWikipediaPage schema:isPartOf <https://nl.wikipedia.org/> .
  }
  ?ceo rdfs:label ?ceoLabel .
  FILTER(LANG(?ceoLabel) = "en")
}
GROUP BY ?ceo ?ceoLabel ?nlWikipediaPage
LIMIT 50

Who are some female chief executive officers, and what are their English names, images, and Dutch Wikipedia pages?

List up to 50 female CEOs with their English names, an associated image from Wikimedia Commons (if available), and a link to their Dutch Wikipedia page.

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


Question: People born in Bahia, Brazil, and their Facebook usernames.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?facebookUsername WHERE {
  ?person wdt:P19 wd:Q40430 .
  OPTIONAL {
    ?person wdt:P2013 ?facebookUsername .
  }
}
LIMIT 100

Who are some people born in Bahia, Brazil, and do they have Facebook profiles listed in Wikidata?

List up to 100 individuals born in Bahia, Brazil, along with their Facebook usernames if available.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P19> <http://www.wikidata.org/entity/Q40430> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2013> ?var2 . } } LIMIT 100


Question: Canadian citizens who are human, starting from the 11th result.

SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P27 wd:Q16 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10 OFFSET 10

Who are the 11th to 20th Canadian citizens listed in Wikidata?

List the English names of the 10 Canadian citizens after the first 10 in Wikidata.

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


Question: How many female and trans women with Basque Wikipedia articles, who were not born in the Basque Country, are listed in each occupation?

SELECT (COUNT(?human) AS ?count) ?occupationLabel WHERE { ?human wdt:P31 wd:Q5 . { ?human wdt:P21 wd:Q6581072 . } UNION { ?human wdt:P21 wd:Q1052281 . } MINUS { ?human wdt:P19 / wdt:P131* / ^wdt:P527 wd:Q47588 . } ?wikipediaPage schema:about ?human ; schema:isPartOf <https://eu.wikipedia.org/> . ?human wdt:P106 ?occupation . ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") } GROUP BY ?occupationLabel ORDER BY DESC(?count)

What are the most common occupations of trans women and women who have articles in the Basque Wikipedia and were not born in the Basque Country?

Can you list the occupations of female and trans women from the Basque Wikipedia who weren't born in the Basque region?

SELECT( COUNT ( ?var1 ) AS ?var2 ) ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q1052281> . } MINUS { ?var1 ( <http://www.wikidata.org/prop/direct/P19> / <http://www.wikidata.org/prop/direct/P131> */^ <http://www.wikidata.org/prop/direct/P527> ) <http://www.wikidata.org/entity/Q47588> . } ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://eu.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "eu, en, es, fr". } ?var1 <http://www.wikidata.org/prop/direct/P106> ?var3 . } GROUP BY ?var3Label


Question: Top pastry chefs with the most Wikipedia language editions

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ( COUNT( ?site ) AS ?sitelinkCount ) WHERE {
  ?person wdt:P106 wd:Q1191511 .
  ?site schema:about ?person .
  ?site schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .
}
GROUP BY ?person
ORDER BY DESC ( ?sitelinkCount )
LIMIT 1000

Which pastry chefs have the most Wikipedia articles in different languages, and how many are there?

List the most internationally recognized pastry chefs based on the number of Wikipedia language versions about them, sorted by popularity.

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


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt1361330?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipedia_page WHERE {
  ?item wdt:P345 "tt1361330" .
  ?wikipedia_page schema:about ?item ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Show me the Wikipedia articles in English and German about the film Santa Baby 2.

Which Wikipedia pages in English or German are linked to the IMDb entry tt1361330?

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


Question: Is fdupes a type of software?

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/>
ASK WHERE {
  wd:Q966109 wdt:P31 ?class .
  ?class rdfs:label ?label .
  FILTER(CONTAINS(LCASE(?label) , "software"))
}

Does fdupes belong to a category that includes the word "software" in its label?

Confirm whether fdupes is classified as software in Wikidata.

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


Question: What are the most frequently awarded honors in history, based on how many people or entities have received them?

SELECT ?awardLabel (COUNT(?recipient) AS ?count)
WHERE {
  ?recipient wdt:P166 ?award .
  ?award rdfs:label ?awardLabel .
  FILTER(LANG(?awardLabel) = "en")
}
GROUP BY ?awardLabel
ORDER BY DESC(?count)

Which awards have been given out the most times, and how many times were they awarded?

List the top awards by number of recipients, showing the award name and count, sorted from most to least awarded.

SELECT ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { { SELECT ?var2 ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P166> ?var1 . } LIMIT 5000 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1Label ORDER BY DESC( ?var3 )


Question: How many featured articles on the Arabic Wikipedia are about women?

PREFIX schema: <http://schema.org/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ( COUNT( DISTINCT ?human ) AS ?count ) WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P21 wd:Q6581072 .
  ?article schema:about ?human ; schema:isPartOf <https://ar.wikipedia.org/> ; wikibase:badge wd:Q17437796 .
}

How many female humans have their Arabic Wikipedia articles marked as featured articles?

Count the number of featured articles on the Arabic Wikipedia that are about women.

SELECT( COUNT ( DISTINCT ?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/P21> <http://www.wikidata.org/entity/Q6581072> . ?var3 <http://schema.org/isPartOf> <https://ar.wikipedia.org/> ; <http://schema.org/about> ?var1 ; <http://wikiba.se/ontology#badge> <http://www.wikidata.org/entity/Q17437796> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


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

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

Show the Wikimedia Commons image associated with the Social Networks and Archival Context identifier w6f29nwg.

Can you find the picture of the entity identified by the SNAC ARK ID w6f29nwg?

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


Question: What are the English and German Wikipedia or Wikiquote pages about the movie Original Sin (IMDb ID: tt0218922)?

SELECT ?movie ?page WHERE { ?movie wdt:P345 "tt0218922" . ?page schema:about ?movie . ?page schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

Show me links to language-specific pages (English or German) related to the film Original Sin on IMDb.

Which language versions of Wikipedia or Wikiquote have articles about the movie with IMDb ID tt0218922?

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


Question: What are the English and German Wikipedia and Wikiquote pages about the film with IMDb ID tt0055928?

SELECT ?film ?page WHERE { ?film wdt:P345 "tt0055928" . ?page schema:about ?film . VALUES ?lang { "en" "de" } ?page schema:inLanguage ?lang . }

Show me the language-specific pages (in English and German) related to the movie Dr. No on Wikipedia and Wikiquote.

Which language versions of Wikipedia and Wikiquote articles are linked to the James Bond film Dr. No?

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


Question: English and German Wikipedia and Wikiquote pages about the movie "Some Like It Hot" (IMDb tt0053291)

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0053291" .
  ?page schema:about ?movie .
  {
    ?page schema:inLanguage "en" .
  } UNION {
    ?page schema:inLanguage "de" .
  }
}

What English and German language pages on Wikipedia and Wikiquote are about the movie "Some Like It Hot"?

Show me all English and German language pages linked to the movie "Some Like It Hot" on IMDb (ID: tt0053291).

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


Question: Latvian, French, and fallback labels for Vladimir Lenin, Vladimir Pustogarov, and Douglas Adams.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item(SAMPLE(?labelLv) AS ?lvLabel)(SAMPLE(?labelFr) AS ?frLabel)(SAMPLE(?labelFallback) AS ?fallbackLabel) WHERE {
  VALUES ?item {
    wd:Q1394 wd:Q30345737 wd:Q42
  }
  OPTIONAL {
    ?item rdfs:label ?labelLv .
    FILTER(LANG(?labelLv) = "lv")
  }
  OPTIONAL {
    ?item rdfs:label ?labelFr .
    FILTER(LANG(?labelFr) = "fr")
  }
  ?item rdfs:label ?anyLabel .
  BIND(IF(BOUND(?labelLv) , ?labelLv , IF(BOUND(?labelFr) , ?labelFr , ?anyLabel)) AS ?labelFallback)
}
GROUP BY ?item

What are the Latvian and French labels for Vladimir Lenin, Vladimir Pustogarov, and Douglas Adams, and what is the fallback label if those are not available?

Show me the Latvian label, French label, and a fallback label (in any language) for Vladimir Lenin, Vladimir Pustogarov, and Douglas Adams, prioritizing Latvian over French if both exist.

SELECT ?var1 ?var2Label ?var3Label ?var4Label ( SAMPLE ( ?var5Label ) AS ?var5Label ) WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q40006707> ) ( <http://www.wikidata.org/entity/Q30345737> ) ( <http://www.wikidata.org/entity/Q42> ) } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "lv" ) ) ) . } OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "fr" ) ) ) . } BIND ( IF ( BOUND ( ?var2Label ) , ?var2Label , IF ( BOUND ( ?var3Label ) , ?var3Label , ?var5Label ) ) AS ?var4Label ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . } GROUP BY ?var1 ?var2Label ?var3Label ?var4Label


Question: Who are the recipients of the Nobel Prize in Physics, and what are their genders, birth years, and the years they received the award?

SELECT ?human ?humanLabel ?academicTreeId ?genderLabel (YEAR(?birthDate) AS ?birthYear) ?award ?awardLabel (YEAR(?awardDate) AS ?awardYear) WHERE { ?human wdt:P31 wd:Q5 . ?human p:P166 ?statement . ?statement ps:P166 ?award . ?statement pq:P585 ?awardDate . FILTER(?award = wd:Q38104) OPTIONAL { ?human wdt:P21 ?gender . } OPTIONAL { ?human wdt:P569 ?birthDate . } OPTIONAL { ?human wdt:P2381 ?academicTreeId . } ?human rdfs:label ?humanLabel . ?award rdfs:label ?awardLabel . ?gender rdfs:label ?genderLabel . FILTER(LANG(?humanLabel) = "en") FILTER(LANG(?awardLabel) = "en") FILTER(LANG(?genderLabel) = "en") } LIMIT 100

List Nobel Prize in Physics winners along with their birth dates, gender, and the year they were awarded, including their Academic Tree IDs where available.

Can you provide a list of people who won the Nobel Prize in Physics, including their gender, year of birth, year of award, and Academic Tree ID?

SELECT ?var1 ?var1Label ?var2 ?var3Label ( YEAR ( ?var4 ) AS ?var5 ) ?var6 ?var6Label ( YEAR ( ?var7 ) AS ?var8 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/award_q> . ?var9 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11448906> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var1 <http://www.wikidata.org/prop/P166> ?var10 . ?var10 <http://www.wikidata.org/prop/statement/P166> ?var6 . ?var10 <http://www.wikidata.org/prop/qualifier/P585> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P2381> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en,da,de,es,fr,jp,no,ru,sv,zh". } } LIMIT 100


Question: What are the most recent years humans received Nobel Prize-related awards, and who were the recipients and award names?

SELECT DISTINCT (YEAR(?date) AS ?year) ?awardLabel ?recipientLabel WHERE { ?recipient wdt:P31 wd:Q5 ; wdt:P166 ?award . ?award wdt:P279 wd:Q7191 . ?recipient p:P166 ?statement . ?statement pq:P585 ?date . ?award rdfs:label ?awardLabel . ?recipient rdfs:label ?recipientLabel . FILTER(LANG(?awardLabel) = "en") FILTER(LANG(?recipientLabel) = "en") } ORDER BY DESC(?year) ASC(?awardLabel) ASC(?recipientLabel) LIMIT 100

List the Nobel Prize awards and their recipients, sorted by year (newest first), including only English-language names.

Show me the recipients of Nobel Prize-related honors, along with the award names and the year they were awarded, ordered from most recent to oldest.

SELECT DISTINCT( YEAR ( ?var1 ) AS ?var2 ) ?var3Label ?var4Label WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P166> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q7191> . ?var4 <http://www.wikidata.org/prop/P166> ?var5 . ?var5 <http://www.wikidata.org/prop/qualifier/P585> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )ASC( ?var3Label )ASC( ?var4Label ) LIMIT 100


Question: List English-labeled male American programmers who do not have Slovenian labels.

SELECT ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P27 wd:Q30 . ?person wdt:P21 wd:Q6581097 . ?person wdt:P106 wd:Q5482740 . ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") . FILTER (NOT EXISTS { ?person rdfs:label ?slLabel . FILTER (LANG(?slLabel) = "sl") }) } ORDER BY ASC(?personLabel)

Who are the male American programmers with English labels but no Slovenian labels on Wikidata?

Show me the names of all male programmers from the United States who have an English Wikipedia label and no Slovenian label, sorted alphabetically.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q30> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q5482740> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,de,nl,fr,it,es,no,pt,pl,cs,hr". } FILTER ( ( NOT EXISTS { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "sl" ) ) ) . } ) ) . } ORDER BY ASC( ?var1Label )


Question: Russian-language labels of actors who were citizens of Russia or the Soviet Union.

SELECT ?actor ?actorLabel WHERE { ?actor wdt:P106 wd:Q33999 . ?actor wdt:P27 wd:Q159 , wd:Q15180 . ?actor rdfs:label ?actorLabel . FILTER (LANG(?actorLabel) = "ru") } ORDER BY ?actorLabel

Who are the actors from Russia or the Soviet Union with Russian-language Wikipedia labels?

List the names of actors from Russia or the former Soviet Union, displayed in their Russian-language Wikipedia labels, sorted alphabetically.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q159> , <http://www.wikidata.org/entity/Q15180> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "ru" ) ) ) . } ORDER BY DESC( ?var1 )


Question: Who are the male grandfathers of Johan Abraham Grill, and who is their child?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?grandfather ?father WHERE {
  ?grandfather wdt:P21 wd:Q6581097 .
  ?grandfather wdt:P40 ?father .
  ?father wdt:P40 wd:Q5771768 .
}
LIMIT 101

List the male ancestors two generations above Johan Abraham Grill and their immediate children.

Which men are the grandfathers of the businessperson Johan Abraham Grill, and who is their son or daughter?

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/Q5771768> . } LIMIT 101


Question: Is Firefox classified as software?

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

Does Firefox belong to a category that is a type of software?

Is Firefox an example of software or a descendant category of software?

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


Question: Dentists born after 1900 with English Wikipedia pages and images on Wikimedia Commons.

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?dentist ?dentistLabel ?birthDate ?image ?wikipediaArticle WHERE {
  ?dentist wdt:P106 wd:Q27349 .
  ?dentist wdt:P569 ?birthDate .
  ?dentist wdt:P18 ?image .
  ?wikipediaArticle schema:about ?dentist ; schema:inLanguage "en" .
  FILTER ( STRSTARTS( STR( ?wikipediaArticle ) , "https://en.wikipedia.org/" ) ) FILTER ( YEAR( ?birthDate ) > 1900 )
}
ORDER BY ASC ( ?birthDate )
LIMIT 100

Who are the dentists born after 1900 who have both a Wikipedia article in English and a publicly available image on Commons?

List the names, birth dates, images, and English Wikipedia links of dentists born after 1900.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 ?var2 <http://www.wikidata.org/entity/Q27349> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } FILTER ( ( ( SUBSTR ( STR ( ?var4 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . FILTER ( ( ( <http://www.w3.org/2001/XMLSchema#date> ( SUBSTR ( STR ( ?var3 ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ,"11"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) = "string2" ) ) ) . } ORDER BY ASC( ?var3 ) LIMIT 100


Question: Female American women with Wikipedia pages, sorted by last name.

SELECT DISTINCT ?human ?humanLabel ?givenNameLabel ?familyNameLabel ?wikipediaPage WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P27 wd:Q30 . ?human wdt:P21 wd:Q6581072 . ?human wdt:P735 ?givenName . ?human wdt:P734 ?familyName . ?wikipediaPage schema:about ?human . ?wikipediaPage schema:inLanguage "en" . ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> . ?human rdfs:label ?humanLabel . ?givenName rdfs:label ?givenNameLabel . ?familyName rdfs:label ?familyNameLabel . FILTER(LANG(?humanLabel) = "en") FILTER(LANG(?givenNameLabel) = "en") FILTER(LANG(?familyNameLabel) = "en") } ORDER BY ASC(?familyNameLabel)

Who are the female U.S. citizens with English Wikipedia articles, and what are their first and last names?

List the names and Wikipedia links of all female American people who have English Wikipedia pages, ordered alphabetically by their family names.

SELECT DISTINCT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q30> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P27> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "en". ?var5 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY ASC( ?var4Label )


Question: Norwegian historical register IDs and family names of people with Norwegian Wikipedia pages.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?wikipediaPage ?hbrId ?familyName WHERE {
  ?wikipediaPage schema:about ?person .
  ?person wdt:P4574 ?hbrId .
  ?wikipediaPage schema:isPartOf <https://no.wikipedia.org/> .
  OPTIONAL {
    ?person wdt:P734 ?familyName .
  }
}

Who are the people listed in the Norwegian Wikipedia with a historical register ID (P4574), and what are their family names?

List all persons from the Norwegian Wikipedia who have a Norwegian historical register ID, along with their family names if available.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var2 <http://schema.org/about> ?var1 . ?var1 <http://www.wikidata.org/prop/direct/P4574> ?var3 . ?var2 <http://schema.org/isPartOf> <https://no.wikipedia.org/> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P734> ?var4 . } }


Question: Is ngrep a type of software?

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

Does ngrep belong to a category that is a subclass of software?

Is ngrep considered software based on its classification in Wikidata?

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


Question: Is QMMP a type of software?

Does QMMP belong to a category that is a subclass of software?

Is QMMP classified under any software category through inheritance?

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


Question: Is grive a type of software?

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

Does grive belong to a category that is a subclass of software?

Confirm whether grive is classified under software through its instance and subclass relationships.

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


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

SELECT ?image WHERE {
  ?entity wdt:P3430 "w62f8hhw" .
  OPTIONAL {
    ?entity wdt:P18 ?image .
  }
}

Can you find the Wikimedia Commons image associated with the Social Networks and Archival Context identifier w62f8hhw?

Show the image, if any, for the entity identified by the SNAC ARK ID w62f8hhw.

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


Question: Who is the child of Johann Sebastian Bach and Maria Barbara Bach who was both a composer and a pianist?

SELECT ?child ?childLabel WHERE { ?child wdt:P22 wd:Q1339 ; wdt:P25 wd:Q57487 ; wdt:P106 wd:Q36834 , wd:Q486748 . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") }

List the children of Johann Sebastian Bach and Maria Barbara Bach who had occupations as composer or pianist.

Which person, born to Johann Sebastian Bach and Maria Barbara Bach, worked as a composer and pianist?

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q1339> ; <http://www.wikidata.org/prop/direct/P25> <http://www.wikidata.org/entity/Q57487> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36834> , <http://www.wikidata.org/entity/Q486748> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl". } }


Question: Who are the female grandparents of Johann Sebastian Bach?

SELECT DISTINCT ?grandparent ?parent WHERE { ?grandparent wdt:P21 wd:Q6581072 . ?grandparent wdt:P40 ?parent . ?parent wdt:P40 wd:Q1339 . } LIMIT 101

List the mothers of Johann Sebastian Bach’s parents.

Which women are the grandmothers of the composer Johann Sebastian Bach?

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/Q6581072> . ?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/Q1339> . } LIMIT 101


Question: Visual artists with German-labeled family names starting with G, born after 1795.

SELECT DISTINCT ?artistLabel ?artist ?birthYear ?deathYear ?givenName ?familyName ?familyNameLabel WHERE { ?artist wdt:P106/wdt:P279* wd:Q3391743 . ?artist wdt:P735 ?givenName ; wdt:P734 ?familyName ; wdt:P569 ?birthDate . BIND(YEAR(?birthDate) AS ?birthYear) . OPTIONAL { ?artist wdt:P570 ?deathDate . BIND(YEAR(?deathDate) AS ?deathYear) . } ?familyName rdfs:label ?familyNameLabel . FILTER(LANG(?familyNameLabel) = "de") . FILTER(STRSTARTS(?familyNameLabel, "G")) . FILTER(?birthYear > 1795) . ?artist rdfs:label ?artistLabel . FILTER(LANG(?artistLabel) = "de") . }

Which visual artists have German-language family names beginning with 'G' and were born after 1795?

List German-labeled visual artists born after 1795 whose family names start with 'G', along with their birth years, given names, and optional death years.

SELECT DISTINCT ?var1Label ?var1 ?var2 ?var3 ?var4Label ?var5 ?var6Label ?var7 WHERE { BIND ( YEAR ( ?var8 ) AS ?var2 ). ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q3391743> . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var4 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "de" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P734> ?var6 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var7 . FILTER ( ( ( LANG ( ?var7 ) = "de" ) ) ) . FILTER ( ( STRSTARTS ( ?var7 , "G" ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var8 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var9 . } BIND ( YEAR ( ?var9 ) AS ?var3 ). FILTER ( ( ( ( ?var2 +"+15"^^<http://www.w3.org/2001/XMLSchema#integer> ) > "1810"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: What English and German Wikipedia and Wikiquote pages are about the movie with IMDb ID tt0433383?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0433383" .
  ?page schema:about ?movie .
  {
    ?page schema:inLanguage "en" .
  } UNION {
    ?page schema:inLanguage "de" .
  }
}

Which language versions of Wikipedia and Wikiquote pages discuss the film "Good Night, and Good Luck" (IMDb: tt0433383)?

Show me the English and German language pages linked to the movie with IMDb ID tt0433383.

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


Question: Who were the spouses of Johann Sebastian Bach?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?spouse WHERE {
  wd:Q1339 wdt:P26 ?spouse .
}

List the people who were married to the composer Johann Sebastian Bach.

Which two women were married to Johann Sebastian Bach?

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


Question: Humans and their gender and educational institutions in English

SELECT ?human ?genderLabel ?institutionLabel WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P21 ?gender . ?human wdt:P69 ?institution . OPTIONAL { ?gender rdfs:label ?genderLabel . FILTER(LANG(?genderLabel) = "en") } OPTIONAL { ?institution rdfs:label ?institutionLabel . FILTER(LANG(?institutionLabel) = "en") } } LIMIT 10

What are the genders and educational institutions of humans, with labels in English?

List humans along with their English-labeled gender and the institutions they attended.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 ?var5 ?var5Label ?var6Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var5 . OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". FILTER ( ( ( SUBSTR ( STR ( ?var4 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"25"^^<http://www.w3.org/2001/XMLSchema#integer> ) = "string1" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Female Norwegian speed skaters and their occupations and birth dates

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?personLabel ?dateOfBirth ?occupation ?occupationLabel WHERE {
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P27 wd:Q20 .
  ?person wdt:P106 wd:Q10866633 .
  OPTIONAL {
    ?person wdt:P569 ?dateOfBirth .
  }
  OPTIONAL {
    ?person wdt:P106 ?occupation .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  .
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}

Who are the female Norwegian citizens who are speed skaters, and what are their other occupations and birth dates?

List all female Norwegian speed skaters, including their birth dates and all occupations they have, with labels in English.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q20> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var3 . } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q10866633> . }


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

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

Does Stanley F. Teele have a photo on Wikimedia Commons?

Retrieve the Commons image for the individual identified by the SNAC ARK ID w6n03xdd, if it exists.

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


Question: English and German Wikipedia and Wikiquote pages about the movie Stargate (IMDb tt0111282)

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?movie ?page WHERE {
  ?movie wdt:P345 "tt0111282" .
  ?page schema:about ?movie .
  ?page schema:inLanguage ?lang .
  FILTER(?lang = "en" || ?lang = "de")
}

What English and German language pages on Wikipedia and Wikiquote are about the movie Stargate with IMDb ID tt0111282?

Show me the English and German language pages linked to the movie Stargate on IMDb (tt0111282).

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


Question: What are the English and German Wikipedia pages for the movie with IMDb ID tt6214928?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipedia_page WHERE {
  ?movie wdt:P345 "tt6214928" .
  ?wikipedia_page schema:about ?movie ; schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Show me the Wikipedia articles in English and German about the film "1922" (2017).

Which language versions of Wikipedia have articles about the movie identified by tt6214928?

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


Question: Wikipedia page for the movie with IMDb ID tt1312254 in English or German

SELECT ?item ?wikipediaPage WHERE { ?item wdt:P345 "tt1312254" . ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") }

What is the English or German Wikipedia page for the film with IMDb ID tt1312254?

Show me the Wikipedia article in English or German about the movie identified by IMDb ID tt1312254.

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


Question: What is the image of Jean de Dinteville in Wikimedia Commons?

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

Show the image linked to the SNAC ARK ID w66f35gn.

Can you find the Commons image for the historical figure with SNAC ID w66f35gn?

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


Question: Male children of Johann Sebastian Bach and Maria Barbara Bach

SELECT ?child ?childLabel WHERE { ?child wdt:P22 wd:Q1339 . ?child wdt:P21 wd:Q6581097 . ?child wdt:P25 wd:Q57487 . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") }

Who are the sons of Johann Sebastian Bach and his first wife, Maria Barbara Bach?

List the English names of all male children who have Johann Sebastian Bach as their father and Maria Barbara Bach as their mother.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q1339> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . ?var1 <http://www.wikidata.org/prop/direct/P25> <http://www.wikidata.org/entity/Q57487> . }


Question: Top theatrical directors by Wikipedia page count

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person(COUNT(?sitelink) AS ?sitelinkCount) WHERE {
  ?person wdt:P106 | wdt:P101 | wdt:P39 wd:Q3387717 .
  ?sitelink schema:about ?person ; schema:isPartOf ?site .
  FILTER(STRSTARTS(STR(?site) , "https://"))
}
GROUP BY ?person
ORDER BY DESC(?sitelinkCount)
LIMIT 1000

Who are the most notable theatrical directors based on the number of Wikipedia language editions they have articles in?

List the top 1000 theatrical directors (by occupation, field of work, or position held) ranked by their Wikipedia popularity.

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


Question: Students and teachers of Johann Sebastian Bach

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 ?person1 ?person1Label ?person2 ?person2Label WHERE {
  ?person1 wdt:P802 ?person2 .
  FILTER(?person1 = wd:Q1339 || ?person2 = wd:Q1339)
  .
  ?person1 rdfs:label ?person1Label .
  ?person2 rdfs:label ?person2Label .
  FILTER(LANG(?person1Label) = "en")
  .
  FILTER(LANG(?person2Label) = "en")
}

Who were the students and teachers of Johann Sebastian Bach?

List all people who had a student-teacher relationship with Johann Sebastian Bach, including their names in English.

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


Question: People who share occupations with Donald Trump

SELECT ?person ?personLabel WHERE { wd:Q22686 wdt:P106 ?occupation . ?person wdt:P31 wd:Q5 ; wdt:P106 ?occupation . FILTER(?person != wd:Q22686) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10

Who are some other people that have the same jobs as Donald Trump?

List up to 10 people besides Donald Trump who are in the same professions as him.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22686> . OPTIONAL { } }


Question: English and German Wikipedia pages for the movie with IMDb ID tt0133093

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?movie ?wikipediaPage ?imdbId WHERE {
  ?movie wdt:P345 "tt0133093" .
  ?wikipediaPage schema:about ?movie .
  ?wikipediaPage schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" ) .
  BIND( "tt0133093" AS ?imdbId )
}

What are the English and German Wikipedia articles about the movie with IMDb ID tt0133093?

Show me the English and German Wikipedia pages linked to the movie identified by IMDb ID tt0133093, along with its IMDb identifier.

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


Question: Spouses of Johann Ambrosius Bach with no recorded end date

SELECT DISTINCT ?spouse ?startDate WHERE { wd:Q309470 p:P26 ?statement . ?statement ps:P26 ?spouse . OPTIONAL { ?statement pq:P580 ?startDate } MINUS { ?statement pq:P582 [] . } } LIMIT 10

Who was Johann Ambrosius Bach married to, and when did the marriage begin, if known?

List the spouses of Johann Ambrosius Bach who are not divorced or widowed, along with the start date of the marriage if available.

SELECT DISTINCT ?var1 ?var2 WHERE { { ?var1 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } MINUS { ?var1 <http://www.wikidata.org/prop/qualifier/P582> [] . } ?var2 <http://www.wikidata.org/prop/P26> ?var1 . ?var1 <http://www.wikidata.org/prop/statement/P26> <http://www.wikidata.org/entity/Q309470> . } LIMIT 10


Question: Female Nobel Prize winners

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P166 ?nobelPrize .
  FILTER(?nobelPrize IN(wd:Q38104 , wd:Q44585 , wd:Q80061 , wd:Q37922 , wd:Q35637 , wd:Q47170))
}

Who are the women who have received a Nobel Prize?

List all female recipients of any Nobel Prize category.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P166> <http://www.wikidata.org/entity/Q7191> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . } ORDER BY ASC( ?var2 )


Question: Female French citizens with their English names and Wikimedia Commons images

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 ?person ?personLabel ?image WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P27 wd:Q142 .
  OPTIONAL {
    ?person wdt:P18 ?image .
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
LIMIT 100

Who are some female French citizens, and do they have images on Wikimedia Commons?

List up to 100 female French citizens with their English names and, if available, their images from Wikimedia Commons.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } } LIMIT 100


Question: What are the English and German Wikipedia pages about the movie with IMDb ID tt0848228?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikipediaPage WHERE {
  ?item wdt:P345 "tt0848228" .
  ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang .
  FILTER(?lang = "en" || ?lang = "de")
}

Can you show me the language versions of the Wikipedia pages related to the 2012 Avengers movie?

Show me all Wikimedia pages in English or German that are about the film identified by tt0848228.

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


Question: What are the English properties used to describe Donald Trump, their French alternative labels, and the corresponding values or their English labels?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?propertyLabel ?propertyAltLabel ?valueLabelFinal WHERE {
  VALUES(?subject) {(wd:Q22686)
  }
  ?subject ?property ?value .
  ?propertyItem wikibase:directClaim ?property .
  ?propertyItem rdfs:label ?propertyLabel .
  OPTIONAL {
    ?propertyItem skos:altLabel ?propertyAltLabel .
    FILTER(LANG(?propertyAltLabel) = "fr")
  }
  OPTIONAL {
    ?value rdfs:label ?valueLabel .
    FILTER(LANG(?valueLabel) = "en")
  }
  BIND(COALESCE(?valueLabel , ?value) AS ?valueLabelFinal)
  FILTER(LANG(?propertyLabel) = "en")
}
ORDER BY ASC(xsd:integer(STRAFTER(STR(?propertyItem) , "http://www.wikidata.org/prop/")))

For Donald Trump, which properties have English labels and French alternative labels, and what are the labels (or values) of the data assigned to those properties?

Show me all the ways Donald Trump is described in Wikidata, including the English property names, their French equivalents, and the labeled or raw values of those properties.

SELECT ?var1Label ?var2Label ?var3Label WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q22686> ) } ?var4 ?var5 ?var6 . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2Label . } OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . } BIND ( COALESCE ( ?var6Label , ?var6 ) AS ?var3Label ). FILTER ( ( ( LANG ( ?var2Label ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } ORDER BY ASC( <http://www.w3.org/2001/XMLSchema#integer> ( STRAFTER ( STR ( ?var1 ) , "string1" ) ) )


Question: Musicians with English Wikipedia pages but no Greek page, ranked by total Wikipedia articles about them.

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?var1Label ( COUNT( DISTINCT ?var2 ) AS ?var3 ) WHERE {
  ?var1 wdt:P106 wd:Q639669 .
  ?var2 schema:about ?var1 .
  ?var1 rdfs:label ?var1Label .
  FILTER ( LANG( ?var1Label ) = "en" ) .
  FILTER ( EXISTS {
    ?var4 schema:about ?var1 .
    ?var4 schema:inLanguage "en" .
  }
  ) .
  FILTER ( NOT EXISTS {
    ?var5 schema:about ?var1 .
    ?var5 schema:inLanguage "el" .
  }
  ) .
}
GROUP BY ?var1 ?var1Label
ORDER BY DESC ( ?var3 )

Who are the musicians with the most Wikipedia pages across all languages, who have an English page but no Greek page?

List musicians who have English Wikipedia pages but no Greek ones, ordered by how many Wikipedia pages exist about them in total.

SELECT ?var1 ?var1Label ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/Q28640> <http://www.wikidata.org/entity/Q639669> . ?var2 <http://schema.org/about> ?var1 . FILTER ( ( EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "en". } ) ) . FILTER ( ( NOT EXISTS { ?var5 <http://schema.org/about> ?var1 . ?var5 <http://schema.org/inLanguage> "el". } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "el,en". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 )


Question: Hungarian female writers with images on Commons but no French Wikipedia page, ranked by number of Wikipedia articles.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?count ?person ?personLabel ?descFr ?descEn ?image WHERE {
  {
    SELECT ?person ?image(COUNT(DISTINCT ?article) AS ?count) WHERE {
      ?person wdt:P31 wd:Q5 .
      ?person wdt:P21 wd:Q6581072 .
      ?person wdt:P27 wd:Q28 .
      ?person wdt:P18 ?image .
      ?article schema:about ?person .
    }
    GROUP BY ?person ?image
  } MINUS {
    ?frPage schema:about ?person .
    ?frPage schema:inLanguage "fr" .
  }
  OPTIONAL {
    ?person schema:description ?descFr .
    FILTER(LANG(?descFr) = "fr")
  }
  OPTIONAL {
    ?person schema:description ?descEn .
    FILTER(LANG(?descEn) = "en")
  }
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
}
ORDER BY DESC(?count)

Who are the Hungarian women with images on Wikimedia Commons and no French Wikipedia article, and how many Wikipedia pages exist about each of them?

List Hungarian female individuals who have a Commons image and lack a French Wikipedia description, showing their English name, description (in French or English), and the number of Wikipedia articles about them, sorted by popularity.

SELECT DISTINCT ?var1 ?var2 ?var2Label ?var3 ?var4Label ?var5 WHERE { { SELECT ?var2 ?var4 ?var5 ( COUNT ( DISTINCT ?var6 ) AS ?var1 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var2 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q28> . ?var2 <http://www.wikidata.org/prop/direct/P18> ?var5 . OPTIONAL { ?var7 <http://schema.org/about> ?var2 . ?var7 <http://schema.org/inLanguage> "fr". } FILTER ( ( !( BOUND ( ?var7 ) ) ) ) . ?var6 <http://schema.org/about> ?var2 . } GROUP BY ?var2 ?var4 ?var5 } OPTIONAL { ?var2 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . } OPTIONAL { ?var2 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var3 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY DESC( ?var1 )


Question: Female Austrian models with their occupations and birth dates

SELECT ?person ?personLabel ?dateOfBirth ?occupation ?occupationLabel WHERE { ?person wdt:P21 wd:Q6581072 . ?person wdt:P27 wd:Q40 . ?person wdt:P106 wd:Q4610556 . OPTIONAL { ?person wdt:P569 ?dateOfBirth . } OPTIONAL { ?person wdt:P106 ?occupation . } OPTIONAL { ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } OPTIONAL { ?occupation rdfs:label ?occupationLabel . FILTER(LANG(?occupationLabel) = "en") } }

Who are the female Austrian citizens who have been models, and what are their other occupations and birth dates?

List all female Austrian citizens who have worked as models, along with their date of birth and all their occupations.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var3Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q40> . ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q4610556> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var3 . } }


Question: Children of Johann Sebastian Bach and Maria Barbara Bach and their occupations

SELECT ?child ?childLabel ?occupation WHERE { ?child wdt:P22 wd:Q1339 ; wdt:P25 wd:Q57487 ; wdt:P106 ?occupation . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") }

Who are the children of Johann Sebastian Bach and Maria Barbara Bach, and what were their occupations?

List the occupations of Johann Sebastian Bach’s children with Maria Barbara Bach as their mother.

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


Question: Spanish female homosexuals in Wikidata

SELECT ?person ?personLabel WHERE { ?person wdt:P91 wd:Q6636 ; wdt:P21 wd:Q6581072 ; wdt:P27 wd:Q29 . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") }

Who are the Spanish women who identify as homosexual?

List the names of women from Spain whose sexual orientation is homosexuality.

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


Question: Image of Catherine Murphy Urner with SNAC ARK ID w6dj5fdq

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

What is the image associated with Catherine Murphy Urner in Wikidata?

Show me the Wikimedia Commons image for the person identified by SNAC ARK ID w6dj5fdq.

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


Question: What are the English and German Wikipedia pages about the movie with IMDb ID tt0468569?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?wikipediaPage ?imdbId WHERE {
  VALUES ?imdbId {
    "tt0468569"
  }
  ?item wdt:P345 ?imdbId .
  ?wikipediaPage schema:about ?item .
  ?wikipediaPage schema:inLanguage ?lang .
  FILTER ( ?lang = "en" || ?lang = "de" )
}

Can you show me the Wikipedia articles in English and German that describe the film identified by the IMDb identifier tt0468569?

I want to find the Wikipedia pages in English and German related to the movie The Dark Knight — what are they?

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


Question: Entities that have gravity as a characteristic

SELECT ?entity WHERE { ?statement ps:P1552 wd:Q11412 . ?entity p:P1552 ?statement . } LIMIT 10

What entities are characterized by gravity?

List all entities that possess gravity as an inherent feature.

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


Question: Official website of Minoan Lines and its English and German Wikipedia pages.

SELECT ?item ?itemLabel ?wikipediaPage WHERE { ?item wdt:P856 <http://www.minoan.gr/> . ?wikipediaPage schema:about ?item ; schema:inLanguage ?lang . FILTER(?lang IN ("en", "de")) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

What are the English and German Wikipedia pages linked to Minoan Lines’ official website (http://www.minoan.gr)?

Show me the English label of Minoan Lines and all its associated English and German Wikipedia pages based on its official website.

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


Question: Multilingual labels for Donald Trump’s presidential position

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 ?positionLabel WHERE {
  wd:Q22686 wdt:P39 ?position .
  ?position rdfs:label ?positionLabel .
}
LIMIT 100

In what languages is the title "President of the United States" displayed for Donald Trump?

Show me all the translated names for the office held by Donald Trump as president.

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


Question: Top sculptors with the most Wikipedia articles

SELECT ?person (COUNT(?sitelink) AS ?sitelinks) WHERE { ?person (wdt:P106|wdt:P101|wdt:P39) wd:Q1281618 . ?sitelink schema:about ?person . } GROUP BY ?person ORDER BY DESC(?sitelinks) LIMIT 500

Who are the most notable sculptors based on the number of Wikipedia language editions they have articles in?

List the top 500 sculptors ranked by their Wikipedia popularity, including those whose field of work or position held is sculpture.

SELECT ?var1 ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q55> ) ( <http://www.wikidata.org/entity/Q29999> ) } ?var1 ( <http://www.wikidata.org/prop/direct/P106> */ <http://www.wikidata.org/prop/direct/P101> */ <http://www.wikidata.org/prop/direct/P39> *) <http://www.wikidata.org/entity/Q1281618> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . FILTER ( ( ( ?var2 > "0"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . } ORDER BY DESC( ?var2 ) LIMIT 500


Question: Humans with French Wikipedia and Wikisource pages but no recorded occupation.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?human ?wikisourcePage ?wikipediaPage WHERE {
  ?human wdt:P31 wd:Q5 .
  ?wikisourcePage schema:about ?human ; schema:isPartOf <https://fr.wikisource.org/> .
  ?wikipediaPage schema:about ?human ; schema:isPartOf <https://fr.wikipedia.org/> . MINUS {
    ?human wdt:P106 [] .
  }
}

Which notable people have articles on both French Wikipedia and Wikisource but do not have an occupation listed in Wikidata?

Show me the French Wikipedia and Wikisource links for humans who are documented on those sites but whose profession is not specified in Wikidata.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://fr.wikisource.org/> . ?var3 <http://schema.org/about> ?var1 ; <http://schema.org/isPartOf> <https://fr.wikipedia.org/> . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P106> [] . } }


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

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

Does the Wikidata item for Joshua Josephson have an associated image?

Return the Wikimedia Commons image for the individual identified by the SNAC ARK ID w6b586bn, if one exists.

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


Question: Wikipedia articles in English and Chinese about the movie with IMDb ID tt0351299.

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt0351299" . ?wikipedia_page schema:about ?movie ; schema:inLanguage ?lang . FILTER(?lang IN ("en", "zh")) }

What are the English and Chinese Wikipedia pages for the movie "Blind Shaft" (IMDb: tt0351299)?

Show me the English and Chinese Wikipedia links for the movie identified by IMDb ID tt0351299.

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


Question: Top singer-songwriters by number of Wikipedia language editions

SELECT ?person (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?person wdt:P106 wd:Q488205 . ?sitelink schema:about ?person ; schema:isPartOf ?wikipedia . FILTER(STRSTARTS(STR(?wikipedia), "https://")) } GROUP BY ?person ORDER BY DESC(?sitelinkCount) LIMIT 1000

Who are the most widely covered singer-songwriters on Wikipedia, ranked by the number of language versions?

List the top 1000 singer-songwriters based on how many different language Wikipedias have articles about them, ordered by popularity.

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


Question: Film with IMDb ID tt0048653 and its English or German Wikipedia page

SELECT ?film ?wikipediaPage ?imdbId WHERE { ?film wdt:P345 ?imdbId . ?wikipediaPage schema:about ?film ; schema:inLanguage ?lang . FILTER(?lang = "en" || ?lang = "de") FILTER(?imdbId = "tt0048653") }

What is the English or German Wikipedia page for the movie with IMDb ID tt0048653?

Show me the Wikipedia page in English or German for the film identified by tt0048653 on IMDb.

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


Question: Is libuv a type of software?

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

Does libuv belong to the category of software through its classification hierarchy?

Is libuv classified as software either directly or via its parent classes?

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


Question: Mothers of Johann Sebastian Bach’s children and how many children each had.

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 ?mother ?motherLabel(COUNT(?child) AS ?childCount)(GROUP_CONCAT(DISTINCT ?childLabel ; SEPARATOR = ", ") AS ?children) WHERE {
  ?child wdt:P22 wd:Q1339 .
  ?child wdt:P25 ?mother .
  ?mother rdfs:label ?motherLabel .
  ?child rdfs:label ?childLabel .
  FILTER(LANG(?motherLabel) = "en")
  FILTER(LANG(?childLabel) = "en")
}
GROUP BY ?mother ?motherLabel

Who were the mothers of Johann Sebastian Bach’s children, and how many children did each have?

List Johann Sebastian Bach’s wives along with the number of children each bore and the names of those children.

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 )( GROUP_CONCAT ( DISTINCT ?var2Label ; SEPARATOR = ", " ) AS ?var4 ) WHERE { ?var2 <http://www.wikidata.org/prop/direct/P22> <http://www.wikidata.org/entity/Q1339> . ?var2 <http://www.wikidata.org/prop/direct/P25> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } } GROUP BY ?var1 ?var1Label


Question: Surgeons who are citizens of the United Kingdom

SELECT ?person WHERE { ?person wdt:P31 wd:Q5 ; wdt:P106 wd:Q774306 ; wdt:P27 wd:Q145 . } LIMIT 500

Who are the human surgeons from the United Kingdom?

List all surgeons who hold British citizenship.

SELECT ?var1 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q774306> . OPTIONAL { } OPTIONAL { } ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q145> . } LIMIT 500


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

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

Show the Wikimedia Commons image associated with Joseph Canteloube.

Can you find the picture of the individual identified by the SNAC ARK ID w67m0cth?

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


Question: What is the English label for the gender item representing "female" in Wikidata?

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

How is "female" as a gender labeled in English on Wikidata?

Show the English name of the Wikidata item for the female gender.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q1510095> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What is the image of Eugene Cernan in Wikimedia Commons?

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

Show the image associated with the SNAC ARK ID w6xw97vp.

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

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


Question: Who are the employees of The Curious AI Company, and what are their English labels?

SELECT ?person ?label (MAX(?birthDate) AS ?maxBirthDate) ?orcid WHERE { ?person (wdt:P108 | wdt:P463) wd:Q50377020 . ?person rdfs:label ?label . FILTER(LANG(?label) = "en") OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P496 ?orcid . } } GROUP BY ?person ?label ?orcid ORDER BY ?person

Can you list the people employed by The Curious AI Company along with their names in English?

What are the names (in English) of individuals who work for or are members of The Curious AI Company?

SELECT( SAMPLE ( ?var1 ) AS ?var2 ) ?var3 ?var3Label ( MAX ( ?var4 ) AS ?var5 ) ?var6 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT( COUNT ( ?var7 ) AS ?var1 ) ?var3 WHERE { { SELECT DISTINCT ?var3 WHERE { { ?var3 ( <http://www.wikidata.org/prop/direct/P108> | <http://www.wikidata.org/prop/direct/P463> ) <http://www.wikidata.org/entity/Q50377020> . } UNION { ?var3 ( <http://www.wikidata.org/prop/direct/P1416> / <http://www.wikidata.org/prop/direct/P361> *) <http://www.wikidata.org/entity/Q50377020> . } } } OPTIONAL { ?var7 <http://www.wikidata.org/prop/direct/P50> ?var3 . } } GROUP BY ?var3 } OPTIONAL { BIND ( <http://www.w3.org/2001/XMLSchema#date> ( ?var8 ) AS ?var4 ). ?var3 <http://www.wikidata.org/prop/direct/P569> ?var8 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P496> ?var6 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,da,de,es,fr,nl,no,ru,sv,zh". } } GROUP BY ?var3 ?var3Label ?var6 ORDER BY DESC( ?var2 )


Question: List of English-labeled human physicians on Wikidata.

SELECT DISTINCT ?var1Label WHERE { ?var1 wdt:P106 wd:Q39631 . ?var1 wdt:P31 wd:Q5 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") } LIMIT 10000 OFFSET 0

Who are some human physicians listed in Wikidata with English labels?

Show me the English names of all humans whose occupation is physician.

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


Question: Female humans with Russian Wikipedia articles

SELECT ?person WHERE { ?person wdt:P31 wd:Q5 ; wdt:P21 wd:Q6581072 . ?wikipediaPage schema:about ?person ; schema:isPartOf <https://ru.wikipedia.org/> . } LIMIT 10

Who are some female humans that have a Wikipedia page on the Russian Wikipedia?

List 10 women who are featured on the Russian Wikipedia.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var2 <http://schema.org/isPartOf> <https://ru.wikipedia.org/> ; <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } LIMIT 10


Question: Humans who are surgeons

SELECT ?surgeon ?surgeonLabel WHERE { ?surgeon wdt:P31 wd:Q5 . ?surgeon wdt:P106 wd:Q774306 . ?surgeon rdfs:label ?surgeonLabel . FILTER(LANG(?surgeonLabel) = "en") } LIMIT 1000

List the English labels of people whose occupation is surgeon and who are classified as human.

SELECT ?var1 ?var1Label 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/Q774306> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1000


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

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

Can you show me the Wikimedia Commons image associated with Elliott Roosevelt’s SNAC record?

Show the image linked to the Social Networks and Archival Context identifier w6wd754j.

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


Question: What are the English or German Wikipedia pages for the movie with IMDb ID tt4172146?

SELECT ?movie ?wikipediaPage ?imdbId WHERE { ?movie wdt:P345 "tt4172146" . ?wikipediaPage schema:about ?movie . { ?wikipediaPage schema:inLanguage "en" . } UNION { ?wikipediaPage schema:inLanguage "de" . } BIND("tt4172146" AS ?imdbId) }

Which Wikipedia pages in English or German are about the movie identified by the IMDb ID tt4172146?

Show me the Wikipedia links in English or German for the film that has the IMDb identifier tt4172146.

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


Question: What are the English and German Wikipedia pages about the film with IMDb ID tt0120603?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?film ?wikipediaPage WHERE {
  ?film wdt:P345 "tt0120603" .
  ?wikipediaPage schema:about ?film .
  {
    ?wikipediaPage schema:inLanguage "en" .
  } UNION {
    ?wikipediaPage schema:inLanguage "de" .
  }
}

Can you show me the Wikipedia articles in English and German for the movie 'Beloved' (1998)?

Which Wikipedia pages in English or German discuss the film identified by the IMDb code tt0120603?

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


Question: Finnish Wikipedia articles about trans women, trans men, intersex, and female humans.

SELECT ?article ?person ?personLabel WHERE { ?person wdt:P31 wd:Q5 . VALUES ?gender { wd:Q6581072  wd:Q1097630  wd:Q1052281  wd:Q2449503 } . ?person wdt:P21 ?gender . ?article schema:isPartOf <https://fi.wikipedia.org/> ; schema:about ?person . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "fi") }

Which Finnish Wikipedia pages are about humans who identify as female, intersex, trans woman, or trans man?

List the Finnish Wikipedia articles and the names of people on them who are female, intersex, trans woman, or trans man.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q6581072> ) ( <http://www.wikidata.org/entity/Q1097630> ) ( <http://www.wikidata.org/entity/Q1052281> ) ( <http://www.wikidata.org/entity/Q2449503> ) } ?var2 <http://www.wikidata.org/prop/direct/P21> ?var3 . ?var1 <http://schema.org/isPartOf> <https://fi.wikipedia.org/> ; <http://schema.org/about> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Who are the most famous photographers (by Wikipedia page count) based on their occupation, field of work, or position held?

PREFIX schema: <http://schema.org/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ( COUNT( ?site ) AS ?sitelinkCount ) WHERE {
  {
    ?person wdt:P106 wd:Q33231 .
  } UNION {
    ?person wdt:P101 wd:Q33231 .
  } UNION {
    ?person wdt:P39 wd:Q33231 .
  }
  ?person wdt:P31 wd:Q5 .
  ?site schema:about ?person .
  ?site schema:isPartOf ?wiki .
  FILTER ( STRSTARTS( STR( ?wiki ) , "https://" ) )
}
GROUP BY ?person
ORDER BY DESC ( ?sitelinkCount )
LIMIT 2000

List the top 2000 people associated with photography (as occupation, field, or job) ranked by how many language versions of their Wikipedia page exist.

Which individuals have a strong connection to photography — either as their job, area of expertise, or role — and have the most Wikipedia language editions?

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


Question: What is the gender of Meryl Streep in English?

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 ?genderLabel WHERE {
  wd:Q873 wdt:P21 ?gender .
  ?gender rdfs:label ?genderLabel .
  FILTER ( LANG( ?genderLabel ) = 'en' ) .
  FILTER ( STR( ?genderLabel ) = "female" )
}

Is Meryl Streep's gender labeled as "female" in English on Wikidata?

Show the English label for the gender of Meryl Streep.

SELECT ?var1 WHERE { <http://www.wikidata.org/entity/Q2703746> <http://www.wikidata.org/prop/direct/P21> ?var2 . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "female"^^<http://www.w3.org/2001/XMLSchema#string> . }


Question: What are the companies owned by Expedia Group, their English Wikipedia pages, official websites, and types?

SELECT ?item ?itemLabel ?wikipediaPage ?officialWebsite ?instanceOf WHERE { ?item wdt:P127 wd:Q8085893 . ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { ?item wdt:P856 ?officialWebsite . } OPTIONAL { ?item wdt:P31 ?instanceOf . } ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

Which travel websites and companies are owned by Expedia Group, and what are their official websites and Wikipedia articles in English?

List all subsidiaries of Expedia Group along with their English Wikipedia links, official websites, and classifications (e.g., company, travel website).

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P127> <http://www.wikidata.org/entity/Q17091141> . ?var2 <http://schema.org/about> ?var1 . ?var2 <http://schema.org/inLanguage> "en". ?var2 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P127> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the superclasses of scientist up to three levels above in Wikidata, and what are their direct superclasses?

SELECT ?ancestor ?ancestorLabel ?directSubclass WHERE {
  {
    # Level 1: direct subclass
    wd:Q901 wdt:P279 ?ancestor .
  }
  UNION
  {
    # Level 2: subclass of subclass
    wd:Q901 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?ancestor .
  }
  UNION
  {
    # Level 3: subclass of subclass of subclass
    wd:Q901 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?ancestor .
  }

  # Get direct subclass relationship (i.e., what is ?ancestor a subclass of?)
  OPTIONAL {
    ?ancestor wdt:P279 ?directSubclass .
  }

  # Get label in English
  ?ancestor rdfs:label ?ancestorLabel .
  FILTER(LANG(?ancestorLabel) = "en")
}
ORDER BY ?ancestor

What classes is a scientist a subclass of, going up three levels in the hierarchy, and what are those classes themselves subclasses of?

List all the ancestor classes of the profession "scientist" within three levels of inheritance, along with their English labels and immediate parent classes.

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


Question: What are the birth year, death year, given name, and image of the French writer Émile Zola?

SELECT ?person ?givenName ?image ?birthYear ?deathYear ?birthDate ?deathDate WHERE { ?person rdfs:label "Émile Zola"@fr . ?person wdt:P735 ?givenName . ?person wdt:P569 ?birthDate . ?person wdt:P570 ?deathDate . OPTIONAL { ?person wdt:P18 ?image . } BIND(YEAR(?birthDate) AS ?birthYear) . BIND(YEAR(?deathDate) AS ?deathYear) . }

Can you show me Émile Zola’s birth and death dates, his first name, and a picture of him?

Tell me about Émile Zola: when was he born and died, what is his given name, and is there an image available?

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 ?var8 WHERE { BIND ( YEAR ( ?var4 ) AS ?var6 ). BIND ( YEAR ( ?var5 ) AS ?var7 ). ?var1 ?var8 "zola"@fr . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . } }


Question: Authors and writers with dual German and Turkish citizenship

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P106 ?occupation ; wdt:P69 ?education .
  ?person wdt:P27 wd:Q183 .
  ?person wdt:P27 wd:Q43 .
  VALUES ?occupation {
    wd:Q482980 wd:Q36180
  }
}

Who are the human authors and writers who are citizens of both Germany and Turkey?

List all authors and writers who have citizenship in both Germany and Turkey.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> ?var2 ; <http://www.wikidata.org/prop/direct/P69> ?var3 . ?var1 ( <http://www.wikidata.org/prop/direct/P27> / <http://www.wikidata.org/prop/direct/P31> ?) <http://www.wikidata.org/entity/Q183> . ?var1 ( <http://www.wikidata.org/prop/direct/P27> / <http://www.wikidata.org/prop/direct/P31> ?) <http://www.wikidata.org/entity/Q43> . VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q482980> ) ( <http://www.wikidata.org/entity/Q36180> ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Wikipedia pages in English or German about the movie with IMDb ID tt1127221.

SELECT ?movie ?wikipedia_page WHERE { ?movie wdt:P345 "tt1127221" . ?wikipedia_page schema:about ?movie . { ?wikipedia_page schema:inLanguage "en" . } UNION { ?wikipedia_page schema:inLanguage "de" . } }

What are the English and German Wikipedia articles for the movie with IMDb ID tt1127221?

Show me the English and German Wikipedia links for the film identified by IMDb ID tt1127221.

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


Question: Sub-occupations of physician up to two levels deep

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 ?subOccupation ?subOccupationLabel WHERE {
  {
    ?subOccupation wdt:P279 wd:Q39631 .
  } UNION {
    ?subOccupation wdt:P279 ?intermediate .
    ?intermediate wdt:P279 wd:Q39631 .
  }
  ?subOccupation rdfs:label ?subOccupationLabel .
  FILTER(LANG(?subOccupationLabel) = "en")
}

What are some specific medical professions that are considered types of physician, either directly or through one intermediate category?

List all occupations that are subclasses of physician, including those that are subclasses of those subclasses.

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/Q39631> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P106> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } }


Question: Afro-Uruguayan people with English names and no Wikipedia image

SELECT ?person ?label ?sitelinks WHERE { ?person wdt:P31 wd:Q5 ; wdt:P172 wd:Q3267254 ; rdfs:label ?label . FILTER (LANG(?label) = "en") . FILTER NOT EXISTS { ?person wdt:P18 [] } . OPTIONAL { ?person wikibase:sitelinks ?sitelinks } } ORDER BY DESC(?sitelinks) LIMIT 1000

Who are the Afro-Uruguayan individuals who have English-language labels on Wikidata but no image on Wikimedia Commons?

List Afro-Uruguayan humans with English labels and no image, sorted by Wikipedia notability (number of language editions).

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var3 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P18> _:b7 . } ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q3267254> . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1 ?var2 ?var3 ORDER BY DESC( ?var3 ) LIMIT 1000


Question: Is August 7 a type of software?

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

Does August 7 belong to a category that is a subclass of software?

Check whether August 7 is classified under any category that descends from software.

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


Question: What property links Barack Obama to the United States in Wikidata?

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

What is the relationship between Barack Obama and the United States according to Wikidata?

Show me the direct property that connects Barack Obama (Q76) to the United States (Q30) in Wikidata.

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