Question: What administrative regions and continent is Longcreek, South Carolina part of?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?var1 ?label WHERE {
  wd:Q6672471 ( wdt:P131 | wdt:P17 | wdt:P30 ) + ?var1 .
  ?var1 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

Which country and continent does Longcreek, SC belong to, and what state is it in?

List all geographic and administrative entities that Longcreek, South Carolina is located within, including its state, country, and continent.

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


Question: List people who are actors and their names.

SELECT DISTINCT ?person ?personLabel WHERE { ?person wdt:P106 wd:Q33999 . ?person rdfs:label ?personLabel . } LIMIT 10

Who are the actors in Wikidata, and what are their names?

Show me the names of all individuals whose occupation is actor.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/wdt:P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . }


Question: Labels for "food" in English, German, French, and Italian, along with its image and Wikipedia link.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
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/>
PREFIX schema: <http://schema.org/>
SELECT ?label ?image ?wikipedia WHERE {
  OPTIONAL {
    wd:Q2095 rdfs:label ?label .
    FILTER ( LANG( ?label ) = ?lang ) VALUES ( ?lang ) {
      ( "en" ) ( "de" ) ( "fr" ) ( "it" )
    }
  }
  OPTIONAL {
    wd:Q2095 wdt:P18 ?image .
  }
  OPTIONAL {
    ?wikipedia rdf:type schema:Article ; schema:about wd:Q2095 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  }
}
ORDER BY ASC ( ?lang )

What are the names of "food" in English, German, French, and Italian, and what is its image and Wikipedia page?

Show me the translations of "food" in four languages, its image from Wikimedia Commons, and the English Wikipedia article about it.

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


Question: Mozart compositions with Köchel numbers and publication dates

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?work ?workLabel ?catalogCode ?publicationDate WHERE {
  ?work wdt:P86 wd:Q254 ; wdt:P528 ?catalogCode ; wdt:P577 ?publicationDate .
  ?work rdfs:label ?workLabel .
  FILTER(LANG(?workLabel) = "en")
}

What are Wolfgang Amadeus Mozart's musical works, their catalog codes (like K. numbers), and when were they published?

List all musical works composed by Mozart along with their catalog codes and publication dates in English.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/Q177220> <http://www.wikidata.org/entity/Q254> ; <http://www.wikidata.org/prop/direct/P528> ?var4 ; <http://www.wikidata.org/prop/direct/P577> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What administrative regions and continent does North Mandioli belong to?

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

What country, province, regency, and continent is North Mandioli located in?

Show me the full geographical and administrative hierarchy of North Mandioli, including its country and continent.

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


Question: List all recurring events in Wikidata.

SELECT ?event WHERE { ?event (wdt:P31 / wdt:P279*) wd:Q14795564 .}

What are all the holidays and annual festivals recorded in Wikidata?

Show me all the cultural, religious, and traditional events that occur periodically, such as festivals or observances, that are classified in Wikidata as recurring time points.

SELECT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q14795564> . }


Question: List of fruit varieties and types in botany with English names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?fruitVariety ?fruitVarietyLabel WHERE {
  ?fruitVariety(wdt:P31 / wdt:P279 *) wd:Q1364 .
  ?fruitVariety rdfs:label ?fruitVarietyLabel .
  FILTER(LANG(?fruitVarietyLabel) = "en")
}

What are the different kinds of fruits in botany, and what are their English names?

Show me all the named cultivars and species that are classified as fruits in botany, along with their English labels.

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


Question: What are the diseases treated by endocrinology?

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/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT DISTINCT ?disease ?label WHERE {
  ?disease wdt:P31 wd:Q12136 .
  ?disease wdt:P1995 wd:Q162606 .
  OPTIONAL {
    ?disease rdfs:label ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
  OPTIONAL {
    ?disease skos:altLabel ?label .
    FILTER ( LANG( ?label ) = "en" )
  }
}
LIMIT 1000

List the English names of diseases that fall under the medical specialty of endocrinology.

Which endocrine-related conditions have English labels in Wikidata?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . ?var1 <http://www.wikidata.org/prop/direct/P1995> <http://www.wikidata.org/entity/Q162606> . { { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . } UNION { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var3Label . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1000


Question: List of tank locomotives with their English names.

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

What are the English names of all tank locomotives in Wikidata?

Show me all tank locomotives and their labels in English.

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


Question: Who is the person whose birth name is "Aaden Jonathan Gosselin"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?label WHERE {
  ?item wdt:P1477 "Aaden Jonathan Gosselin" @en .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = 'en' )
}

Find the name of the person born as Aaden Jonathan Gosselin.

What is the commonly known name of the individual with the birth name "Aaden Jonathan Gosselin"?

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


Question: Who are the people with the surname "Smith"?

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

List all individuals whose family name is Smith in Wikidata.

Can you show me the names of people who have "Smith" as their last name?

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


Question: Items categorized under categories with main topic Hamburg, and their statement qualifiers.

SELECT ?item ?statement (SAMPLE(?qv) AS ?qualifierValue) WHERE { ?item p:P301 ?statement . ?statement ps:P301 wd:Q1055 . OPTIONAL { ?statement ?qualifier ?qv . ?qualifier wikibase:qualifierOf p:P301 . } } GROUP BY ?item ?statement LIMIT 100

Which items are linked to Hamburg via Wikimedia category main topic statements, and what qualifiers are attached to those statements?

Show me all items that belong to categories whose main topic is Hamburg, along with any additional details (qualifiers) on their categorization statements.

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


Question: What is the English title and description of the film with LdiF ID 61940?

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

Can you tell me the title and English description of the film identified by the LdiF ID 61940?

Show me the English name and a brief description of the film that has the identifier 61940 in the Lexikon des Internationalen Films.

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


Question: What are the titles of "Indiana Jones and the Temple of Doom" in English, German, French, and Italian, along with its image and Wikipedia page?

SELECT ?label ?image ?coordinates ?wikipediaArticle WHERE { VALUES (?lang ?sortKey) { ("en" 1) ("de" 2) ("fr" 3) ("it" 4) } wd:Q179215 rdfs:label ?label . FILTER (LANG(?label) = ?lang) OPTIONAL { wd:Q179215 wdt:P18 ?image . } OPTIONAL { wd:Q179215 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q179215 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } } ORDER BY ?sortKey

Can you list the titles of the movie "Indiana Jones and the Temple of Doom" in English, German, French, and Italian, and show its logo image and English Wikipedia link?

Please provide the localized titles of the film "Indiana Jones and the Temple of Doom" in English, German, French, and Italian, including its Wikimedia Commons image and the link to its English Wikipedia article.

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


Question: Politicians named Barack

SELECT DISTINCT ?politician WHERE { ?politician wdt:P31 wd:Q5 . ?politician wdt:P106 wd:Q82955 . ?politician rdfs:label ?label . FILTER (LANG(?label) = "en") . FILTER (STRSTARTS(LCASE(?label), "barack")) } LIMIT 10

Who are the politicians whose English name starts with "Barack"?

List all human politicians with an English label starting with "Barack".

SELECT DISTINCT ?var1 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/Q82955> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . FILTER ( ( STRSTARTS ( LCASE ( ?var2Label ) , LCASE ( "string1" ) ) ) ) . } LIMIT 10


Question: Gene products encoded by the gene with NCBI Gene ID 42249

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?geneProduct WHERE {
  ?gene wdt:P351 "42249" .
  ?geneProduct wdt:P702 ?gene .
}

What gene product is encoded by the gene that has the NCBI Gene ID 42249?

Show me the gene product that is encoded by the gene identified by NCBI Gene ID 42249.

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


Question: Which movie has the elFilm ID 1336942?

SELECT ?movie WHERE { ?movie wdt:P3143 "1336942" . }

What is the title of the movie identified by the elFilm ID 1336942?

Find the movie in Wikidata that corresponds to the elFilm ID 1336942.

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


Question: What film has the AlloCiné ID 143239?

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

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

Tell me the title of the film with AlloCiné ID 143239.

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


Question: Films with exactly one director who has an Arabic Wikipedia page, not anthology films, and no Arabic description.

SELECT ?film (COUNT(?director) AS ?directorCount) WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P57 ?director . FILTER(NOT EXISTS { ?film wdt:P136 wd:Q336144 }) . FILTER(EXISTS { ?arWikipediaPage schema:about ?director ; schema:inLanguage "ar" . }) . FILTER(NOT EXISTS { ?film schema:description ?desc ; schema:inLanguage "ar" . }) . } GROUP BY ?film HAVING (COUNT(?director) = 1) LIMIT 200

What films are directed by exactly one person whose Wikipedia page is in Arabic, are not anthology films, and do not have an Arabic-language description?

List up to 200 films that have a single director with an Arabic Wikipedia page, exclude anthology films, and ensure they have no Arabic description.

SELECT ?var1 ?var2 ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P57> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P577> ?var5 . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P136> <http://www.wikidata.org/entity/Q336144> . } ) ) . FILTER ( ( EXISTS { ?var6 <http://schema.org/about> ?var3 . ?var6 <http://schema.org/inLanguage> "ar". } ) ) . OPTIONAL { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ar" ) ) ) . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ar". } } GROUP BY ?var1 ?var2 HAVING ( ( COUNT ( ?var3 ) = "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var4 ) LIMIT 200


Question: Living politicians named Kim Jong with their birth dates and 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 DISTINCT ?person ?label ?image ?birthDate WHERE {
  ?person wdt:P31 wd:Q5 ; wdt:P106 wd:Q82955 ; wdt:P569 ?birthDate ; wdt:P18 ?image ; rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER(REGEX(?label , "Kim Jong" , "i"))
  FILTER(NOT EXISTS {
    ?person wdt:P570 ?deathDate .
  })
}
LIMIT 10

Who are the living politicians with "Kim Jong" in their name, and what are their birth dates and images?

Show me the images and birth dates of all living politicians whose English label contains "Kim Jong".

SELECT DISTINCT ?var1 ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P569> ?var5 ; <http://www.wikidata.org/prop/direct/P18> ?var3 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var4 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> . FILTER ( ( CONTAINS ( ?var2Label , "Kim Jong" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var6 . } ) ) . } LIMIT 10


Question: List of sports teams, either directly classified as such or teams that athletes have played for, with English names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?var1 ?label WHERE {
  {
    ?var1 wdt:P31 wd:Q12973014 .
  } UNION {
    ?x wdt:P54 ?var1 .
  }
  ?var1 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 200

What are the sports teams that are either explicitly categorized as sports teams or have been played for by athletes, along with their English names?

Show me up to 200 sports teams with their English names, including those that are either directly classified as sports teams or have been teams of athletes.

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


Question: Co-authored research papers between authors from the University of Oxford, University of Cambridge, and University of St Andrews.

SELECT DISTINCT ?author1 ?author1Label ?author2 ?author2Label ?work ?workLabel WHERE {  VALUES ?uni1 { wd:Q216273 wd:Q34433 wd:Q35794 }  VALUES ?uni2 { wd:Q216273 wd:Q34433 wd:Q35794 }   ?author1 wdt:P108 ?uni1 .  ?author2 wdt:P108 ?uni2 .  ?work wdt:P50 ?author1 , ?author2 .   {    SELECT ?work (COUNT(?a) AS ?authorCount) WHERE {      ?work wdt:P50 ?a .    } GROUP BY ?work HAVING (?authorCount = 2)  }   FILTER ( ?uni1 != ?uni2 && STR(?author1) < STR(?author2) )   ?author1 rdfs:label ?author1Label .  ?author2 rdfs:label ?author2Label .  ?work rdfs:label ?workLabel .   FILTER (LANG(?author1Label) = "en")  FILTER (LANG(?author2Label) = "en")  FILTER (LANG(?workLabel) = "en")} ORDER BY ASC(?author1Label) LIMIT 500

Which academic papers have been co-authored by researchers from two different universities among Oxford, Cambridge, and St Andrews?

Show me pairs of researchers from different universities (Oxford, Cambridge, or St Andrews) who have co-authored papers together, along with the paper titles.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { VALUES ( ?var4 ) { ( <http://www.wikidata.org/entity/Q216273> ) ( <http://www.wikidata.org/entity/Q34433> ) ( <http://www.wikidata.org/entity/Q35794> ) } VALUES ( ?var5 ) { ( <http://www.wikidata.org/entity/Q216273> ) ( <http://www.wikidata.org/entity/Q34433> ) ( <http://www.wikidata.org/entity/Q35794> ) } ?var1 ?var6 ?var4 . ?var2 ?var7 ?var5 . ?var3 <http://www.wikidata.org/prop/direct/P50> ?var1 , ?var2 . FILTER ( ( ( STR ( ?var1 ) < STR ( ?var2 ) ) && ( ?var4 != ?var5 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label ) LIMIT 500


Question: List all manga titles in Wikidata.

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 ?manga ?mangaLabel WHERE {
  ?manga wdt:P31 wd:Q8274 .
  ?manga rdfs:label ?mangaLabel .
}

What are the names of all manga series listed in Wikidata?

Show me the titles and their labels of all works that are instances of manga in Wikidata.

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


Question: Children of Johann Sebastian Bach in alphabetical order

SELECT ?child ?childLabel WHERE { wd:Q1339 wdt:P40 ?child . ?child rdfs:label ?childLabel . FILTER(LANG(?childLabel) = "en") } ORDER BY ASC(?childLabel)

Who are the children of Johann Sebastian Bach, listed alphabetically by name?

List all the children of Johann Sebastian Bach with their English names, sorted alphabetically.

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


Question: Who are the governors of Stockholm County, and do they have images available on Wikimedia Commons?

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

Can you list the people who have held the position of Governor of Stockholm County along with their English names and photos?

Which individuals served as Governor of Stockholm County, and what are their portraits?

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


Question: What events occurred in May 1992?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?event WHERE {
  ?event ( wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P1191 ) ?date .
  FILTER ( ?date >= "1992-05-01T00:00:00Z" ^^ xsd:dateTime && ?date <= "1992-05-31T23:59:59Z" ^^ xsd:dateTime )
}

Which historical events, such as elections, coups, or spacecraft missions, took place between May 1 and May 31, 1992?

List all recorded events in Wikidata that have a known date in May 1992, including first flights, service entries, or premieres.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P1191> ) ?var2 . FILTER ( ( ( ?var2 >= "1992-05-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1992-05-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: What medical specialties are associated with different diseases?

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 ?disease ?diseaseLabel ?specialty ?specialtyLabel WHERE {
  ?disease wdt:P31 wd:Q12136 .
  ?disease wdt:P1995 ?specialty .
  ?disease rdfs:label ?diseaseLabel .
  ?specialty rdfs:label ?specialtyLabel .
  FILTER(LANG(?diseaseLabel) = "en")
  FILTER(LANG(?specialtyLabel) = "en")
}

Which doctors or medical fields treat specific diseases, and what are their names?

Can you list diseases along with the medical specialties that diagnose or treat them, using their English names?

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


Question: What are the English names of diseases treated in psychiatry?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?disease ?label WHERE {
  ?disease wdt:P31 wd:Q12136 ; wdt:P1995 wd:Q7867 .
  {
    ?disease rdfs:label ?label .
  } UNION {
    ?disease skos:altLabel ?label .
  }
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 10000

Which diseases classified under psychiatry have English labels in Wikidata?

List all English-language labels (including alternative names) for diseases that are associated with the medical specialty of psychiatry.

SELECT ?var1 ?var1Label ?var2Label ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . ?var1 <http://www.wikidata.org/prop/direct/P1995> <http://www.wikidata.org/entity/Q7867> . { { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } UNION { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var2Label . } } BIND ( LANG ( ?var2Label ) AS ?var3 ). FILTER ( ( ( ?var3 = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 10000


Question: What are the labels for Kaitlyn Dever in English, German, French, and Italian, along with her image and Wikipedia article?

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

Show me Kaitlyn Dever’s name in different languages, her photo, and her English Wikipedia page.

Retrieve the multilingual labels, image, and English Wikipedia link for the actress Kaitlyn Dever.

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


Question: English labels and descriptions of chemical compounds

SELECT DISTINCT ?compound ?label ?description WHERE { ?compound wdt:P31 wd:Q11173 . ?compound rdfs:label ?label . ?compound schema:description ?description . FILTER(LANG(?label) = "en") FILTER(LANG(?description) = "en") } LIMIT 200

What are the English names and descriptions of all chemical compounds in Wikidata?

Show me up to 200 chemical compounds with their English labels and descriptions.

SELECT DISTINCT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11173> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var3 <http://schema.org/description> ?var4 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } LIMIT 200


Question: Chemical compounds with English descriptions

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/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?compound ?label ?description WHERE {
  ?compound wdt:P31 wd:Q11173 .
  ?compound rdfs:label ?label .
  ?compound schema:description ?description .
  FILTER ( LANG( ?description ) = "en" )
}
LIMIT 200

What are some chemical compounds and their English descriptions?

List up to 200 chemical compounds along with their labels and English descriptions.

SELECT DISTINCT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11173> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . ?var3 <http://schema.org/description> ?var4 . FILTER ( ( ( LANG ( <http://schema.org/description> ) = "en" ) ) ) . } LIMIT 200


Question: Members of the French National Assembly during the 15th legislature (2017–2022), sorted by family name and given name.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P734 ?var2 . ?var1 wdt:P735 ?var3 . ?var1 p:P39 ?var4 . ?var4 ps:P39 wd:Q3044918 . ?var4 pq:P2937 wd:Q24939798 . ?var1 rdfs:label ?var1Label . ?var2 rdfs:label ?var2Label . ?var3 rdfs:label ?var3Label . FILTER(LANG(?var1Label) = "en") FILTER(LANG(?var2Label) = "en") FILTER(LANG(?var3Label) = "en") } ORDER BY ASC(?var2Label) ASC(?var3Label)

Who were the members of the French National Assembly in the 15th legislature of the Fifth French Republic, and what are their first and last names?

List the full names (first and last) of all members of the French National Assembly during the 2017–2022 term, ordered alphabetically by last name and then first name.

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/P734> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P735> ?var3 . ?var1 <http://www.wikidata.org/prop/P39> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q3044918> . ?var4 <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q24939798> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr". } } GROUP BY ?var1 ?var1Label ORDER BY ASC( ?var2Label )ASC( ?var3Label )


Question: Tom Hanks: gender, birth date, country of birth, birth name

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 ?genderLabel ?birthDate ?actor ?countryLabel ?birthName ?deathDate WHERE {
  ?actor rdfs:label "Tom Hanks" @en .
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P21 ?gender .
  ?gender rdfs:label ?genderLabel .
  FILTER(LANG(?genderLabel) = "en")
  OPTIONAL {
    ?actor wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?actor wdt:P19 ?birthPlace .
    ?birthPlace wdt:P17 ?country .
    ?country rdfs:label ?countryLabel .
    FILTER(LANG(?countryLabel) = "en")
  }
  OPTIONAL {
    ?actor wdt:P1477 ?birthName .
  }
  OPTIONAL {
    ?actor wdt:P570 ?deathDate .
  }
}

What is Tom Hanks' gender, date of birth, country of birth, and birth name?

Show me Tom Hanks' gender, birth date, where he was born, and his full birth name.

SELECT ?var1Label ?var2 ?var3 ?var4Label ?var5 ?var6 WHERE { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P569> ?var2 . } ?var3 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var3 <http://www.wikidata.org/prop/direct/P21> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P19> ?var7 . ?var7 <http://www.wikidata.org/prop/direct/P17> ?var4 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P1477> ?var5 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P570> ?var6 . } }


Question: What language has the GOST 7.75–97 code 'аре 052'?

SELECT ?language WHERE { ?language wdt:P278 "аре 052" . }

Which language is identified by the GOST 7.75–97 code 'аре 052'?

Find the language corresponding to the GOST 7.75–97 code 'аре 052'.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P278> "аре052". }


Question: Rowing figures with known date of death but unknown place of death.

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 ?dateOfDeath WHERE {
  ?person(wdt:P106 / wdt:P279 *) wd:Q26270618 .
  ?person wdt:P570 ?dateOfDeath . MINUS {
    ?person wdt:P20 ?placeOfDeath .
  }
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "en")
  }
}

Who are the rowing athletes or participants who have died but whose place of death is not recorded in Wikidata?

List the names and dates of death of all people whose occupation is related to rowing (including subclasses), but who do not have a recorded place of death.

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


Question: What are the labels for the NHL 2016 disambiguation page in English, German, French, Italian, and Spanish, and what is its English Wikipedia article?

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

Show the multilingual labels of the Wikipedia disambiguation page for NHL 2016 along with its English Wikipedia link.

Retrieve the names of the NHL 2016 disambiguation page in five languages and its corresponding English Wikipedia page.

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


Question: Labels of Eckhard Friauf in German, English, French, and Italian, along with his image, coordinates, and corresponding 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 ?label ?image ?coordinates ?wikipediaArticle WHERE {
  wd:Q1281670 rdfs:label ?label .
  FILTER ( LANG( ?label ) = ?lang ) .
  OPTIONAL {
    wd:Q1281670 wdt:P18 ?image .
  }
  OPTIONAL {
    wd:Q1281670 wdt:P625 ?coordinates .
  }
  VALUES ( ?lang ?sortOrder ?wikipediaBase ) {
    ( "de" 1 <https://de.wikipedia.org/> ) ( "en" 2 <https://en.wikipedia.org/> ) ( "fr" 4 <https://fr.wikipedia.org/> ) ( "it" 5 <https://it.wikipedia.org/> )
  }
  ?wikipediaArticle schema:about wd:Q1281670 ; schema:inLanguage ?lang ; schema:isPartOf ?wikipediaBase .
}
ORDER BY ASC ( ?sortOrder )

What are the labels of Eckhard Friauf in different languages, and what are his image, coordinates, and Wikipedia articles in those same languages?

Show me Eckhard Friauf’s labels in German, English, French, and Italian, including his image and coordinates if available, and only the Wikipedia articles that exist in each respective language.

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


Question: What films from Yemen are classified as silent films or short films?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film WHERE {
  {
    ?film wdt:P31 wd:Q11424 .
  } UNION {
    ?film wdt:P31 wd:Q226730 .
  } UNION {
    ?film wdt:P31 wd:Q24862 .
  }
  ?film wdt:P495 wd:Q805 .
}

Can you list all Yemeni movies, including silent and short films?

Which films originating in Yemen belong to the categories of film, silent film, or short film?

SELECT ?var1 WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> * <http://www.wikidata.org/entity/Q11424> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q226730> . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q24862> . } ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q805> . }


Question: Sculptors and their fathers and languages

SELECT ?person ?father ?language WHERE { ?person wdt:P31 wd:Q5 . ?person p:P106 ?occupationStmt . ?occupationStmt ps:P106 wd:Q1281618 . OPTIONAL { ?person wdt:P22 ?father . } OPTIONAL { ?person wdt:P1412 ?language . } } LIMIT 50

Who are the sculptors, and who are their fathers and what languages do they speak?

List 50 sculptors along with their fathers and the languages they speak, if available.

SELECT ?var1 ?var2 ?var2Label ?var3 ?var3Label ?var4 ?var4Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/P106> ?var5 . ?var5 <http://www.wikidata.org/prop/statement/P106> <http://www.wikidata.org/entity/Q1281618> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P22> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1412> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P106> ?var4 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are all the types of organizations in Wikidata, including subtypes?

SELECT ?organizationType WHERE { ?organizationType wdt:P279* wd:Q43229 . } ORDER BY ASC(?organizationType)

Can you list all the classes that are subclasses of "organization" in Wikidata?

Show me the hierarchy of organizational types in Wikidata, starting from "organization".

SELECT ?var1 WHERE { SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> / <http://www.w3.org/2000/01/rdf-schema#subClassOf> *) <http://dbpedia.org/ontology/Organisation> . } ORDER BY ASC( ?var1 ) }


Question: What are the direct subclasses of "unit of measurement" and "quantity" in Wikidata?

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

Can you list some types of units and quantities, like mass number or unit of power?

Show me the English-labeled subclasses of units of measurement and quantities.

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


Question: Properties that have organizations as objects, with English labels and descriptions.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?prop ?propLabel ?propDescription WHERE {
  ?item ?prop ?org .
  ?org wdt:P31 wd:Q43229 .
  FILTER ( STRSTARTS( STR( ?prop ) , "http://www.wikidata.org/prop/direct/" ) ) .
  BIND( IRI( REPLACE( STR( ?prop ) , "http://www.wikidata.org/prop/direct/" , "http://www.wikidata.org/entity/" ) ) AS ?propEntity ) .
  ?propEntity rdfs:label ?propLabel .
  ?propEntity schema:description ?propDescription .
  FILTER ( LANG( ?propLabel ) = "en" ) FILTER ( LANG( ?propDescription ) = "en" )
}
LIMIT 100

Which properties are used to link entities to organizations, and what are their English labels and descriptions?

List the English labels and descriptions of all properties whose objects are organizations.

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


Question: What are some businesses located in the United States?

SELECT ?business ?businessLabel WHERE { ?business wdt:P31 wd:Q4830453 . ?business wdt:P17 wd:Q30 . ?business rdfs:label ?businessLabel . FILTER(LANG(?businessLabel) = "en") } LIMIT 1000

Can you list English-named companies based in the United States?

Show me businesses in the U.S. with their English labels.

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


Question: Banks and their subsidiaries in English, with labels.

SELECT ?bank ?bankLabel ?subsidiary ?subsidiaryLabel WHERE { ?bank wdt:P31 wd:Q22687 ; rdfs:label ?bankLabel . FILTER(LANG(?bankLabel) = "en") OPTIONAL { ?bank wdt:P355 ?subsidiary . ?subsidiary rdfs:label ?subsidiaryLabel . FILTER(LANG(?subsidiaryLabel) = "en") } }

Which banks are instances of financial institutions, and what are their subsidiaries, both with English labels?

List all English-labeled banks and, where available, their English-labeled subsidiaries.

SELECT ?var1 ?var1Label ?var2 ?var2Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q22687> ; <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P355> ?var2 . } FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . }


Question: List battles with their coordinates and years, using English labels.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?label ?coordinates ?battle ?year WHERE {
  ?battle wdt:P31 wd:Q178561 .
  ?battle wdt:P625 ?coordinates .
  OPTIONAL {
    ?battle wdt:P585 ?date .
  }
  OPTIONAL {
    ?battle wdt:P582 ?endDate .
  }
  BIND( IF( BOUND( ?date ) , ?date , ?endDate ) AS ?tempDate ) .
  BIND( YEAR( ?tempDate ) AS ?year ) .
  ?battle rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}

What are the English names, geographic coordinates, and years of all historical battles recorded in Wikidata?

Show me the English labels, locations (as coordinates), and years of battles, using the battle’s start date if available, otherwise its end date.

SELECT ?var1Label ?var2 ?var3 ?var4 ?var5 ?var5Label WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q178561> . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P585> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P582> ?var7 . } BIND ( IF ( !( BOUND ( ?var8 ) ), IF ( !( BOUND ( ?var6 ) ), ?var7 , ?var6 ) , ?var8 ) AS ?var9 ). BIND ( YEAR ( ?var9 ) AS ?var4 ). ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: What are the locations and dates of historical battles, preferring start times over point-in-time or end times?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ?coordinates ?date ?battle WHERE {
  ?battle wdt:P31 wd:Q178561 .
  ?battle wdt:P625 ?coordinates .
  ?battle wdt:P580 ?start .
  ?battle wdt:P585 ?pointInTime .
  ?battle wdt:P582 ?end .
  ?battle rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  BIND(IF(!(BOUND(?start)) , IF(!(BOUND(?pointInTime)) , ?end , ?pointInTime) , ?start) AS ?date)
}

Show me the names, coordinates, and preferred dates of all battles in English, using start time if available, otherwise point in time or end time.

List battles with their geographic coordinates and the most relevant date (start, then point-in-time, then end), in English.

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( IF ( !( BOUND ( ?var5 ) ), IF ( !( BOUND ( ?var6 ) ), ?var7 , ?var6 ) , ?var5 ) AS ?var8 ). BIND ( YEAR ( ?var8 ) AS ?var3 ). ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q178561> . ?var4 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var4 <http://www.wikidata.org/prop/direct/P580> ?var5 . ?var4 <http://www.wikidata.org/prop/direct/P585> ?var6 . ?var4 <http://www.wikidata.org/prop/direct/P582> ?var7 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . }


Question: Composers who have received awards

SELECT DISTINCT ?composer ?composerLabel WHERE { ?composer wdt:P106 wd:Q36834 . ?composer p:P166 [] . ?composer rdfs:label ?composerLabel . FILTER(LANG(?composerLabel) = "en") }

Which composers have received at least one award?

List the names of all composers who have been awarded any honor or recognition.

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


Question: What administrative regions and continents is Pleasantville, Pennsylvania part of?

SELECT DISTINCT ?geographicEntity WHERE { { wd:Q7204142 wdt:P131 ?geographicEntity . } UNION { wd:Q7204142 wdt:P131/wdt:P17 ?geographicEntity . } UNION { wd:Q7204142 wdt:P131/wdt:P17/wdt:P30 ?geographicEntity . } UNION { wd:Q7204142 wdt:P17 ?geographicEntity . } UNION { wd:Q7204142 wdt:P17/wdt:P30 ?geographicEntity . } UNION { wd:Q7204142 wdt:P30 ?geographicEntity . } }

Can you list all the countries, counties, and continents that Pleasantville belongs to through its geographic hierarchy?

Show me the geographic context of Pleasantville, PA, including its county, country, and continent.

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


Question: Greeks without Greek Wikipedia pages, ranked by number of other language articles

SELECT ?person (COUNT(DISTINCT ?article) AS ?articleCount) WHERE { ?person wdt:P27 wd:Q41 . ?article schema:about ?person . FILTER NOT EXISTS { ?otherArticle schema:about ?person . ?otherArticle schema:inLanguage "el" . } } GROUP BY ?person ORDER BY DESC(?articleCount)

Which Greek citizens have the most Wikipedia articles in languages other than Greek?

List people who are citizens of Greece but don’t have a Greek-language Wikipedia page, sorted by how many other language versions of their Wikipedia page exist.

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q41> . ?var1 <http://www.wikidata.org/prop/direct/P32> <http://www.wikidata.org/entity/Q5> . ?var2 <http://schema.org/about> ?var1 . FILTER ( ( NOT EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "el". } ) ) . OPTIONAL { ?var2 <http://schema.org/about> ?var1 . } FILTER ( ( NOT EXISTS { ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/inLanguage> "el". } ) ) . } GROUP BY ?var1 ORDER BY DESC( ?var3 )


Question: List all MTR stations and stops in Hong Kong with their number of platform tracks, English labels, descriptions, MTR codes, and GeoNames IDs.

SELECT ?station ?trackCount ?label ?description ?country ?countryLabel ?mtrCode ?geonamesId WHERE { ?station wdt:P1103 ?trackCount . ?station wdt:P131+ wd:Q8646 . OPTIONAL { ?station rdfs:label ?label . FILTER(LANG(?label) = "en") } OPTIONAL { ?station schema:description ?description . FILTER(LANG(?description) = "en") } OPTIONAL { ?station wdt:P17 ?country . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } OPTIONAL { ?station wdt:P1377 ?mtrCode . } OPTIONAL { ?station wdt:P1566 ?geonamesId . } } ORDER BY ASC(?label)

What are the MTR stations and stops in Hong Kong, how many platform tracks do they have, and what are their English names, descriptions, MTR codes, and GeoNames IDs?

Please provide a sorted list of all railway stations and stops in Hong Kong, including their platform track counts, English labels, descriptions, country (China), MTR station codes, and GeoNames identifiers.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1103> ?var2 . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var3Label . FILTER ( ( ( LANG ( ?var3Label ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://schema.org/description> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1377> ?var7 . } ?var1 <http://www.wikidata.org/prop/direct/P131> + <http://www.wikidata.org/entity/Q8646> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var8 . } } ORDER BY ASC( ?var3Label )


Question: People, works, or events with birthdays, deaths, or premieres today

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?year WHERE {
  ?item wdt:P569 | wdt:P570 | wdt:P571 | wdt:P577 | wdt:P585 ?date .
  FILTER ( datatype( ?date ) = xsd:date || datatype( ?date ) = xsd:dateTime ) BIND( YEAR( ?date ) AS ?year ) BIND( MONTH( NOW () ) AS ?currentMonth ) BIND( DAY( NOW () ) AS ?currentDay ) FILTER ( MONTH( ?date ) = ?currentMonth && DAY( ?date ) = ?currentDay ) OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
}
LIMIT 50

Which people, inventions, or publications have an anniversary today?

Show me entities (like people or works) that have a significant date (birth, death, release, etc.) occurring on today’s month and day, along with the year it happened.

SELECT ?var1 ?var2 WHERE { BIND ( YEAR ( ?var3 ) AS ?var2 ). ?var1 ( <http://www.wikidata.org/prop/direct/P569> | <http://www.wikidata.org/prop/direct/P570> | <http://www.wikidata.org/prop/direct/P571> | <http://www.wikidata.org/prop/direct/P575> | <http://www.wikidata.org/prop/direct/P576> | <http://www.wikidata.org/prop/direct/P577> | <http://www.wikidata.org/prop/direct/P580> | <http://www.wikidata.org/prop/direct/P582> | <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P730> | <http://www.wikidata.org/prop/direct/P746> | <http://www.wikidata.org/prop/direct/P1191> | <http://www.wikidata.org/prop/direct/P1249> ) ?var3 . FILTER ( ( ( MONTH ( ?var3 ) = MONTH ( NOW ( ) ) ) && ( DAY ( ?var3 ) = DAY ( NOW ( ) ) ) ) ) . }


Question: Who was born, died, or had a premiere on today’s date?

SELECT ?item ?itemLabel ?year WHERE { ?item (wdt:P569 | wdt:P570 | wdt:P571 | wdt:P575 | wdt:P576 | wdt:P577 | wdt:P580 | wdt:P582 | wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P730 | wdt:P746 | wdt:P1191 | wdt:P1249) ?date . FILTER(isLiteral(?date)) FILTER(xsd:dateTime(?date)) BIND(YEAR(?date) AS ?year) FILTER(MONTH(?date) = MONTH(NOW()) && DAY(?date) = DAY(NOW())) ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } ORDER BY DESC(?year) LIMIT 100

Which people, events, or works are associated with an event on this day of the year?

List notable entities with a significant date (like birth or publication) falling on today’s month and day, sorted by year descending.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ?var3 WHERE { BIND ( YEAR ( ?var4 ) AS ?var3 ). ?var1 ( <http://www.wikidata.org/prop/direct/P569> | <http://www.wikidata.org/prop/direct/P570> | <http://www.wikidata.org/prop/direct/P571> | <http://www.wikidata.org/prop/direct/P575> | <http://www.wikidata.org/prop/direct/P576> | <http://www.wikidata.org/prop/direct/P577> | <http://www.wikidata.org/prop/direct/P580> | <http://www.wikidata.org/prop/direct/P582> | <http://www.wikidata.org/prop/direct/P585> | <http://www.wikidata.org/prop/direct/P606> | <http://www.wikidata.org/prop/direct/P619> | <http://www.wikidata.org/prop/direct/P620> | <http://www.wikidata.org/prop/direct/P621> | <http://www.wikidata.org/prop/direct/P622> | <http://www.wikidata.org/prop/direct/P729> | <http://www.wikidata.org/prop/direct/P730> | <http://www.wikidata.org/prop/direct/P746> | <http://www.wikidata.org/prop/direct/P1191> | <http://www.wikidata.org/prop/direct/P1249> ) ?var4 . FILTER ( ( ( MONTH ( ?var4 ) = MONTH ( NOW ( ) ) ) && ( DAY ( ?var4 ) = DAY ( NOW ( ) ) ) ) ) . } } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru, en". } } ORDER BY DESC( ?var3 )


Question: Battles with English names, their coordinates, and the year they occurred.

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 ?battleLabel ?coordinates ?year ?battle WHERE {
  ?battle wdt:P31 wd:Q178561 .
  ?battle wdt:P625 ?coordinates .
  OPTIONAL {
    ?battle wdt:P580 ?startDate .
  }
  OPTIONAL {
    ?battle wdt:P585 ?pointInTime .
  }
  OPTIONAL {
    ?battle wdt:P582 ?endDate .
  }
  BIND( COALESCE ( ?startDate , ?pointInTime , ?endDate ) AS ?date ) BIND( YEAR( ?date ) AS ?year ) OPTIONAL {
    ?battle rdfs:label ?battleLabel .
    FILTER ( LANG( ?battleLabel ) = "en" )
  }
  FILTER ( BOUND( ?year ) && BOUND( ?battleLabel ) )
}

What are the English names, geographic coordinates, and years of historical battles?

Show me a list of battles in English, including where they happened and when, based on their start, end, or point-in-time dates.

SELECT( SAMPLE ( COALESCE ( ?var1Label , ?var2Label ) ) AS ?var3Label ) ?var4 ?var5 ?var6 ( LANG ( ?var3Label ) AS ?var7 ) WHERE { ?var6 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q178561> . ?var6 <http://www.wikidata.org/prop/direct/P625> ?var4 . OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P580> ?var8 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P585> ?var9 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/direct/P582> ?var10 . } BIND ( IF ( !( BOUND ( ?var8 ) ), IF ( !( BOUND ( ?var9 ) ), ?var10 , ?var9 ) , ?var8 ) AS ?var11 ). BIND ( YEAR ( ?var11 ) AS ?var5 ). OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . } OPTIONAL { ?var6 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } FILTER ( ( BOUND ( ?var5 ) ) ) . FILTER ( ( ( ?var3Label = "en" ) ) ) . } GROUP BY ?var4 ?var5 ?var6


Question: Items in Bangladesh with coordinates between 87–91°E and 22–26°N, along with their images and Wikimedia Commons categories.

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?location ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?location .
  BIND( xsd:double ( replace( str( ?location ) , "^POINT\\(([-+]?[0-9]*\\.?[0-9]+)\\s+([-+]?[0-9]*\\.?[0-9]+)\\).*" , "$1" ) ) AS ?lon ) BIND( xsd:double ( replace( str( ?location ) , "^POINT\\(([-+]?[0-9]*\\.?[0-9]+)\\s+([-+]?[0-9]*\\.?[0-9]+)\\).*" , "$2" ) ) AS ?lat ) FILTER ( ?lon >= 87 && ?lon <= 91 && ?lat >= 22 && ?lat <= 26 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What are the places in Bangladesh (between longitudes 87°E and 91°E and latitudes 22°N and 26°N) that have images and associated Wikimedia Commons categories?

Show me items located in Bangladesh with their English names, geographic coordinates, images, and Commons categories, restricted to the region between 87–91°E and 22–26°N.

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


Question: What are the breeds of domestic cats, and do they have images available on Wikimedia Commons?

SELECT ?breed ?breedLabel ?image WHERE { ?breed wdt:P279 wd:Q146 . OPTIONAL { ?breed wdt:P18 ?image . } ?breed rdfs:label ?breedLabel . FILTER(LANG(?breedLabel) = "en") }

Can you list the English names of cat breeds that are classified as subspecies of the house cat, along with their images?

Show me the names and pictures of cat breeds derived from the domestic cat.

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


Question: Nobel Peace Prize winners and their flag images

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 ?recipient ?recipientLabel ?flagImage WHERE {
  ?recipient wdt:P166 wd:Q35637 .
  OPTIONAL {
    ?recipient wdt:P41 ?flagImage .
  }
  ?recipient rdfs:label ?recipientLabel .
  FILTER ( LANG( ?recipientLabel ) = "en" )
}

Who have won the Nobel Peace Prize, and what are their English names and flag images?

List the recipients of the Nobel Peace Prize with their English labels and any associated flag images.

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


Question: Items discovered or invented and their dates

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

When were notable items such as Archaeopteryx and Buddy memory allocation discovered or invented?

List items that have a known date of discovery or invention, along with their names and when they were discovered.

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


Question: Rivers in Uzbekistan with Uzbek Wikipedia articles but no Russian ones.

SELECT ?river ?riverLabel ?uzWikiPage WHERE { ?river wdt:P31 wd:Q4022 ; wdt:P17 wd:Q265 . ?uzWikiPage schema:about ?river ; schema:inLanguage "uz" . FILTER NOT EXISTS { ?ruWikiPage schema:about ?river ; schema:inLanguage "ru" . } OPTIONAL { ?river rdfs:label ?riverLabel . FILTER(LANG(?riverLabel) = "en") } }

Which rivers in Uzbekistan have Wikipedia pages in Uzbek but not in Russian?

List all rivers located in Uzbekistan that have a Wikipedia page in Uzbek and do not have one in Russian, along with their English labels if available.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . FILTER ( ( ( ?var2 = <http://www.wikidata.org/entity/Q4022> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var4 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q265> ) ) ) . FILTER ( ( EXISTS { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "uz". } ) ) . FILTER ( ( NOT EXISTS { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "ru". } ) ) . ?var3 <http://schema.org/about> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "uz". } }


Question: Human settlements in Germany without geographic coordinates

SELECT ?settlement ?settlementLabel WHERE { ?settlement wdt:P31 wd:Q486972 . ?settlement wdt:P17 wd:Q183 . OPTIONAL { ?settlement wdt:P625 ?coord . } FILTER ( !BOUND(?coord) ) ?settlement rdfs:label ?settlementLabel . FILTER (LANG(?settlementLabel) = "en") }

Which human settlements in Germany do not have recorded geographic coordinates?

List the names of human settlements in Germany that are missing location coordinates.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q183> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: What are the birth dates, places of birth, number of instruments played, and total awards or notable works for composers?

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 ?composer ?composerLabel ( YEAR( ?birthDate ) AS ?year ) ( MONTH( ?birthDate ) AS ?month ) ( DAY( ?birthDate ) AS ?day ) ?placeOfBirthLabel ( COUNT( DISTINCT ?instrument ) AS ?instrumentCount ) ( COUNT( DISTINCT ?award ) + COUNT( DISTINCT ?work ) AS ?awardAndWorkCount ) WHERE {
  ?composer wdt:P106 wd:Q36834 .
  OPTIONAL {
    ?composer rdfs:label ?composerLabel .
    FILTER ( LANG( ?composerLabel ) = "en" )
  }
  OPTIONAL {
    ?composer wdt:P19 ?placeOfBirth .
    ?placeOfBirth rdfs:label ?placeOfBirthLabel .
    FILTER ( LANG( ?placeOfBirthLabel ) = "en" )
  }
  ?composer wdt:P569 ?birthDate .
  ?composer wdt:P1303 ?instrument .
  OPTIONAL {
    {
      ?composer wdt:P166 ?award .
    } UNION {
      ?composer wdt:P800 ?work .
    }
  }
}
GROUP BY ?composer ?composerLabel ?birthDate ?placeOfBirthLabel
LIMIT 10

Can you show me a list of composers, including when and where they were born, how many instruments they played, and how many awards or significant works they have?

Show me up to 10 composers with their birth year, birthplace, number of instruments they play, and the sum of awards received and notable works created.

SELECT ?var1 ?var1Label ( YEAR ( ?var2 ) AS ?var3 )( MONTH ( ?var2 ) AS ?var4 )( DAY ( ?var2 ) AS ?var5 ) ?var6Label ( ( COUNT ( ?var7 )+COUNT ( ?var8 ) ) AS ?var7 )( COUNT ( ?var9 ) AS ?var9 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q36834> . { ?var1 <http://www.wikidata.org/prop/direct/P800> ?var8 . } UNION { ?var1 <http://www.wikidata.org/prop/direct/P166> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P19> ?var6 . } ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1303> ?var9 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ?var2 ?var6Label LIMIT 10


Question: What are the districts in Gronau, Germany, and what are their GND IDs?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { ?var1 wdt:P131* wd:Q6924 . ?var1 wdt:P31 wd:Q253019 . ?var1 wdt:P227 ?var2 . ?var1 rdfs:label ?var1Label . FILTER(LANG(?var1Label) = "en") }

List the English names and GND identifiers of all localities that are part of Gronau.

Which administrative subdivisions of Gronau have a German National Library ID?

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q6924> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q253019> . ?var1 <http://www.wikidata.org/prop/direct/P227> * ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Show me three living politicians along with their image, given name, family name, gender, country, date of birth, political party, and official website.

SELECT DISTINCT ?politician ?image ?givenName ?familyName ?gender ?country ?birthDate ?party ?website WHERE { ?politician wdt:P31 wd:Q5 ; wdt:P106 wd:Q82955 ; wdt:P18 ?image ; wdt:P735 ?givenName ; wdt:P734 ?familyName ; wdt:P21 ?gender ; wdt:P27 ?country ; wdt:P569 ?birthDate ; wdt:P102 ?party ; wdt:P856 ?website . FILTER NOT EXISTS { ?politician wdt:P570 ?deathDate . } } LIMIT 3

What are the details of three current politicians including their names, gender, country, birth date, party, and website?

List three living human politicians and provide their public information such as photo, full name, gender, nationality, birth date, party affiliation, and official website.

SELECT DISTINCT ?var1 ?var2 ?var3Label ?var4Label ?var5Label ?var6Label ?var7Label ?var8Label ?var9 ?var10 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P18> ?var2 ; <http://www.wikidata.org/prop/direct/P735> ?var3 ; <http://www.wikidata.org/prop/direct/P734> ?var4 ; <http://www.wikidata.org/prop/direct/P21> ?var5 ; <http://www.wikidata.org/prop/direct/P27> ?var6 ; <http://www.wikidata.org/prop/direct/P569> ?var7 ; <http://www.wikidata.org/prop/direct/P102> ?var8 ; <http://www.wikidata.org/prop/direct/P856> ?var9 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var11Label . FILTER ( ( CONTAINS ( ?var11Label , "Jea" ) ) ) . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P570> ?var12 . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 3


Question: People whose occupation is federal judge.

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

Who are the federal judges listed in Wikidata?

List all individuals who hold the position of federal judge.

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


Question: What are the immediate parent categories of artificial neural networks, and what are their own parent categories?

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

List the classes that artificial neural networks belong to, along with the classes those belong to, in English.

What are the superclasses of artificial neural networks up to two levels above in the taxonomy?

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/Q192776> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "100"^^<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: List all Wikidata identifier properties that do not have an associated item.

SELECT ?prop ?propLabel WHERE { ?prop (wdt:P31/wdt:P279*) wd:Q19847637 . FILTER NOT EXISTS { ?prop wdt:P1629 ?item } . ?prop rdfs:label ?propLabel . FILTER(LANG(?propLabel) = "en") } ORDER BY ASC(?propLabel)

Which Wikidata properties are used to identify external entities but are not linked to any specific item?

Show me the English labels of all Wikidata properties that represent unique identifiers and have no associated item.

SELECT ?var1 ?var1Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q19847637> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1629> ?var2 . } FILTER ( ( !( BOUND ( ?var2 ) ) ) ) . ?var3 <http://schema.org/about> ?var4 ; <http://schema.org/isPartOf> <https://sv.wikipedia.org/> . ?var4 ?var1 ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en,de,fr". } } ORDER BY ASC( ?var1Label )


Question: What are the capitals and types of administrative entities such as provinces, districts, and colonies?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entityLabel ?capitalLabel ?typeLabel WHERE {
  ?entity wdt:P36 ?capital .
  ?entity wdt:P31 ?type .
  ?entity rdfs:label ?entityLabel .
  ?capital rdfs:label ?capitalLabel .
  ?type rdfs:label ?typeLabel .
  FILTER ( LANG( ?entityLabel ) = "en" ) FILTER ( LANG( ?capitalLabel ) = "en" ) FILTER ( LANG( ?typeLabel ) = "en" )
}
LIMIT 100

Can you list administrative entities along with their capital cities and what type of entity they are (e.g., county, district, colony)?

Show me the names of places, their capital cities, and their classifications (like whether they are districts or colonies).

SELECT ?var1Label ?var2Label ?var3Label ?var4Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P36> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P31> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 100


Question: What are all the broader categories that the SpaceX Dragon spacecraft belongs to, including indirect subclasses?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?ancestor WHERE {
  wd:Q236448 wdt:P279 * ?ancestor .
}
LIMIT 100

List all the superclass categories of the Dragon spacecraft in Wikidata.

What is the full hierarchy of classes that the Dragon spacecraft is a part of, from specific to general?

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


Question: What are the districts of Greven, Germany?

SELECT DISTINCT ?district ?districtLabel WHERE { ?district wdt:P131* wd:Q14917 . ?district wdt:P31 wd:Q253019 . ?district rdfs:label ?districtLabel . FILTER(LANG(?districtLabel) IN ("de", "en")) }

Can you list the named subdivisions (Ortsteile) in Greven along with their labels in German or English?

Show me the German and English names of all localities that are part of the town of Greven.

SELECT DISTINCT ?var1 ?var1Label ?var2 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". ?var1 <http://www.wikidata.org/prop/direct/P131> * <http://www.wikidata.org/entity/Q14917> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q253019> . ?var1 <http://www.wikidata.org/prop/direct/P227> * ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Genes in the same operon as Entrez ID 898919, including locus tags, genomic coordinates, and source PubMed ID.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?gene ?geneLabel ?locusTag ?entrezId ?genomicStart ?genomicEnd ?strand ?memberGene ?memberGeneLabel ?pubmedId WHERE {
  ?gene wdt:P351 "898919" ; p:P361 ?partOfStatement .
  ?partOfStatement ps:P361 ?operon .
  ?operon wdt:P279 wd:Q139677 ; wdt:P527 ?memberGene .
  ?memberGene wdt:P2393 ?locusTag ; wdt:P351 ?entrezId ; wdt:P644 ?genomicStart ; wdt:P645 ?genomicEnd ; wdt:P2548 ?strand .
  ?gene rdfs:label ?geneLabel .
  ?memberGene rdfs:label ?memberGeneLabel .
  FILTER(LANG(?geneLabel) = "en" && LANG(?memberGeneLabel) = "en")
  OPTIONAL {
    ?partOfStatement prov:wasDerivedFrom ?ref .
    ?ref pr:P248 ?source .
    ?source wdt:P698 ?pubmedId .
  }
}

What are the genes in the operon containing the gene with Entrez ID 898919, and what are their genomic start/end positions, strand orientations, and the PubMed reference for this annotation?

List all genes that are part of the operon containing the gene with NCBI Entrez ID 898919, along with their NCBI locus tags, genomic coordinates, strand direction, and the PubMed ID of the source that supports this operon assignment.

SELECT ?var1 ?var2 ?var3 ?var4 ?var4Label ?var5 ?var5Label ?var6 ?var7 ?var8 ?var8Label ?var9 ?var10 ?var10Label ?var9Label ?var11 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P351> "884165"; <http://www.wikidata.org/prop/P361> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P361> ?var5 . ?var5 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q139677> ; <http://www.wikidata.org/prop/direct/P527> ?var9 . ?var9 <http://www.wikidata.org/prop/direct/P2393> ?var2 ; <http://www.wikidata.org/prop/direct/P351> ?var3 ; <http://www.wikidata.org/prop/direct/P644> ?var6 ; <http://www.wikidata.org/prop/direct/P645> ?var7 ; <http://www.wikidata.org/prop/direct/P2548> ?var8 . OPTIONAL { ?var4 ( <http://www.w3.org/ns/prov#wasDerivedFrom> / <http://www.wikidata.org/prop/reference/P248> ) ?var10 . ?var10 <http://www.wikidata.org/prop/direct/P698> ?var11 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the English labels of managerial positions held by humans with a start date?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?position ?positionLabel WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human p:P39 ?statement .
  ?statement ps:P39 ?position .
  ?position rdfs:label ?positionLabel .
  FILTER(CONTAINS(LCASE(?positionLabel) , "manager"))
  .
  FILTER(LANG(?positionLabel) = "en")
  .
  ?statement pq:P580 ?startDate .
}

Which managerial roles have humans held, and what are their English names, given that the start date is known?

List all English-labeled managerial positions (e.g., office manager, general manager) that humans have held, along with their start dates.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var2 <http://www.wikidata.org/prop/P39> ?var3 . ?var3 <http://www.wikidata.org/prop/qualifier/P580> ?var4 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P582> ?var5 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P1365> ?var6 . } OPTIONAL { ?var3 <http://www.wikidata.org/prop/qualifier/P1366> ?var7 . } ?var3 <http://www.wikidata.org/prop/statement/P39> ?var1 . ?var1 ( <http://www.wikidata.org/prop/direct/P31> *| <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2462658> . FILTER ( ( LANGMATCHES ( LANG ( ?var1Label ) , "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What are the symptoms of diseases listed in Wikidata?

SELECT ?diseaseLabel ?symptomLabel WHERE { ?disease wdt:P31 wd:Q12136 . ?disease wdt:P780 ?symptom . ?disease rdfs:label ?diseaseLabelRaw . ?symptom rdfs:label ?symptomLabelRaw . FILTER(LANG(?diseaseLabelRaw) = "en") FILTER(LANG(?symptomLabelRaw) = "en") BIND(STR(?diseaseLabelRaw) AS ?diseaseLabel) BIND(STR(?symptomLabelRaw) AS ?symptomLabel) } LIMIT 10

Can you list diseases and their associated symptoms in English?

Which medical conditions have documented symptoms, and what are those symptoms?

SELECT ?var1Label ?var2Label WHERE { { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12136> . ?var2 <http://www.wikidata.org/prop/direct/P780> ?var3 . ?var2 <http://www.wikidata.org/prop/direct/P828> ?var4 . ?var2 <http://www.wikidata.org/prop/direct/P1060> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What pairs of people in Wikidata are incorrectly listed as each other’s father and child?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?father ( SAMPLE( ?fLabel ) AS ?fatherLabel ) ?child ( SAMPLE( ?cLabel ) AS ?childLabel ) WHERE {
  ?father wdt:P22 ?child .
  ?child wdt:P40 ?father .
  ?father rdfs:label ?fLabel .
  ?child rdfs:label ?cLabel .
  FILTER ( ?father != ?child )
}
GROUP BY ?father ?child
LIMIT 10

Show examples of circular father-child relationships in Wikidata that suggest data duplication.

Find instances where a person is listed as both the father and child of another person — what are these cases?

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


Question: People with the given name Peter who studied at UC Berkeley, are alive, and have a Wikipedia article with an image.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?image WHERE {
  ?wikipediaPage schema:about ?person ; schema:isPartOf ?site .
  FILTER ( STRSTARTS( STR( ?site ) , "https://en.wikipedia.org/" ) ) .
  ?person wdt:P69 wd:Q168756 ; wdt:P735 wd:Q2793400 ; wdt:P18 ?image .
  FILTER ( NOT EXISTS {
    ?person wdt:P570 []
  }
  ) .
  ?person rdfs:label ?personLabel .
  FILTER ( lang( ?personLabel ) = "en" )
}

Who are the living people named Peter that attended UC Berkeley and have a photo on their English Wikipedia page?

List the names and images of living individuals named Peter who were educated at UC Berkeley and have an English Wikipedia article.

SELECT ?var1 ?var1Label ?var2Label ?var3 ?var4 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q168756> . ?var4 <http://www.wikidata.org/prop/direct/P735> <http://www.wikidata.org/entity/Q2793400> . ?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: What artworks were created by David Hockney, and do they have images available?

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 ?artwork ?artworkLabel ?image WHERE {
  ?artwork wdt:P170 wd:Q159907 .
  OPTIONAL {
    ?artwork wdt:P18 ?image .
  }
  ?artwork rdfs:label ?artworkLabel .
  FILTER ( LANG( ?artworkLabel ) = "en" )
}

Show me the English titles of David Hockney’s artworks and their associated images from Wikimedia Commons.

List David Hockney’s artworks in English and include any images uploaded to Commons.

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


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

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

Can you show me the Wikimedia Commons image associated with Don Bradman’s SNAC identifier?

Retrieve the image linked to the Social Networks and Archival Context (SNAC) ARK ID "w6nk6hdf".

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


Question: Administrative hierarchy of Śródmieście, Warsaw

SELECT ?administrativeEntity ?administrativeEntityLabel WHERE { wd:Q7095 wdt:P131* ?administrativeEntity . ?administrativeEntity rdfs:label ?administrativeEntityLabel . FILTER(LANG(?administrativeEntityLabel) = "en")}

What administrative regions include Śródmieście, from the district up to the country?

List all administrative areas that Śródmieście is part of, including itself.

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


Question: Albert Einstein's National Portrait Gallery ID and English description

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

Who is the person with National Portrait Gallery ID mp73025, and what is their English description?

Show me the English name and description of the person identified by mp73025 in the National Portrait Gallery, London.

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


Question: Years and truncated titles of publications by Amy Guy.

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 ?year ?titleSnippet WHERE {
  ?work wdt:P50 wd:Q30086138 ; wdt:P577 ?pubDate ; rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) BIND( YEAR( ?pubDate ) AS ?year ) BIND( SUBSTR( ?label , 1 , 20 ) AS ?titleSnippet )
}
ORDER BY ?year

What are the publication years and shortened titles of Amy Guy’s English-language works?

Show me the years and first 20 characters of the titles of all English publications by Amy Guy, sorted by year.

SELECT ?var1 ?var2 ?var3Label WHERE { { SELECT ?var1 ( SAMPLE ( ?var4 ) AS ?var2 ) ?var3Label WHERE { { SELECT( STR ( ?var5 ) AS ?var1 )( "0"^^<http://www.w3.org/2001/XMLSchema#integer> AS ?var4 )( "_" AS ?var3Label ) WHERE { BIND ( YEAR ( ?var6 ) AS ?var5 ). ?var7 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q577> . ?var7 <http://www.wikidata.org/prop/direct/P585> ?var6 . { SELECT( MIN ( ?var5 ) AS ?var8 )( MAX ( ?var5 ) AS ?var9 ) WHERE { BIND ( YEAR ( ?var10 ) AS ?var5 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q30086138> . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var10 . } } FILTER ( ( ( ?var5 >= ?var8 ) && ( ?var5 <= ?var9 ) ) ) . } } UNION { BIND ( SUBSTR ( ?var12Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"20"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var11 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q30086138> . ?var11 <http://www.wikidata.org/prop/direct/P1104> ?var4 . ?var11 <http://www.wikidata.org/prop/direct/P577> ?var6 . ?var11 <http://www.w3.org/2000/01/rdf-schema#label> ?var12Label . FILTER ( ( ( LANG ( ?var12Label ) = "en" ) ) ) . } } GROUP BY ?var1 ?var11 ?var3Label ORDER BY ASC( ?var1 ) } }


Question: How many academic papers have cited the study "Does female schooling reduce fertility? Evidence from Nigeria" each year?

SELECT ?publicationYear (COUNT(DISTINCT ?citingWork) AS ?citationCount) WHERE { BIND(wd:Q32984939 AS ?targetArticle) . ?citingWork wdt:P2860 ?targetArticle . ?citingWork wdt:P577 ?publicationDate . BIND(YEAR(?publicationDate) AS ?publicationYear) } GROUP BY ?publicationYear ORDER BY DESC(?publicationYear)

Can you show me the number of works citing the 2011 Nigerian study on female schooling and fertility, grouped by publication year?

Which years saw the most citations of the article on female schooling and fertility in Nigeria, and how many citations were there in each year?

SELECT ?var1 ( COUNT ( DISTINCT ?var2 ) AS ?var3 ) ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q32984939> AS ?var5 ). BIND ( STR ( YEAR ( ?var6 ) ) AS ?var1 ). ?var2 <http://www.wikidata.org/prop/direct/P2860> ?var5 . ?var2 <http://www.wikidata.org/prop/direct/P577> ?var6 . } GROUP BY ?var1 ?var4 ORDER BY DESC( ?var1 )


Question: Authors of works about insomnia who co-authored with other authors.

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 ?author1 ?author1Label ?author2 ?author2Label WHERE {
  {
    ?work wdt:P921 / wdt:P31 * / wdt:P279 * wd:Q1869874 .
  } UNION {
    ?work wdt:P921 / wdt:P361 + wd:Q1869874 .
  } UNION {
    ?work wdt:P921 / wdt:P1269 + wd:Q1869874 .
  }
  ?work wdt:P50 ?author1 .
  ?work wdt:P50 ?author2 .
  FILTER(?author1 != ?author2)
  ?author1 rdfs:label ?author1Label .
  ?author2 rdfs:label ?author2Label .
  FILTER(LANG(?author1Label) = "en" && LANG(?author2Label) = "en")
}

Who are all the pairs of distinct co-authors of works that are about insomnia?

List all ordered pairs of different authors who wrote works on insomnia, along with their names.

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


Question: List all universities and university-type institutions in Australia with their types.

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 ?institution ?type ?typeLabel ?institutionLabel WHERE {
  ?institution wdt:P31 ?type .
  ?type wdt:P279 * wd:Q3918 .
  ?institution wdt:P17 wd:Q408 .
  ?type rdfs:label ?typeLabel .
  ?institution rdfs:label ?institutionLabel .
  FILTER ( LANG( ?typeLabel ) = "en" ) FILTER ( LANG( ?institutionLabel ) = "en" )
}
ORDER BY ?institutionLabel

What are the educational institutions in Australia that are classified as types of universities, and what are their specific types?

Show me the names of Australian institutions that are instances of any subclass of university, along with the label of their type.

SELECT ?var1 ?var2 ?var2Label ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q3918> . 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/P17> <http://www.wikidata.org/entity/Q408> . }