Question: What properties are used to link entities to the University of Illinois Urbana–Champaign?

SELECT DISTINCT ?propItem ?propItemLabel ?propItemDescription WHERE { ?item ?prop wd:Q457281 . BIND(IRI(REPLACE(STR(?prop), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/")) AS ?propItem) . ?propItem a wikibase:Property . ?propItem rdfs:label ?propItemLabel . ?propItem schema:description ?propItemDescription . FILTER(LANG(?propItemLabel) = "en") FILTER(LANG(?propItemDescription) = "en") } LIMIT 100

Which properties in Wikidata connect people or organizations to the University of Illinois Urbana–Champaign, and what do they mean in English?

List the English labels and descriptions of all properties that are used to relate any entity to the University of Illinois Urbana–Champaign.

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


Question: What is the most recent estimated population of Russia?

SELECT ?populationValue ?time WHERE { wd:Q159 p:P1082 ?statement . ?statement ps:P1082 ?populationValue . ?statement pq:P585 ?time . } ORDER BY DESC(?time) LIMIT 1

According to Wikidata, what was Russia's population in 2025?

Can you tell me the latest population figure for Russia, including the year it was estimated?

SELECT * WHERE { <http://www.wikidata.org/entity/Q159> <http://www.wikidata.org/prop/P1082> ?var1 . ?var1 <http://www.wikidata.org/prop/statement/P1082> ?var2 . }


Question: Finnish-labeled subclasses in Wikidata

SELECT ?class ?label ?desc WHERE { ?class wdt:P279 ?parent . ?class rdfs:label ?label . ?class schema:description ?desc . FILTER(LANG(?label) = "fi") FILTER(LANG(?desc) = "fi") } LIMIT 100

What are the subclasses in Wikidata that have Finnish labels and descriptions?

List classes that are subclasses of other classes and have Finnish labels and descriptions.

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


Question: How many urban areas (tätort) and minor localities (småort) in Sweden are associated with provinces versus those that aren't?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?hasProvince ( COUNT( ?item ) AS ?totalCount ) ( SUM( ?isTätort ) AS ?tätortCount ) ( SUM( ?isSmåort ) AS ?småortCount ) WHERE {
  VALUES ?type {
    wd:Q14839548 wd:Q12813115
  }
  ?item wdt:P31 ?type .
  ?item wdt:P17 wd:Q34 .
  OPTIONAL {
    ?item wdt:P131 ?province .
    ?province wdt:P31 wd:Q193556 .
  }
  BIND( IF( BOUND( ?province ) , "has province" , "no province" ) AS ?hasProvince ) BIND( IF( ?type = wd:Q12813115 , 1 , 0 ) AS ?isTätort ) BIND( IF( ?type = wd:Q14839548 , 1 , 0 ) AS ?isSmåort )
}
GROUP BY ?hasProvince

Break down the count of Swedish tätort and småort by whether they are located within a province.

Show me the distribution of Sweden’s urban and minor localities, split by whether they have a provincial affiliation, including how many of each type fall into each group.

SELECT ?var1 ( COUNT ( ?var2 ) AS ?var3 )( SUM ( ?var4 ) AS ?var5 )( SUM ( ?var6 ) AS ?var7 ) WHERE { { BIND ( IF ( ( ?var8 = <http://www.wikidata.org/entity/Q14839548> ),"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var6 ). BIND ( IF ( ( ?var8 = <http://www.wikidata.org/entity/Q12813115> ),"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"0"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var4 ). BIND ( IF ( BOUND ( ?var9 ) , "string1", "string2" ) AS ?var1 ). } { VALUES ( ?var8 ) { ( <http://www.wikidata.org/entity/Q14839548> ) ( <http://www.wikidata.org/entity/Q12813115> ) } ?var2 <http://www.wikidata.org/prop/direct/P31> ?var8 . ?var2 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . OPTIONAL { ?var2 <http://www.wikidata.org/prop/direct/P131> ?var9 . ?var9 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q193556> . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } } GROUP BY ?var1


Question: What artworks did Vincent van Gogh create, and which museums or collections hold them?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?artwork ?collection WHERE {
  ?artwork wdt:P170 wd:Q5582 .
  ?artwork wdt:P195 ?collection .
}
LIMIT 100

Which collections contain paintings by Vincent van Gogh?

Can you list Vincent van Gogh’s artworks along with the institutions that currently hold them?

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


Question: Which Wikidata entities have the Twitter usernames "airbnb" or "AFP"?

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

Can you find the organizations on Wikidata that use "airbnb" or "AFP" as their Twitter handle?

Show me the entities linked to the Twitter accounts @airbnb and @AFP.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "ValierP" ) ( "string1" ) ( "SebYlonen" ) ( "string2" ) ( "maxmoisand" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "L_Blc24" ) ( "string6" ) ( "string7" ) ( "AJPHockey" ) ( "airbnb" ) ( "SwissHabs" ) ( "UBBrugby" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "afp" ) } } ORDER BY ASC( ?var3 )


Question: What is the Twitter/X username "CNEWS" associated with, and how many Wikipedia pages does it have?

SELECT ?item ?username (COUNT(?site) AS ?sitelinkCount) WHERE { ?item wdt:P2002 ?username . VALUES ?username { "CNEWS" } . ?site schema:about ?item ; schema:isPartOf ?wiki . } GROUP BY ?item ?username ORDER BY ASC(?sitelinkCount)

Which organization or entity uses "CNEWS" as its Twitter handle, and how many language versions of its Wikipedia page exist?

Find the entity with the Twitter username CNEWS and list the number of its Wikipedia sitelinks.

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


Question: Which French organizations have Twitter accounts among HSP_Amiens, FCNantes, AmiensSC, LesEchos, Prefet80, VilleArras, F3nord, F3Picardie, and Alain_Gest, and how many Wikipedia pages link to them?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername ( COUNT( ?sitelink ) AS ?sitelinkCount ) WHERE {
  ?item wdt:P2002 ?twitterUsername .
  ?sitelink schema:about ?item .
  FILTER ( STRSTARTS( STR( ?sitelink ) , "http" ) ) VALUES ?twitterUsername {
    "string1" "HSP_Amiens" "FCNantes" "AmiensSC" "string2" "string3" "string4" "NLavallard" "string5" "string6" "F3nord" "F3Picardie" "string7" "VilleArras" "LesEchos" "string8" "string9" "string10" "string11" "string12" "Alain_Gest" "Prefet80" "Ville_gouv"
  }
}
GROUP BY ?item ?twitterUsername
ORDER BY ASC ( ?sitelinkCount )

What are the Twitter usernames from the list including FCNantes, AmiensSC, and LesEchos that exist on Wikidata, and how many Wikipedia language versions are there for each associated entity?

Show me the entities on Wikidata that have Twitter usernames like FCNantes, AmiensSC, or LesEchos, along with the number of Wikipedia sitelinks they have, sorted by least to most links.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "HSP_Amiens" ) ( "FCNantes" ) ( "AmiensSC" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "NLavallard" ) ( "string5" ) ( "string6" ) ( "F3nord" ) ( "F3Picardie" ) ( "string7" ) ( "VilleArras" ) ( "LesEchos" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "Alain_Gest" ) ( "Prefet80" ) ( "Ville_gouv" ) } } ORDER BY ASC( ?var3 )


Question: Swedish municipalities with more than one småort (minor locality), sorted by number of localities descending.

SELECT ?municipality ?municipalityLabel ( COUNT( ?minorLocality ) AS ?count ) WHERE { ?minorLocality wdt:P31 wd:Q14839548 . ?minorLocality wdt:P17 wd:Q34 . ?minorLocality wdt:P131 ?municipality . ?municipality wdt:P31 wd:Q127448 . ?municipality rdfs:label ?municipalityLabel . FILTER ( LANG( ?municipalityLabel ) = "sv" ) } GROUP BY ?municipality ?municipalityLabel HAVING ( COUNT( ?minorLocality ) > 1 ) ORDER BY DESC( ?count ) ASC( ?municipalityLabel )

Which Swedish municipalities contain more than one minor locality, and how many do they each have?

List all Swedish municipalities that have at least two minor localities, showing the municipality name and the count of such localities, ordered by highest count first.

SELECT ?var1 ?var1Label ( COUNT ( ?var2 ) AS ?var3 ) WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q14839548> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q34> . ?var1 <http://www.wikidata.org/prop/direct/P625> ?var4 . ?var1 <http://www.wikidata.org/prop/direct/P131> ?var2 . ?var2 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q127448> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "sv,en". } } GROUP BY ?var4 ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) ORDER BY DESC( ?var3 )ASC( ?var1Label )


Question: Which organizations in Lyon have Twitter accounts named "grandlyon", "Le_Progres", or "macLyon"?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "grandlyon" "Le_Progres" "macLyon" } }

What Wikidata items are associated with the Twitter handles grandlyon, Le_Progres, and macLyon?

Show me the entities on Wikidata that use "grandlyon", "Le_Progres", or "macLyon" as their Twitter/X username.

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


Question: Which organizations or people on Wikidata have Twitter accounts "Herve_This", "Europe1", "Conforama", "afpfr", or "Meetup", and how many Wikipedia pages link to them?

PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterHandle ( COUNT( ?sitelink ) AS ?sitelinkCount ) WHERE {
  ?item wdt:P2002 ?twitterHandle .
  ?sitelink schema:about ?item ; schema:isPartOf ?wiki .
  FILTER ( STRSTARTS( STR( ?wiki ) , "https://" ) ) VALUES ?twitterHandle {
    "Herve_This" "Europe1" "Conforama" "afpfr" "Meetup"
  }
}
GROUP BY ?item ?twitterHandle
ORDER BY ASC ( ?sitelinkCount )

Can you list the Wikidata items for the Twitter handles Herve_This, Europe1, Conforama, afpfr, and Meetup, sorted by the number of Wikipedia articles about them?

Show me the Wikidata entities corresponding to these Twitter usernames — Herve_This, Europe1, Conforama, afpfr, and Meetup — along with their Wikipedia sitelink counts, ordered from least to most popular.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "CGdrawing" ) ( "string1" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "ornikkar" ) ( "SciHiBlog" ) ( "string5" ) ( "string6" ) ( "string7" ) ( "cdf1530" ) ( "Melusine_2" ) ( "LCP" ) ( "string8" ) ( "JLMPiraux" ) ( "Beautyon_" ) ( "fredlemr" ) ( "didumdida" ) ( "DB_Bahn" ) ( "afpfr" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "Herve_This" ) ( "string12" ) ( "collemyria" ) ( "string13" ) ( "skaeptisch" ) ( "pierrebrt" ) ( "benestaar" ) ( "string14" ) ( "string15" ) ( "Jean_no" ) ( "string16" ) ( "Meetup" ) ( "hatonjan" ) ( "Conforama" ) ( "tnoisette" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "Wikinade" ) ( "string20" ) ( "Europe1" ) } } ORDER BY ASC( ?var3 )


Question: List all music albums with their titles.

SELECT DISTINCT ?album ?albumLabel WHERE { ?album wdt:P31 wd:Q482994 . ?album rdfs:label ?albumLabel . } ORDER BY ASC(?albumLabel)

What are the names of all albums in Wikidata?

Show me a sorted list of all albums and their titles.

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


Question: Top main subjects of works by Katharine Jeannette Bush, with work counts and truncated titles.

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 ?count ?subjectLabel ?workLabelTruncated WHERE {
  {
    SELECT ?subject ( COUNT( ?work ) AS ?count ) WHERE {
      ?work wdt:P50 wd:Q6376201 .
      ?work wdt:P921 ?subject .
    }
    GROUP BY ?subject
    ORDER BY DESC ( ?count )
  }
  ?work wdt:P50 wd:Q6376201 .
  ?work wdt:P921 ?subject .
  ?subject rdfs:label ?subjectLabel .
  FILTER ( LANG( ?subjectLabel ) = "en" ) ?work rdfs:label ?workLabel .
  FILTER ( LANG( ?workLabel ) = "en" ) BIND( SUBSTR( ?workLabel , 1 , 60 ) AS ?workLabelTruncated )
}

What are the main subjects of the scientific works authored by Katharine Jeannette Bush, how many works are there per subject, and what are the truncated titles of those works?

Show me the count of works by Katharine Jeannette Bush grouped by their main subject, along with the subject’s name and the first 60 characters of each work’s title.

SELECT ?var1 ?var2Label ?var3Label WHERE { { SELECT ?var4 ( COUNT ( ?var5 ) AS ?var1 ) WHERE { ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q6376201> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . } GROUP BY ?var4 ORDER BY DESC( ?var1 ) } BIND ( SUBSTR ( ?var6Label ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"60"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var3Label ). ?var5 <http://www.wikidata.org/prop/direct/P50> <http://www.wikidata.org/entity/Q6376201> . ?var5 <http://www.wikidata.org/prop/direct/P921> ?var4 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var6Label . FILTER ( ( ( LANG ( ?var6Label ) = "en" ) ) ) . }


Question: What are all the music organizations and their subclasses in English?

SELECT ?item ?itemLabel WHERE { ?item (wdt:P31/wdt:P279*) wd:Q32178211 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = "en") }

List all entities that are instances of a music organization or any of its subclasses, along with their English labels.

Can you show me the names of all music-related organizations and their subtypes in English?

SELECT ?var1 ?var1Label WHERE { BIND ( <http://www.wikidata.org/prop/direct/P31> AS ?var2 ). BIND ( <http://www.wikidata.org/prop/direct/P27> AS ?var3 ). BIND ( <http://www.wikidata.org/prop/direct/P2308> AS ?var4 ). BIND ( <http://www.wikidata.org/prop/direct/P279> AS ?var5 ). BIND ( <http://www.wikidata.org/entity/Q32178211> AS ?var6 ). BIND ( <http://www.wikidata.org/entity/Q5> AS ?var7 ). BIND ( <http://www.wikidata.org/entity/Q801> AS ?var8 ). ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) ?var6 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "he, en". } }


Question: What movie has the IMDb ID tt1298644?

SELECT ?movie WHERE { ?movie wdt:P345 "tt1298644" . } ORDER BY ASC(?movie)

Which Wikidata item corresponds to the IMDb identifier tt1298644?

Find the movie in Wikidata that is identified by the IMDb ID tt1298644.

SELECT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P345> "tt1298644". } ORDER BY ASC( ?var1 )


Question: List civil parishes in Wales with their English names, geographic coordinates, and Freebase IDs.

SELECT DISTINCT ?label ?latitude ?longitude ?freebaseId WHERE { ?community (wdt:P31/wdt:P279*) wd:Q2630741 . ?community p:P625 ?statement . ?statement psv:P625 ?coordinateValue . ?coordinateValue wikibase:geoLatitude ?latitude . ?coordinateValue wikibase:geoLongitude ?longitude . ?community wdt:P646 ?freebaseId . OPTIONAL { ?community rdfs:label ?label . FILTER(LANG(?label) = "en") } } ORDER BY ASC(?label)

What are the English names, latitude, longitude, and Freebase IDs of all civil parishes in Wales?

Can you provide the coordinates and Freebase identifiers for every civil parish in Wales, along with their English labels?

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 WHERE { ?var5 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q2630741> . ?var5 <http://www.wikidata.org/prop/direct/P625> ?var6 . ?var5 <http://www.wikidata.org/prop/P625> ?var7 . ?var7 <http://www.wikidata.org/prop/statement/value/P625> ?var8 . ?var8 <http://wikiba.se/ontology#geoLatitude> ?var2 . ?var8 <http://wikiba.se/ontology#geoLongitude> ?var3 . ?var5 <http://www.wikidata.org/prop/direct/P646> ?var4 . OPTIONAL { ?var5 <http://www.w3.org/2000/01/rdf-schema#label> ?var1 . FILTER ( ( ( LANG ( ?var1 ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1 )


Question: Who are the people or groups that have India as their ancestral home?

SELECT ?entity ?statement (SAMPLE(?qualifierProperty) AS ?qualifier) WHERE { ?entity p:P66 ?statement . ?statement ps:P66 wd:Q668 . OPTIONAL { ?statement ?qualifierProperty ?qualifierValue . ?qualifierProperty wikibase:qualifier true . } } GROUP BY ?entity ?statement

Can you list all entities linked to India through ancestral home, along with their statement identifiers?

Are there any qualifiers (like time or reason) attached to claims about ancestral home in India?

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


Question: Image of Annette Kolb with SNAC ARK ID w6kh4qss

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

What is the image associated with Annette Kolb in Wikidata, given her SNAC ARK ID is w6kh4qss?

Show me the Wikimedia Commons image of the person identified by the SNAC ARK ID w6kh4qss.

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


Question: What are the coordinates of St Mary's Church in Summerstown and the administrative area it is located in?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?churchCoords ?adminCoords WHERE {
  wd:Q7594429 wdt:P625 ?churchCoords .
  OPTIONAL {
    wd:Q7594429 wdt:P131 ?adminArea .
    ?adminArea wdt:P625 ?adminCoords .
  }
}

Where is St Mary's Church located, and where is the center of the borough it belongs to?

Show the exact location of St Mary's Church and the location of its administrative region in London.

SELECT ?var1 ?var2 WHERE { <http://www.wikidata.org/entity/Q7594429> <http://www.wikidata.org/prop/direct/P625> ?var1 . OPTIONAL { <http://www.wikidata.org/entity/Q7594429> <http://www.wikidata.org/prop/direct/P131> ?var3 . ?var3 <http://www.wikidata.org/prop/direct/P625> ?var2 . } }


Question: Current members of the 12th National Assembly of Zambia, their constituencies, political parties, gender, and reference URLs.

SELECT ?person ?name ?constituency ?party ?gender ?reference WHERE { VALUES ?person { wd:Q7532178 wd:Q45383152 } ?person p:P39 ?statement . ?statement ps:P39 wd:Q18607856 ; pq:P2937 wd:Q45380990 . FILTER NOT EXISTS { ?statement pq:P582 [] . } OPTIONAL { ?statement pq:P768 ?constituency . } OPTIONAL { ?statement pq:P4100 ?party . } OPTIONAL { ?person wdt:P21 ?gender . } OPTIONAL { ?statement prov:wasDerivedFrom [ pr:P854 ?reference ] . } ?person rdfs:label ?name . FILTER(LANG(?name) = "en")}

Who are the current members of the National Assembly of Zambia from the 12th term, and what are their constituencies, political parties, genders, and official reference links?

List the English names, electoral districts, political parties, genders, and reference URLs of all current members of the 12th National Assembly of Zambia, specifically Hastings Chansa and Situmbeko Musokotwane.

SELECT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { VALUES ( ?var1 ) { ( <http://www.wikidata.org/entity/Q7532178> ) ( <http://www.wikidata.org/entity/Q45383152> ) } ?var1 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q18607856> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q45380990> . FILTER ( ( NOT EXISTS { ?var8 <http://www.wikidata.org/prop/qualifier/P582> [] . } ) ) . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P973> / <http://www.wikidata.org/prop/qualifier/P1810> ) ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var5 . } OPTIONAL { BIND ( SUBSTR ( STR ( ?var10 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P569> ?var10 . } OPTIONAL { ?var8 ( <http://www.wikidata.org/prop/qualifier/P4100> | <http://www.wikidata.org/prop/qualifier/P102> ) ?var4 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P768> ?var3 . } OPTIONAL { ?var8 <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P854> ?var7 ] . } BIND ( COALESCE ( ?var9 , ?var11 ) AS ?var2 ). ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var11 . FILTER ( ( ( LANG ( ?var11 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var12 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var14 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } }


Question: Which Wikidata items have Twitter usernames like wikidata, mjg59, or cmccrudden?

SELECT ?item ?twitter WHERE { ?item wdt:P2002 ?twitter . VALUES ?twitter { "wikidata" "mjg59" "cmccrudden" "DrJenBaker" "Valeurs" "ash_crow" "Ludovic_P_" "Pyb75" "Venefice" "Noko_Bruce" "Oujevipo" "Authueil" "ynabeat" "bismatoj" "PoulpyWP" } } ORDER BY ?twitter

Who are the people or organizations on Wikidata with Twitter accounts such as DrJenBaker, Valeurs, or ash_crow?

List all entities in Wikidata that are linked to the Twitter usernames: wikidata, mjg59, cmccrudden, DrJenBaker, Valeurs, ash_crow, Ludovic_P_, Pyb75, Venefice, Noko_Bruce, Oujevipo, Authueil, ynabeat, bismatoj, and PoulpyWP, sorted alphabetically by username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "string2" ) ( "string3" ) ( "wikidata" ) ( "ynabeat" ) ( "pepepegle" ) ( "koemgun" ) ( "string4" ) ( "ferocias" ) ( "string5" ) ( "nitot" ) ( "Circlepay" ) ( "string6" ) ( "ash_crow" ) ( "DrJenBaker" ) ( "xnulz" ) ( "lesinrocks" ) ( "mjg59" ) ( "Venefice" ) ( "Noko_Bruce" ) ( "string7" ) ( "Oujevipo" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "Pyb75" ) ( "K_rho" ) ( "string13" ) ( "string14" ) ( "wef" ) ( "Authueil" ) ( "valeurs" ) ( "Valeurs" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "Ludovic_P_" ) ( "string18" ) ( "PoulpyWP" ) ( "string19" ) ( "bismatoj" ) ( "string20" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "cmccrudden" ) ( "string24" ) } } ORDER BY ASC( ?var3 )


Question: Current members of the 11th Tanzanian Parliament with reference URLs from parliament.go.tz, including their birth year, parliamentary group, and electoral district.

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?personLabel ?referenceUrl ?birthYear ?party ?parliamentaryGroup ?electoralDistrict WHERE {
  ?person p:P39 ?statement .
  ?statement ps:P39 wd:Q17599130 ; pq:P2937 wd:Q46952785 .
  FILTER(NOT EXISTS {
    ?statement pq:P582 []
  })
  OPTIONAL {
    ?statement prov:wasDerivedFrom [ pr:P854 ?referenceUrl ] .
  }
  FILTER(! BOUND(?referenceUrl) || STRSTARTS(?referenceUrl , "https://www.parliament.go.tz"))
  ?person rdfs:label ?personLabel .
  FILTER(LANG(?personLabel) = "en")
  OPTIONAL {
    ?person wdt:P569 ?birthDate .
    BIND(SUBSTR(STR(?birthDate) , 1 , 4) AS ?birthYear)
  }
  OPTIONAL {
    ?statement pq:P102 ?party .
  }
  OPTIONAL {
    ?statement pq:P4100 ?parliamentaryGroup .
  }
  OPTIONAL {
    ?statement pq:P768 ?electoralDistrict .
  }
  OPTIONAL {
    ?person wdt:P973 ?website .
  }
}

Who are the current members of the National Assembly of Tanzania in the 11th Parliament, and what are their birth years, parliamentary groups, electoral districts, and reference URLs?

List all currently serving members of the Tanzanian National Assembly during the 11th parliamentary term, along with their birth years, party affiliations, constituencies, and official reference URLs from the parliament website.

SELECT DISTINCT ?var1 ?var2 ?var3 ?var4 ?var5 ?var6 ?var7 WHERE { ?var1 <http://www.wikidata.org/prop/P39> ?var8 . ?var8 <http://www.wikidata.org/prop/statement/P39> <http://www.wikidata.org/entity/Q17599130> ; <http://www.wikidata.org/prop/qualifier/P2937> <http://www.wikidata.org/entity/Q46952785> . FILTER ( ( NOT EXISTS { ?var8 <http://www.wikidata.org/prop/qualifier/P582> [] . } ) ) . OPTIONAL { ?var1 ( <http://www.wikidata.org/prop/P973> / <http://www.wikidata.org/prop/qualifier/P1810> ) ?var9 . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P21> ?var10 . } OPTIONAL { BIND ( SUBSTR ( STR ( ?var11 ) ,"1"^^<http://www.w3.org/2001/XMLSchema#integer> ,"10"^^<http://www.w3.org/2001/XMLSchema#integer> ) AS ?var6 ). ?var1 <http://www.wikidata.org/prop/direct/P569> ?var11 . } OPTIONAL { ?var8 ( <http://www.wikidata.org/prop/qualifier/P4100> | <http://www.wikidata.org/prop/qualifier/P102> ) ?var12 . } OPTIONAL { ?var8 <http://www.wikidata.org/prop/qualifier/P768> ?var13 . } OPTIONAL { ?var8 <http://www.w3.org/ns/prov#wasDerivedFrom> [ <http://www.wikidata.org/prop/reference/P854> ?var7 ] . } BIND ( ?var7 AS ?var14 ). BIND ( COALESCE ( ?var9 , ?var15 ) AS ?var2 ). FILTER ( ( STRSTARTS ( ?var14 , "string1" ) ) ) . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var15 . FILTER ( ( ( LANG ( ?var15 ) = "en" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". ?var13 <http://www.w3.org/2000/01/rdf-schema#label> ?var3 . ?var12 <http://www.w3.org/2000/01/rdf-schema#label> ?var4 . ?var10 <http://www.w3.org/2000/01/rdf-schema#label> ?var5 . } }


Question: Film with Scope.dk ID 10829

SELECT ?film ?title WHERE { ?film wdt:P2518 "10829" . ?film wdt:P1476 ?title .}

Which film is identified by the Scope.dk ID 10829?

Can you tell me the title of the film that has the Scope.dk film ID 10829?

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


Question: What are the most common entities that serve as the part or aspect to which claims apply in Wikidata?

SELECT DISTINCT ?object ?objectLabel WHERE { ?subject wdt:P518 ?object . ?object rdfs:label ?objectLabel . FILTER(LANG(?objectLabel) = "en") } LIMIT 11

List 11 examples of things that are referenced as the "applies to part" in Wikidata statements.

Which concepts, locations, or categories are commonly used as the target of "applies to part" relationships?

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


Question: Universities attended by Valerie Speirs, with start and end dates and academic degrees.

SELECT ?institution ?institutionLabel ?startDate ?endDate ?degreeLabel WHERE { wd:Q46110266 p:P69 ?statement . ?statement ps:P69 ?institution . ?institution rdfs:label ?institutionLabel . FILTER (LANG(?institutionLabel) = "en") OPTIONAL { ?statement pq:P580 ?startDate . } OPTIONAL { ?statement pq:P582 ?endDate . } OPTIONAL { ?statement pq:P512 ?degree . ?degree rdfs:label ?degreeLabel . FILTER (LANG(?degreeLabel) = "en") } }

Where did Valerie Speirs study, and when did she attend those institutions? Did she earn any degrees there?

List the universities Valerie Speirs attended, including the English labels, and if available, the start and end dates of her studies and the academic degrees she obtained.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q46110266> <http://www.wikidata.org/prop/P69> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P69> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P512> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: Which film has the Cineplex Germany film ID 220129?

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

What is the name of the movie in Wikidata that is identified by the Cineplex ID 220129?

I need to find the Wikidata item for the film that Cineplex Germany lists under the ID 220129.

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


Question: Who are the female grandchildren of Swedish writer Sven Lidman, and who is their parent?

PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?grandchild ?parent WHERE {
  wd:Q637214 p:P40 / ps:P40 ?parent .
  ?parent p:P40 / ps:P40 ?grandchild .
  ?grandchild p:P21 / ps:P21 wd:Q6581072 .
}
LIMIT 101

Female grandchildren of Sven Lidman and their mothers/fathers

List all female grandchildren of Sven Lidman along with the name of their parent.

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


Question: Hebrew labels and descriptions of places with geographic coordinates in Wikidata.

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <http://schema.org/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coord ?label ?description WHERE {
  ?place wdt:P625 ?coord .
  ?place rdfs:label ?label .
  ?place schema:description ?description .
  FILTER ( LANG( ?label ) = "he" ) .
  FILTER ( LANG( ?description ) = "he" ) .
}
LIMIT 100

What places in Wikidata have coordinates and Hebrew-language labels and descriptions?

Show me up to 100 places with their geographic coordinates, along with their Hebrew names and descriptions.

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


Question: What artworks, people, or topics are associated with Albert Berg through statements (excluding his occupation), and what are the relationships?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?subject ?statement ?property ( SAMPLE( ?qualifier_value ) AS ?qualifier ) WHERE {
  ?statement ?ps wd:Q5571126 .
  ?subject ?claim ?statement .
  ?property wikibase:statementProperty ?ps ; wikibase:claim ?claim .
  FILTER ( ?property != wd:P31 ) OPTIONAL {
    ?statement ?qualifier_property ?qualifier_value .
    ?qualifier_property wikibase:qualifier true .
  }
}
GROUP BY ?subject ?statement ?property

Show all claims made about Albert Berg (e.g., who created his paintings, who are his children), along with any qualifiers on those claims.

Which entities are linked to Albert Berg via properties other than "instance of", and what are those properties?

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


Question: Who has the Twitter username "OlivAuriac"?

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitter WHERE {
  ?item wdt:P2002 ?twitter .
  OPTIONAL {
    ?item wikibase:sitelinks ?sitelinkCount .
  }
}
VALUES ( ?twitter ) {
  ( "OlivAuriac" )
}

Which Wikidata item is associated with the Twitter handle "OlivAuriac"?

Can you find the person whose Twitter/X username is "OlivAuriac", and tell me their Wikidata ID?

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


Question: Which Wikidata items have the Twitter usernames "71AGuttig" or "thinner24"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "71AGuttig" "thinner24"
  }
}

Who are the people on Wikidata with the Twitter handles @71AGuttig and @thinner24?

Find the Wikidata entries for individuals whose Twitter username is either 71AGuttig or thinner24.

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


Question: Which entities on Wikidata have Twitter usernames fhollande, NewYorker, LCI, or TF1LeJT?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?twitterUsername WHERE {
  ?entity wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "fhollande" "NewYorker" "LCI" "TF1LeJT"
  }
}

Who are the people or organizations on Wikidata with the Twitter handles @fhollande, @NewYorker, @LCI, or @TF1LeJT?

List all Wikidata entities that are linked to the Twitter accounts fhollande, NewYorker, LCI, and TF1LeJT.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "LCI" ) ( "string2" ) ( "PMorand75" ) ( "TF1LeJT" ) ( "Ju_Arnaud" ) ( "string3" ) ( "vnataf" ) ( "string4" ) ( "string5" ) ( "zcadiot" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "AFPusa" ) ( "string9" ) ( "NewYorker" ) ( "agindre" ) ( "fhollande" ) ( "string10" ) ( "string11" ) } } ORDER BY ASC( ?var3 )


Question: Fictional characters in the German radio drama "Die große Reise"

SELECT ?character ?label WHERE { ?character wdt:P1441 wd:Q46965354 . ?character wdt:P31 wd:Q95074 . ?character rdfs:label ?label . FILTER(LANG(?label) = "de") } ORDER BY ?label LIMIT 100

Who are the fictional characters that appear in the audio drama "Die große Reise"?

List the German-language names of all fictional characters from the radio series "Die große Reise".

SELECT ?var1 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/P1441> <http://www.wikidata.org/entity/Q46965354> . } LIMIT 100


Question: What are the taxonomic ancestors of Syzygium guineense?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?ancestor WHERE {
  wd:Q3644516 wdt:P171 * ?ancestor .
}

What species or higher taxonomic groups does Syzygium guineense belong to in the biological classification hierarchy?

List all the parent taxa in the evolutionary lineage of Syzygium guineense, from direct parent up to the broadest group.

SELECT DISTINCT ?var1 WHERE { BIND ( <http://www.wikidata.org/entity/Q3644516> AS ?var2 ). ?var2 ( <http://www.wikidata.org/prop/direct/P171> | <http://www.wikidata.org/prop/direct/P273> | <http://www.wikidata.org/prop/direct/P75> | <http://www.wikidata.org/prop/direct/P76> | <http://www.wikidata.org/prop/direct/P77> | <http://www.wikidata.org/prop/direct/P70> | <http://www.wikidata.org/prop/direct/P71> | <http://www.wikidata.org/prop/direct/P74> | <http://www.wikidata.org/prop/direct/P89> )* ?var1 . }


Question: What Wikidata item is associated with the Twitter username "alexisohanian"?

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

Who has the Twitter handle @alexisohanian on Wikidata?

Find the person or entity on Wikidata that uses "alexisohanian" as their Twitter username.

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


Question: Wikimedia categories that have a main topic and also combine it with another distinct topic.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?category WHERE {
  ?category wdt:P301 ?mainTopic ; wdt:P971 ?mainTopic , ?otherTopic .
  FILTER(?mainTopic != ?otherTopic)
}

Which Wikimedia categories include their main topic along with at least one other different topic?

List all Wikimedia categories that are defined as intersections of their primary subject and at least one additional subject.

SELECT DISTINCT ?var1 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P301> ?var2 ; <http://www.wikidata.org/prop/direct/P971> ?var2 , ?var3 . FILTER ( ( ( STR ( ?var2 ) != STR ( ?var3 ) ) ) ) . }


Question: Who are the alumni of SUNY Potsdam?

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

List all people who attended the State University of New York at Potsdam.

Which humans have State University of New York at Potsdam as their alma mater?

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/Q7603628> . } LIMIT 500


Question: What educational institution did María Elena Medina-Mora Icaza attend, and what was the start and end date of her studies, along with the degree she earned?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?institution ?institutionLabel ?start ?end ?degreeLabel WHERE {
  wd:Q6003686 p:P69 ?statement .
  ?statement ps:P69 ?institution .
  ?institution rdfs:label ?institutionLabel .
  FILTER(LANG(?institutionLabel) = "en")
  OPTIONAL {
    ?statement pq:P580 ?start .
  }
  OPTIONAL {
    ?statement pq:P582 ?end .
  }
  OPTIONAL {
    ?statement pq:P512 ?degree .
    ?degree rdfs:label ?degreeLabel .
    FILTER(LANG(?degreeLabel) = "en")
  }
}

Show the English name of the university where María Elena Medina-Mora Icaza studied, even if the start date, end date, or degree are not recorded.

Where did María Elena Medina-Mora Icaza go to university? Include any available information about when she started, when she finished, and what degree she received, in English.

SELECT ?var1 ?var2Label ?var3 ?var4 ?var5Label WHERE { <http://www.wikidata.org/entity/Q28484193> <http://www.wikidata.org/prop/P69> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P69> ?var1 . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( ( LANG ( ?var2Label ) = "en" ) ) ) . OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P580> ?var3 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P582> ?var4 . } OPTIONAL { ?var6 <http://www.wikidata.org/prop/qualifier/P512> ?var7 . ?var7 <http://www.w3.org/2000/01/rdf-schema#label> ?var5Label . FILTER ( ( ( LANG ( ?var5Label ) = "en" ) ) ) . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,fr,de,ru,es,zh,jp". } }


Question: What are the most commonly used properties to describe breweries on Wikidata, excluding properties used only once?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?property ?propertyLabel ?count WHERE {
  {
    SELECT ?property ( COUNT( ?brewery ) AS ?count ) WHERE {
      ?brewery ?prop wd:Q131734 .
      ?property wikibase:directClaim ?prop .
    }
    GROUP BY ?property
    HAVING ( ?count > 1 )
  }
  ?property rdfs:label ?propertyLabel .
  FILTER ( LANG( ?propertyLabel ) = "en" )
}
ORDER BY DESC ( ?count )

Which properties link brewery entities to other items most frequently, and how many times are they used?

Show me the top properties associated with breweries, ordered by usage count, along with their English labels.

SELECT ?var1 ?var1Label ?var2 ?var3 WHERE { { SELECT ?var1 ( COUNT ( ?var4 ) AS ?var3 ) WHERE { ?var4 ?var5 <http://www.wikidata.org/entity/Q131734> . ?var1 <http://wikiba.se/ontology#directClaim> ?var5 . } GROUP BY ?var1 ?var1Label HAVING ( ( ?var3 > "1"^^<http://www.w3.org/2001/XMLSchema#integer> ) ) } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pl,en". } } ORDER BY DESC( ?var3 )


Question: Which Wikidata items have the Twitter usernames "NassiraELM", "lesinrocks", "konbini", or "alancelin"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?item ?twitterUsername WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "NassiraELM" "lesinrocks" "konbini" "alancelin"
  }
}

Who are the people or organizations on Wikidata that use "NassiraELM", "lesinrocks", "konbini", or "alancelin" as their Twitter handles?

List the Wikidata entities linked to the Twitter accounts: NassiraELM, lesinrocks, konbini, and alancelin.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "konbini" ) ( "string1" ) ( "NassiraELM" ) ( "string2" ) ( "s_assbague" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "alancelin" ) ( "string6" ) ( "string7" ) ( "Tikitoq" ) ( "lesinrocks" ) ( "NikiShey" ) ( "bast_sam" ) ( "Vogelsong" ) ( "string8" ) ( "VincentMnV" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter usernames "JayGameweb" or "NassiraELM"?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?item ?twitterUsername ?sitelinkCount WHERE {
  ?item wdt:P2002 ?twitterUsername .
  VALUES ?twitterUsername {
    "chaperchez" "DarkYudeX" "clarinett8" "kaaarriiim" "Dada_352" "JayGameweb" "JeanMel78" "G_I_G_I75" "NassiraELM"
  }
  .
  OPTIONAL {
    ?item wikibase:sitelinks ?sitelinkCount
  }
}
ORDER BY ASC ( ?sitelinkCount )

Who on Wikidata uses the Twitter handle "JayGameweb" or "NassiraELM"?

Show me the Wikidata entities associated with the Twitter usernames: JayGameweb, NassiraELM, DarkYudeX, clarinett8, kaaarriiim, Dada_352, JeanMel78, G_I_G_I75, and chaperchez.

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" ) ( "chaperchez" ) ( "string5" ) ( "DarkYudeX" ) ( "clarinett8" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "kaaarriiim" ) ( "Dada_352" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "JayGameweb" ) ( "JeanMel78" ) ( "string13" ) ( "G_I_G_I75" ) ( "string14" ) ( "string15" ) ( "NassiraELM" ) } } ORDER BY ASC( ?var3 )


Question: Who are the female prime ministers in the world, and what are their Wikipedia pages and images?

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

Can you show me a list of women who have served as prime ministers, including their photos and English Wikipedia links?

What are the names, images, and Wikipedia links of all female heads of government (prime ministers) in English?

SELECT DISTINCT ?var1 ?var1Label ?var2 ( SAMPLE ( ?var3 ) AS ?var3 ) ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P39> <http://www.wikidata.org/entity/Q14212> . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581072> . 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 are the theatre buildings that have a known seating capacity?

SELECT DISTINCT ?theatre WHERE { ?theatre (wdt:P31/wdt:P279*) wd:Q24354 ; wdt:P1083 ?capacity .}

Can you list all theatres and theatre-like venues that specify how many seats they have?

Show me all venues designed for theatrical performances that have a defined maximum capacity.

SELECT DISTINCT ?var1 WHERE { ?var1 ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q24354> ; <http://www.wikidata.org/prop/direct/P2439> [] . }


Question: Which Wikidata items have Twitter/X usernames Europe1, TheAVClub, Le_Figaro, or lemonde_M?

SELECT ?item ?username WHERE { ?item wdt:P2002 ?username . VALUES ?username { "Europe1" "TheAVClub" "Le_Figaro" "lemonde_M" } }

What entities on Wikidata are associated with the Twitter handles Europe1, TheAVClub, Le_Figaro, or lemonde_M?

List the Wikidata items that use Europe1, TheAVClub, Le_Figaro, or lemonde_M as their Twitter/X username.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "tvmag" ) ( "le_figaro" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "JouanAnne1" ) ( "string7" ) ( "Garriberts" ) ( "puremedias" ) ( "NetflixFR" ) ( "string8" ) ( "vidjini" ) ( "lehuffplay" ) ( "lemonde_M" ) ( "jpmarthoz" ) ( "string9" ) ( "string10" ) ( "EFJEUROPE" ) ( "string11" ) ( "string12" ) ( "jmcharon" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "Mat7hp" ) ( "numero23tv" ) ( "TVMAG" ) ( "string16" ) ( "TheAVClub" ) ( "leboncoin" ) ( "string17" ) ( "leLab_E1" ) ( "Europe1" ) ( "_mind" ) ( "string18" ) } } ORDER BY ASC( ?var3 )


Question: Which Wikidata items have Twitter usernames CfdtBerger, JeppeKofod, paultang, Cofferati, or VRoziere?

SELECT ?item ?twitterHandle WHERE { ?item wdt:P2002 ?twitterHandle . VALUES ?twitterHandle { "CfdtBerger" "JeppeKofod" "paultang" "Cofferati" "VRoziere" } } ORDER BY ?twitterHandle

Who are the people on Wikidata with the Twitter handles @CfdtBerger, @JeppeKofod, @paultang, @Cofferati, and @VRoziere?

List the Wikidata entities linked to the Twitter accounts CfdtBerger, JeppeKofod, paultang, Cofferati, and VRoziere.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "string1" ) ( "CfdtBerger" ) ( "string2" ) ( "DSFEurope" ) ( "string3" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "MauvesenN" ) ( "string7" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "string12" ) ( "string13" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "EU2017EE" ) ( "string17" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "meronina" ) ( "FreeDawit" ) ( "string21" ) ( "string22" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "string26" ) ( "VRoziere" ) ( "string27" ) ( "Climat2020" ) ( "JeppeKofod" ) ( "string28" ) ( "string29" ) ( "string30" ) ( "string31" ) ( "string32" ) ( "string33" ) ( "string34" ) ( "paultang" ) ( "Cofferati" ) ( "RJaureguiA" ) ( "string35" ) ( "string36" ) ( "string37" ) ( "string38" ) ( "string39" ) ( "string40" ) ( "string41" ) ( "string42" ) ( "string43" ) ( "string44" ) ( "string45" ) ( "RNihoul" ) ( "string46" ) ( "string47" ) ( "string48" ) ( "string49" ) ( "HTakkula" ) ( "string50" ) ( "string51" ) ( "string52" ) ( "SHKMEP" ) } } ORDER BY ASC( ?var3 )


Question: Image of Luther Allison with SNAC ARK ID w61v94g3

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

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

Show me the Wikimedia Commons image for the person whose SNAC ARK ID is w61v94g3.

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


Question: What are the coordinates of the Waldorf-Astoria Hotel on Park Avenue?

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 ?itemLabel ?coord WHERE {
  ?item wdt:P669 wd:Q109711 .
  ?item wdt:P625 ?coord .
  ?item rdfs:label ?itemLabel .
  FILTER(LANG(?itemLabel) = "en")
  .
  FILTER(CONTAINS(STR(?itemLabel) , "Waldorf"))
}

Where is the Waldorf-Astoria Hotel located in terms of geographic coordinates, given that it is on Park Avenue?

Show me the location coordinates of any building on Park Avenue that has "Waldorf" in its name.

SELECT ?var1Label ?var2 ?var3 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P669> <http://www.wikidata.org/entity/Q109711> ; <http://www.wikidata.org/prop/direct/P625> ?var3 . FILTER ( ( CONTAINS ( ?var1Label , "string1" ) ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } }


Question: What are all the properties and associated values connected to Cesare Beccaria in Wikidata, along with their English labels?

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

Can you show me all the relationships involving Cesare Beccaria, including who or what he is connected to, and their English names?

List all the facts about Cesare Beccaria from Wikidata, including the property names and object labels in English.

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


Question: Is libLAS a type of software?

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

Does libLAS belong to a class that is a subclass of software?

Is libLAS categorized under software through its class hierarchy?

ASK WHERE { <http://www.wikidata.org/entity/Q6540332> ( <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: How many Wikidata items are described by Spanish-language Wikipedia pages?

PREFIX schema: <http://schema.org/>
SELECT ( COUNT( DISTINCT ?item ) AS ?count ) WHERE {
  ?wikipedia_page schema:about ?item .
  ?wikipedia_page schema:inLanguage "es" .
}

What is the number of unique Wikidata items linked to articles on the Spanish Wikipedia?

Count the distinct Wikidata items that are the subject of Spanish-language Wikipedia pages using the schema:about relationship.

SELECT( COUNT ( DISTINCT ?var1 ) AS ?var2 ) WHERE { ?var3 <http://schema.org/about> ?var1 . ?var3 <http://schema.org/inLanguage> "es". }


Question: What are the absolute magnitudes and masses of astronomical objects that have both values recorded in Wikidata?

SELECT ?object ?absMag ?mass WHERE { ?object wdt:P1457 ?absMag ; wdt:P2067 ?mass . } LIMIT 10

Show me stars or asteroids with their absolute magnitude and mass.

Which astronomical objects have both an absolute magnitude and a mass listed as direct values?

SELECT ?var1 ?var2 ?var3 ?var4 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1457> ?var2 ; ( <http://www.wikidata.org/prop/direct/P2067> / <http://www.wikidata.org/prop/statement/value/P2067> ) ?var5 . ?var5 <http://wikiba.se/ontology#quantityAmount> ?var3 ; <http://wikiba.se/ontology#quantityAmount> ?var4 . }


Question: Male U.S. citizens

SELECT DISTINCT ?var1 WHERE { ?var1 wdt:P27 wd:Q30 . ?var1 wdt:P31 wd:Q5 . ?var1 wdt:P19 ?var2 . ?var1 wdt:P569 ?var3 . ?var1 wdt:P21 wd:Q6581097 . } ORDER BY ASC(?var1)

Who are the male citizens of the United States?

List all men who are citizens of the United States.

SELECT DISTINCT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P27> <http://www.wikidata.org/entity/Q30> . ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q5> . ?var1 <http://www.wikidata.org/prop/direct/P19> ?var2 . ?var1 <http://www.wikidata.org/prop/direct/P569> ?var3 . ?var1 <http://www.wikidata.org/prop/direct/P21> <http://www.wikidata.org/entity/Q6581097> . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY ASC( ?var1Label )


Question: Film with Cineplex Germany film ID 228066

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

Show me the Wikidata item for the film identified by Cineplex Germany film ID 228066.

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


Question: Villages with names containing "Tsilna" in Norwegian labels

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 ?village ?label WHERE {
  ?village wdt:P31 wd:Q532 .
  ?village rdfs:label ?label .
  FILTER(REGEX(?label , "Tsilna" , "i"))
}

Which villages have names like "Tsilna" in their Norwegian-language labels?

Show me all villages whose Norwegian labels include "Tsilna".

SELECT ?var1 ?var2Label ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q532> . ?var1 <http://www.w3.org/2000/01/rdf-schema#label> ?var2Label . FILTER ( ( REGEX ( ?var2Label , "Silna", "i" ) ) ) . }


Question: Who has the NTA ID 069260699?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?person ?ntaId WHERE {
  ?person wdt:P1006 ?ntaId .
  FILTER ( ?ntaId = "069260699" )
}

Which person is identified by the Dutch National Thesaurus for Author Names ID 069260699?

Tell me the name of the person with NTA ID 069260699.

SELECT DISTINCT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P1006> "069260699". ?var1 <http://www.wikidata.org/prop/direct/P1006> ?var2 . }


Question: What film has the Scope.dk ID 7488?

SELECT ?film WHERE { ?film wdt:P2518 "7488" . }

Which movie on Wikidata is identified by the Scope.dk film ID 7488?

Find the Wikidata item for the film with Scope.dk ID 7488.

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


Question: People who worked as radiomen

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?person WHERE {
  ?person wdt:P106 wd:Q7281291 .
}

Who is a radioman according to Wikidata?

List all individuals whose occupation is radioman.

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


Question: Top chess players by number of non-French Wikipedia articles

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

Which chess players have the most Wikipedia articles in languages other than French?

Show the 200 chess players with the highest number of Wikipedia pages not written in French, along with their article counts.

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


Question: Urban villages that are instances of the urban village type in Wikidata with their English labels.

SELECT ?urbanVillage ?urbanVillageLabel WHERE { ?urbanVillage wdt:P31 wd:Q3559019 . ?urbanVillage rdfs:label ?urbanVillageLabel . FILTER(LANG(?urbanVillageLabel) = "en") } LIMIT 21

What are the English names of urban villages in Wikidata?

List the English-labeled urban villages in Wikidata.

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


Question: What are the geographic coordinates of Belfast, United Kingdom?

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coord WHERE {
  ?country rdfs:label "United Kingdom" @en .
  ?city rdfs:label "Belfast" @en ; wdt:P17 ?country ; wdt:P625 ?coord .
}

Give me the location of Belfast in the United Kingdom.

Where is Belfast located? It's in the United Kingdom.

SELECT ?var1 WHERE { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en ; <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> "Belfast"@en ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.wikidata.org/prop/direct/P17> ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var1 . }


Question: Coordinates of New Haven, Connecticut, in the same country as Connecticut.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?coord WHERE {
  wd:Q779 wdt:P17 ?country .
  wd:Q49145 wdt:P17 ?country ; wdt:P625 ?coord .
}

What are the geographic coordinates of New Haven, Connecticut, given that it is in the same country as the state of Connecticut?

Please provide the latitude and longitude of New Haven, Connecticut, confirming it shares the same country as the state of Connecticut.

SELECT ?var1 WHERE { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "string1"@en ; <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> "New Haven"@en ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.wikidata.org/prop/direct/P17> ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var1 . }


Question: What are the direct superclass categories of humans, and what are their broader categories?

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

Subclasses of human and their superclasses in Wikidata

Show me the immediate parent categories of humans and what those categories are subclasses of, in English.

SELECT ?var1 ?var1Label ?var2 WHERE { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q5> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxVisited> "2"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } }


Question: Who is the person with OpenPlaques ID 5450, and what is their English description?

SELECT ?person ?personLabel ?description WHERE { ?person wdt:P1430 "5450" . OPTIONAL { ?person rdfs:label ?personLabel . FILTER (LANG(?personLabel) = "en") } OPTIONAL { ?person schema:description ?description . FILTER (LANG(?description) = "en") } }

Find the English name and description of the person with OpenPlaques subject ID 5450.

Tell me the name and English description of the individual identified as 5450 on OpenPlaques.

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


Question: What are the geographic coordinates of Antwerp in Belgium?

SELECT ?coordinates WHERE { ?country rdfs:label "Belgium" @en . ?city rdfs:label "Antwerp" @en ; (wdt:P31/wdt:P279*) wd:Q486972 ; wdt:P17 ?country ; wdt:P625 ?coordinates . }

Can you find the coordinates of all places named Antwerp that are located in Belgium?

Show me the location data for the city of Antwerp, Belgium.

SELECT ?var1 WHERE { ?var2 <http://www.w3.org/2000/01/rdf-schema#label> "Belgium"@en ; <http://www.wikidata.org/prop/direct/P17> ?var3 . ?var4 <http://www.w3.org/2000/01/rdf-schema#label> "Antwerp"@en ; ( <http://www.wikidata.org/prop/direct/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q486972> ; <http://www.wikidata.org/prop/direct/P17> ?var3 ; <http://www.wikidata.org/prop/direct/P625> ?var1 . }


Question: Which film has the Russiancinema.ru ID 2718?

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

What is the name of the film with the Russiancinema.ru identifier 2718?

Tell me the film associated with the Russiancinema.ru ID 2718.

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


Question: What are the states of the United States?

SELECT ?state WHERE { ?state wdt:P31 wd:Q35657 .}

Which entities are classified as states within the United States?

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


Question: What are the most common properties used to link entities to the Kingdom of Hungary?

SELECT ?property ?propertyLabel (COUNT(?item) AS ?count) WHERE { ?item ?property wd:Q171150 . BIND( IRI( REPLACE( REPLACE( STR(?property), "http://www.wikidata.org/prop/direct/", "http://www.wikidata.org/entity/" ) , "http://www.wikidata.org/prop/statement/", "http://www.wikidata.org/entity/" ) ) AS ?propertyEntity ) . ?propertyEntity rdfs:label ?propertyLabel . FILTER(LANG(?propertyLabel) = "en") } GROUP BY ?property ?propertyLabel HAVING (?count > 1) ORDER BY DESC(?count)

Which relationships (like citizenship or country) are most frequently associated with the historical Kingdom of Hungary, and how many times are they used?

Can you list the properties that connect items to the Kingdom of Hungary, showing only those used more than once, sorted by frequency, with their English labels?

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


Question: Film with Danskefilm ID 750

SELECT ?film WHERE { ?film wdt:P3785 "750" . }

Which film has the Danskefilm database ID 750?

Can you tell me the name of the film identified as 750 in the Danskefilm database?

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


Question: Properties used to describe coala with English labels and descriptions

SELECT ?propEntity ?propEntityLabel ?propEntityDescription WHERE { wd:Q25215462 ?p ?o . BIND( IRI( CONCAT( "http://www.wikidata.org/entity/", SUBSTR( STR(?p), 30 ) ) ) AS ?propEntity ) . ?propEntity rdf:type wikibase:Property . ?propEntity rdfs:label ?propEntityLabel . ?propEntity schema:description ?propEntityDescription . FILTER (LANG(?propEntityLabel) = "en") FILTER (LANG(?propEntityDescription) = "en") } LIMIT 100

What properties are used to describe the software coala, and what are their English labels and descriptions?

Show me the English labels and descriptions of all properties that are used in statements about coala.

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


Question: What are the literary works written by Arthur Conan Doyle?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?work WHERE {
  ?work wdt:P31 wd:Q7725634 ; wdt:P50 wd:Q35610
}

Can you list all the books authored by Sir Arthur Conan Doyle?

Show me the original stories and novels created by Arthur Conan Doyle.

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


Question: Cities and their countries, in English.

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 ?city ?cityLabel ?country ?countryLabel WHERE {
  ?city(wdt:P31 / wdt:P279 *) wd:Q515 .
  ?city wdt:P17 ?country .
  ?city rdfs:label ?cityLabel .
  ?country rdfs:label ?countryLabel .
  FILTER(LANG(?cityLabel) = "en")
  FILTER(LANG(?countryLabel) = "en")
}

What are the cities in the world and which countries are they located in, with English labels?

List all cities (including subclasses like town or urban settlement) along with their countries, showing both names in English.

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


Question: What are the subclasses and superclasses of a noetherian ring up to five levels deep?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?entity ?entityLabel ?directSubclass WHERE {
  {
    wd:Q582271 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    wd:Q582271 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    wd:Q582271 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    wd:Q582271 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?level3 .
    ?level3 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    wd:Q582271 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?level3 .
    ?level3 wdt:P279 ?level4 .
    ?level4 wdt:P279 ?entity .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    ?entity wdt:P279 wd:Q582271 .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    ?level1 wdt:P279 ?entity .
    ?entity wdt:P279 wd:Q582271 .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    ?level2 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?entity .
    ?entity wdt:P279 wd:Q582271 .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    ?level3 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?entity .
    ?entity wdt:P279 wd:Q582271 .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  } UNION {
    ?level4 wdt:P279 ?level3 .
    ?level3 wdt:P279 ?level2 .
    ?level2 wdt:P279 ?level1 .
    ?level1 wdt:P279 ?entity .
    ?entity wdt:P279 wd:Q582271 .
    OPTIONAL {
      ?entity wdt:P279 ?directSubclass
    }
  }
  ?entity rdfs:label ?entityLabel .
  FILTER(LANG(?entityLabel) = "en")
  FILTER(?entity != wd:Q582271)
}

Which mathematical structures are directly or indirectly related to noetherian rings through subclass relationships within five levels?

List all entities that are up to five levels above or below noetherian ring in the subclass hierarchy, along with their English labels and immediate superclasses.

SELECT ?var1 ?var1Label ?var2 WHERE { { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q582271> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Forward"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } UNION { SERVICE <http://www.bigdata.com/rdf/gas#service> { <http://www.bigdata.com/rdf/gas#program> <http://www.bigdata.com/rdf/gas#gasClass> "com.bigdata.rdf.graph.analytics.SSSP"; <http://www.bigdata.com/rdf/gas#in> <http://www.wikidata.org/entity/Q582271> ; <http://www.bigdata.com/rdf/gas#traversalDirection> "Reverse"; <http://www.bigdata.com/rdf/gas#out> ?var1 ; <http://www.bigdata.com/rdf/gas#out1> ?var3 ; <http://www.bigdata.com/rdf/gas#maxIterations> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#maxVisited> "5"^^<http://www.w3.org/2001/XMLSchema#integer> ; <http://www.bigdata.com/rdf/gas#linkType> <http://www.wikidata.org/prop/direct/P279> . } } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P279> ?var2 . } SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "pt". } }


Question: Subclasses of algebraic group and their direct superclasses in mathematics.

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

What are all the mathematical structures that are subclasses of algebraic group, and what are their immediate parent classes?

List the English names of all mathematical entities that are subclasses of algebraic group, along with each of their direct superclass relationships.

SELECT ?var1 ?var1Label ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P279> * <http://www.wikidata.org/entity/Q83478> . 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> "pt". } }


Question: List all remarkable trees in the Czech Republic.

SELECT ?tree WHERE { ?tree wdt:P31 wd:Q21296252 . }

Which trees in the Czech Republic are designated as heritage trees?

Can you show me all the individual trees in the Czech Republic that are officially recognized as památný strom (remarkable tree)?

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


Question: What are the lower houses of the U.S. state legislatures, and which states do they belong to?

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 ?state ?stateLabel ?lowerHouse ?lowerHouseLabel WHERE {
  ?state wdt:P31 wd:Q35657 .
  ?state wdt:P194 ?legislature .
  ?legislature wdt:P527 ?lowerHouse .
  ?lowerHouse wdt:P31 wd:Q18608569 .
  OPTIONAL {
    ?state rdfs:label ?stateLabel FILTER ( LANG( ?stateLabel ) = "en" )
  }
  OPTIONAL {
    ?lowerHouse rdfs:label ?lowerHouseLabel FILTER ( LANG( ?lowerHouseLabel ) = "en" )
  }
}
LIMIT 500

For each U.S. state, which chamber serves as its lower legislative house?

List the U.S. states along with the names of their respective state house assemblies or houses of representatives.

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


Question: What is the most common property that links other entities to Chevron Corporation?

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?propertyItem(COUNT(?propertyItem) AS ?count) WHERE {
  {
    SELECT ?propertyItem WHERE {
      ?item ?propertyUsed wd:Q319642 .
      ?propertyItem wikibase:directClaim ?propertyUsed .
      ?propertyItem a wikibase:Property .
    }
    LIMIT 10000
  }
}
GROUP BY ?propertyItem
ORDER BY DESC(?count)
LIMIT 1

How many entities are owned by Chevron Corporation, and which property represents this relationship?

Which Wikidata property connects the most subsidiaries or related companies to Chevron?

SELECT ?var1 ( COUNT ( ?var1 ) AS ?var2 ) WHERE { { SELECT ?var1 WHERE { ?var3 ?var4 <http://www.wikidata.org/entity/Q319642> . ?var1 <http://wikiba.se/ontology#directClaim> ?var4 . ?var1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://wikiba.se/ontology#Property> . } LIMIT 10000 } } GROUP BY ?var1 ORDER BY DESC( ?var2 ) LIMIT 1


Question: What film has the Russiancinema.ru ID 1160?

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

Which movie is identified by the ID 1160 on Russiancinema.ru?

Tell me the name of the film with Russiancinema.ru ID 1160.

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


Question: Which entities on Wikidata have Twitter usernames acmilan, MySQL, fosdem, Percona, or mariadb?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?item ?twitter WHERE {
  ?item wdt:P2002 ?twitter .
  VALUES ?twitter {
    "acmilan" "MySQL" "fosdem" "Percona" "mariadb"
  }
}
ORDER BY ASC(wikibase:sitelinks)

What are the Wikidata items corresponding to the Twitter usernames "acmilan", "MySQL", "fosdem", "Percona", and "mariadb"?

List the Wikidata entities linked to the Twitter accounts acmilan, MySQL, fosdem, Percona, and mariadb, sorted by the number of Wikipedia links they have.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "lefred" ) ( "acmilan" ) ( "MySQL" ) ( "KendoUI" ) ( "string1" ) ( "string2" ) ( "FOSDEM" ) ( "mattalord" ) ( "HashiCorp" ) ( "dbaops" ) ( "RWultsch" ) ( "fosdem" ) ( "Percona" ) ( "MariaDB" ) ( "string3" ) ( "string4" ) ( "ssougou" ) ( "RoOUG1" ) ( "string5" ) ( "h_ingo" ) ( "string6" ) } } ORDER BY ASC( ?var3 )


Question: Which organizations have Twitter handles CNBC, Recode, Decathlon, LesEchos, ESCPeurope, or stitchfix?

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?entity ?twitterHandle WHERE {
  ?entity wdt:P2002 ?twitterHandle .
  VALUES ( ?twitterHandle ) {
    ( "CNBC" ) ( "Recode" ) ( "Decathlon" ) ( "LesEchos" ) ( "ESCPeurope" ) ( "stitchfix" )
  }
}
ORDER BY ?twitterHandle

What are the Wikidata entities corresponding to the Twitter usernames CNBC, Recode, Decathlon, LesEchos, ESCPeurope, and stitchfix?

Please list the entities on Wikidata that are associated with the Twitter handles: CNBC, Recode, Decathlon, LesEchos, ESCPeurope, and stitchfix.

SELECT ?var1 ?var2 WHERE { ?var1 <http://www.wikidata.org/prop/direct/P2002> ?var2 ; <http://wikiba.se/ontology#sitelinks> ?var3 . VALUES ( ?var2 ) { ( "cathbarba" ) ( "WINforumNY" ) ( "jkhoey" ) ( "Thom_astro" ) ( "WinforumNY" ) ( "string1" ) ( "bibicheri" ) ( "cmarkea" ) ( "Recode" ) ( "egervet" ) ( "Decathlon" ) ( "string2" ) ( "string3" ) ( "string4" ) ( "LesEchos" ) ( "string5" ) ( "anneadk" ) ( "string6" ) ( "string7" ) ( "string8" ) ( "nicobreuil" ) ( "stitchfix" ) ( "string9" ) ( "string10" ) ( "string11" ) ( "ESCPeurope" ) ( "CNBC" ) ( "mitchdeg" ) ( "rrhoover" ) ( "string12" ) ( "GDarmanin" ) ( "string13" ) ( "_Bercy_" ) } } ORDER BY ASC( ?var3 )


Question: Which organizations on Wikidata have Twitter handles "Defenders", "oceanfdn", or "SharkWeek"?

SELECT ?item ?twitter WHERE { ?item wdt:P2002 ?twitter . VALUES ?twitter { "SharkWeek" "oceanfdn" "Defenders" } } ORDER BY ?twitter

What are the Wikidata entities associated with the Twitter accounts @Defenders, @oceanfdn, and @SharkWeek?

Show me the entities in Wikidata that are linked to the Twitter handles Defenders, oceanfdn, and SharkWeek, 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" ) ( "oceanfdn" ) ( "string2" ) ( "string3" ) ( "IUCNShark" ) ( "NickDulvy" ) ( "SharkColin" ) ( "string4" ) ( "string5" ) ( "string6" ) ( "HSUSNews" ) ( "Fish_Feel" ) ( "string7" ) ( "Defenders" ) ( "string8" ) ( "string9" ) ( "string10" ) ( "JrzyShark" ) ( "string11" ) ( "string12" ) ( "EAC_Marine" ) ( "string13" ) ( "HawaiianPS" ) ( "Catshark1" ) ( "string14" ) ( "string15" ) ( "string16" ) ( "string17" ) ( "usdcas" ) ( "string18" ) ( "string19" ) ( "string20" ) ( "string21" ) ( "kjrankin88" ) ( "string22" ) ( "MA_Sharks" ) ( "MassDMF" ) ( "string23" ) ( "string24" ) ( "string25" ) ( "string26" ) ( "sharkager" ) ( "SharkWeek" ) ( "string27" ) ( "string28" ) } } ORDER BY ASC( ?var3 )


Question: Countries where ritual bonfires are practiced during specific cultural events.

SELECT ?country ?countryLabel ?event ?eventLabel WHERE { wd:Q28922083 p:P17 ?statement . ?statement ps:P17 ?country . ?statement pq:P793 ?event . ?country rdfs:label ?countryLabel . ?event rdfs:label ?eventLabel . FILTER(LANG(?countryLabel) = "en") FILTER(LANG(?eventLabel) = "en") } ORDER BY ?countryLabel

In which countries are ritual bonfires associated with particular festivals or holidays, and what are those events?

List the countries and corresponding cultural events linked to the practice of ritual bonfires.

SELECT ?var1 ?var1Label ?var2 ?var2Label ?var3 ?var4 ?var5 WHERE { <http://www.wikidata.org/entity/Q28922083> <http://www.wikidata.org/prop/P17> ?var6 . ?var6 <http://www.wikidata.org/prop/statement/P17> ?var1 . ?var6 <http://www.wikidata.org/prop/qualifier/P793> ?var2 . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en". } } ORDER BY DESC( ?var2 )


Question: Common names of biological taxa in Wikidata.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?taxon ?commonName WHERE {
  ?taxon wdt:P1843 ?commonName .
}
LIMIT 10000

What are the common names for different biological taxa, and which taxa do they belong to?

Show me the list of biological taxa along with their vernacular names in different languages.

SELECT * WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "ja". } OPTIONAL { ?var1 <http://www.wikidata.org/prop/direct/P1843> ?var2 . } } LIMIT 10000


Question: What items are directly connected to The Jeju April 3 Committee, and what properties link them?

SELECT ?item ?directProperty (SAMPLE(?qualifier) AS ?sampleQualifier) WHERE { ?item ?directProperty wd:Q12616405 . FILTER (?directProperty != wdt:P31) OPTIONAL { ?item ?qualifier ?qualifierValue . } } GROUP BY ?item ?directProperty

Show the items related to the Jeju 4.3 Committee along with the properties used to connect them and one example of a qualifier for each connection.

Which entities have a direct relationship with the Jeju April 3 Committee, and what are the properties and qualifiers involved?

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


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

SELECT ?movie ?movieTitle WHERE { ?movie wdt:P345 "tt0092648" . ?movie rdfs:label ?movieTitle . FILTER(LANG(?movieTitle) = "en") }

Which movie has the IMDb identifier tt0092648, and what is its title?

Find the name of the film identified by tt0092648 on IMDb.

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


Question: Countries classified as sovereign states in Wikidata but without a head of state office.

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 ?country ?countryLabel WHERE {
  ?country wdt:P31 wd:Q6256 .
  FILTER ( NOT EXISTS {
    ?country wdt:P1906 []
  }
  ) .
  ?country rdfs:label ?countryLabel .
  FILTER ( LANG( ?countryLabel ) = "en" )
}

Which entities are categorized as countries in Wikidata but do not have a head of state?

Show me non-sovereign or historical territories that are incorrectly classified as countries in Wikidata because they lack a defined head of state.

SELECT ?var1 ?var1Label WHERE { ?var1 <http://www.wikidata.org/prop/direct/P31> <http://www.wikidata.org/entity/Q6256> . FILTER ( ( NOT EXISTS { ?var1 <http://www.wikidata.org/prop/direct/P1906> [] . } ) ) . SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "en,en". } }


Question: Children of Paul Kind in German

SELECT ?child ?childLabel WHERE { wd:Q2064223 wdt:P40 ?child . ?child rdfs:label ?childLabel . FILTER (LANG(?childLabel) = "de") } LIMIT 50

What are the names of Paul Kind's children in German?

List the German labels of Paul Kind's children.

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


Question: Comics artists who died between January 1, 2017, and January 1, 2018.

SELECT ?personLabel WHERE { ?person wdt:P31 wd:Q5 . ?person (wdt:P106/wdt:P279*) wd:Q715301 . ?person wdt:P570 ?deathDate . FILTER ( ?deathDate >= "2017-01-01T00:00:00Z"^^xsd:dateTime && ?deathDate <= "2018-01-01T00:00:00Z"^^xsd:dateTime ) . ?person rdfs:label ?personLabel . FILTER(LANG(?personLabel) = "en") } LIMIT 100

Who were the comics artists (including illustrators and creators in related roles) that died in 2017?

List the names of all human comics artists who passed away in the year 2017.

SELECT ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "fr,en". } ?var1 ( <http://www.wikidata.org/prop/direct/P106> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q715301> . ?var1 <http://www.wikidata.org/prop/direct/P570> ?var2 . FILTER ( ( ( ?var2 >= "2017-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) && ( ?var2 <= "2018-01-01T00:00:00Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) ) ) . } LIMIT 100


Question: Male grandchildren of Prince Henrik of Denmark and their parents.

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

Who are the male grandchildren of Prince Henrik of Denmark, and who are their fathers?

List all male descendants of Prince Henrik of Denmark who are grandchildren, along with the names of their immediate parents.

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


Question: Theatre buildings in Brazil

SELECT ?theatre ?theatreLabel WHERE { ?theatre ( p:P31 / ps:P31 / wdt:P279* ) wd:Q24354 . ?theatre wdt:P17 wd:Q155 . ?theatre rdfs:label ?theatreLabel . FILTER(LANG(?theatreLabel) = "en") } LIMIT 185

What are the names of theatre buildings located in Brazil?

List all theatre buildings in Brazil, including their English names, that are classified as instances of a subclass of theatre building.

SELECT ?var1 ?var1Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "de,pt". } ?var1 ( <http://www.wikidata.org/prop/P31> / <http://www.wikidata.org/prop/statement/P31> / <http://www.wikidata.org/prop/direct/P279> *) <http://www.wikidata.org/entity/Q24354> . ?var1 <http://www.wikidata.org/prop/direct/P17> <http://www.wikidata.org/entity/Q155> . } LIMIT 185


Question: List Jewish people and their occupations.

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

Who are some Jewish individuals and what are their professions?

Show me up to 100 Jewish people along with their occupations in English.

SELECT ?var1 ?var1Label ?var2Label WHERE { SERVICE <http://wikiba.se/ontology#label> { <http://www.bigdata.com/rdf#serviceParam> <http://wikiba.se/ontology#language> "it,en". } ?var1 <http://www.wikidata.org/prop/direct/P172> <http://www.wikidata.org/entity/Q7325> . ?var1 <http://www.wikidata.org/prop/direct/P106> ?var2 . } LIMIT 100


Question: Thermal baths with geographic coordinates

SELECT ?thermalBath ?coordinates WHERE { ?thermalBath (wdt:P31* / wdt:P279*) wd:Q1004887 ; wdt:P625 ?coordinates .}

What are the geographic locations of all thermal baths and their subclasses?

List all thermal bath facilities and their coordinates, including those that are subclasses of thermal baths.

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


Question: What film has the ID "Krabat" on The Numbers website?

SELECT ?film WHERE { ?film wdt:P3808 "Krabat" .}

Which movie is listed as "Krabat" in The Numbers movie database?

Can you find the Wikidata item for the film Krabat using its The Numbers movie ID?

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


Question: List of dam failure incidents 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 DISTINCT ?damFailure ?damFailureLabel WHERE {
  ?damFailure wdt:P31 wd:Q1033074 .
  ?damFailure rdfs:label ?damFailureLabel .
  FILTER(LANG(?damFailureLabel) = "en")
}
ORDER BY ASC(?damFailureLabel)

What are some notable dam failure events recorded in Wikidata?

Show me the English names of all recorded dam failure events, sorted alphabetically.

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


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

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

Which Wikimedia Commons image is linked to the SNAC ARK ID w6r06gfj?

Show me the image for the entity identified by w6r06gfj in the SNAC system.

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


Question: List all Federal Garden Shows (Bundesgartenschau) with their English names.

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

What are the English names of all events that are instances of the Federal Garden Show in Germany?

Show me the English-labeled editions of the Bundesgartenschau, sorted alphabetically.

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


Question: List all cities in English, sorted alphabetically.

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

What are all the cities in the world, listed in alphabetical order with their English names?

Show me a list of all cities with their English labels, ordered from A to Z.

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