Question: When did the Prime Minister of Singapore assume office between January 1, 2003, and January 1, 2016?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?startDate WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q866756 .
  ?statement pq:P580 ?startDate .
  FILTER(?startDate >= "2003-01-01T00:00:00Z" ^^ xsd:dateTime && ?startDate < "2016-01-01T00:00:00Z" ^^ xsd:dateTime)
}

What are the start dates of the tenure of Prime Ministers of Singapore during the period from 2003 to 2016?

Who became Prime Minister of Singapore between 2003 and 2016, and when did they start?

SELECT ?var1 WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } <http://www.wikidata.org/entity/Q866756> <http://www.wikidata.org/prop/direct/P580> ?var2 . FILTER ( ( ( "2003-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> <= ?var2 ) && ( ?var2 < "2016-01-01"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } LIMIT 100


Question: Humans with Instagram usernames and their birth names.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?human ?birthName WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human wdt:P2003 ?instagramUsername .
  OPTIONAL {
    ?human wdt:P1477 ?birthName .
  }
}

Which humans have Instagram usernames, and what are their birth names if available?

Show me a list of people who use Instagram, along with their birth names where known.

SELECT ?var1 ?var2 ?var2Label WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P2003> ?var3 . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1477> ?var2 . } }


Question: Top American actors by combined awards, media presence, and net worth

SELECT ?actor ?actorLabel (?awardCount * ?mediaCount * ?netWorth AS ?compositeScore)
WHERE {
  {
    SELECT ?actor (COUNT(DISTINCT ?award) AS ?awardCount) (COUNT(DISTINCT ?mediaItem) AS ?mediaCount) (SAMPLE(?netWorthVal) AS ?netWorth)
    WHERE {
      ?actor wdt:P106 wd:Q33999 .           # occupation: actor
      ?actor wdt:P27 wd:Q30 .               # citizenship: United States
      ?actor wdt:P2218 ?netWorthVal .       # net worth
      ?actor wdt:P166 ?award .              # award received
      ?mediaItem schema:about ?actor .      # media item about actor
      FILTER(ISNUMERIC(?netWorthVal))
    }
    GROUP BY ?actor
  }
  OPTIONAL { ?actor rdfs:label ?actorLabel . FILTER(LANG(?actorLabel) = "en") }
}
ORDER BY DESC(?compositeScore) ASC(?actorLabel)

Who are the most successful American actors when ranked by the product of their awards, media coverage, and net worth?

List American actors ordered by a score that multiplies their number of awards, number of associated media items, and net worth, with the highest-scoring first.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 ( ( ( ?var2 * ?var4 ) * ?var3 ) AS ?var5 ) WHERE { { SELECT ?var1 ( COUNT ( DISTINCT ?var6 ) AS ?var2 )( COUNT ( DISTINCT ?var7 ) AS ?var4 )( SAMPLE ( ?var8 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q30> . ?var1 <http://www.wikidata.org/prop/direct/P2218> ?var8 . ?var1 <http://www.wikidata.org/prop/direct/P166> ?var6 . ?var7 <http://schema.org/about> ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var1Label . } } ORDER BY DESC( ?var5 )ASC( ?var1Label )


Question: Is Q8105475 a type of software?

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

Does the entity Q8105475 belong to the category of software, either directly or through its class hierarchy?

Check whether Q8105475 is classified as software, including through any superclass relationships.

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


Question: Is Arteglasin A classified as a human or a subclass of human?

Does the chemical compound Arteglasin A belong to any category that is a subclass of human?

Confirm whether Arteglasin A is a human or falls under any biological classification that includes humans.

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


Question: What are some direct subclasses of geographical features, fictional locations, artificial physical objects, and natural physical objects?

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 ?subclass ?subclassLabel WHERE {
  VALUES ?category {
    wd:Q618123 wd:Q3895768 wd:Q8205328 wd:Q16686022
  }
  ?subclass wdt:P279 ?category .
  ?subclass rdfs:label ?subclassLabel .
  FILTER ( LANG( ?subclassLabel ) = "en" )
}
LIMIT 100

Can you list examples of things that are directly classified as types of fictional places, geographic features, human-made objects, or naturally occurring objects?

Show me categories that are immediate subtypes of fictional locations, geographical features, artificial objects, and natural objects.

SELECT ?var1 WHERE { VALUES ( ?var2 ) { ( <http://www.wikidata.org/entity/Q618123> ) ( <http://www.wikidata.org/entity/Q8205328> ) ( <http://www.wikidata.org/entity/Q3895768> ) ( <http://www.wikidata.org/entity/Q24334893> ) } ?var1 <http://www.wikidata.org/prop/direct/P279> * ?var2 . }


Question: French female politicians with English descriptions starting with "French politician" and no Arabic description.

SELECT ?politician WHERE { ?politician wdt:P31 wd:Q5 ; wdt:P21 wd:Q6581072 ; wdt:P106 wd:Q82955 ; wdt:P27 wd:Q142 . FILTER (EXISTS { ?politician schema:description ?desc . FILTER (LANG(?desc) = "en" && STRSTARTS(?desc, "French politician")) }) FILTER (NOT EXISTS { ?politician schema:description ?descAr . FILTER (LANG(?descAr) = "ar") }) } LIMIT 50

Who are the female French politicians who have an English Wikipedia description beginning with "French politician" and do not have an Arabic description?

List all female politicians from France whose English Wikipedia description starts with "French politician" and who do not have an Arabic-language description.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> ; <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q82955> ; <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q142> . FILTER ( ( NOT EXISTS { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( ( LANG ( ?var2 ) = "ar" ) ) ) . } ) ) . FILTER ( ( EXISTS { ?var1 <http://schema.org/description> ?var2 . FILTER ( ( CONTAINS ( ?var2 , "string1" ) ) ) . } ) ) . }


Question: Which film has the film-documentaire.fr ID 18111?

SELECT ?film WHERE { ?film wdt:P3673 "18111" . }

What is the title of the film identified by 18111 in the film-documentaire.fr database?

Tell me the Wikidata item for the film with ID 18111 in film-documentaire.fr.

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


Question: What entities have the Twitter username "TebeoTV_Tebesud", and which one has the most Wikipedia articles?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?entity ?username WHERE {
  ?entity wdt:P2002 ?username .
  FILTER(?username = "TebeoTV_Tebesud")
}
ORDER BY DESC(wikibase:sitelinks)

Which Wikidata items are associated with the Twitter handle TebeoTV_Tebesud?

Can you list the entities that use TebeoTV_Tebesud as their X (Twitter) username, sorted by how widely they are covered on Wikipedia?

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


Question: Is Y-DNA haplogroup a subclass of haplogroup?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q42262353 wdt:P279 wd:Q80686 .
}

Does the Y-DNA haplogroup belong to the broader category of haplogroups?

Confirm that Y-DNA haplogroup is classified as a type of haplogroup.

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


Question: Which Wikidata items have Twitter usernames "alt_J", "The_Hives", or "Hit_infos"?

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

What are the Wikidata entities associated with the Twitter handles "alt_J", "The_Hives", and "Hit_infos"?

Show me the Wikidata items linked to the Twitter accounts alt_J, The_Hives, and Hit_infos.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "Lemuriapop" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "douchkaaa" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "Lemon_mag" ) ( "string23" ) ( "rockfanch" ) ( "lavilliers" ) ( "string24" ) ( "Orel_san" ) ( "string25" ) ( "The_Hives" ) ( "alt_J" ) ( "string26" ) ( "string27" ) ( "string28" ) ( "hivescake" ) ( "string29" ) ( "Hit_infos" ) ( "string30" ) ( "string31" ) ( "string32" ) ( "string33" ) ( "string34" ) } } ORDER BY ASC( ?var3 )


Question: What are the different language labels for the cultural movement "modernism"?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?modernism ?modernismLabel WHERE {
  BIND( wd:Q878985 AS ?modernism ) .
  ?modernism rdfs:label ?modernismLabel .
}

Show all the names of modernism in various languages from Wikidata.

How is "modernism" referred to in different languages according to Wikidata?

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/entity/Q878985> AS ?var1 ). SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Which Wikidata entities have the Twitter usernames "afpfr" or "le_gorafi"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle WHERE {
  ?item wdt:P2002 ?twitterHandle .
  FILTER(?twitterHandle = "afpfr" || ?twitterHandle = "le_gorafi")
}
ORDER BY ?item

Who or what is associated with the Twitter handles @afpfr and @le_gorafi on Wikidata?

Can you find the organizations or people linked to the Twitter accounts afpfr and le_gorafi in Wikidata?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "TF1Studio" ) ( "string3" ) ( "_TomRhodes" ) ( "gadelmaleh" ) ( "_RitzParis" ) ( "afpfr" ) ( "string4" ) ( "le_gorafi" ) ( "string5" ) ( "joannsfar" ) ( "string6" ) ( "OCSTV" ) ( "string7" ) ( "Melodybeni" ) ( "Stephbou08" ) ( "LVT_RTL" ) ( "string8" ) ( "string9" ) ( "JoelDicker" ) ( "string10" ) ( "string11" ) ( "cavousf5" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "JJAnnaud" ) ( "string16" ) } } ORDER BY ASC( ?var3 )


Question: Which entities on Wikidata have Twitter/X usernames "elonmusk", "UN", "thebeatles", or "Russia"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?username WHERE {
  ?item wdt:P2002 ?username .
  VALUES ?username {
    "elonmusk" "UN" "thebeatles" "Russia"
  }
}
ORDER BY ASC ( ?item )

Who are the entities on Wikidata that are associated with the Twitter handles @elonmusk, @UN, @thebeatles, or @Russia?

List the Wikidata items and their corresponding Twitter usernames for the accounts elonmusk, UN, thebeatles, and Russia.

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


Question: Film with film-documentaire.fr ID 37260

SELECT ?film WHERE { ?film wdt:P3673 "37260" . }

What film is identified by 37260 in film-documentaire.fr?

Tell me the name of the film that has the ID 37260 on film-documentaire.fr.

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


Question: Is Altavilla Milicia a geographic feature?

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

Is Altavilla Milicia classified as an artificial geographic entity in Wikidata?

Confirm whether Altavilla Milicia belongs to the category of artificial geographic entities.

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


Question: List all heritage sites in London boroughs with their labels, administrative areas, images, coordinates, and heritage designations.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?itemLabel ?admin ?adminLabel ?image ?coord ?heritage WHERE {
  ?borough wdt:P31 wd:Q211690 .
  ?item wdt:P131 ?borough .
  ?item p:P1435 ?heritageStmt .
  ?heritageStmt ps:P1435 ?heritage .
  ?item wdt:P625 ?coord .
  OPTIONAL {
    ?item wdt:P18 ?image .
  }
  OPTIONAL {
    ?item rdfs:label ?itemLabel .
    FILTER ( LANG( ?itemLabel ) = "en" )
  }
  OPTIONAL {
    ?borough rdfs:label ?adminLabel .
    FILTER ( LANG( ?adminLabel ) = "en" )
  }
  BIND( ?borough AS ?admin )
}

What are the heritage-designated buildings in London, and what are their locations, images, and coordinates?

Show me the names, locations, images, and heritage statuses of all listed buildings in London’s boroughs, along with their geographic coordinates.

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(0 49)"^^<http://www.opengis.net/ont/geosparql#wktLiteral> . <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#cornerEast> "POINT(0 49)"^^<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> "en". } }


Question: Which Wikidata entities have the Twitter username "TF1", sorted by Wikipedia article count?

SELECT ?entity ?username WHERE { ?entity wdt:P2002 ?username . VALUES ?username { "TF1" } } ORDER BY ASC (wikibase:sitelinks)

What entity on Wikidata has the Twitter handle "TF1", and how widely is it represented across Wikipedia?

Show me the Wikidata item for the Twitter account "TF1", ordered by the number of Wikipedia language editions it appears in.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "TF1" ) ( "string4" ) ( "RLM_Team" ) ( "string5" ) ( "string6" ) ( "ElesbedM" ) ( "string7" ) ( "string8" ) ( "rockfanch" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "Alter_K" ) ( "string12" ) ( "string13" ) ( "peermusic" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) } } ORDER BY ASC( ?var3 )


Question: Is the historic building "Hohe Straße 14" in Quedlinburg a type of software?

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

Does the timber-framed house at Hohe Straße 14 belong to any class that is a subclass of software?

Is a German heritage house like Q15115035 considered a kind of computer software?

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


Question: Is Kupjak a human settlement?

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

Does Kupjak belong to the class of human settlements, either directly or through inheritance?

Confirm whether Kupjak is classified as a human settlement via its instance or subclass relationships.

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


Question: Is the Johannes-Nepomuk-Kapelle in Birgitz categorized as software?

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

Is the chapel Johannes-Nepomuk-Kapelle in Birgitz, Austria, a type of software or a subclass of software?

Confirm whether the Johannes-Nepomuk-Kapelle, Birgitz, is an instance of any class that is a subclass of software.

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


Question: Is Haplogroup R a Y-chromosome DNA haplogroup?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
ASK WHERE {
  wd:Q617287 wdt:P31 wd:Q428875
}

Does Haplogroup R belong to the category of human Y-chromosome DNA haplogroups?

Confirm whether Haplogroup R is classified as a human Y-chromosome DNA haplogroup.

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


Question: Cities with highest population density, including population, area, and density in people per square kilometer.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?city ?cityLabel ?population ?area_m2((?population / ?area_m2) * 1000000.0 AS ?density_per_km2) WHERE {
  ?city wdt:P1082 ?population ; wdt:P31 / wdt:P279 * wd:Q515 ; p:P2046 [ rdf:type wikibase:BestRank ; psn:P2046 [ wikibase:quantityAmount ?area_m2 ] ] .
  ?city rdfs:label ?cityLabel .
  FILTER(LANG(?cityLabel) = "en")
}
ORDER BY DESC((?population / ?area_m2))

Which cities have the highest population density (people per square kilometer), and what are their population and area values?

Show me a list of cities ranked by population density (people per km²), along with their population, area in square meters, and computed density.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( ?var3 AS ?var4 )( ( ?var5 *"1000000"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var6 ) WHERE { BIND ( ( ?var2 / ?var3 ) AS ?var5 ). ?var1 <http://www.wikidata.org/prop/direct/P1082> ?var2 ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q515> ; <http://www.wikidata.org/prop/P2046> [ <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#BestRank> ; <http://www.wikidata.org/prop/statement/value-normalized/P2046> [ <http://wikiba.se/ontology#quantityAmount> ?var3 ] ] . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var5 )


Question: What are all the categories that ABBA belongs to, including broader classifications?

SELECT ?superclass ?superclassLabel WHERE { wd:Q18233 wdt:P31 ?instanceClass . ?instanceClass wdt:P279* ?superclass . ?superclass rdfs:label ?superclassLabel . FILTER(LANG(?superclassLabel) = "en") }

What are the hierarchical superclasses of the type of entity that ABBA is?

Show me all the higher-level categories that include musical groups, since ABBA is a musical group.

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


Question: List Grade I and Grade II listed library buildings in the UK with their images and administrative locations, color-coded by heritage status.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?building ?buildingLabel ?adminLabel ?heritageLabel ?image ?color ?link ?display WHERE {
  ?building ( wdt:P31 / wdt:P279 * ) wd:Q7075 , wd:Q856584 .
  ?building wdt:P131 ?admin .
  ?admin wdt:P17 wd:Q145 .
  ?building wdt:P1435 ?heritage .
  OPTIONAL {
    ?building wdt:P18 ?image .
  }
  OPTIONAL {
    ?building rdfs:label ?buildingLabel .
    FILTER ( LANG( ?buildingLabel ) = "en" )
  }
  OPTIONAL {
    ?admin rdfs:label ?adminLabel .
    FILTER ( LANG( ?adminLabel ) = "en" )
  }
  OPTIONAL {
    ?heritage rdfs:label ?heritageLabel .
    FILTER ( LANG( ?heritageLabel ) = "en" )
  }
  BIND( IF( ?heritage = wd:Q15700818 , "#800000" , IF( ?heritage = wd:Q15700834 , "#000080" , "#008000" ) ) AS ?color ) BIND( IF( BOUND( ?image ) , SUBSTR( STR( ?image ) , STRLEN( "https://commons.wikimedia.org/wiki/Special:FilePath/" ) + 1 ) , "" ) AS ?filename ) BIND( CONCAT ( "[[" , ?buildingLabel , "|Image:" , ?filename , "]]" ) AS ?link ) BIND( CONCAT ( ?buildingLabel , "\n[[File:" , ?filename , "]]" ) AS ?display )
}
GROUP BY ?building ?buildingLabel ?adminLabel ?heritageLabel ?image ?color ?link ?display

Which library buildings in the United Kingdom are designated as Grade I or Grade II listed buildings, and what are their associated images and local administrative areas?

Show me a list of library buildings in the UK that have heritage designations, including their names, locations, images, and color codes based on whether they are Grade I (red), Grade II (blue), or other (green).

SELECT ?var1 ?var2 ( SAMPLE ( ?var3 ) AS ?var3 )( MIN ( ?var4 ) AS ?var5 )( IF ( ( ?var5 = "0" ), "#800000", IF ( ( ?var5 = "1" ), "#000080", "#008000" ) ) AS ?var6 )( CONCAT ( "string1", SUBSTR ( STR ( ?var7 ) ,"31"^^<http://www.w3.org/2001/XMLSchema#integer> ,"500"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "{{!}}", ?var8Label , "]]" ) AS ?var9 )( CONCAT ( ?var2Label , "\n", "[[File:", SUBSTR ( STR ( ?var3 ) ,"52"^^<http://www.w3.org/2001/XMLSchema#integer> ,"500"^^<http://www.w3.org/2001/XMLSchema#integer> ) , "string2" ) AS ?var10 ) WHERE { BIND ( IF ( ( ?var5 = <http://www.wikidata.org/entity/Q15700818> ), "0", IF ( ( ?var5 = <http://www.wikidata.org/entity/Q15700834> ), "1", "2" ) ) AS ?var4 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q7075> , <http://www.wikidata.org/entity/Q856584> . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P1435> ?var5 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var8Label . ?var2 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } ?var7 <http://schema.org/about> ?var1 . ?var7 <http://schema.org/isPartOf> <https://en.wikipedia.org/> . } GROUP BY ?var1 ?var2 ?var2Label ?var7 ?var8Label


Question: When was the Circle of the Rhine established and when was it dissolved?

SELECT ?itemLabel ?establishmentDate ?dissolutionDate WHERE { BIND( wd:Q2147860 AS ?item ) . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") OPTIONAL { ?item wdt:P571 ?establishmentDate . } OPTIONAL { ?item wdt:P576 ?dissolutionDate . } }

Establishment and dissolution dates of the Circle of the Rhine

Can you tell me the start and end dates of the Circle of the Rhine as an administrative district?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q2147860> 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 Jared Sidney Torrance?

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

When was Jared Sidney Torrance born and when did he die, according to Wikidata?

Can you tell me the birth and death dates of Jared Sidney Torrance, the American businessman?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q6160097> 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: Chinese films with both IMDb and HKMDB IDs

SELECT ?film ?imdbId ?hkmdbId WHERE { ?film wdt:P31 wd:Q11424 . ?film wdt:P495 wd:Q148 . ?film wdt:P345 ?imdbId . ?film wdt:P2883 ?hkmdbId . } ORDER BY ?film

Which Chinese films have identifiers on both IMDb and the Hong Kong Movie Database?

List Chinese films along with their IMDb and HKMDB IDs.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q11424> . ?var1 <http://www.wikidata.org/prop/direct/P495> <http://www.wikidata.org/entity/Q148> . ?var1 <http://www.wikidata.org/prop/direct/P345> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P2883> ?var3 . } GROUP BY ?var1


Question: What is the birth date of Nicolaus Philippi Falk, and when did he die?

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(SAMPLE(?label) AS ?personLabel) ?birthDate ?deathDate WHERE {
  BIND(wd:Q5724276 AS ?person)
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
  }
  OPTIONAL {
    ?person wdt:P570 ?deathDate .
  }
  ?person rdfs:label ?label .
}
GROUP BY ?birthDate ?deathDate

Can you tell me the birth and death details of the Swedish priest Nicolaus Philippi Falk?

Who is Nicolaus Philippi Falk, and when was he born and died?

SELECT ?var1Label ?var2 ?var3 ?var4 WHERE { BIND ( <http://www.wikidata.org/entity/Q5724276> 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 movie has the EDb film ID t0008529?

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

Which film in Wikidata is identified by the EDb ID "t0008529"?

Find the Wikidata item for the movie with EDb ID t0008529.

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


Question: List 10 people whose occupation is writer.

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 ?item ?itemLabel WHERE {
  ?item wdt:P106 wd:Q36180 .
  ?item rdfs:label ?itemLabel .
  FILTER ( LANG( ?itemLabel ) = "en" )
}
LIMIT 10

Who are some writers according to Wikidata?

Show me the names of 10 individuals with the occupation of writer.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/kirjanik> . } LIMIT 10


Question: Is the 1955 Norwegian film "Bedre enn sitt rykte" classified as a film?

Does the movie "Bedre enn sitt rykte" belong to the category of films?

Confirm that "Bedre enn sitt rykte" is a film, either directly or through its class hierarchy.

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


Question: Is the female given name "Alfreda" a type of software?

Does the name Alfreda belong to a class that is a subclass of software?

Is software a category that includes given names like Alfreda?

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


Question: Is a building with a cornice a type of software?

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

Does the architectural feature known as a building with cornice belong to the category of software?

Can a building with a cornice be classified as software?

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


Question: Is Beguny a religious organization?

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

Does the Beguny sect belong to the category of religious organizations?

Confirm whether Beguny is classified as a religious organization through its subclass hierarchy.

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


Question: Is Hiltunen a surname?

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

Does the surname "Hiltunen" belong to the category of surnames through its type hierarchy?

Confirm whether Hiltunen is classified as a surname based on its type and superclass relationships.

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


Question: What are the lighthouses in Sweden with the most colors, excluding those where colors are assigned to specific parts?

SELECT ?lighthouse (SAMPLE(?label) AS ?lighthouseLabel) ( COUNT( ?color ) AS ?colorCount ) WHERE { ?lighthouse wdt:P31 wd:Q39715 . ?lighthouse wdt:P17 wd:Q34 . ?lighthouse p:P462 ?colorStatement . ?colorStatement ps:P462 ?color . OPTIONAL { ?colorStatement pq:P518 ?part . } FILTER ( !BOUND( ?part ) ) . ?lighthouse rdfs:label ?label . } GROUP BY ?lighthouse ORDER BY DESC ( ?colorCount ) ASC ( ?lighthouseLabel )

List Swedish lighthouses by the number of colors they have, but only include colors that apply to the entire structure, not just a part like the lantern or tower.

Which lighthouses in Sweden have the highest number of distinct colors, and how many colors do they have, considering only full-structure color assignments?

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q39715> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . ?var1 <http://www.wikidata.org/prop/P462> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/P462> ?var2 . OPTIONAL { ?var4 <http://www.wikidata.org/prop/qualifier/P518> ?var5 . } FILTER ( ( !( BOUND ( ?var5 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } GROUP BY ?var1 ?var1Label ORDER BY DESC( ?var3 )ASC( ?var1Label )


Question: Who was the President of the United States with the family name Obama?

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

Which U.S. president has the last name Obama?

List the person who held the office of President of the United States and whose surname is Obama.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var3Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q11696> . ?var1 <http://www.wikidata.org/prop/direct/P734> "Obama". SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fa". } }


Question: List museum objects from the Musée d'ethnographie de Genève with their catalogue numbers and English labels.

SELECT ?item ?label ?megId WHERE { ?item wdt:P4157 ?megId . ?item rdfs:label ?label . FILTER(LANG(?label) = "en") } LIMIT 1000

What are the English names and MEG catalogue IDs of items in the Musée d'ethnographie de Genève's collection?

Show me the English labels and MEG IDs of all items in the Musée d'ethnographie de Genève's online catalogue.

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


Question: Artworks created by Pierre Bonnard

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

What paintings or artworks did Pierre Bonnard create?

List the English-labeled artworks made by the French artist Pierre Bonnard.

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


Question: Is Meld a type of software?

Does Meld fall under the category of software?

Is Meld classified as software or a subclass of software?

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


Question: Deceased astronauts with their death dates, sorted by most recent death first.

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 ?astronaut ?astronautLabel ?deathDate WHERE {
  ?astronaut wdt:P31 wd:Q5 ; wdt:P450 [] ; wdt:P570 ?deathDate .
  ?astronaut rdfs:label ?astronautLabel .
  FILTER(LANG(?astronautLabel) = "en")
}
GROUP BY ?astronaut ?astronautLabel ?deathDate
ORDER BY DESC(?deathDate)

Who are the humans who were astronauts and have died, and when did they die, listed from the most recently deceased to the earliest?

List the names and death dates of all astronauts who have passed away, in order from the most recent death to the oldest.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://www.wikidata.org/prop/direct/P450> [] . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } GROUP BY ?var1 ?var1Label ?var2 ORDER BY DESC( ?var2 )


Question: What is the French-language category that tracks pages using the "capital of" property on Wikidata?

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 ?category ?label ?description WHERE {
  ?category wdt:P1659 wd:P1376 .
  ?category rdfs:label ?label .
  ?category schema:description ?description .
  FILTER(LANG(?label) = "fr")
  FILTER(LANG(?description) = "fr")
}

Which French-labeled category is associated with the property "capital of" via a related property link?

Can you show me the French label and description of the Wikimedia category that monitors usage of the capital of property?

SELECT ?var1 ?var2Label ?var3 WHERE { BIND ( <http://www.wikidata.org/prop/direct/P1376> 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 ) = "fr" ) ) ) . FILTER ( ( ( LANG ( ?var3 ) = "fr" ) ) ) . }


Question: People educated at Tel Aviv University

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person WHERE {
  ?person wdt:P69 wd:Q319239 .
}
LIMIT 10

Who are some individuals who attended Tel Aviv University?

List up to 10 alumni of Tel Aviv University.

SELECT ?var1 ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q319239> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he,en". } } LIMIT 10


Question: People educated at Tel Aviv University and their birth dates

SELECT ?person ?personLabel ?birthDate WHERE { ?person wdt:P31 wd:Q5 . ?person wdt:P69 wd:Q319239 . ?person wdt:P569 ?birthDate . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 10

Who are the humans educated at Tel Aviv University, and when were they born?

List the names and birth dates of people who studied at Tel Aviv University.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P69> <http://www.wikidata.org/entity/Q319239> . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he,en". } } LIMIT 10


Question: Which Wikidata items have Twitter usernames Lefinnois, PicduMidi, CstmarcGeo, AltaMetriS, or LCP, and how many Wikipedia articles do they have?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername ?sitelinkCount WHERE {
  ?item wdt:P2002 ?twitterUsername .
  OPTIONAL {
    ?item wikibase:sitelinks ?sitelinkCount
  }
  VALUES ?twitterUsername {
    "Lefinnois" "PicduMidi" "CstmarcGeo" "AltaMetriS" "LCP"
  }
}
ORDER BY ASC(?sitelinkCount)

Are there any entities on Wikidata with the Twitter handles Lefinnois, PicduMidi, CstmarcGeo, AltaMetriS, or LCP, and do any of them have Wikipedia pages?

Show me the Wikidata items linked to the Twitter accounts Lefinnois, PicduMidi, CstmarcGeo, AltaMetriS, and LCP, along with their Wikipedia sitelink counts if available.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "Lefinnois" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "PicduMidi" ) ( "CstmarcGeo" ) ( "string4" ) ( "AltaMetriS" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "LCP" ) ( "string12" ) ( "string13" ) ( "string14" ) } } ORDER BY ASC( ?var3 )


Question: Mountains in Italy higher than 4000 meters with their coordinates and names.

PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
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 wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?mountain ?mountainLabel ?coordinates ?unit WHERE {
  ?mountain wdt:P31 wd:Q8502 .
  ?mountain ( p:P2044 / psv:P2044 ) ?elevationValue .
  ?elevationValue wikibase:quantityUnit ?unit .
  FILTER ( ?unit = wd:Q11573 ) .
  ?elevationValue wikibase:quantityAmount ?elevationAmount .
  FILTER ( ?elevationAmount > 4000 ) .
  ?mountain wdt:P625 ?coordinates .
  ?mountain wdt:P17 wd:Q38 .
  OPTIONAL {
    ?mountain rdfs:label ?mountainLabel .
    FILTER ( LANG( ?mountainLabel ) = "en" )
  }
}

What are the names, coordinates, and elevations of mountains in Italy that are taller than 4000 meters?

List all mountains in Italy that exceed 4000 meters in elevation, along with their English names and geographic coordinates.

SELECT ?var1 ?var1Label ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q8502> . ?var1 ( <http://www.wikidata.org/prop/P2044> / <http://www.wikidata.org/prop/statement/value/P2044> ) ?var3 . ?var3 <http://wikiba.se/ontology#quantityUnit> ?var4 . FILTER ( ( ( ?var4 = <http://www.wikidata.org/entity/Q11573> ) ) ) . ?var3 <http://wikiba.se/ontology#quantityAmount> ?var5 . FILTER ( ( ( ?var5 > "4000"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ) . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q38> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de". } }


Question: Which French media outlets and departments have Twitter accounts, and how many Wikipedia pages link to them?

SELECT ?item ?username (COUNT(?sitelink) AS ?sitelinks) WHERE { ?item wdt:P2002 ?username . ?sitelink schema:about ?item ; schema:isPartOf ?site . VALUES ?username { "BFMTV" "LaTribune" "Bordeaux" "sudouest" "gironde" "cddordogne" "France2tv" } } GROUP BY ?item ?username ORDER BY ASC (?sitelinks)

What are the Twitter usernames of French media organizations and departments like BFMTV, Sud-Ouest, and Dordogne, and how many language versions of Wikipedia have articles about them?

List the Twitter handles of major French media and regional departments, sorted by the number of Wikipedia language editions that mention them.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "gironde" ) ( "BxMetro" ) ( "Bordeaux" ) ( "sudouest" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "InseeFr" ) ( "string4" ) ( "string5" ) ( "ardeche" ) ( "cddordogne" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "lanievre" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "ecom_news" ) ( "string16" ) ( "Bordeaux7" ) ( "aqui_fr" ) ( "string17" ) ( "Tatapresse" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "Ehpadia" ) ( "string21" ) ( "autonomies" ) ( "string22" ) ( "witfm" ) ( "string23" ) ( "France2tv" ) ( "BFMTV" ) ( "string24" ) ( "LaTribune" ) ( "string25" ) ( "string26" ) ( "string27" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "string31" ) ( "Gironde" ) ( "string32" ) ( "string33" ) ( "string34" ) ( "string35" ) ( "string36" ) ( "string37" ) ( "string38" ) ( "string39" ) ( "string40" ) ( "string41" ) ( "Zehub" ) } } ORDER BY ASC( ?var3 )


Question: What is the English label, description, and Wikipedia link for Slovenia–Spain relations?

SELECT ?label ?description ?image ?coordinates ?wikipediaArticle WHERE { wd:Q23487081 rdfs:label ?label . FILTER (LANG(?label) = "en") . OPTIONAL { wd:Q23487081 schema:description ?description . FILTER (LANG(?description) = "en") . } OPTIONAL { wd:Q23487081 wdt:P18 ?image . } OPTIONAL { wd:Q23487081 wdt:P625 ?coordinates . } OPTIONAL { ?wikipediaArticle rdf:type schema:Article ; schema:about wd:Q23487081 ; schema:inLanguage "en" ; schema:isPartOf <https://en.wikipedia.org/> . } }

Can you show me the English Wikipedia page for Slovenia–Spain relations, along with its description and any associated image or coordinates?

Tell me about Slovenia–Spain relations: what’s its official name in English, its description, and where can I read about it on Wikipedia?

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


Question: Which organizations have the Twitter usernames "RS_Barbey" or "BxMetro"?

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

What entities are associated with the Twitter accounts @RS_Barbey and @BxMetro?

Can you find the Wikidata items for the Twitter handles RS_Barbey and BxMetro?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "RS_Barbey" ) ( "string1" ) ( "tampleband" ) ( "BangsMiki" ) ( "TampleBand" ) ( "uatea" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "deerhunter" ) ( "assouvs" ) ( "SintoPap" ) ( "string6" ) ( "string7" ) ( "BxMetro" ) ( "Bordeaux" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "gwardeath" ) ( "BLACKAPAR" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "PiasFrance" ) ( "2hetquart" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) } } ORDER BY ASC( ?var3 )


Question: Is Jonas Johansson a human?

Does Jonas Johansson belong to the class of humans?

Is human a type that Jonas Johansson is an instance of?

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


Question: Is Södra hällarna a protected area?

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

Does Södra hällarna belong to a category that is a type of protected area?

Is Södra hällarna classified as a protected area?

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


Question: What film has the Cineplex Germany film ID 155264?

SELECT ?film WHERE { ?film wdt:P3077 "155264" . }

Which movie in Wikidata is identified by the Cineplex ID 155264?

I need to find the Wikidata item for the film with Cineplex Germany film ID 155264.

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


Question: People born between year 0 and year 32 with their birth date precision

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT DISTINCT ?person ?personLabel ?birthDate ?precision WHERE {
  ?person p:P569 ?birthStatement .
  ?birthStatement psv:P569 ?birthValue .
  ?birthValue wikibase:timeValue ?birthDate .
  ?birthValue wikibase:timePrecision ?precision .
  FILTER(?birthDate < "+0032-00-15T00:00:00Z" ^^ xsd:dateTime)
  FILTER(?birthDate > "+0000-00-00T00:00:00Z" ^^ xsd:dateTime)
  OPTIONAL {
    ?person rdfs:label ?personLabel .
    FILTER(LANG(?personLabel) = "en")
  }
}
LIMIT 1000

Who were born after year 0 and before year 32, and what is the precision of their birth dates?

List individuals born in the first 32 years of the calendar with their exact birth dates and how precise those dates are.

SELECT DISTINCT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/P569> ?var4 . ?var4 <http://www.wikidata.org/prop/statement/value/P569> ?var5 . ?var5 <http://wikiba.se/ontology#timeValue> ?var2 . ?var5 <http://wikiba.se/ontology#timePrecision> ?var3 . FILTER ( ( ( ?var2 < "+0032-00-15T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ( ?var2 > "+0000-00-00T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } } LIMIT 1000


Question: List of humans with English labels from Wikidata

SELECT ?human ?humanLabel WHERE { ?human wdt:P31 wd:Q5 . ?human rdfs:label ?humanLabel . FILTER(LANG(?humanLabel) = "en") } LIMIT 100000

Who are some humans listed in Wikidata with their English names?

Show me 100,000 humans from Wikidata along with their English labels.

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


Question: Is the encyclopedia article "Égout" considered a human?

Does the entity Q47000201 belong to the human category either directly or through inheritance?

Is an article from the 19th-century French architectural dictionary classified as a human?

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


Question: People educated at Syracuse University College of Law

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?person WHERE {
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P69 wd:Q7663080 .
}
LIMIT 500

Who are the humans that attended Syracuse University College of Law?

List all alumni of the Syracuse University College of Law.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P131> )* <http://www.wikidata.org/entity/Q7663080> . } LIMIT 500


Question: What film has the Box Office Mojo ID "luther"?

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

Which movie is identified by the Box Office Mojo film ID "luther"?

Find the Wikidata item for the film whose Box Office Mojo identifier is "luther".

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


Question: Which film has the Scope.dk ID 2998?

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

What is the Wikidata item for the film identified as 2998 on Scope.dk?

Find the film in Wikidata that corresponds to the Scope.dk film ID 2998.

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


Question: Humans educated at the United States Military Academy

SELECT DISTINCT ?human WHERE { ?human wdt:P31 wd:Q5 . ?human wdt:P69 wd:Q9219 . } LIMIT 500

Who are the people who attended the United States Military Academy?

List 500 individuals who graduated from the United States Military Academy.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P69> ?var2 . ?var2 ( <http://www.wikidata.org/prop/direct/P279> | <http://www.wikidata.org/prop/direct/P131> )* <http://www.wikidata.org/entity/Q9219> . } LIMIT 500


Question: Subclasses of acquired metabolic disease and their number of associated diseases

SELECT ?subclass ?subclassLabel (COUNT(?instance) AS ?instanceCount) WHERE { ?subclass wdt:P279 wd:Q18553699 . ?instance (wdt:P31/wdt:P279*) ?subclass . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } GROUP BY ?subclass ?subclassLabel ORDER BY DESC(?instanceCount)

What are the subclasses of acquired metabolic disease, and how many diseases are classified under each?

List the subclasses of acquired metabolic disease along with the count of diseases in each subclass, using English labels.

SELECT DISTINCT * WHERE { { SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18553699> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { SELECT ?var4 ?var4Label ?var2 ?var3 WHERE { { SELECT ?var4 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q18553699> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . } GROUP BY ?var4 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } }


Question: Top 50 most common occupations on Wikidata by number of people.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?occupation ?occupationLabel ?count WHERE {
  {
    SELECT ?occupation(COUNT(?person) AS ?count) WHERE {
      ?person wdt:P106 ?occupation .
    }
    GROUP BY ?occupation
    ORDER BY DESC(?count)
    LIMIT 1000
  }
  ?occupation rdfs:label ?occupationLabel .
  FILTER(LANG(?occupationLabel) = "en")
}
ORDER BY DESC(?count)
LIMIT 50

What are the 50 most popular occupations in Wikidata, and how many people are associated with each?

Show me the top 50 occupations with the highest number of people listed, along with their English labels and counts.

SELECT ?var1 ?var1Label ?var2 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P106> ?var1 . } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1000 } FILTER ( ( !( BOUND ( ?var4 ) ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,es,pl,ja,zh,ru". } } ORDER BY DESC( ?var2 ) LIMIT 50


Question: Extract prefix, suffix, and cleaned version of ISBN-13 identifiers from Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?isbn ?prefix ?suffix ?cleaned_isbn WHERE {
  ?item wdt:P212 ?isbn .
  FILTER(STRSTARTS(?isbn , "978"))
  BIND(STRBEFORE(?isbn , "-") AS ?prefix)
  BIND(STRAFTER(?isbn , "-") AS ?suffix)
  BIND(REPLACE(?isbn , "-" , "") AS ?cleaned_isbn)
}
LIMIT 1

For books with ISBN-13 identifiers, what are the parts before and after the first hyphen, and what does the ISBN look like without any hyphens?

Show me the ISBN-13, its prefix (before the first hyphen), the remaining part after the first hyphen, and the hyphen-free version for one book in Wikidata.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { VALUES ( ?var1 ) { ( "string1" ) } BIND ( STRBEFORE ( ?var1 , "-" ) AS ?var2 ). BIND ( STRAFTER ( ?var1 , "-" ) AS ?var3 ). BIND ( REPLACE ( ?var1 , "-", "" ) AS ?var4 ). }


Question: Image of the person with SNAC ARK ID w6bd94fz

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6bd94fz?

Show me the photo of the individual identified by the SNAC ARK ID w6bd94fz.

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


Question: Image of Joseph T. McNarney with SNAC ARK ID w6k64h9x

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

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

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

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


Question: Which organizations on Wikidata have the Twitter/X usernames "YouTube" and "Seagate"?

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

Find the Wikidata items for the Twitter accounts @YouTube and @Seagate.

What entities in Wikidata are associated with the Twitter usernames "YouTube" and "Seagate"?

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "BloOpGreG" ) ( "asglnb" ) ( "string2" ) ( "string3" ) ( "ASGLNB" ) ( "YouTube" ) ( "string4" ) ( "petitgas12" ) ( "string5" ) ( "waxxgyver" ) ( "TopAchat" ) ( "string6" ) ( "Seagate" ) ( "AMD_France" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "htcvive" ) ( "string12" ) ( "string13" ) ( "string14" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata entities have the Twitter handles "Airbus" or "AirbusPRESS"?

SELECT ?entity ?twitterHandle WHERE { ?entity p:P2002 ?stmt . ?stmt ps:P2002 ?twitterHandle . VALUES ?twitterHandle { "Airbus" "AirbusPRESS" } }

What are the Wikidata items associated with the Twitter usernames "Airbus" and "AirbusPRESS"?

Find the Wikidata entities linked to the Twitter accounts "Airbus" and "AirbusPRESS".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "GozarZargo" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "kimifcl29" ) ( "yonamal" ) ( "string5" ) ( "SoshiQuest" ) ( "YceMkd" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "FCLorient" ) ( "Benn_Nuuts" ) ( "string10" ) ( "Cabot_Jim" ) ( "string11" ) ( "string12" ) ( "AdlineLR" ) ( "AdamsSarr" ) ( "SissoeffG" ) ( "string13" ) ( "string14" ) ( "pythou29" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "Airbus" ) } } ORDER BY ASC( ?var3 )


Question: What film has the film-documentaire.fr ID 34420?

SELECT ?film WHERE { ?film wdt:P3673 "34420" . }

Which movie is identified by the number 34420 in the French film database film-documentaire.fr?

Find the Wikidata item for the film with identifier 34420 in film-documentaire.fr.

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


Question: List biological species with their TAXREF IDs.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?taxon ?taxonLabel ?taxrefId WHERE {
  ?taxon wdt:P3186 ?taxrefId .
  ?taxon rdfs:label ?taxonLabel .
  FILTER ( LANG( ?taxonLabel ) = "en" )
}
LIMIT 10

What are the English names of biological taxa and their TAXREF identifiers?

Show me the scientific names of species along with their TAXREF IDs from Wikidata.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P3186> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } LIMIT 10


Question: What are the films directed by Christopher Nolan, and what are their English titles and images?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?film(SAMPLE(?filmLabel) AS ?label) ?image WHERE {
  ?film wdt:P57 wd:Q25191 .
  OPTIONAL {
    ?film wdt:P18 ?image .
  }
  ?film rdfs:label ?filmLabel .
  FILTER(LANGMATCHES(LANG(?filmLabel) , "en"))
}
GROUP BY ?film ?image

Show me the list of movies directed by Christopher Nolan with their official English titles and available posters or logos.

Which films did Christopher Nolan direct, and which ones have official images on Wikimedia Commons?

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


Question: Classes of organizations with PermID identifiers and their superclasses, ranked by count.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?classLabel ?superclassLabel ( COUNT( ?item ) AS ?count ) ( SAMPLE( ?item ) AS ?example ) WHERE {
  ?item wdt:P31 ?class .
  ?item wdt:P3347 ?permId .
  ?class wdt:P279 ?superclass .
  ?class rdfs:label ?classLabel .
  ?superclass rdfs:label ?superclassLabel .
  FILTER ( LANG( ?classLabel ) = "en" ) FILTER ( LANG( ?superclassLabel ) = "en" )
}
GROUP BY ?classLabel ?superclassLabel
ORDER BY DESC ( ?count )

What are the most common types of organizations that have a PermID, and what broader categories do they belong to?

Show me the top classes of entities with PermIDs, their superclass categories, how many entities are in each class, and one example entity.

SELECT ?var1Label ?var2Label ( COUNT ( ?var3 ) AS ?var4 )( SAMPLE ( ?var3 ) AS ?var5 ) WHERE { ?var3 <http://www.wikidata.org/prop/direct/P31> ?var1 . ?var3 <http://www.wikidata.org/prop/direct/P3347> ?var6 . ?var1 <http://www.wikidata.org/prop/direct/P31> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } } GROUP BY ?var2Label ?var1Label ORDER BY DESC( ?var4 )


Question: What are the superclass categories of ambassador of the German Reich?

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

What broader professional categories does the role of ambassador of the German Reich belong to?

Show me the hierarchy of classes that include the position of ambassador of the German Reich.

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


Question: What are the places in the United Kingdom whose names end in "ow" or "itz", and what are their coordinates and images?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 wdt:P17 wd:Q145 . ?var1 wdt:P625 ?var2 . ?var1 rdfs:label ?var1Label . FILTER (LANG(?var1Label) = "en") . FILTER (REGEX(?var1Label, "(ow|itz)$")) . OPTIONAL { ?var1 wdt:P18 ?var3 . } }

Show me English-named locations in Britain that end with "ow" or "itz", along with their geographic coordinates and any associated images from Wikimedia Commons.

Can you list UK towns and villages ending in "ow" or "itz", including where they are located on a map and if there's a photo available?

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q145> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var2 . FILTER ( ( REGEX ( ?var1Label , "(ow|itz)$" ) ) ) . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: People born in 1575 and their labels

SELECT ?label ?birthDate WHERE { ?person wdt:P569 ?birthDate . OPTIONAL { ?person rdfs:label ?label . } FILTER (?birthDate >= "1575-01-01T00:00:00Z"^^xsd:dateTime && ?birthDate <= "1575-12-31T23:59:59Z"^^xsd:dateTime) } ORDER BY ASC(?birthDate)

Who were born in the year 1575, and what are their names in any language?

List all individuals born in 1575 along with their labels, sorted by birth date.

SELECT ?var1 ?var2 WHERE { ?var3 <http://www.wikidata.org/prop/direct/P569> ?var2 . OPTIONAL { ?var3 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "el" ) ) ) . } FILTER ( ( ( ?var2 >= "575-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "575-12-31T23:59:59Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . FILTER ( ( ?var1 ) ) . } ORDER BY ASC( ?var2 )


Question: What country and city is the Czech Environmental Information Agency located in?

SELECT DISTINCT ?location ?locationLabel WHERE { wd:Q11281626 (wdt:P30 | wdt:P17 | wdt:P131 | wdt:P376 | wdt:P501) ?location . OPTIONAL { ?location rdfs:label ?locationLabel . FILTER(LANG(?locationLabel) = "en") } }

Can you tell me the administrative and national location of the Czech Environmental Information Agency?

Where is the Czech Environmental Information Agency situated in terms of country and city?

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


Question: Which chemical compounds have valid CAS registry numbers according to the check digit algorithm?

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?cas ?valid WHERE {
  ?item wdt:P231 ?cas .
  BIND(REPLACE(STR(?cas) , "-" , "") AS ?clean)
  BIND(STRLEN(?clean) AS ?len)
  BIND(SUBSTR(?clean , ?len , 1) AS ?lastChar)
  BIND(xsd:integer(?lastChar) AS ?checkDigit)
  BIND(IF(?len > 1 , xsd:integer(SUBSTR(?clean , ?len - 1 , 1)) , 0) AS ?d1)
  BIND(IF(?len > 2 , xsd:integer(SUBSTR(?clean , ?len - 2 , 1)) , 0) AS ?d2)
  BIND(IF(?len > 3 , xsd:integer(SUBSTR(?clean , ?len - 3 , 1)) , 0) AS ?d3)
  BIND(IF(?len > 4 , xsd:integer(SUBSTR(?clean , ?len - 4 , 1)) , 0) AS ?d4)
  BIND(IF(?len > 5 , xsd:integer(SUBSTR(?clean , ?len - 5 , 1)) , 0) AS ?d5)
  BIND(IF(?len > 6 , xsd:integer(SUBSTR(?clean , ?len - 6 , 1)) , 0) AS ?d6)
  BIND(IF(?len > 7 , xsd:integer(SUBSTR(?clean , ?len - 7 , 1)) , 0) AS ?d7)
  BIND(IF(?len > 8 , xsd:integer(SUBSTR(?clean , ?len - 8 , 1)) , 0) AS ?d8)
  BIND(IF(?len > 9 , xsd:integer(SUBSTR(?clean , ?len - 9 , 1)) , 0) AS ?d9)
  BIND((?d1 * 1 + ?d2 * 2 + ?d3 * 3 + ?d4 * 4 + ?d5 * 5 + ?d6 * 6 + ?d7 * 7 + ?d8 * 8 + ?d9 * 9) AS ?weightedSum)
  BIND((?weightedSum -(xsd:integer(?weightedSum / 10) * 10)) AS ?computedCheck)
  BIND(?computedCheck = ?checkDigit AS ?valid)
}
ORDER BY ?cas

How can I identify chemical substances in Wikidata whose CAS numbers are correctly validated by the standard check digit rule?

List all chemical compounds from Wikidata along with their CAS numbers and indicate which ones have a valid check digit.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { BIND ( REGEX ( "100-000-5", "string1" ) AS ?var3 ). BIND ( REPLACE ( STR ( ?var2 ) , "-", "" ) AS ?var5 ). BIND ( STRLEN ( ?var5 ) AS ?var6 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ?var6 ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var7 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var8 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var10 ). BIND ( IF ( ( ?var6 > "4"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var11 ). BIND ( IF ( ( ?var6 > "5"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-5"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var12 ). BIND ( IF ( ( ?var6 > "6"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-6"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var13 ). BIND ( IF ( ( ?var6 > "7"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-7"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var14 ). BIND ( IF ( ( ?var6 > "8"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-8"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var15 ). BIND ( IF ( ( ?var6 > "9"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-9"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var16 ). BIND ( ( ( ( ( ( ( ( ( ?var8 + ( ?var9 *"2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var10 *"3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var11 *"4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var12 *"5"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var13 *"6"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var14 *"7"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var15 *"8"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var16 *"9"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var17 ). BIND ( ( ?var17 - ( <http://www.w3.org/2001/XMLSchema#integer> ( ( ?var17 /"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) *"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var18 ). BIND ( ( ?var18 = ?var7 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P231> ?var2 . } ORDER BY ASC( ?var2 )


Question: Chemical compounds with valid CAS registry numbers

SELECT ?chemical ?casNumber ?isValid WHERE { ?chemical wdt:P231 ?casNumber . FILTER( REGEX( STR(?casNumber), "^[0-9]{1,7}-[0-9]{1,2}-[0-9]$" ) ) BIND( REPLACE( STR(?casNumber), "-", "" ) AS ?digitsOnly ) BIND( STRLEN(?digitsOnly) AS ?len ) BIND( xsd:integer( SUBSTR(?digitsOnly, ?len, 1) ) AS ?checkDigit ) BIND( IF( ?len > 1, xsd:integer( SUBSTR(?digitsOnly, ?len - 1, 1) ), 0 ) AS ?d1 ) BIND( IF( ?len > 2, xsd:integer( SUBSTR(?digitsOnly, ?len - 2, 1) ), 0 ) AS ?d2 ) BIND( IF( ?len > 3, xsd:integer( SUBSTR(?digitsOnly, ?len - 3, 1) ), 0 ) AS ?d3 ) BIND( IF( ?len > 4, xsd:integer( SUBSTR(?digitsOnly, ?len - 4, 1) ), 0 ) AS ?d4 ) BIND( IF( ?len > 5, xsd:integer( SUBSTR(?digitsOnly, ?len - 5, 1) ), 0 ) AS ?d5 ) BIND( IF( ?len > 6, xsd:integer( SUBSTR(?digitsOnly, ?len - 6, 1) ), 0 ) AS ?d6 ) BIND( IF( ?len > 7, xsd:integer( SUBSTR(?digitsOnly, ?len - 7, 1) ), 0 ) AS ?d7 ) BIND( IF( ?len > 8, xsd:integer( SUBSTR(?digitsOnly, ?len - 8, 1) ), 0 ) AS ?d8 ) BIND( IF( ?len > 9, xsd:integer( SUBSTR(?digitsOnly, ?len - 9, 1) ), 0 ) AS ?d9 ) BIND( ( ?d1 * 1 + ?d2 * 2 + ?d3 * 3 + ?d4 * 4 + ?d5 * 5 + ?d6 * 6 + ?d7 * 7 + ?d8 * 8 + ?d9 * 9 ) AS ?weightedSum ) BIND( ( ?weightedSum - ( xsd:integer( ?weightedSum / 10 ) * 10 ) ) AS ?computedCheck ) BIND( ( ?computedCheck = ?checkDigit ) AS ?isValid ) } ORDER BY ASC(?casNumber)

Which chemical substances have correctly formatted and checksum-validated CAS numbers?

List all chemical compounds from Wikidata along with their CAS numbers and confirm they are valid.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { BIND ( REGEX ( ?var2 , "string1" ) AS ?var3 ). BIND ( REPLACE ( STR ( ?var2 ) , "-", "" ) AS ?var5 ). BIND ( STRLEN ( ?var5 ) AS ?var6 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ?var6 ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var7 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var8 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var9 ). BIND ( <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var10 ). BIND ( IF ( ( ?var6 > "4"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var11 ). BIND ( IF ( ( ?var6 > "5"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-5"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var12 ). BIND ( IF ( ( ?var6 > "6"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-6"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var13 ). BIND ( IF ( ( ?var6 > "7"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-7"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var14 ). BIND ( IF ( ( ?var6 > "8"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-8"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var15 ). BIND ( IF ( ( ?var6 > "9"^^<http://www.w3.org/2001/XMLSchema#integer> ), <http://www.w3.org/2001/XMLSchema#integer> ( SUBSTR ( ?var5 , ( ?var6 +"-9"^^<http://www.w3.org/2001/XMLSchema#integer> ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var16 ). BIND ( ( ( ( ( ( ( ( ( ?var8 + ( ?var9 *"2"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var10 *"3"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var11 *"4"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var12 *"5"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var13 *"6"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var14 *"7"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var15 *"8"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) + ( ?var16 *"9"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var17 ). BIND ( ( ?var17 - ( <http://www.w3.org/2001/XMLSchema#integer> ( ( ?var17 /"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) *"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) AS ?var18 ). BIND ( ( ?var18 = ?var7 ) AS ?var4 ). ?var1 <http://www.wikidata.org/prop/direct/P231> ?var2 . } ORDER BY ASC( ?var2 )


Question: Which Twitter accounts (CfdtBerger, YouTube, CFDT, kassovitz1) have the fewest Wikipedia sitelinks?

SELECT ?item ?username (COUNT(?sitelink) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?username . ?sitelink schema:about ?item . ?sitelink schema:isPartOf ?site . VALUES ?username { "CfdtBerger" "YouTube" "CFDT" "kassovitz1" } } GROUP BY ?item ?username ORDER BY ASC (?sitelinkCount)

How many Wikipedia links do the Twitter accounts CfdtBerger, YouTube, CFDT, and kassovitz1 have, sorted from least to most?

Show me the Twitter usernames of Laurent Berger, YouTube, CFDT, and Mathieu Kassovitz along with their Wikipedia sitelink counts, ordered by the smallest number of links first.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "CfdtBerger" ) ( "PoliceSCSI" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "YouTube" ) ( "CFDT" ) ( "string5" ) ( "kassovitz1" ) ( "string6" ) ( "UNSAPOLICE" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "SNAPATSIBN" ) ( "UffaCFDT" ) ( "dgafp" ) ( "string11" ) ( "string12" ) } } ORDER BY ASC( ?var3 )


Question: People with grave images but no recorded burial place, in English.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?image ?personLabel WHERE {
  ?person wdt:P1442 ?image . MINUS {
    ?person wdt:P119 [] .
  }
  ?person rdfs:label ?personLabel .
  FILTER ( LANG( ?personLabel ) = "en" )
}
ORDER BY ASC ( ?personLabel )

Who are the people whose graves have photos on Wikimedia Commons but whose burial locations are not listed in Wikidata?

List the names and grave images of people who don’t have a known burial place, sorted alphabetically by name.

SELECT DISTINCT ?var1 ?var2 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1442> ?var2 . MINUS { ?var1 <http://www.wikidata.org/prop/direct/P119> [] . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } } ORDER BY ASC( ?var1Label )


Question: Which Wikidata entities have Twitter usernames including lequipe, EquipeFDJ, HugoHoule, ledauphine, p_latour, Ardeche_07, or MLivron?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "lequipe" "EquipeFDJ" "HugoHoule" "ledauphine" "p_latour" "Ardeche_07" "MLivron"
  }
}

Who are the people or organizations on Wikidata with Twitter accounts @lequipe, @EquipeFDJ, @HugoHoule, @ledauphine, @p_latour, @Ardeche_07, or @MLivron?

List the Wikidata items and their Twitter handles for the accounts: lequipe, EquipeFDJ, HugoHoule, ledauphine, p_latour, Ardeche_07, and MLivron.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "EquipeFDJ" ) ( "string3" ) ( "ledauphine" ) ( "LeDL26et07" ) ( "string4" ) ( "MLivron" ) ( "Ardeche_07" ) ( "string5" ) ( "string6" ) ( "p_latour" ) ( "lequipe" ) ( "string7" ) ( "string8" ) ( "YouTube" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "HugoHoule" ) } } ORDER BY ASC( ?var3 )


Question: What is the Wikidata item for the Wikipedia page about Ronald Reagan?

PREFIX schema: <http://schema.org/>
SELECT ?item WHERE {
  <https://en.wikipedia.org/wiki/Ronald_Reagan> schema:about ?item .
}

Which Wikidata entity corresponds to the English Wikipedia article on Ronald Reagan?

Can you find the Wikidata ID for Ronald Reagan using his Wikipedia page?

SELECT ?var1 WHERE { <https://en.wikipedia.org/wiki/Ronald_Reagan> <http://schema.org/about> ?var1 . }


Question: Who has the Twitter username "greta"?

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

Which person is associated with the Twitter handle "greta"?

Find the Wikidata entity for the Twitter username "greta".

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "greta" ) ( "string6" ) ( "reddy1408" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "WordSparks" ) ( "string10" ) ( "uh_emm" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "xMinkiex" ) ( "string14" ) ( "jaffag1" ) ( "aimasters" ) ( "string15" ) ( "string16" ) ( "D10antKC" ) } }


Question: Image of the person with SNAC ARK ID w6m3395j

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

What is the Wikimedia Commons image associated with the SNAC ARK ID w6m3395j?

Can you show me the portrait or image linked to Abigail May Alcott Nieriker in Wikidata, using her SNAC ARK ID w6m3395j?

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


Question: Wikidata items with Twitter usernames: LaceySturm, Kachelmann, bild, 20min, olibrecht, hr1, hr3, FFHde, uwz_de, SWRAktuell

SELECT ?item ?twitterUsername WHERE { ?item wdt:P2002 ?twitterUsername . VALUES ?twitterUsername { "LaceySturm" "Kachelmann" "bild" "20min" "olibrecht" "hr1" "hr3" "FFHde" "uwz_de" "SWRAktuell" } }

Which people or organizations on Wikidata have the Twitter usernames LaceySturm, Kachelmann, bild, 20min, olibrecht, hr1, hr3, FFHde, uwz_de, or SWRAktuell?

Find the Wikidata entities that are associated with the Twitter accounts LaceySturm, Kachelmann, bild, 20min, olibrecht, hr1, hr3, FFHde, uwz_de, and SWRAktuell.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 . VALUES ( ?var2 ) { ( "string1" ) ( "LaceySturm" ) ( "string2" ) ( "Kachelmann" ) ( "bild" ) ( "20min" ) ( "string3" ) ( "olibrecht" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "hr1" ) ( "hr3" ) ( "FFHde" ) ( "string16" ) ( "string17" ) ( "uwz_de" ) ( "string18" ) ( "string19" ) ( "SWRAktuell" ) } }


Question: Artworks in the Metropolitan Museum of Art that depict ships, with their titles, Wikipedia pages, and images.

SELECT DISTINCT ?item ?itemTitle ?wikipediaPage (SAMPLE(?image) AS ?sampledImage)
WHERE {
  ?item wdt:P195 wd:Q160236 .           # In the Metropolitan Museum of Art collection
  ?item wdt:P180 wd:Q11446 .            # Depicts a ship
  OPTIONAL {
    ?item wdt:P18 ?image .              # Has an image
  }
  OPTIONAL {
    ?wikipediaPage schema:about ?item ;
                   schema:isPartOf <https://en.wikipedia.org/> .
  }
  ?item wdt:P1476 ?itemTitle .          # Get the title of the artwork
}
GROUP BY ?item ?itemTitle ?wikipediaPage
LIMIT 50

What artworks in the Metropolitan Museum of Art’s collection show ships, and what are their titles, Wikipedia links, and images?

Show me the titles, Wikipedia articles, and images of all ship-depicting artworks in the Metropolitan Museum of Art’s collection.

SELECT DISTINCT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P195> <http://www.wikidata.org/entity/Q160236> . ?var1 <http://www.wikidata.org/prop/direct/P180> <http://www.wikidata.org/entity/Q11446> . OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . } OPTIONAL { ?var4 <http://schema.org/about> ?var1 . ?var4 <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> "[AUTO_LANGUAGE],en,fr,es,de,ru,it,nl,ja,zh,pl,cs". } } GROUP BY ?var1 ?var1Label ?var2 ?var4 LIMIT 50


Question: What administrative regions and continents include Sketty?

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

What places is Sketty part of, going up from suburb to continent?

List all geographic and political entities that Sketty belongs to, from local to continental level.

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


Question: Humans in Wikidata with no external URLs or source references

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 ?human ?label WHERE {
  ?human wdt:P31 wd:Q5 .
  ?human rdfs:label ?label .
  FILTER(LANG(?label) = "en")
  FILTER NOT EXISTS {
    ?human wdt:P973 [] .
  }
  FILTER NOT EXISTS {
    ?human wdt:P1343 [] .
  }
}
LIMIT 1

Which humans in Wikidata have no external website links or described-by-source claims?

Show me a human entity from Wikidata that has no URL or source citation and an English label.

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q25485273> ) } ?var1 <http://wikiba.se/ontology#sitelinks> "0"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://wikiba.se/ontology#identifiers> "0"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> ; <http://wikiba.se/ontology#statements> ?var2 . MINUS { [] ?var5 ?var1 . } OPTIONAL { ?var1 ?var3 [ <http://www.w3.org/ns/prov#wasDerivedFrom> [ ?var4 [] ] ] . } MINUS { ?var1 <http://www.wikidata.org/prop/P973> [] . } MINUS { ?var1 <http://www.wikidata.org/prop/P1343> [] . } } ORDER BY ASC( ?var2 )


Question: Wikipedia language editions, their languages, regions where spoken, countries with that language as official, and ISO codes.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?wikipediaEdition ?wikipediaEditionLabel ?language ?languageLabel ?region ?regionLabel ?country ?countryLabel ?isoCode WHERE {
  ?wikipediaEdition wdt:P31 wd:Q10876391 .
  ?wikipediaEdition wdt:P407 ?language .
  ?language wdt:P131 ?region .
  ?country wdt:P37 ?language .
  OPTIONAL {
    ?region wdt:P300 ?isoCode .
  }
  ?wikipediaEdition rdfs:label ?wikipediaEditionLabel .
  ?language rdfs:label ?languageLabel .
  ?region rdfs:label ?regionLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?wikipediaEditionLabel) = "en")
  FILTER(LANG(?languageLabel) = "en")
  FILTER(LANG(?regionLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}

For each Wikipedia language edition, what is its language, the region where that language is spoken, which countries recognize it as official, and what is the ISO 3166-2 code of the region?

List all Wikipedia language editions along with their associated language, the administrative region where the language is spoken, any country that has that language as official, and the ISO code of the region.

SELECT ?var1 ?var1Label ?var2Label ?var3Label ?var4Label ?var5 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q10876391> . ?var1 <http://www.wikidata.org/prop/direct/P407> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var4 <http://www.wikidata.org/prop/direct/P37> ?var2 . OPTIONAL { ?var3 <http://www.wikidata.org/prop/direct/P300> ?var5 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ca,en". } }


Question: First-level administrative divisions with Catalan as official language

SELECT ?adminDivision ?adminDivisionLabel WHERE { ?adminDivision wdt:P31/wdt:P279* wd:Q10864048 ; wdt:P37 wd:Q7026 . ?adminDivision rdfs:label ?adminDivisionLabel . FILTER(LANG(?adminDivisionLabel) = "en") }

Which administrative regions have Catalan as an official language?

List all first-level administrative divisions where Catalan is the official language.

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


Question: Actors with birthplace coordinates and images on Wikimedia Commons.

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 ?actor ?actorLabel ?birthPlaceCoordinates ?image WHERE {
  ?actor wdt:P106 wd:Q33999 .
  ?actor wdt:P18 ?image .
  ?actor wdt:P19 / wdt:P625 ?birthPlaceCoordinates .
  ?actor rdfs:label ?actorLabel .
  FILTER(LANG(?actorLabel) = "en")
}

Who are the actors that have a known birthplace location with GPS coordinates and a public image on Wikimedia Commons?

List the names, birthplace coordinates, and images of all actors.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P106> <http://www.wikidata.org/entity/Q33999> . ?var1 <http://www.wikidata.org/prop/direct/P18> ?var3 . ?var1 ( <http://www.wikidata.org/prop/direct/P19> / <http://www.wikidata.org/prop/direct/P625> ) ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Is the Reuss river considered a type of software?

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

Does the Reuss river belong to a category that is a subclass of software?

Is software a broader category that includes the Reuss river?

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


Question: Which Wikidata items have Twitter handles "yjadot", "josebove", "attac_fr", or "RACFrance"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?handle WHERE {
  ?item wdt:P2002 ?handle .
  VALUES ?handle {
    "yjadot" "josebove" "attac_fr" "RACFrance"
  }
}
ORDER BY ASC ( ?handle )

Who are the people or organizations on Wikidata with the Twitter usernames yjadot, josebove, attac_fr, and RACFrance?

List the Wikidata entities associated with the Twitter handles yjadot, josebove, attac_fr, and RACFrance, sorted alphabetically by handle.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "N_Hulot" ) ( "string3" ) ( "assoCLER" ) ( "OxfamEU" ) ( "M_Aubry_" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "attac_fr" ) ( "string7" ) ( "350France" ) ( "GMeurice" ) ( "yjadot" ) ( "josebove" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "DebatPPE" ) ( "EffyGroupe" ) ( "Renovons" ) ( "gefosat" ) ( "ENERPLAN" ) ( "ser_enr" ) ( "effinergie" ) ( "LeGesec" ) ( "WWFFrance" ) ( "string13" ) ( "string14" ) ( "RACFrance" ) ( "BMWi_Bund" ) ( "m_otna" ) ( "string15" ) ( "PaulNeau" ) } } ORDER BY ASC( ?var3 )


Question: What is the title of the movie with IMDb ID tt0451279?

SELECT (STR(?title) AS ?clean_title) WHERE { ?item wdt:P345 "tt0451279" . ?item wdt:P1476 ?title . }

Can you tell me the name of the film that has the IMDb identifier tt0451279?

Which movie is associated with the IMDb ID tt0451279, and what is its title?

SELECT ?var1 WHERE { ?var2 <http://www.wikidata.org/prop/direct/P345c> "tt0451279". ?var2 <http://www.wikidata.org/prop/direct/P1476c> ?var1 . }


Question: What are the named historical air combat events in Wikidata?

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 ?instance ?instanceLabel WHERE {
  ?instance wdt:P31 wd:Q18015493 .
  ?instance rdfs:label ?instanceLabel .
  FILTER(LANG(?instanceLabel) = "en")
}
ORDER BY ?instanceLabel

List the English-labeled instances of air combat.

Show me the known air combat incidents and their English names.

SELECT DISTINCT * WHERE { { SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q18015493> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var1 . } GROUP BY ?var1 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } UNION { SELECT ?var4 ?var4Label ?var2 ?var3 WHERE { { SELECT ?var4 ( COUNT ( ?var3 ) AS ?var2 ) WHERE { ?var4 <http://www.wikidata.org/prop/direct/P279> <http://www.wikidata.org/entity/Q18015493> . ?var3 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var4 . } GROUP BY ?var4 } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } } }