Simple Question (Direct)
Simple Question
Q26985222
P19
Q515
USER
Which city is the place of birth of Holger Ziegeler ?
(Q26985222,P19,c(Q515))
action filter_type
action find
entity Q26985222
relation P19
type Q515
['Q26985222', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q26985222 property:P19 ?o . ?o rdf:type ontology:Q515 }
Holger Ziegeler
action filter_type
action find
entity Holger Ziegeler
relation place of birth
type city
['Holger Ziegeler', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Holger_Ziegeler property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
city
Q2978
SYSTEM
Regensburg
Q2978
(Q26985222,P19,c(Q515))
action filter_type
action find
entity Q26985222
relation P19
type Q515
[ANSWER] is the place of birth of Holger Ziegeler
['Q26985222', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q26985222 property:P19 ?o . ?o rdf:type ontology:Q515 }
Regensburg
Regensburg is the place of birth of Holger Ziegeler
Regensburg
action filter_type
action find
entity Holger Ziegeler
relation place of birth
type city
['Holger Ziegeler', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Holger_Ziegeler property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2978
P937
Q502895
USER
Who have that city as their work location ?
(c(Q502895),P937,Q2978)
action filter_type
action find_reverse
entity Q2978
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q2978']
SELECT DISTINCT ?c WHERE { ?c property:P937 resource:Q2978 . ?c rdf:type ontology:Q502895 }
Regensburg
action filter_type
action find_reverse
entity Regensburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Regensburg']
SELECT DISTINCT ?c WHERE { ?c property:work_location resource:Regensburg . ?c rdf:type ontology:common_name }
[]
common name
Q60059 Q99480 Q534283
SYSTEM
Albertus Magnus, Horst Fuhrmann, Angelika Geyer
Q488501 Q1446196 Q1693258 Q1358602 Q1323385 Q2418579 Q109221 Q1099917 Q1714813 Q1133775 Q1928382 Q361354 Q1672533 Q1690591 Q1506977 Q1733521 Q1910530 Q107308 Q1488581 Q360895 Q1434343 Q1516609 Q19959355 Q97816 Q1792243 Q824884 Q1201203 Q13231921 Q1450100 Q1470802 Q97893 Q19959363 Q2643137 Q1583006 Q1268641 Q15391892 Q2590324 Q348336 Q1336854 Q108796 Q277600 Q2288276 Q19843373 Q1085241 Q19958993 Q19284812 Q1505893 Q14756627 Q496832 Q1238838 Q27429896 Q1449058 Q1909678 Q1243654 Q19834328 Q3601691 Q1717863 Q111166 Q1250831 Q551311 Q1456545 Q20180427 Q1360175 Q1039501 Q2140960 Q2571287 Q696506 Q1577923 Q2442058 Q15444238 Q19296086 Q1605735 Q1477140 Q19286933 Q99480 Q13460595 Q2287809 Q1328528 Q18629183 Q66661 Q2589961 Q96668 Q1038283 Q15454860 Q2075536 Q532849 Q1505404 Q2676378 Q1707537 Q2547517 Q2692011 Q15436794 Q15439276 Q19310002 Q2284942 Q825260 Q15454406 Q1115010 Q15436153 Q88763 Q761033 Q101814 Q1255033 Q18224070 Q2141455 Q1222117 Q1251451 Q1584502 Q1603958 Q19960161 Q1447531 Q1599995 Q1634038 Q1579015 Q574388 Q1991749 Q1697068 Q2475949 Q1085847 Q104482 Q768096 Q15428396 Q15834176 Q1358025 Q1279368 Q60059 Q1255710 Q1434364 Q2561261 Q1040821 Q1287977 Q817937 Q1606201 Q1582444 Q15078112 Q534283 Q2546871 Q2127824 Q19286855 Q1399342 Q1359101 Q1577199 Q1870784 Q1806639 Q123609 Q1429893
(c(Q502895),P937,Q2978)
action filter_type
action find_reverse
entity Q2978
relation P937
type Q502895
[ANSWERS] have that city as their work location
[{'concept': 'Q502895'}, 'P937', 'Q2978']
SELECT DISTINCT ?c WHERE { ?c property:P937 resource:Q2978 . ?c rdf:type ontology:Q502895 }
Rudolf Voderholzer Franz Bauer Johann Doll Ernst Heitsch Albert Lang Theodor Winterstein Manfred Abelein Clemens Cording Johann Wohlmuth Cornelius Eberhardt Michael Langer Adolf Eichenseer Sigismundus Evenius Joachim Wolbergs Hans Herbert von Arnim Karl Zettel Matthäus Kaiser Ernst R. Hauschka Hans Kaletsch Adolf Beck Rainer Pawelke Otto Forster Rudolf Eisenmann Franz Lehrndorfer Otto Graf Bernhard Dick Detlef Altenburg Josef Altheimer Max Heuwieser Hans-Jürgen Becker Hubert Schirneck Ernst Emmerig Alexander Thomas Hans Weber Ulrich Hofmann Werner Chrobak Wolfgang Kunert Adalwin Georg Josef Manz Michael Gross Emmeram of Regensburg Simpert Thomas Spitzer Christoph Johann Konrad Engelbrecht Erich Ludwig Biberger Hans Gruber Georg Schmuttermayr Donikkl Andreas Dombert Carl von Lama Anton Miller Franz Schaub Matthias Anthuber Manfred Hößl Alexander Straßner Alfons Metzger Jürgen Zulley Theobald Schrems Theodor von Schacht Anja Utler Oskar von Stobäus Jürgen Kühling Ernst Schwarz Karl Ludolph von Danckelman Reinhard Richardi Wilfried Lorenz Arnold Weissman Hans-Martin Weiss Tonio Walter Michael Rind Max von Gutschneider Henri Brunner Hieronymus Löschenkohl Johannes Sonntag Horst Fuhrmann Kurt Franz Simon Sorg Elfi Hartenstein Michael Nerlich Jacob Christian Schäffer Wolfgang Herr Berthold Furtmeyr Carl Gerster Hans Joachim Kreutzer Peter Heigl Angela Kreuz Georg Michael Wittman Dieter Kattenbeck Josef Lukas Walther Zeitler Elmar Weingarten Anton Schmaus Graham Buckland Thomas Muggenthaler Sigmund Bonk Bernhard Hofmann Gerhard Bommel Fritz Wurmdobler Christian Stang Karl Stetter August Böck Joseph Kromolicki Markus Fritsch Johann Seifert Reinhold Kusche Dieter Henrich Thomas Kothmann Harald Grill Helmut Nieberle Eveline Kooijman Franz Josef Stoiber Heinz Angermeier Alois Pindl Hans Christoph Grigoleit Jacopo Strada Nikolaus Wyrwoll Leonhard Sinniger Ulrich Hemel Christoph Schäfer Franz Karl Leopold von Seckendorf-Aberdar Augustin Strauch Widmar Tanner Martin Clauss Ernst Falkner Eberhard Schockenhoff Albertus Magnus Meinhard Prill Hans-Stephan Martin Werner Gauer Carl Thiel Eduard Baumer Benno Hurt Henriette Wich Hans Schwarz Manfred Kittel Angelika Geyer Walter Zimmermann Raimund Walter Sterl Johann Nepomuk Maag Stephan Bierling Ernst Kunz Hans-Henning Kortüm Lothar Bäumler Lore Kullmer Friedrich von Eyben Florian Schleburg
Albertus Magnus, Horst Fuhrmann and Angelika Geyer have that city as their work location
Albertus Magnus Horst Fuhrmann Angelika Geyer
action filter_type
action find_reverse
entity Regensburg
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Regensburg']
SELECT DISTINCT ?c WHERE { ?c property:work_location resource:Regensburg . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q47483 Q26985222
P47 P27
Q1048835
USER
Which political territories are Holger Ziegeler an inhabitant of or have a shared border with Sagunto ?
OR((Q26985222,P27,c(Q1048835)), (Q47483,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q26985222
relation P27
action find
entity Q47483
relation P47
type Q1048835
{'OR': [['Q26985222', 'P27', {'concept': 'Q1048835'}], ['Q47483', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q26985222 property:P27 ?u } UNION { resource:Q47483 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Sagunto Holger Ziegeler
action filter_type
action union
action find
entity Holger Ziegeler
relation country of citizenship
action find
entity Sagunto
relation shares border with
type political territorial entity
{'OR': [['Holger Ziegeler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sagunto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Holger_Ziegeler property:country_of_citizenship ?u } UNION { resource:Sagunto property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q1917433 Q367868 Q762373 Q1904015 Q1637512 Q1993450 Q2040100 Q1989401 Q1918014
SYSTEM
Some of them are Germany, Almenara, Algar de Palancia, Faura, Canet d'en Berenguer, la Vall d'Uixó, Quartell, el Puig de Santa Maria, Estivella, Alfara de la Baronia
Q23028 Q1917827 Q183 Q1637512 Q1904015 Q367868 Q2041882 Q1769975 Q2040100 Q1810161 Q1992994 Q762373 Q1919278 Q1769907 Q1645719 Q55839 Q1917433 Q428020 Q1812748 Q1918014 Q1989401 Q1993450
OR((Q26985222,P27,c(Q1048835)), (Q47483,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q26985222
relation P27
action find
entity Q47483
relation P47
type Q1048835
[ANSWERS] are Holger Ziegeler an inhabitant of or have a shared border with Sagunto
{'OR': [['Q26985222', 'P27', {'concept': 'Q1048835'}], ['Q47483', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q26985222 property:P27 ?u } UNION { resource:Q47483 property:P47 ?u } } . ?u rdf:type ontology:Q1048835 }
Puçol Benavites Germany la Vall d'Uixó Canet d'en Berenguer Algar de Palancia Petrés Benifairó de les Valls el Puig de Santa Maria Náquera Quart de les Valls Faura Algímia d'Alfara Alfondeguilla Soneja Gilet Almenara Albalat dels Tarongers Torres Torres Alfara de la Baronia Estivella Quartell
Germany, Almenara, Algar de Palancia, Faura, Canet d'en Berenguer, la Vall d'Uixó, Quartell, el Puig de Santa Maria, Estivella and Alfara de la Baronia are Holger Ziegeler an inhabitant of or have a shared border with Sagunto
Germany Almenara Algar de Palancia Faura Canet d'en Berenguer la Vall d'Uixó Quartell el Puig de Santa Maria Estivella Alfara de la Baronia
action filter_type
action union
action find
entity Holger Ziegeler
relation country of citizenship
action find
entity Sagunto
relation shares border with
type political territorial entity
{'OR': [['Holger Ziegeler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Sagunto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Holger_Ziegeler property:country_of_citizenship ?u } UNION { resource:Sagunto property:shares_border_with ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1993450 Q945518
P19
Q502895
USER
How many people have birthplace at Quartell or Umi, Fukuoka ?
(c(Q502895),P19,Q1993450) (c(Q502895),P19,Q945518)
action count
action union
action filter_type
action find_reverse
entity Q1993450
relation P19
type Q502895
action filter_type
action find_reverse
entity Q945518
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1993450'] [{'concept': 'Q502895'}, 'P19', 'Q945518']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P19 resource:Q1993450 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P19 resource:Q945518 . ?t rdf:type ontology:Q502895 } }
Quartell Umi, Fukuoka
action count
action union
action filter_type
action find_reverse
entity Quartell
relation place of birth
type common name
action filter_type
action find_reverse
entity Umi, Fukuoka
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Quartell'] [{'concept': 'common name'}, 'place of birth', 'Umi, Fukuoka']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:place_of_birth resource:Quartell . ?t rdf:type ontology:common_name } UNION { ?t property:place_of_birth resource:Umi,_Fukuoka . ?t rdf:type ontology:common_name } }
[]
common name
SYSTEM
4
Q11364429 Q11630692 Q5945552 Q5831174
(c(Q502895),P19,Q1993450) (c(Q502895),P19,Q945518)
action count
action union
action filter_type
action find_reverse
entity Q1993450
relation P19
type Q502895
action filter_type
action find_reverse
entity Q945518
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q1993450'] [{'concept': 'Q502895'}, 'P19', 'Q945518']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:P19 resource:Q1993450 . ?t rdf:type ontology:Q502895 } UNION { ?t property:P19 resource:Q945518 . ?t rdf:type ontology:Q502895 } }
Takuya Nakashima Fujio Sumi José Polo de Bernabé y Borrás Emilio Llueca Úbeda
4
action count
action union
action filter_type
action find_reverse
entity Quartell
relation place of birth
type common name
action filter_type
action find_reverse
entity Umi, Fukuoka
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Quartell'] [{'concept': 'common name'}, 'place of birth', 'Umi, Fukuoka']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t property:place_of_birth resource:Quartell . ?t rdf:type ontology:common_name } UNION { ?t property:place_of_birth resource:Umi,_Fukuoka . ?t rdf:type ontology:common_name } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q811430 Q41176
USER
Which political territories own atleast 1 constructions and buildings ?
(c(Q811430)|c(Q41176),P127,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
value 1
[[{'concept': 'Q811430'}, {'concept': 'Q41176'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?w WHERE { VALUES ( ?x ) { ( ontology:Q811430 ) ( ontology:Q41176 ) } . ?u rdf:type ?x } GROUP BY ?w } . FILTER ( ?o >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
value 1
[[{'concept': 'construction'}, {'concept': 'building'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?w WHERE { VALUES ( ?x ) { ( ontology:construction ) ( ontology:building ) } . ?u rdf:type ?x } GROUP BY ?w } . FILTER ( ?o >= 1 ) }
[]
political territorial entity construction building
Q183 Q5756 Q20937
SYSTEM
Germany, Community of Madrid, Gyeonggi Province
Q20937 Q183 Q133083 Q5756
(c(Q811430)|c(Q41176),P127,c(Q1048835))
action atleast
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q41176
value 1
[ANSWERS] own atleast 1 constructions and buildings
[[{'concept': 'Q811430'}, {'concept': 'Q41176'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?w WHERE { VALUES ( ?x ) { ( ontology:Q811430 ) ( ontology:Q41176 ) } . ?u rdf:type ?x } GROUP BY ?w } . FILTER ( ?o >= 1 ) }
Gyeonggi Province Germany Gauteng Community of Madrid
Germany, Community of Madrid and Gyeonggi Province own atleast 1 constructions and buildings
Germany Community of Madrid Gyeonggi Province
action atleast
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type building
value 1
[[{'concept': 'construction'}, {'concept': 'building'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) ?w WHERE { VALUES ( ?x ) { ( ontology:construction ) ( ontology:building ) } . ?u rdf:type ?x } GROUP BY ?w } . FILTER ( ?o >= 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q974
P530
Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with lesser number of political territories than Democratic Republic of the Congo ?
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q974
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q974 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?c < ?u ) }
Democratic Republic of the Congo
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Democratic Republic of the Congo
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?c < ?u ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
12
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q974
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P530 ?y . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Q974 property:P530 ?m . ?m rdf:type ontology:Q1048835 } } . FILTER ( ?c < ?u ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
12
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Democratic Republic of the Congo
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { resource:Democratic_Republic_of_the_Congo property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity } } . FILTER ( ?c < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q238
P530
Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with approximately the same number of political territories as San Marino ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q238 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?i ) WHERE { ?c property:P530 ?x . ?c rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?c } }
San Marino
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:San_Marino property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?i ) WHERE { ?c property:diplomatic_relation ?x . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q238
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with approximately the same number of political territories as San Marino
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q238 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?i ) WHERE { ?c property:P530 ?x . ?c rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q1048835 } GROUP BY ?c } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg hold diplomatic relationship with approximately the same number of political territories as San Marino
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity San Marino
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:San_Marino property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i = ?n ) . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?i ) WHERE { ?c property:diplomatic_relation ?x . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?c } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q236
P530
Q15617994 Q1048835
USER
And also tell me about Montenegro?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?n ) WHERE { ?a rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?v property:P530 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Q236 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?l ) }
Montenegro
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?n ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Montenegro property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?l ) }
[]
designation for an administrative territorial entity political territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q784 Q710 Q399 Q398 Q790 Q1013 Q236 Q842 Q970 Q874 Q858
(c(Q1048835),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?n ) WHERE { ?a rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1048835 . ?v property:P530 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Q236 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?l ) }
Yemen Dominica Kiribati Armenia Bahrain Haiti Lesotho Montenegro Oman Comoros Turkmenistan Syria
Yemen Syria Oman
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Montenegro
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?n ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:political_territorial_entity . ?v property:diplomatic_relation ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { resource:Montenegro property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q151885 Q1307214 Q1048835
USER
Which political territories have approximately 1 concepts or forms of government as the type of government ?
(c(Q1048835),P122,c(Q151885)|c(Q1307214))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?f ) WHERE { { ?y property:P122 ?k . ?y rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1307214 } UNION { ?k rdf:type ontology:Q151885 . ?y rdf:type ontology:Q1048835 . ?y property:P122 ?k } } GROUP BY ?y } . FILTER ( ?f = 1 ) }
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?f ) WHERE { { ?y property:basic_form_of_government ?k . ?y rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:form_of_government } UNION { ?k rdf:type ontology:concept . ?y rdf:type ontology:political_territorial_entity . ?y property:basic_form_of_government ?k } } GROUP BY ?y } . FILTER ( ?f = 1 ) }
[]
concept form of government political territorial entity
Q408 Q16 Q1925048
SYSTEM
Australia, Canada, San Pedro Partido
Q1925048 Q178084 Q16 Q408 Q1250464
(c(Q1048835),P122,c(Q151885)|c(Q1307214))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
value 1
[ANSWERS] have approximately 1 concepts or forms of government as the type of government
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q151885'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?f ) WHERE { { ?y property:P122 ?k . ?y rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1307214 } UNION { ?k rdf:type ontology:Q151885 . ?y rdf:type ontology:Q1048835 . ?y property:P122 ?k } } GROUP BY ?y } . FILTER ( ?f = 1 ) }
San Pedro Partido Ilkhanate Canada Australia realm
Australia, Canada and San Pedro Partido have approximately 1 concepts or forms of government as the type of government
Australia Canada San Pedro Partido
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'concept'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?f ) WHERE { { ?y property:basic_form_of_government ?k . ?y rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:form_of_government } UNION { ?k rdf:type ontology:concept . ?y rdf:type ontology:political_territorial_entity . ?y property:basic_form_of_government ?k } } GROUP BY ?y } . FILTER ( ?f = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q408 Q16 Q1925048
P1376
Q56061
USER
Which administrative territories are the county seat for those political territories ?
(c(Q56061),P1376,Q408) (c(Q56061),P1376,Q16) (c(Q56061),P1376,Q1925048)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q16'] [{'concept': 'Q56061'}, 'P1376', 'Q1925048']
SELECT DISTINCT ?z WHERE { VALUES ( ?h ) { ( resource:Q1925048 ) ( resource:Q178084 ) ( resource:Q16 ) } . ?z property:P1376 ?h . ?z rdf:type ontology:Q56061 }
Australia Canada San Pedro Partido
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Canada'] [{'concept': 'administrative territorial entity'}, 'capital of', 'San Pedro Partido']
SELECT DISTINCT ?z WHERE { VALUES ( ?h ) { ( resource:San_Pedro_Partido ) ( resource:Ilkhanate ) ( resource:Canada ) } . ?z property:capital_of ?h . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3114 Q1930 Q54119
SYSTEM
Canberra, Ottawa, San Pedro
Q3114 Q1930 Q54119
(c(Q56061),P1376,Q408) (c(Q56061),P1376,Q16) (c(Q56061),P1376,Q1925048)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWERS] are the county seat for those political territories
[{'concept': 'Q56061'}, 'P1376', 'Q408'] [{'concept': 'Q56061'}, 'P1376', 'Q16'] [{'concept': 'Q56061'}, 'P1376', 'Q1925048']
SELECT DISTINCT ?z WHERE { VALUES ( ?h ) { ( resource:Q1925048 ) ( resource:Q178084 ) ( resource:Q16 ) } . ?z property:P1376 ?h . ?z rdf:type ontology:Q56061 }
Canberra Ottawa San Pedro
Canberra, Ottawa and San Pedro are the county seat for those political territories
Canberra Ottawa San Pedro
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Australia'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Canada'] [{'concept': 'administrative territorial entity'}, 'capital of', 'San Pedro Partido']
SELECT DISTINCT ?z WHERE { VALUES ( ?h ) { ( resource:San_Pedro_Partido ) ( resource:Ilkhanate ) ( resource:Canada ) } . ?z property:capital_of ?h . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3114 Q1930 Q54119
P36
Q1048835
USER
Which political territories contain Canberra, Ottawa and San Pedro as their capital ?
(c(Q1048835),P36,Q3114) (c(Q1048835),P36,Q1930) (c(Q1048835),P36,Q54119)
action union
action filter_type
action find_reverse
entity Q3114
relation P36
type Q1048835
action filter_type
action find_reverse
entity Q1930
relation P36
type Q1048835
action filter_type
action find_reverse
entity Q54119
relation P36
type Q1048835
[{'concept': 'Q1048835'}, 'P36', 'Q3114'] [{'concept': 'Q1048835'}, 'P36', 'Q1930'] [{'concept': 'Q1048835'}, 'P36', 'Q54119']
SELECT DISTINCT ?j WHERE { { ?j property:P36 resource:Q3114 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P36 resource:Q1930 . ?j rdf:type ontology:Q1048835 } }
Canberra Ottawa San Pedro
action union
action filter_type
action find_reverse
entity Canberra
relation capital
type political territorial entity
action filter_type
action find_reverse
entity Ottawa
relation capital
type political territorial entity
action filter_type
action find_reverse
entity San Pedro
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Canberra'] [{'concept': 'political territorial entity'}, 'capital', 'Ottawa'] [{'concept': 'political territorial entity'}, 'capital', 'San Pedro']
SELECT DISTINCT ?j WHERE { { ?j property:capital resource:Canberra . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:capital resource:Ottawa . ?j rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q408 Q16 Q1925048
SYSTEM
Australia, Canada, San Pedro Partido
Q408 Q16 Q1925048
(c(Q1048835),P36,Q3114) (c(Q1048835),P36,Q1930) (c(Q1048835),P36,Q54119)
action union
action filter_type
action find_reverse
entity Q3114
relation P36
type Q1048835
action filter_type
action find_reverse
entity Q1930
relation P36
type Q1048835
action filter_type
action find_reverse
entity Q54119
relation P36
type Q1048835
[ANSWERS] contain Canberra, Ottawa and San Pedro as their capital
[{'concept': 'Q1048835'}, 'P36', 'Q3114'] [{'concept': 'Q1048835'}, 'P36', 'Q1930'] [{'concept': 'Q1048835'}, 'P36', 'Q54119']
SELECT DISTINCT ?j WHERE { { ?j property:P36 resource:Q3114 . ?j rdf:type ontology:Q1048835 } UNION { ?j property:P36 resource:Q1930 . ?j rdf:type ontology:Q1048835 } }
Australia Canada San Pedro Partido
Australia, Canada and San Pedro Partido contain Canberra, Ottawa and San Pedro as their capital
Australia Canada San Pedro Partido
action union
action filter_type
action find_reverse
entity Canberra
relation capital
type political territorial entity
action filter_type
action find_reverse
entity Ottawa
relation capital
type political territorial entity
action filter_type
action find_reverse
entity San Pedro
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Canberra'] [{'concept': 'political territorial entity'}, 'capital', 'Ottawa'] [{'concept': 'political territorial entity'}, 'capital', 'San Pedro']
SELECT DISTINCT ?j WHERE { { ?j property:capital resource:Canberra . ?j rdf:type ontology:political_territorial_entity } UNION { ?j property:capital resource:Ottawa . ?j rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q408 Q16 Q1925048
P36
Q56061
USER
Which administrative territories are known as the capital of Australia, Canada and San Pedro Partido ?
(Q408,P36,c(Q56061)) (Q16,P36,c(Q56061)) (Q1925048,P36,c(Q56061))
action union
action filter_type
action find
entity Q408
relation P36
type Q56061
action filter_type
action find
entity Q16
relation P36
type Q56061
action filter_type
action find
entity Q1925048
relation P36
type Q56061
['Q408', 'P36', {'concept': 'Q56061'}] ['Q16', 'P36', {'concept': 'Q56061'}] ['Q1925048', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:Q56061 . resource:Q408 property:P36 ?s } UNION { resource:Q16 property:P36 ?s . ?s rdf:type ontology:Q56061 } }
Australia Canada San Pedro Partido
action union
action filter_type
action find
entity Australia
relation capital
type administrative territorial entity
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
action filter_type
action find
entity San Pedro Partido
relation capital
type administrative territorial entity
['Australia', 'capital', {'concept': 'administrative territorial entity'}] ['Canada', 'capital', {'concept': 'administrative territorial entity'}] ['San Pedro Partido', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:administrative_territorial_entity . resource:Australia property:capital ?s } UNION { resource:Canada property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q3114 Q1930 Q54119
SYSTEM
Canberra, Ottawa, San Pedro
Q3114 Q1930 Q54119
(Q408,P36,c(Q56061)) (Q16,P36,c(Q56061)) (Q1925048,P36,c(Q56061))
action union
action filter_type
action find
entity Q408
relation P36
type Q56061
action filter_type
action find
entity Q16
relation P36
type Q56061
action filter_type
action find
entity Q1925048
relation P36
type Q56061
[ANSWERS] are known as the capital of Australia, Canada and San Pedro Partido
['Q408', 'P36', {'concept': 'Q56061'}] ['Q16', 'P36', {'concept': 'Q56061'}] ['Q1925048', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:Q56061 . resource:Q408 property:P36 ?s } UNION { resource:Q16 property:P36 ?s . ?s rdf:type ontology:Q56061 } }
Canberra Ottawa San Pedro
Canberra, Ottawa and San Pedro are known as the capital of Australia, Canada and San Pedro Partido
Canberra Ottawa San Pedro
action union
action filter_type
action find
entity Australia
relation capital
type administrative territorial entity
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
action filter_type
action find
entity San Pedro Partido
relation capital
type administrative territorial entity
['Australia', 'capital', {'concept': 'administrative territorial entity'}] ['Canada', 'capital', {'concept': 'administrative territorial entity'}] ['San Pedro Partido', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { ?s rdf:type ontology:administrative_territorial_entity . resource:Australia property:capital ?s } UNION { resource:Canada property:capital ?s . ?s rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3114 Q1930 Q54119
P1376
Q1048835
USER
Which political territories have those administrative territories as their county seat ?
(Q3114,P1376,c(Q1048835)) (Q1930,P1376,c(Q1048835)) (Q54119,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
['Q3114', 'P1376', {'concept': 'Q1048835'}] ['Q1930', 'P1376', {'concept': 'Q1048835'}] ['Q54119', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . VALUES ( ?a ) { ( resource:Q3114 ) ( resource:Q1930 ) ( resource:Q54119 ) } . ?a property:P1376 ?o }
Canberra Ottawa San Pedro
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Canberra', 'capital of', {'concept': 'political territorial entity'}] ['Ottawa', 'capital of', {'concept': 'political territorial entity'}] ['San Pedro', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . VALUES ( ?a ) { ( resource:Canberra ) ( resource:Ottawa ) ( resource:San_Pedro ) } . ?a property:capital_of ?o }
[]
political territorial entity
Q408 Q16 Q1925048
SYSTEM
Australia, Canada, San Pedro Partido
Q408 Q16 Q1925048
(Q3114,P1376,c(Q1048835)) (Q1930,P1376,c(Q1048835)) (Q54119,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
[ANSWERS] have those administrative territories as their county seat
['Q3114', 'P1376', {'concept': 'Q1048835'}] ['Q1930', 'P1376', {'concept': 'Q1048835'}] ['Q54119', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . VALUES ( ?a ) { ( resource:Q3114 ) ( resource:Q1930 ) ( resource:Q54119 ) } . ?a property:P1376 ?o }
Australia Canada San Pedro Partido
Australia, Canada and San Pedro Partido have those administrative territories as their county seat
Australia Canada San Pedro Partido
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Canberra', 'capital of', {'concept': 'political territorial entity'}] ['Ottawa', 'capital of', {'concept': 'political territorial entity'}] ['San Pedro', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . VALUES ( ?a ) { ( resource:Canberra ) ( resource:Ottawa ) ( resource:San_Pedro ) } . ?a property:capital_of ?o }
[]