Question: What are all the German-language given names in Wikidata?

SELECT ?givenName ?label WHERE { ?givenName wdt:P31 wd:Q202444 . ?givenName rdfs:label ?label . FILTER (LANG(?label) = "de") } ORDER BY ASC(?label)

Can you list all first names in German, sorted alphabetically?

Show me the German labels for entities classified as given names, ordered by name.

SELECT ?var1 ?var2 ( COUNT (* ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q202444> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "de" ) ) ) . } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var3 )ASC( ?var2 )


Question: Railway stations in Switzerland reachable from Olten station with German labels and their adjacent stations.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?station ?stationLabel ?adjacentStation WHERE {
  wd:Q29370 wdt:P197 + ?station .
  ?station wdt:P31 / wdt:P279 * wd:Q55488 .
  ?station wdt:P17 wd:Q39 .
  ?station rdfs:label ?stationLabel .
  FILTER ( LANG( ?stationLabel ) = "de" ) OPTIONAL {
    ?station wdt:P197 ?adjacentStation .
  }
}

Which railway stations in Switzerland can be reached from Olten railway station via adjacent connections, and what are their German names and neighboring stations?

List all railway stations and stops in Switzerland that are connected to Olten station through adjacent stations, showing their German labels and the stations next to them.

SELECT ?var1 ?var1Label ?var2 WHERE { VALUES ( ?var3 ) { ( <http://www.wikidata.org/entity/Q55488> ) ( <http://www.wikidata.org/entity/Q55678> ) } ?var1 <http://www.wikidata.org/prop/direct/P31> ?var3 ; <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q39> . { 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/Q29370> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var4 ; <http://www.bigdata.com/rdf/gas#maxIterations> "100"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P197> . } } BIND ( SUBSTR ( ?var5Label ,"8"^^<http://www.w3.org/2001/XMLSchema#integer> , STRLEN ( ?var5Label ) ) AS ?var1Label ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "de" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P197> ?var2 . } }


Question: What entities in Wikidata have the identifier 9965191?

SELECT * WHERE {
  ?item ?property "9965191" .
}

Which items or statements in Wikidata are linked to the ID 9965191?

Show me all Wikidata entries that use 9965191 as an identifier, including PubMed, PubChem, and GBIF links.

SELECT * WHERE { ?var1 ?var2 "9965191". }


Question: Scientific names of all mosquito species in the family Culicidae.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?taxon ?scientificName ?rangeMap WHERE {
  ?taxon wdt:P31 wd:Q16521 .
  ?taxon wdt:P105 wd:Q7432 .
  ?taxon wdt:P171 * wd:Q7367 .
  ?taxon wdt:P225 ?scientificName .
  OPTIONAL {
    ?taxon wdt:P181 ?rangeMap .
  }
}

What are the scientific names of mosquito species, and do they have distribution maps?

List all species within the mosquito family (Culicidae) with their Latin names and, if available, their geographic range maps.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q16521> . ?var1 <http://www.wikidata.org/prop/direct/P105> <http://www.wikidata.org/entity/Q7432> . ?var1 <http://www.wikidata.org/prop/direct/P171> * <http://www.wikidata.org/entity/Q7367> . ?var1 <http://www.wikidata.org/prop/direct/P225> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P181> ?var3 . } }


Question: Scientific names of all species in Wikidata.

SELECT ?taxon ?scientificName WHERE { ?taxon wdt:P31 wd:Q16521 . ?taxon wdt:P105 wd:Q7432 . ?taxon wdt:P225 ?scientificName . }

What are the scientific names of all species classified in Wikidata?

List the taxon entities and their corresponding scientific names for all species.

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


Question: What are the television series with the fewest Wikipedia language versions, along with their English titles?

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 ?item ?label ( COUNT( ?page ) AS ?sitelinkCount ) WHERE {
  ?item wdt:P31 wd:Q5398426 .
  ?item rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" ) .
  ?page schema:about ?item .
  ?page schema:isPartOf ?wikipedia .
  FILTER ( STRSTARTS( STR( ?wikipedia ) , "https://" ) )
}
GROUP BY ?item ?label
ORDER BY ASC ( ?sitelinkCount )
LIMIT 100

List the 100 TV shows with the least number of Wikipedia language editions, showing their English names and how many languages they appear in.

Which TV series have the smallest number of Wikipedia pages in different languages, and what are their English titles?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5398426> . ?var1 <http://wikiba.se/ontology#sitelinks> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 ) LIMIT 100


Question: What foods originate from Mexico and what properties link them to Mexico?

SELECT ?foodItem ?relation WHERE { ?foodItem (wdt:P31/wdt:P279*) wd:Q2095 . ?foodItem ?relation wd:Q96 . } LIMIT 1000

Which food items are associated with Mexico, and through which properties are they connected?

List all Mexican dishes and the relationships that connect them to Mexico, including any data anomalies.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2095> . ?var1 ?var2 <http://www.wikidata.org/entity/Q96> . } LIMIT 1000


Question: Items destroyed by World War II and their destruction dates

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?item ?statement ( SAMPLE( ?itemLabelTemp ) AS ?itemLabel ) ( SAMPLE( ?qualifierProperty ) AS ?qualifierPropertySample ) ( SAMPLE( ?qualifierPropertyLabel ) AS ?qualifierPropertyLabelSample ) WHERE {
  {
    SELECT DISTINCT ?item ?statement WHERE {
      ?statement ps:P770 wd:Q362 .
      ?item p:P770 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifierProperty ?value .
    ?qualifierProperty wikibase:qualifier p:P770 .
    ?qualifierProperty rdfs:label ?qualifierPropertyLabel .
    FILTER ( LANG( ?qualifierPropertyLabel ) = "en" )
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabelTemp .
    FILTER ( LANG( ?itemLabelTemp ) = "en" )
  }
}
GROUP BY ?item ?statement

Which items were destroyed during World War II, and when did the destruction occur?

List all items destroyed by World War II along with any recorded dates of destruction.

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


Question: What types of organizations is the Commonwealth Bank of Australia classified as?

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 ?companyLabel ?typeLabel WHERE {
  wd:Q285328 wdt:P31 ?type .
  wd:Q285328 rdfs:label ?companyLabel .
  FILTER(LANG(?companyLabel) = "en")
  .
  ?type rdfs:label ?typeLabel .
  FILTER(LANG(?typeLabel) = "en")
}

Is the Commonwealth Bank of Australia a bank, a company, or something else?

What categories does the Commonwealth Bank of Australia belong to in Wikidata?

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


Question: Indonesian women who died without a recorded cause of death and have Indonesian Wikipedia pages, sorted by most recent death date.

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person ?personLabel ?deathDate ?wikiPage WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P21 wd:Q6581072 .
  ?person wdt:P27 wd:Q252 .
  ?person wdt:P570 ?deathDate . MINUS {
    ?person wdt:P509 ?causeOfDeath .
  }
  ?wikiPage schema:about ?person .
  ?wikiPage schema:inLanguage "id" .
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "" || LANG( ?personLabel ) = "en" )
}
ORDER BY DESC ( ?deathDate ) ASC ( ?personLabel )

Who are the deceased Indonesian women without a known cause of death, listed in order from most recent to oldest death, along with their Indonesian Wikipedia links?

List the names and Indonesian Wikipedia pages of deceased Indonesian women whose cause of death is not documented, ordered by date of death (newest first).

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q252> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P509> ?var4 . } ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "id". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )ASC( ?var1Label )


Question: Administrative divisions of Schleswig-Holstein

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 ?stateLabel ?subdivisionLabel WHERE {
  wd:Q1194 wdt:P150 ?subdivision .
  ?subdivision rdfs:label ?subdivisionLabel .
  wd:Q1194 rdfs:label ?stateLabel .
  FILTER ( LANG( ?subdivisionLabel ) = "en" ) FILTER ( LANG( ?stateLabel ) = "en" )
}

Which districts and cities are part of Schleswig-Holstein?

List the administrative subdivisions of Schleswig-Holstein in English.

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


Question: What entity was replaced by Dresden, and what qualifier was used in that replacement?

SELECT ?replacedEntity ?statement (SAMPLE(?qualifier) AS ?qualifierProperty)
WHERE {
  {
    SELECT DISTINCT ?replacedEntity ?statement WHERE {
      ?statement ps:P1366 wd:Q1731 .
      ?replacedEntity p:P1366 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifier ?value .
  }
}
GROUP BY ?replacedEntity ?statement

Which cities or administrative units were superseded by Dresden, and what details (like start date) are associated with the replacement?

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


Question: Administrative hierarchy of Begampuri Mosque in India

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

What administrative regions does the Begampuri Mosque belong to, from most specific to most general?

List the English names of all administrative areas that the Begampuri Mosque is located in, including its parent regions.

SELECT ?var1 ?var1Label WHERE { <http://www.wikidata.org/entity/Q22806851> ( <http://www.wikidata.org/prop/direct/P276> / <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: Names of Osaka Prefecture University containing "大阪" and their languages.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?label ( LANG( ?label ) AS ?language ) WHERE {
  wd:Q290456 rdfs:label ?label .
  FILTER ( REGEX( ?label , "大阪" ) )
}

In which languages is Osaka Prefecture University named with the characters "大阪"?

Show me the official names of Osaka Prefecture University that include "大阪" and the languages they are written in.

SELECT DISTINCT ?var1 ( LANG ( ?var1 ) AS ?var2 ) WHERE { <http://www.wikidata.org/entity/Q290456> <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( REGEX ( ?var1 , "大阪" ) ) ) . } LIMIT 100


Question: Who is the person with IMDb ID nm0034552?

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

What Wikidata entity corresponds to the IMDb identifier nm0034552?

Find the Wikidata item for the actor with IMDb ID nm0034552.

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


Question: Who has the IMDb ID nm0450848?

SELECT ?person WHERE { ?person wdt:P345 "nm0450848" .}

Which person is associated with the IMDb identifier nm0450848?

Tell me the Wikidata item for the actor with IMDb ID nm0450848.

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


Question: List all mountains in Wikidata.

SELECT ?mountain WHERE { ?mountain wdt:P31 wd:Q8502 . } LIMIT 100

What are some examples of mountains according to Wikidata?

Can you show me up to 100 entities that are classified as mountains in Wikidata?

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


Question: What are the countries and their continents in Japanese?

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 ?country ?countryLabel ?continent ?continentLabel WHERE {
  ?country wdt:P31 wd:Q6256 .
  ?country wdt:P30 ?continent .
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = "ja" )
  }
  OPTIONAL {
    ?continent rdfs:label ?continentLabel .
    FILTER ( LANG( ?continentLabel ) = "ja" )
  }
}
LIMIT 100

Can you list countries that are instances of "country" along with their continents, showing Japanese labels for both where available?

Show me up to 100 countries with their continents, and if available, provide the Japanese names for both the country and the continent.

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


Question: Japanese-labeled manga and their main topics in Japanese.

SELECT ?manga ?mangaLabel ?topic ?topicLabel WHERE { ?manga wdt:P31 wd:Q8274 . ?manga wdt:P921 ?topic . ?manga rdfs:label ?mangaLabel . FILTER(LANG(?mangaLabel) = "ja") . ?topic rdfs:label ?topicLabel . FILTER(LANG(?topicLabel) = "ja") . } LIMIT 100

What manga in Japanese have main subjects also described in Japanese?

Show me manga titles and their main topics, both labeled in Japanese.

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


Question: Japanese-labeled victims and their killers from Wikidata.

SELECT ?victim ?victimLabel ?killer ?killerLabel WHERE { ?victim wdt:P31 wd:Q5 . ?victim wdt:P157 ?killer . OPTIONAL { ?victim rdfs:label ?victimLabel . FILTER(LANG(?victimLabel) = "ja") } OPTIONAL { ?killer rdfs:label ?killerLabel . FILTER(LANG(?killerLabel) = "ja") } } LIMIT 100

Who are the humans killed by someone, and what are their Japanese names and the Japanese names of their killers?

Show me up to 100 cases where a human was killed by another person or entity, along with their Japanese labels.

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


Question: Top businesses by number of sponsored items on Wikidata

SELECT ?business ?businessLabel (COUNT(?sponsoredItem) AS ?sponsorshipCount) WHERE { ?business wdt:P31 wd:Q4830453 . ?sponsoredItem wdt:P859 ?business . ?business rdfs:label ?businessLabel . FILTER(LANG(?businessLabel) = "en") } GROUP BY ?business ?businessLabel ORDER BY DESC(?sponsorshipCount) LIMIT 100

Which companies sponsor the most items on Wikidata, and how many do they sponsor?

Show me the 100 businesses that sponsor the most Wikidata items, along with their English names and sponsorship counts, sorted from highest to lowest.

SELECT ?var1 ?var2 ( COUNT ( ?var3 ) AS ?var4 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q4830453> . ?var3 <http://www.wikidata.org/prop/direct/P859> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "en" ) ) ) . } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var4 ) LIMIT 100


Question: List 11 biological species or taxa with an Encyclopedia of Life ID and their English names.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?var1 ?label WHERE {
  ?var1 wdt:P830 ?eolId .
  ?var1 rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
LIMIT 11

What are 11 items in Wikidata that have an Encyclopedia of Life ID, and what are their English labels?

Show me up to 11 entities that are linked to the Encyclopedia of Life, along with their English names.

SELECT ?var1 ?var1Label WHERE { { SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P830> _:bnode . } LIMIT 11 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Top 20 association football players with English labels.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?player ?label WHERE {
  ?player wdt:P106 wd:Q937857 .
  ?player rdfs:label ?label .
  FILTER ( LANG( ?label ) = "en" )
}
ORDER BY ASC ( ?label )
LIMIT 20

Who are the 20 association football players with English-language names on Wikidata?

List the names in English of the first 20 association football players in Wikidata, sorted alphabetically.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q937857> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ru,ru". } } ORDER BY ASC( ?var1 ) LIMIT 20


Question: Works with English descriptions and their titles

SELECT ?work ?title ?description WHERE { ?work wdt:P1476 ?title . ?work schema:description ?description . FILTER (LANG(?description) = "en") } LIMIT 100

What are the titles and English descriptions of works in Wikidata?

Show me up to 100 works along with their titles and English descriptions.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P1476> ?var1 . } 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: Example of a triptych or its subtype

SELECT DISTINCT ?work WHERE { ?work (wdt:P31 / wdt:P279*) wd:Q79218 . } LIMIT 1

What is an example of a work that is a triptych or belongs to a subclass of triptych?

Show me one artwork that is a triptych or a kind of triptych.

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


Question: Images of sculptures depicting George Washington

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sculpture ?image WHERE {
  ?sculpture wdt:P31 / wdt:P279 * wd:Q860861 .
  ?sculpture wdt:P180 wd:Q23 .
  ?sculpture wdt:P18 ?image .
}

What are the images of artworks that depict George Washington and are classified as sculptures or their subclasses?

Show me the Wikimedia Commons images of all statues, busts, and other sculptural works that portray George Washington.

SELECT * WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q860861> . ?var1 <http://www.wikidata.org/prop/direct/P180> <http://www.wikidata.org/entity/Q23> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var2 . }


Question: What events, aircraft first flights, spacecraft launches, or service entries occurred in July 1937?

SELECT DISTINCT ?event WHERE { ?event (wdt:P585 | wdt:P606 | wdt:P619 | wdt:P620 | wdt:P621 | wdt:P622 | wdt:P729 | wdt:P1191) ?date . FILTER ( ?date >= "1937-07-01T00:00:00Z"^^xsd:dateTime && ?date <= "1937-07-31T23:59:59Z"^^xsd:dateTime ) }

Which entities had their first performance, service entry, or first flight in July 1937?

List all historical events, vehicles, or operations that took place in July 1937, including premieres, launches, or deployments.

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 >= "1937-07-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "1937-07-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . }


Question: People born in December 1936

SELECT DISTINCT ?person WHERE { ?person wdt:P569 ?birthDate . FILTER ( ?birthDate >= "1936-12-01T00:00:00Z"^^xsd:dateTime && ?birthDate <= "1936-12-31T23:59:59Z"^^xsd:dateTime ) }

List all individuals with a recorded birth date in December 1936.

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


Question: What are the English name, alternative names, image, and type of the entity with Freebase ID /m/06rf7?

SELECT ?item ?itemLabel ?altLabel ?image ?typeLabel WHERE { ?item wdt:P646 "/m/06rf7" . OPTIONAL { ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } OPTIONAL { ?item skos:altLabel ?altLabel . FILTER(LANG(?altLabel) = "en") } OPTIONAL { ?item wdt:P18 ?image } ?item wdt:P31 ?type . OPTIONAL { ?type rdfs:label ?typeLabel . FILTER(LANG(?typeLabel) = "en") } }

Can you tell me the English label, alternative labels, image, and class of Schleswig-Holstein, given its Freebase ID is /m/06rf7?

Show me the English name, any alternative English names, the image, and what kind of entity Schleswig-Holstein is, using its Freebase ID /m/06rf7.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ?var5 ?var6 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P646> "/m/06rf7". ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . OPTIONAL { ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var6 . FILTER ( ( ( LANG ( ?var6 ) = "en" ) ) ) . } ?var1 <http://www.wikidata.org/prop/direct/P646> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var5 . } OPTIONAL { ?var1 <http://www.w3.org/2004/02/skos/core#altLabel> ?var4 . FILTER ( ( ( LANG ( ?var4 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Ships retired or disappeared in March 1938

SELECT DISTINCT ?item WHERE { ?item (wdt:P730 | wdt:P746) ?date . FILTER(?date >= "1938-03-01T00:00:00Z"^^xsd:dateTime && ?date <= "1938-03-31T23:59:59Z"^^xsd:dateTime) }

Which vessel had its service retirement date in March 1938?

List all items that were decommissioned or went missing in March 1938.

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


Question: Top occupations of humans by gender, ordered by count

SELECT ?occupation ?gender (COUNT(*) AS ?count)
WHERE {
  ?human wdt:P31 wd:Q5 ;           # instance of human
         wdt:P106 ?occupation ;
         wdt:P21 ?gender .
  ?occupation rdfs:label ?occupationLabel .
  ?gender rdfs:label ?genderLabel .
  FILTER(LANG(?occupationLabel) = "en")
  FILTER(LANG(?genderLabel) = "en")
}
GROUP BY ?occupation ?gender
ORDER BY DESC(?count) ASC(?occupationLabel)

What are the most common combinations of occupation and gender among humans, and how many people are in each group?

Show me a list of human occupations and genders, ranked by how many people have each combination, with the most frequent first.

SELECT ?var1 ?var2 ( COUNT (* ) AS ?var3 ) WHERE { BIND ( <http://www.wikidata.org/entity/Q5> AS ?var4 ). ?var5 <http://www.wikidata.org/prop/direct/P31> ?var4 . ?var5 <http://www.wikidata.org/prop/direct/Q18748141> ?var1 . } GROUP BY ?var1 ?var2 ORDER BY DESC( ?var3 )ASC( ?var2 )


Question: What is the English label and description of the Broadway play with IBDB ID 7116?

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

What is the title and a brief description in English of the play identified by the Internet Broadway Database ID 7116?

Please provide the English name and description of the play that has the IBDB show ID 7116.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1219> "7116". 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: Who were born on March 15, 1989?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P569 ?birthDate .
  FILTER(?birthDate >= "1989-03-15T00:00:00Z" ^^ xsd:dateTime && ?birthDate <= "1989-03-15T23:59:59Z" ^^ xsd:dateTime)
}

Find all humans in Wikidata whose date of birth is exactly March 15, 1989.

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


Question: What is the Wikidata entity for the Milky Way galaxy?

SELECT ?item ?label WHERE { ?item rdfs:label "Milky Way"@en . }

Can you find the English label for the Milky Way in Wikidata?

Which entity in Wikidata represents the Milky Way, and what is its label?

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "milky"@en . } UNION { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "milky way"@en . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: French communes that are part of a commune community but not directly linked to a department in Wikidata.

SELECT ?commune ?communeLabel ?communeCommunityLabel ?coordinates WHERE { ?commune wdt:P31 wd:Q484170 . OPTIONAL { ?commune wdt:P625 ?coordinates . } ?commune wdt:P131 ?communeCommunity . ?communeCommunity wdt:P31 wd:Q423785 . FILTER ( NOT EXISTS { ?communeCommunity wdt:P131 ?department . ?commune wdt:P131 ?department . ?department wdt:P31 wd:Q6465 . } ) OPTIONAL { ?commune rdfs:label ?communeLabel . FILTER(LANG(?communeLabel) = "fr") } OPTIONAL { ?communeCommunity rdfs:label ?communeCommunityLabel . FILTER(LANG(?communeCommunityLabel) = "fr") } }

Which French communes are administratively linked only to a commune community and not directly to a department?

List French communes that belong to a commune community without a direct administrative connection to a department, along with their coordinates and labels.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q484170> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . } ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q423785> . FILTER ( ( NOT EXISTS { ?var2 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q6465> . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What are the direct subclasses of natural material?

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

What types of materials are considered direct subclasses of natural material?

List all the specific kinds of natural materials that are classified as direct subclasses of natural material.

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


Question: What are the roads and their endpoints and endpoint locations?

SELECT DISTINCT ?road ?roadLabel ?terminusLabel ?terminusLocationLabel WHERE { ?road (wdt:P31/wdt:P279*) wd:Q34442 . ?road wdt:P559 ?terminus . ?road wdt:P609 ?terminusLocation . ?road rdfs:label ?roadLabel . ?terminus rdfs:label ?terminusLabel . ?terminusLocation rdfs:label ?terminusLocationLabel . FILTER(LANG(?roadLabel) = "en") FILTER(LANG(?terminusLabel) = "en") FILTER(LANG(?terminusLocationLabel) = "en") }

Which roads end at which other roads or junctions, and in what locations are those endpoints situated?

List all roads (including highways and motorways) along with the names of the roads or junctions they terminate at and the geographic locations of those termini.

SELECT ?var1 ?var1Label ?var2Label ?var3Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q34442> . ?var1 <http://www.wikidata.org/prop/direct/P559> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P609> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: Archaeological sites in Ireland and northern Britain with coordinates between latitude 54–63 and longitude -10.5 to 2.02.

SELECT ?label ?coordinate ?site WHERE { ?site (wdt:P31/wdt:P279*) wd:Q839954 ; wdt:P625 ?coordinate ; rdfs:label ?label . FILTER(LANG(?label) = "en") . ?site (p:P625/psv:P625) ?valueNode . ?valueNode wikibase:geoLatitude ?lat ; wikibase:geoLongitude ?lon . FILTER(?lat > 54.0 && ?lat < 63.0) . FILTER(?lon > -10.5 && ?lon < 2.02) .}

What are the English-named archaeological sites located in the British Isles between 54°N and 63°N latitude and -10.5°W and 2.02°E longitude?

List the names and geographic coordinates of all archaeological sites in the British Isles, including Roman forts and dolmens, that fall within the latitudinal range of 54 to 63 degrees north and longitudinal range of -10.5 to 2.02 degrees east.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q839954> ; <http://www.wikidata.org/prop/direct/P625> ?var2 ; ( <http://www.wikidata.org/prop/P625> / <http://www.wikidata.org/prop/statement/value/P625> ) ?var4 ; <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "en" ) ) ) . ?var4 <http://wikiba.se/ontology#geoLatitude> ?var5 . ?var4 <http://wikiba.se/ontology#geoLongitude> ?var6 . FILTER ( ( ( ?var5 > "54"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( ?var5 < "63"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . FILTER ( ( ( ?var6 > "-10.5"^^<http://www.w3.org/2001/XMLSchema#decimal> ) ) ) . FILTER ( ( ( ?var6 < "2.02"^^<http://www.w3.org/2001/XMLSchema#decimal> ) ) ) . }


Question: What cultural landmarks and buildings in Berlin have images and coordinates available?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?image ?coords WHERE {
  ?item wdt:P625 ?coords .
  ?item wdt:P31 ?type .
  VALUES ?type {
    wd:Q134483 wd:Q12418 wd:Q1190554 wd:Q41176
  }
  BIND( strafter( strbefore( str( ?coords ) , ")" ) , "POINT(" ) AS ?coordStr ) .
  BIND( xsd:double ( strbefore( ?coordStr , " " ) ) AS ?lon ) .
  BIND( xsd:double ( strafter( ?coordStr , " " ) ) AS ?lat ) .
  FILTER ( ?lon >= 13 && ?lon <= 14 && ?lat >= 52 && ?lat <= 53 ) .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
}
LIMIT 20

Show me monuments, churches, and buildings in the Berlin area with their photos and geographic locations.

List notable sites in central Berlin with their images and coordinates, including memorials and villas.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { SERVICE <http://wikiba.se/ontology#box> { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerWest> "POINT(13 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(13 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var1 <http://www.wikidata.org/prop/P1435> ?var6 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var7 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: List railway stations in Germany with their coordinates and German Wikipedia pages.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?station ?coordinates ?wikipedia_page ?stationLabel WHERE {
  ?station wdt:P31 ?class .
  ?class wdt:P279 ?subclass .
  FILTER(?subclass IN(wd:Q55488 , wd:Q719456))
  ?station wdt:P17 wd:Q183 .
  OPTIONAL {
    ?station wdt:P625 ?coordinates .
  }
  ?wikipedia_page schema:about ?station .
  ?wikipedia_page schema:isPartOf <https://de.wikipedia.org/> .
  OPTIONAL {
    ?station rdfs:label ?stationLabel .
    FILTER(LANG(?stationLabel) = "de")
  }
}

What are the railway stations in Germany, their geographic coordinates, and their corresponding German Wikipedia articles?

Show me all train stations in Germany, including their locations and links to their German Wikipedia pages.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var1Label ?var5Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> ?var6 . ?var1 ?var3 <http://www.wikidata.org/entity/Q183> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . } ?var6 <http://www.wikidata.org/prop/direct/P279> ?var7 . FILTER ( ( ?var7 IN ( <http://www.wikidata.org/entity/Q55488> , <http://www.wikidata.org/entity/Q719456> ) ) ) . ?var4 <http://schema.org/about> ?var1 . ?var4 <http://schema.org/isPartOf> <https://de.wikipedia.org/> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,en". } }


Question: Thermal power stations in the Czech Republic with their nominal power output and commissioning date.

SELECT ?powerStationLabel ?nominalPower ?serviceEntryDate WHERE { ?powerStation (wdt:P31/wdt:P279*) wd:Q200297 . ?powerStation wdt:P17 wd:Q213 . ?powerStation wdt:P2109 ?nominalPower . ?powerStation wdt:P729 ?serviceEntryDate . ?powerStation rdfs:label ?powerStationLabel . FILTER(LANG(?powerStationLabel) = "en") }

What are the names, installed capacities, and service entry dates of thermal power stations in the Czech Republic?

List all thermal power plants in the Czech Republic along with their power capacity in MW and when they were commissioned.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q200297> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q213> . ?var1 <http://www.wikidata.org/prop/direct/P2109> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P729> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "cs". } }


Question: Bridges with their coordinates and names

SELECT ?bridge ?coordinates ?name WHERE { ?bridge wdt:P31 wd:Q12280 . OPTIONAL { ?bridge wdt:P625 ?coordinates . } OPTIONAL { ?bridge rdfs:label ?name . } }

What are the names and geographic coordinates of all bridges?

List all bridges along with their locations and the names they are known by in different languages.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q12280> . 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/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1705> ?var3 . } }


Question: List films and their countries of origin with titles.

SELECT ?film ?title ?country WHERE { ?film (wdt:P31/wdt:P279*) wd:Q11424 . OPTIONAL { ?film wdt:P1476 ?title . } OPTIONAL { ?film wdt:P495 ?country . } } LIMIT 50

What are the titles and countries of origin for films and their subtypes?

Show me up to 50 films, including their titles and where they were produced.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q11424> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1476> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P495> ?var3 . } } LIMIT 50


Question: What is the name and description of the Broadway play with IBDB ID 2666?

SELECT ?item ?label ?description WHERE { ?item wdt:P1219 "2666" . ?item rdfs:label ?label . FILTER (LANG(?label) = "en") OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you tell me the title and English description of the play identified by IBDB show ID 2666?

Which play has the Internet Broadway Database ID 2666, and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1219> "2666". 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 is the English title and description of the Broadway show with IBDB ID 2280?

SELECT ?item ?itemLabel ?description WHERE { ?item wdt:P1219 "2280" . OPTIONAL { ?item schema:description ?description . FILTER (LANG(?description) = "en") } ?item rdfs:label ?itemLabel . FILTER (LANG(?itemLabel) = "en") }

Tell me about the musical with Internet Broadway Database ID 2280, including its English name and description.

Find the English label and description for the Broadway production identified by IBDB show ID 2280.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1219> "5165". 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 birth and death dates of Bryan Donkin?

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

Can you tell me when Bryan Donkin was born and when he died?

Who is Bryan Donkin, and what are his dates of birth and death?

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


Question: Name, birth date, and death date of Hervé VII de Léon

SELECT ?personLabel ?birthDate ?deathDate WHERE { BIND(wd:Q3134655 AS ?person) . ?person wdt:P31 wd:Q5 . OPTIONAL { ?person wdt:P569 ?birthDate . } OPTIONAL { ?person wdt:P570 ?deathDate . } ?person rdfs:label ?personLabel . }

What is the birth date and death date of Hervé VII de Léon, and what is his name?

Tell me the name, birth date, and death date of Hervé VII de Léon.

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


Question: What is the date of birth of John Edward Hopcroft, and is he deceased?

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

Tell me John Edward Hopcroft’s birth date and whether he has passed away.

When was John Edward Hopcroft born, and what is his date of death?

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


Question: What are the birth and death dates of Armand-Jean du Plessis, duc de Richelieu?

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

Can you tell me when Armand-Jean du Plessis, duc de Richelieu was born and when he died?

Show me the full name, birth date, and death date of Cardinal Richelieu.

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


Question: What are the birth and death dates of Mrs Willie James?

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

Can you tell me when Mrs Willie James was born and when she died?

Provide the full name, birth date, and death date of the English socialite Mrs Willie James.

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


Question: Date of birth and death of Hedley Verity

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?birthDate ?deathDate WHERE {
  wd:Q3525933 wdt:P569 ?birthDate .
  wd:Q3525933 wdt:P570 ?deathDate .
}

When was Hedley Verity born and when did he die?

Please provide the birth and death dates of the cricketer Hedley Verity.

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


Question: What are the English-named places located within the municipality of Außernzell?

SELECT ?item ?itemLabel WHERE { ?item wdt:P131 wd:Q306451 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") } ORDER BY ASC(?itemLabel)

Can you list all cultural heritage sites and other locations in Außernzell with their English names, sorted alphabetically?

Show me the administrative subdivisions of Außernzell in Germany, along with their English labels.

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


Question: What materials are volcanoes made of?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?volcano ?material WHERE {
  ?volcano wdt:P31 / wdt:P279 * wd:Q8072 .
  ?volcano wdt:P186 ?material .
}

Which volcanic entities are composed of which geological materials, according to Wikidata?

List all known volcanoes and the rock types they are primarily made of.

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


Question: Volcanoes and their parent peaks

SELECT ?volcano ?parentPeak WHERE { ?volcano (wdt:P31/wdt:P279*) wd:Q8072 . ?volcano wdt:P3137 ?parentPeak . }

What are the parent peaks of all volcanoes on Wikidata?

List each volcano along with the higher peak it belongs to, based on topographic prominence.

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


Question: What are the dates of significant events associated with glaciers?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?glacier ?date WHERE {
  ?glacier ( wdt:P31 / wdt:P279 * ) wd:Q35666 .
  ?glacier p:P793 ?statement .
  ?statement ps:P793 ?event ; pq:P585 ?date .
}

When did significant events occur on glacier-covered volcanoes?

List glaciers and the dates of their notable events, such as eruptions or first ascents.

SELECT ?var1 ?var2 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q35666> . { ?var1 <http://www.wikidata.org/prop/P793> ?var3 . ?var3 <http://www.wikidata.org/prop/statement/P793> ?var4 ; <http://www.wikidata.org/prop/qualifier/P585> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: What is the main topic of the Wikipedia category "Category:Beer" in English?

SELECT ?topic ?label WHERE { wd:Q7214361 wdt:P301 ?topic . ?topic rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 50

Which article does the Wikimedia category "Category:Beer" primarily cover, and what is its English name?

Show me the English label of the main topic of the category "Category:Beer".

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


Question: Items with images and Commons categories near Kiel, Germany

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?itemLabel ?image ?commonsCategory WHERE {
  ?item wdt:P625 ?location .
  FILTER ( geof:latitude ( ?location ) >= 54.2 && geof:latitude ( ?location ) <= 54.4 ) FILTER ( geof:longitude ( ?location ) >= 9.8 && geof:longitude ( ?location ) <= 10.0 ) OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item wdt:P373 ?commonsCategory .
  }
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 3000

What landmarks and locations around Kiel, Germany have photos or Wikimedia Commons categories associated with them?

Show me geolocated places between latitudes 54.2 and 54.4 and longitudes 9.8 and 10.0, along with their English labels, images, and Commons categories.

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(9 53)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerNorthEast> "POINT(9 53)"^^<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 most common types of items in Wikidata that have been inferred from another statement?

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 ?class ?classLabel ?count ?propertyLabel WHERE {
  {
    SELECT ?class ( COUNT( * ) AS ?count ) ( wd:P31 AS ?property ) WHERE {
      ?item wdt:P3452 ?value ; wdt:P31 ?class .
    }
    GROUP BY ?class ?property
    ORDER BY DESC ( ?count )
    LIMIT 50
  } UNION {
    SELECT ?class ( COUNT( * ) AS ?count ) ( wd:P279 AS ?property ) WHERE {
      ?item wdt:P3452 ?value ; wdt:P279 ?class .
    }
    GROUP BY ?class ?property
    ORDER BY DESC ( ?count )
    LIMIT 50
  }
  ?class rdfs:label ?classLabel .
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?classLabel ) = "en" ) FILTER ( LANG( ?propertyLabel ) = "en" )
}
ORDER BY DESC ( ?count ) ASC ( ?class )

Which classes (instance of or subclass of) are linked to items with inferred statements in Wikidata, and how many items belong to each?

Show me the top classes that are associated with items having the 'inferred from' property, along with their labels and whether they are instances or subclasses.

SELECT ?var1 ?var1Label ?var2 ?var3Label WHERE { { SELECT ?var1 ( COUNT (* ) AS ?var2 )( <http://www.wikidata.org/entity/P31> AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P3452> ?var5 ; <http://www.wikidata.org/prop/direct/P31> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 50 } UNION { SELECT ?var1 ( COUNT (* ) AS ?var2 )( <http://www.wikidata.org/entity/P279> AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P3452> ?var5 ; <http://www.wikidata.org/prop/direct/P279> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 50 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY DESC( ?var2 )ASC( ?var1 )


Question: Instances of sheep in Wikidata

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?sheep WHERE {
  ?sheep wdt:P31 wd:Q7368 .
}

What are some individual sheep that have been documented in Wikidata?

List all known individual sheep recorded in Wikidata.

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


Question: What properties are used by input devices, and what are their values and usage counts?

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

For the entity "input device", list each property that links to it, the English label of the property, how many times it's used, and the labels of the connected objects.

Show me all the properties connected to input devices, along with how many objects each property links to and what those objects are called in English.

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


Question: Wine types and their administrative regions with geographic coordinates

SELECT ?wineLabel ?regionLabel ?coordinates WHERE { ?wine wdt:P31 wd:Q282 . ?wine wdt:P131 ?region . ?region wdt:P625 ?coordinates . ?wine rdfs:label ?wineLabel . ?region rdfs:label ?regionLabel . FILTER(LANG(?wineLabel) = "en") . FILTER(LANG(?regionLabel) = "en") } ORDER BY ?regionLabel

What are the names of wines, the regions they are from, and the coordinates of those regions?

List all wines with their English labels, the administrative regions they belong to, and the geographic coordinates of those regions.

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


Question: Properties linking entities to public libraries, ranked by frequency

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

What properties are most commonly used to relate items to public libraries in Wikidata?

Show me the properties that connect entities to public libraries, sorted by how often they are used, excluding those used only once.

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


Question: Scientists with birth dates and images, ordered by birth year

SELECT ?scientist ?birthDate ?image WHERE { ?scientist wdt:P106 wd:Q901 . ?scientist wdt:P569 ?birthDate . ?scientist wdt:P18 ?image . FILTER (isLiteral(?birthDate)) } ORDER BY ASC(?birthDate)

Who are the scientists born earliest, and what are their birth dates and images?

List scientists who have both a known date of birth and an image on Wikimedia Commons, sorted by when they were born.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { BIND ( YEAR ( ?var2 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q901> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . FILTER ( ( BOUND ( ?var4 ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } ORDER BY ASC( ?var2 )


Question: Apple Inc. company type, industry, headquarters location, country, operating income, website, and number of employees.

SELECT ?companyLabel ?instanceTypeLabel ?industryLabel ?headquartersLabel (CONCAT(?headquartersLabel, " , ", ?countryLabel) AS ?location) ?countryLabel ?operatingIncome ?website ?employees WHERE { wd:Q312 rdfs:label ?companyLabel FILTER(LANG(?companyLabel) = 'en') . wd:Q312 wdt:P31 ?instanceType . ?instanceType wdt:P279 wd:Q783794 . ?instanceType rdfs:label ?instanceTypeLabel FILTER(LANG(?instanceTypeLabel) = 'en') . wd:Q312 wdt:P452 ?industry . ?industry rdfs:label ?industryLabel FILTER(LANG(?industryLabel) = 'en') . wd:Q312 wdt:P159 ?headquarters . ?headquarters rdfs:label ?headquartersLabel FILTER(LANG(?headquartersLabel) = 'en') . wd:Q312 wdt:P17 ?country . ?country rdfs:label ?countryLabel FILTER(LANG(?countryLabel) = 'en') . wd:Q312 wdt:P3362 ?operatingIncome . wd:Q312 wdt:P856 ?website . wd:Q312 wdt:P1128 ?employees . } LIMIT 1

What is the type, industry, headquarters, country, operating income, official website, and employee count of Apple Inc.?

Please provide the headquarters (with country), operating income, website, and number of employees for Apple Inc., along with its company type and industry.

SELECT ?var1Label ?var2Label ?var3Label ?var4Label ?var5 ?var6Label ?var7 ?var8Label ?var9 WHERE { BIND ( CONCAT ( ?var4Label , " , ", ?var6Label ) AS ?var5 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Apple"@en . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q783794> . ?var1 <http://www.wikidata.org/prop/direct/P17> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P159> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P3362> ?var7 . ?var1 <http://www.wikidata.org/prop/direct/P856> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P1128> ?var9 . ?var1 <http://www.wikidata.org/prop/direct/P452> ?var3 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1


Question: All superclass classes of Adolf Hitler's type

SELECT ?superclass WHERE { wd:Q352 wdt:P31 ?class . ?class wdt:P279* ?superclass . }

What are all the classes and their superclasses that Adolf Hitler is an instance of?

List all the hierarchical classes that Adolf Hitler belongs to, starting from his direct type and going up through subclass relationships.

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


Question: Transport hubs serving Nîmes

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
SELECT ?transportHub ?transportHubLabel WHERE {
  ?transportHub p:P931 ?statement .
  ?statement ps:P931 wd:Q42807 .
  OPTIONAL {
    ?transportHub rdfs:label ?transportHubLabel .
    FILTER(LANG(?transportHubLabel) = "en")
  }
}
ORDER BY ?transportHubLabel
LIMIT 101

Which airports or aerodromes serve the city of Nîmes?

List all transport hubs that have Nîmes as a served location.

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


Question: Which administrative entities in France have Nîmes as their capital, and what are the start or end dates for these capital relationships?

PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?administrativeEntity ?statement ( SAMPLE( ?qualifierProperty ) AS ?qualifier ) WHERE {
  ?administrativeEntity p:P36 ?statement .
  ?statement ps:P36 wd:Q42807 .
  OPTIONAL {
    ?statement pq:P580 ?_ .
    BIND( pq:P580 AS ?qualifierProperty )
  }
  OPTIONAL {
    ?statement pq:P582 ?_ .
    BIND( pq:P582 AS ?qualifierProperty )
  }
}
GROUP BY ?administrativeEntity ?statement

For which administrative regions or subdivisions is Nîmes the capital, and when did these capital designations begin or end?

Show me the entities that list Nîmes as their capital, along with the time qualifiers (start or end) associated with those designations.

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


Question: Roads with Toulouse as primary destination

SELECT ?road ?statement WHERE { ?statement ps:P1302 wd:Q7880 . ?road p:P1302 ?statement . } LIMIT 10

Which roads serve Toulouse as a primary destination?

List the roads that have Toulouse as one of their main destinations.

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


Question: People who worked in Toulouse and their work location qualifiers (e.g., start time, occupation)

SELECT ?person (SAMPLE(?qualifierProperty) AS ?qualifier)
WHERE {
  ?person p:P937 ?statement .
  ?statement ps:P937 wd:Q7880 .
  OPTIONAL {
    ?statement ?qualifierProperty ?qualifierValue .
    FILTER(?qualifierProperty IN (
      pq:P106,     # occupation
      pq:P3831,    # object of statement has role
      pq:P580,     # start time
      pq:P582,     # end time
      pq:P585,     # point in time
      pq:P6375     # street address
    ))
  }
}
GROUP BY ?person
LIMIT 101

Which people worked in Toulouse, and what additional details (like start date or role) are associated with their work location?

List up to 101 people who worked in Toulouse and show any qualifier properties (such as start time or occupation) attached to their employment record.

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


Question: Who are the 101 people who died in Ajaccio, and what qualifier properties are used on their death statements?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?person ?statement(SAMPLE(?qualifier) AS ?qualifierExample) WHERE {
  {
    SELECT DISTINCT ?person ?statement WHERE {
      ?statement ps:P20 wd:Q40104 .
      ?person p:P20 ?statement .
    }
    LIMIT 101
  }
  OPTIONAL {
    ?statement ?qualifier ?value .
    wdt:P20 wikibase:qualifier ?qualifier .
  }
}
GROUP BY ?person ?statement

List the first 101 individuals who died in Ajaccio and show one example of a qualifier (like date or cause of death) associated with their death record.

For people who died in Ajaccio, what additional details (qualifiers) are recorded with their place of death?

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


Question: What are Amazon’s industry, headquarters location, country, operating income, official website, and number of employees?

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 ?typeLabel ?industryLabel ?countryLabel ?headquartersLabel ?operatingIncome ?website ?employees WHERE {
  wd:Q3884 wdt:P31 ?type .
  OPTIONAL {
    wd:Q3884 wdt:P17 ?country .
  }
  OPTIONAL {
    wd:Q3884 wdt:P159 ?headquarters .
  }
  OPTIONAL {
    wd:Q3884 wdt:P3362 ?operatingIncome .
  }
  OPTIONAL {
    wd:Q3884 wdt:P856 ?website .
  }
  OPTIONAL {
    wd:Q3884 wdt:P1128 ?employees .
  }
  OPTIONAL {
    wd:Q3884 wdt:P452 ?industry .
  }
  OPTIONAL {
    ?type rdfs:label ?typeLabel .
    FILTER ( LANG( ?typeLabel ) = 'en' )
  }
  OPTIONAL {
    ?industry rdfs:label ?industryLabel .
    FILTER ( LANG( ?industryLabel ) = 'en' )
  }
  OPTIONAL {
    ?country rdfs:label ?countryLabel .
    FILTER ( LANG( ?countryLabel ) = 'en' )
  }
  OPTIONAL {
    ?headquarters rdfs:label ?headquartersLabel .
    FILTER ( LANG( ?headquartersLabel ) = 'en' )
  }
}

Can you tell me the type, industry, country, and headquarters of Amazon, along with its operating income, website, and employee count?

Provide details about Amazon including its business type, sector, location, financial performance, and workforce size.

SELECT ?var1 ?var2Label ?var3Label ?var4Label ?var5Label ?var6 ?var7Label ?var8 WHERE { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "Amazon"@en . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q783794> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P17> ?var5 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P159> ?var4 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P3362> ?var6 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P856> ?var7 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1128> ?var8 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P452> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } LIMIT 1


Question: Countries with the most scientists on English Wikipedia, sorted by count.

SELECT ?country (COUNT(?scientist) AS ?count) ?countryLabel WHERE { ?scientist wdt:P31 wd:Q5 ; wdt:P106 wd:Q901 ; wdt:P27 ?country . ?article schema:isPartOf <https://en.wikipedia.org/> ; schema:about ?scientist . ?country rdfs:label ?countryLabel . FILTER(LANG(?countryLabel) = "en") } GROUP BY ?country ?countryLabel ORDER BY ASC(?count)

Which countries have the highest number of scientists with English Wikipedia articles, and how many are there from each?

Show me a list of countries ranked by the number of scientists (people with occupation "scientist") who have English Wikipedia pages, including the count for each country.

SELECT( COUNT ( ?var1 ) AS ?var2 )( SAMPLE ( ?var1 ) AS ?var3 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var4 <http://www.wikidata.org/prop/direct/P27> ?var1 . ?var4 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q901> . ?var5 <http://schema.org/isPartOf> <https://en.wikipedia.org/> ; <http://schema.org/about> ?var4 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ORDER BY ASC( ?var2 )


Question: People who speak Basque and their birthplaces

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 ?birthplace ?birthplaceLabel WHERE {
  ?person wdt:P1412 wd:Q8752 .
  ?person wdt:P19 ?birthplace .
  ?person rdfs:label ?personLabel .
  ?birthplace rdfs:label ?birthplaceLabel .
  FILTER ( LANG( ?personLabel ) = "en" ) FILTER ( LANG( ?birthplaceLabel ) = "en" )
}

Who are the people that speak the Basque language, and where were they born?

List the names of people who speak Basque along with the cities where they were born.

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


Question: What property is used to indicate that a book has won the Booker Prize?

SELECT ?propertyLabel ?propertyDescription WHERE { wd:P166 rdfs:label ?propertyLabel . wd:P166 schema:description ?propertyDescription . FILTER(LANG(?propertyLabel) = "en") FILTER(LANG(?propertyDescription) = "en") }

What is the label and description of the Wikidata property that links literary works to the Booker Prize?

Which property in Wikidata connects award-winning books to the Booker Prize, and what does it mean?

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/Q160082> . ?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 the English labels and descriptions of series that have items belonging to them?

SELECT ?series ?seriesLabel ?seriesDescription WHERE { ?item wdt:P179 ?series . ?series rdfs:label ?seriesLabel . ?series schema:description ?seriesDescription . FILTER (LANG(?seriesLabel) = "en") FILTER (LANG(?seriesDescription) = "en") } LIMIT 100

List up to 100 TV shows, books, or other series with their English names and descriptions, based on items that are part of them.

Show me the names and descriptions in English of all series that contain at least one episode or item.

SELECT ?var1 ?var2Label ?var3 WHERE { <http://www.bigdata.com/queryHints#Query> <http://www.bigdata.com/queryHints#optimizer> "None". { SELECT DISTINCT ?var1 WHERE { ?var4 <http://www.wikidata.org/prop/direct/P179> ?var1 . } 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: German label and description of place of birth property

SELECT ?label ?description WHERE { wd:P19 rdfs:label ?label . wd:P19 schema:description ?description . FILTER (LANG(?label) = "de") . FILTER (LANG(?description) = "de") }

What is the German label and description for the property "place of birth"?

Please show me the German label and description of the property used to indicate where someone was born.

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/Q1322263> . ?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 ) = "de" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "de" ) ) ) . } LIMIT 100


Question: What properties are related to "position played on team" in Wikidata, and what are their labels and descriptions in different languages?

SELECT ?relatedProperty ?label ?description WHERE { ?relatedProperty wdt:P1659 wd:P413 . ?relatedProperty rdfs:label ?label . ?relatedProperty schema:description ?description . }

Show me the properties that are linked to player position via "related property" and their translations.

Which properties provide additional information about a player’s position on a team, and what are their names and descriptions?

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P413> AS ?var4 ). ?var5 ?var6 ?var4 . ?var5 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . ?var5 <http://www.wikidata.org/prop/direct/P1659> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . ?var1 <http://schema.org/description> ?var3 . FILTER ( ( ( LANG ( ?var2Label ) = "ru" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "ru" ) ) ) . }


Question: Top 100 rowers with World Rowing IDs, ranked by number of Wikipedia articles.

PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?rower ?rowerLabel ?fisa_id ( COUNT( ?wikipedia_link ) AS ?sitelink_count ) WHERE {
  ?rower wdt:P2091 ?fisa_id .
  ?wikipedia_link schema:about ?rower ; schema:isPartOf ?wikipedia_site .
  FILTER ( STRSTARTS( STR( ?wikipedia_site ) , "https://" ) ) .
  ?rower rdfs:label ?rowerLabel .
  FILTER ( LANG( ?rowerLabel ) = "en" )
}
GROUP BY ?rower ?rowerLabel ?fisa_id
ORDER BY DESC ( ?sitelink_count ) ASC ( ?rower )
LIMIT 100

Which rowers have the most Wikipedia pages, and what are their World Rowing IDs?

List the 100 rowers with the highest number of Wikipedia articles, including their English names and FISA IDs, sorted by popularity.

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


Question: What is the English Wikipedia page for the company with the official website https://www.chelseatravel.ph?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?company ?companyLabel ?wikipediaPage WHERE {
  ?company wdt:P856 <https://www.chelseatravel.ph> .
  ?company rdfs:label ?companyLabel .
  ?wikipediaPage schema:about ?company .
  ?wikipediaPage schema:inLanguage "en" .
  ?wikipediaPage schema:isPartOf <https://en.wikipedia.org/> .
  FILTER ( LANG( ?companyLabel ) = "en" )
}

Show me the English Wikipedia article linked to Supercat Fast Ferry Corporation.

Can you find the English Wikipedia page for the Filipino ferry company whose website is chelseatravel.ph?

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


Question: What is the English label and description of the Broadway show with IBDB ID 4172?

SELECT ?work ?workLabel ?description WHERE { ?work wdt:P1219 "4172" . ?work rdfs:label ?workLabel . FILTER (LANG(?workLabel) = "en") OPTIONAL { ?work schema:description ?description . FILTER (LANG(?description) = "en") } }

Can you tell me the title and English description of the play identified by IBDB show ID 4172?

Which play has the Internet Broadway Database ID 4172, and what is its English description?

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1219> "3798". 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: Image of the person with SNAC ARK ID w6tx3thc

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

What is the image associated with Jean-Antoine Houdon in Wikidata?

Show me the Wikimedia Commons image for the individual identified by SNAC ARK ID w6tx3thc.

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


Question: What are the public image items, the properties used to link them to the concept of "image", and any qualifiers on those statements?

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

For items representing public images, which properties connect them to the entity "image" (Q1659580), and what qualifiers are attached to those connections?

Show me the statements about public images, including the property used (excluding "instance of") and any associated qualifiers like "of".

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


Question: List all human settlements with their official names, GeoNames IDs, and feature codes.

SELECT DISTINCT ?settlement ?officialName ?geonamesId ?featureCode WHERE { ?settlement wdt:P31/wdt:P279* wd:Q486972 . ?settlement wdt:P1448 ?officialName . OPTIONAL { ?settlement wdt:P1566 ?geonamesId . } OPTIONAL { ?settlement wdt:P2452 ?featureCode . } }

What are the official names, GeoNames IDs, and feature codes of all human settlements, including cities, towns, and villages, in Wikidata?

Can you provide a list of human settlements along with their official names and associated GeoNames identifiers, where available?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> . ?var1 <http://www.wikidata.org/prop/direct/P1448> ?var2 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var3 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P2452> ?var4 . } }


Question: Loco2 official website, Wikipedia page, and type

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel ?wikipediaPage ?website ?instanceOf WHERE {
  BIND(wd:Q16996819 AS ?item)
  ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  OPTIONAL {
    ?item wdt:P856 ?website
  }
  OPTIONAL {
    ?item wdt:P31 ?instanceOf
  }
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
}

What is the official website and English Wikipedia page of Loco2, and what type of business is it?

Show me the English Wikipedia link, official website, and instance types for the travel agency Loco2.

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


Question: What is the English Wikipedia page, official website, and type of the American Hotel and Lodging Association?

SELECT ?label ?wikipediaPage ?website ?instance WHERE { wd:Q19872202 rdfs:label ?label . FILTER(LANG(?label) = "en") . ?wikipediaPage schema:about wd:Q19872202 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . OPTIONAL { wd:Q19872202 wdt:P856 ?website } OPTIONAL { wd:Q19872202 wdt:P31 ?instance } }

Can you tell me about the American Hotel and Lodging Association — its Wikipedia page, website, and what kind of organization it is?

Show me the English Wikipedia link, official URL, and classification (instance of) for the American Hotel and Lodging Association.

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


Question: What patents are owned by AccuWeather, and what are their types?

SELECT ?var1 ?label ?var2 ?var4 ?var5 WHERE { ?var1 wdt:P127 wd:Q2822885 . OPTIONAL { ?var2 schema:about ?var1 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } OPTIONAL { ?var1 wdt:P856 ?var4 . } OPTIONAL { ?var1 wdt:P31 ?var5 . } ?var1 rdfs:label ?label . FILTER(LANG(?label) = "en") }

Can you list the English names of all patents owned by AccuWeather?

Which entities does AccuWeather own, and do they have official websites or Wikipedia pages?

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


Question: Entities owned by the United States with English Wikipedia pages, official websites, and types.

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?itemLabel ?wikipediaPage ?website ?type WHERE {
  ?item wdt:P127 wd:Q30 .
  ?wikipediaPage schema:about ?item ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> .
  OPTIONAL {
    ?item wdt:P856 ?website .
  }
  OPTIONAL {
    ?item wdt:P31 ?type .
  }
}
LIMIT 10

What are the buildings, sites, or institutions owned by the United States that have English Wikipedia articles, and what are their official websites and types?

List the entities owned by the United States, along with their English Wikipedia links, official websites, and classifications.

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


Question: Most common components of chemical compounds

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?part(COUNT(?part) AS ?count) WHERE {
  ?compound wdt:P31 wd:Q11173 ; wdt:P527 ?part .
}
GROUP BY ?part
ORDER BY DESC(?count)
LIMIT 10

What are the most frequently occurring parts of chemical compounds?

Show me the top 10 components of chemical compounds and how often they appear.

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11173> ; <http://www.wikidata.org/prop/direct/P703> <http://www.wikidata.org/entity/Q15978631> ; <http://www.wikidata.org/prop/direct/P527> ?var1 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja,en". } } GROUP BY ?var1


Question: What are the German labels for the Wikidata property "date of birth"?

SELECT DISTINCT ?label WHERE { { wd:P569 rdfs:label ?label . } UNION { wd:P569 skos:altLabel ?label . } FILTER (LANG(?label) = "de") }

In German, what terms are used to refer to the property of a person's date of birth in Wikidata?

Can you list all German-language terms associated with the date of birth property in Wikidata, including both primary labels and alternative labels?

SELECT DISTINCT * WHERE { <http://www.wikidata.org/entity/P569> <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . <http://www.wikidata.org/entity/P569> <http://www.w3.org/2004/02/skos/core#altLabel> ?var1Label . FILTER ( ( ( LANG ( ?var1Label ) = "de" ) ) ) . }


Question: Antarctic geographic features with duplicate GeoNames IDs and their GNIS identifiers.

SELECT ?antarcticFeature ?gnisId ?geonamesId ?duplicateFeature ?label WHERE { ?antarcticFeature wdt:P804 ?gnisId . ?antarcticFeature wdt:P1566 ?geonamesId . ?duplicateFeature wdt:P1566 ?geonamesId . FILTER (?antarcticFeature != ?duplicateFeature) . OPTIONAL { ?antarcticFeature rdfs:label ?label . FILTER (LANG(?label) = "en") . } } ORDER BY ASC(?gnisId)

Which Antarctic features share a GeoNames ID with another geographic feature, and what are their GNIS IDs and English names?

List all Antarctic geographic features that have the same GeoNames ID as another feature, along with their GNIS IDs, the duplicate feature, and their English labels, sorted by GNIS ID.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P804> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P1566> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P1566> ?var3 . FILTER ( ( ( ?var1 != ?var4 ) ) ) . OPTIONAL { ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . FILTER ( ( ( LANG ( ?var5 ) = "en" ) ) ) . } MINUS { ?var4 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q17362920> . } } ORDER BY ASC( ?var2 )


Question: What are Douglas Adams’s occupations?

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

List all the professions associated with Douglas Adams.

CONSTRUCT { <http://www.bigdata.com/rdf#Bryan> <http://www.bigdata.com/rdf#likes> <http://www.bigdata.com/rdf#RDFS> } WHERE { <http://www.wikidata.org/entity/Q42> <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . }


Question: How many people have violet eye color?

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 ?eyeColorLabel ( COUNT( ?person ) AS ?count ) WHERE {
  ?person wdt:P1340 wd:Q130443551 .
  wd:Q130443551 rdfs:label ?eyeColorLabel .
  FILTER ( LANG( ?eyeColorLabel ) = "en" )
}
GROUP BY ?eyeColorLabel

What is the count of individuals with violet-colored eyes in Wikidata?

How many people are recorded in Wikidata as having violet eyes?

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) ?var4 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P1340> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> "violet". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ?var4


Question: How many paintings in Wikidata have an RKDimages ID?

SELECT ( COUNT( DISTINCT ?painting ) AS ?count ) WHERE { ?painting wdt:P31 wd:Q3305213 . ?painting wdt:P350 ?rkd_id . }

What is the number of paintings that are assigned a unique identifier by the Netherlands Institute for Art History?

Count the distinct paintings in Wikidata that have an RKDimages identifier from the RKD (Netherlands Institute for Art History).

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q3305213> . ?var1 <http://www.wikidata.org/prop/direct/P350> ?var3 . }


Question: Entities with alias "TNR" in Wikidata

SELECT ?item ?label WHERE { ?item skos:altLabel "TNR"@en . ?item rdfs:label ?label . FILTER(LANG(?label) = 'en') } ORDER BY ?item

Which entities in Wikidata are known by the alias "TNR"?

List all entities in Wikidata that have "TNR" as an alternative name.

SELECT * WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3029> "TNR". } ORDER BY ASC( ?var2 )


Question: Which airport has the IATA code JFK?

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

What is the name of the airport with the IATA code JFK?

Tell me the name of the airport that uses JFK as its IATA code.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P238> "JFK". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 )


Question: List all communes in Italy with their coordinates and images.

SELECT DISTINCT ?commune ?communeLabel ?coordinates ?image WHERE { ?commune wdt:P31 wd:Q747074 ; wdt:P17 wd:Q38 . OPTIONAL { ?commune wdt:P625 ?coordinates . } OPTIONAL { ?commune wdt:P18 ?image . } ?commune rdfs:label ?communeLabel . FILTER(LANG(?communeLabel) = "en" || LANG(?communeLabel) = "") } ORDER BY ASC(?communeLabel)

What are the names, geographic coordinates, and images of all communes in Italy?

Show me the English names, locations, and Wikimedia Commons images of every commune in Italy, sorted alphabetically.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q747074> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it". } } ORDER BY ASC( ?var1Label )


Question: What percentage of votes did the winning candidate receive in the Steinburg – Dithmarschen Süd electoral district?

PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?voteCount WHERE {
  wd:Q1008632 p:P991 ?statement .
  ?statement pq:P1111 ?voteCount .
}

How many votes were cast for the successful candidate in the Steinburg – Dithmarschen Süd Bundestag constituency?

What is the vote percentage for the elected representative of Steinburg – Dithmarschen Süd?

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