Simple Question (Direct)
Simple Question
Q3127026
P734
Q82799
USER
Who has the surname Hans Wagner ?
(Q3127026,P734,c(Q82799))
action filter_type
action find
entity Q3127026
relation P734
type Q82799
['Q3127026', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q3127026 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Hans Wagner
action filter_type
action find
entity Hans Wagner
relation family name
type name
['Hans Wagner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Hans_Wagner property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q2539239
SYSTEM
Wagner
Q2539239
(Q3127026,P734,c(Q82799))
action filter_type
action find
entity Q3127026
relation P734
type Q82799
The [ANSWER] has the surname Hans [ANSWER]
['Q3127026', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q3127026 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Wagner
The Wagner has the surname Hans Wagner
Wagner
action filter_type
action find
entity Hans Wagner
relation family name
type name
['Hans Wagner', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Hans_Wagner property:family_name ?u . ?u rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26694677 Q3127026
P27 P1001
Q1048835
USER
Which political territories are Hans Wagner a civilian of or come under the supervision of mayor of Aniñón ?
OR((Q3127026,P27,c(Q1048835)), (Q26694677,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q3127026
relation P27
action find
entity Q26694677
relation P1001
type Q1048835
{'OR': [['Q3127026', 'P27', {'concept': 'Q1048835'}], ['Q26694677', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . { { resource:Q3127026 property:P27 ?g } UNION { resource:Q26694677 property:P1001 ?g } } }
mayor of Aniñón Hans Wagner
action filter_type
action union
action find
entity Hans Wagner
relation country of citizenship
action find
entity mayor of Aniñón
relation applies to jurisdiction
type political territorial entity
{'OR': [['Hans Wagner', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Aniñón', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . { { resource:Hans_Wagner property:country_of_citizenship ?g } UNION { resource:mayor_of_Aniñón property:applies_to_jurisdiction ?g } } }
[]
political territorial entity
Q183 Q1650541
SYSTEM
Germany, Aniñón
Q183 Q1650541
OR((Q3127026,P27,c(Q1048835)), (Q26694677,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q3127026
relation P27
action find
entity Q26694677
relation P1001
type Q1048835
[ANSWERS] are Hans Wagner a civilian of or come under the supervision of mayor of Aniñón
{'OR': [['Q3127026', 'P27', {'concept': 'Q1048835'}], ['Q26694677', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q1048835 . { { resource:Q3127026 property:P27 ?g } UNION { resource:Q26694677 property:P1001 ?g } } }
Germany Aniñón
Germany and Aniñón are Hans Wagner a civilian of or come under the supervision of mayor of Aniñón
Germany Aniñón
action filter_type
action union
action find
entity Hans Wagner
relation country of citizenship
action find
entity mayor of Aniñón
relation applies to jurisdiction
type political territorial entity
{'OR': [['Hans Wagner', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Aniñón', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:political_territorial_entity . { { resource:Hans_Wagner property:country_of_citizenship ?g } UNION { resource:mayor_of_Aniñón property:applies_to_jurisdiction ?g } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories have diplomatic relationships with that political territory ?
(Q183,P530,c(Q15617994))
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1650541
SYSTEM
Did you mean Aniñón ?
(Q183,P530,c(Q15617994)) (Q1650541,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}] ['Q1650541', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Aniñón ?
Aniñón
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Aniñón', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(Q183,P530,c(Q15617994))
Q183
['Q183', 'P530', {'concept': 'Q15617994'}]
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
124
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
(Q183,P530,c(Q15617994))
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q423030 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
124
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Germany property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P127
Q79007
USER
Which streets are owned by Germany ?
(c(Q79007),P127,Q183)
action filter_type
action find_reverse
entity Q183
relation P127
type Q79007
[{'concept': 'Q79007'}, 'P127', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q183 . ?g rdf:type ontology:Q79007 }
Germany
action filter_type
action find_reverse
entity Germany
relation owned by
type street
[{'concept': 'street'}, 'owned by', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Germany . ?g rdf:type ontology:street }
[]
street
Q34444 Q52720 Q52722
SYSTEM
Bundesstraße 3, Bundesstraße 73, Bundesstraße 75
Q52780 Q52783 Q52782 Q52784 Q52787 Q52786 Q52789 Q52788 Q34559 Q34556 Q34553 Q52709 Q52708 Q52705 Q52707 Q34495 Q1006769 Q34492 Q34498 Q1007052 Q47979 Q47973 Q1007274 Q34549 Q34548 Q52730 Q52731 Q52732 Q34541 Q52738 Q34546 Q34544 Q1006969 Q47981 Q1006806 Q1007281 Q52792 Q52723 Q52722 Q52721 Q52720 Q52727 Q52725 Q52724 Q52729 Q34438 Q1006799 Q34538 Q34536 Q52734 Q34532 Q34530 Q52799 Q34441 Q34446 Q34444 Q47993 Q34472 Q52757 Q52754 Q52755 Q1006941 Q52753 Q52751 Q34525 Q1006786 Q34520 Q52758 Q52759 Q47963 Q47960 Q47968 Q34450 Q34452 Q319795 Q34454 Q34456 Q34459 Q47987 Q52745 Q52744 Q52746 Q52741 Q52740 Q52742 Q34513 Q52749 Q52748 Q34522 Q52756 Q1007034 Q1006994 Q1007137 Q34506 Q34468 Q34502 Q34501 Q34465 Q34462 Q52770 Q52771 Q52772 Q52774 Q52775 Q52776 Q52778 Q52779 Q34571 Q34573 Q34478 Q52808 Q52809 Q52806 Q52807 Q52804 Q34470 Q52802 Q34476 Q52800 Q52801 Q52805 Q52769 Q52768 Q52767 Q52766 Q52765 Q52764 Q52763 Q52762 Q52761 Q52760 Q1007296 Q52793 Q52790 Q52796 Q52797 Q52794 Q52795 Q52798 Q47955 Q1007298 Q34563 Q34566 Q2769393 Q52811 Q52810 Q52812 Q34507 Q52718 Q52736 Q52712 Q52713 Q52710 Q52711 Q52716 Q52717 Q52715 Q34484 Q34482 Q34480 Q34488 Q34489
(c(Q79007),P127,Q183)
action filter_type
action find_reverse
entity Q183
relation P127
type Q79007
[ANSWERS] are owned by Germany
[{'concept': 'Q79007'}, 'P127', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q183 . ?g rdf:type ontology:Q79007 }
Bundesstraße 170 Bundesstraße 172 Bundesstraße 171 Bundesstraße 173 Bundesstraße 175 Bundesstraße 174 Bundesstraße 178 Bundesstraße 176 Bundesstraße 45 Bundesstraße 44 Bundesstraße 43 Bundesstraße 64 Bundesstraße 63 Bundesstraße 61 Bundesstraße 62 Bundesstraße 23 Bundesstraße 11a Bundesstraße 22 Bundesstraße 25 Bundesstraße 38a Bundesstraße 56 Bundesstraße 55 Bundesstroß 55a Bundesstraße 42 Bundesstraße 41 Bundesstraße 82 Bundesstraße 83 Bundesstraße 84 Bundesstraße 38 Bundesstraße 87 Bundesstraße 40 Bundesstraße 39 Bundesstraße 27a Bundesstraße 57 Bundesstraße 187a Bundesstraße 66n Bundesstraße 180 Bundesstraße 76 Bundesstraße 75 Bundesstraße 74 Bundesstraße 73 Bundesstraße 80 Bundesstraße 79 Bundesstraße 77 Bundesstraße 81 Bundesstraße 1 Bundesstraße 183a Bundesstraße 37 Bundesstraße 36 Bundesstraße 85 Bundesstraße 35 Bundesstraße 34 Bundesstraße 187 Bundesstraße 2 Bundesstraße 4 Bundesstraße 3 Bundesstraße 59 Bundesstraße 13 Bundesstraße 101 Bundesstraße 98 Bundesstraße 99 Bundesstraße 26a Bundesstraße 97 Bundesstraße 96 Bundesstraße 33 Bundesstraße 172a Bundesstraße 31 Bundesstraße 102 Bundesstraße 103 Bundesstraße 53 Bundesstraße 52 Bundesstraße 54 Bundesstraße 4 R Bundesstraße 5 Bundesstraße 2 R Bundesstraße 6 Bundesstraße 7 Bundesstraße 8 Bundesstraße 58 Bundesstraße 92 Bundesstraße 91 Bundesstraße 93 Bundesstraße 89 Bundesstraße 88 Bundesstraße 90 Bundesstraße 30 Bundesstraße 95 Bundesstraße 94 Bundesstraße 32 Bundesstraße 100 Bundesstraße 31a Bundesstraße 28a Bundesstraße 43a Bundesstraße 28 Bundesstraße 11 Bundesstraße 27 Bundesstraße 26 Bundesstraße 10 Bundesstraße 9 Bundesstraße 113 Bundesstraße 122 Bundesstraße 156 Bundesstraße 158 Bundesstraße 166 Bundesstraße 167 Bundesstraße 168 Bundesstraße 169 Bundesstraße 49 Bundesstraße 50 Bundesstraße 15 Bundesstraße 195 Bundesstraße 196 Bundesstraße 193 Bundesstraße 194 Bundesstraße 191 Bundesstraße 12 Bundesstraße 190 Bundesstraße 14 Bundesstraße 188 Bundesstraße 189 Bundesstraße 192 Bundesstraße 115 Bundesstraße 112 Bundesstraße 111 Bundesstraße 110 Bundesstraße 109 Bundesstraße 108 Bundesstraße 107 Bundesstraße 106 Bundesstraße 105 Bundesstraße 104 Bundesstraße 96b Bundesstraße 181 Bundesstraße 179 Bundesstraße 184 Bundesstraße 185 Bundesstraße 182 Bundesstraße 183 Bundesstraße 186 Bundesstraße 51 Bundesstraße 96a Bundesstraße 47 Bundesstraße 48 Bundesstraße 33a Bundesstraße 198 Bundesstraße 197 Bundesstraße 199 Bundesstraße 29 Bundesstraße 72 Bundesstraße 86 Bundesstraße 67 Bundesstraße 68 Bundesstraße 65 Bundesstraße 66 Bundesstraße 70 Bundesstraße 71 Bundesstraße 69 Bundesstraße 19 Bundesstraße 17 Bundesstraße 16 Bundesstraße 20 Bundesstraße 21
Bundesstraße 3, Bundesstraße 73 and Bundesstraße 75 are owned by Germany
Bundesstraße 3 Bundesstraße 73 Bundesstraße 75
action filter_type
action find_reverse
entity Germany
relation owned by
type street
[{'concept': 'street'}, 'owned by', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Germany . ?g rdf:type ontology:street }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P6
Q502895
USER
Which people have that political territory as their heads of government ?
(Q34444,P6,c(Q502895)) (Q52720,P6,c(Q502895)) (Q52722,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
['Q34444', 'P6', {'concept': 'Q502895'}] ['Q52720', 'P6', {'concept': 'Q502895'}] ['Q52722', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q183 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of government
type common name
['Bundesstraße 3', 'head of government', {'concept': 'common name'}] ['Bundesstraße 73', 'head of government', {'concept': 'common name'}] ['Bundesstraße 75', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Germany property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567
(Q34444,P6,c(Q502895)) (Q52720,P6,c(Q502895)) (Q52722,P6,c(Q502895))
action filter_type
action find
entity Q183
relation P6
type Q502895
[ANSWERS] have that political territory as their heads of government
['Q34444', 'P6', {'concept': 'Q502895'}] ['Q52720', 'P6', {'concept': 'Q502895'}] ['Q52722', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q183 property:P6 ?i . ?i rdf:type ontology:Q502895 }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel
Konrad Adenauer, Willy Brandt and Angela Merkel have that political territory as their heads of government
Konrad Adenauer Willy Brandt Angela Merkel
action filter_type
action find
entity Germany
relation head of government
type common name
['Bundesstraße 3', 'head of government', {'concept': 'common name'}] ['Bundesstraße 73', 'head of government', {'concept': 'common name'}] ['Bundesstraße 75', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Germany property:head_of_government ?i . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q36312
P127
Q811430
USER
How many constructions are owned by Germany or Calgary ?
(c(Q811430),P127,Q183) (c(Q811430),P127,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P127
type Q811430
action filter_type
action find_reverse
entity Q36312
relation P127
type Q811430
[{'concept': 'Q811430'}, 'P127', 'Q183'] [{'concept': 'Q811430'}, 'P127', 'Q36312']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P127 ?f . VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q36312 ) } }
Germany Calgary
action count
action union
action filter_type
action find_reverse
entity Germany
relation owned by
type construction
action filter_type
action find_reverse
entity Calgary
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Germany'] [{'concept': 'construction'}, 'owned by', 'Calgary']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:owned_by ?f . VALUES ( ?f ) { ( resource:Germany ) ( resource:Calgary ) } }
[]
construction
SYSTEM
2
Q16850480 Q1140083
(c(Q811430),P127,Q183) (c(Q811430),P127,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P127
type Q811430
action filter_type
action find_reverse
entity Q36312
relation P127
type Q811430
[ANSWER]
[{'concept': 'Q811430'}, 'P127', 'Q183'] [{'concept': 'Q811430'}, 'P127', 'Q36312']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P127 ?f . VALUES ( ?f ) { ( resource:Q183 ) ( resource:Q36312 ) } }
Calgary Municipal Building Scotiabank Saddledome
2
action count
action union
action filter_type
action find_reverse
entity Germany
relation owned by
type construction
action filter_type
action find_reverse
entity Calgary
relation owned by
type construction
[{'concept': 'construction'}, 'owned by', 'Germany'] [{'concept': 'construction'}, 'owned by', 'Calgary']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:owned_by ?f . VALUES ( ?f ) { ( resource:Germany ) ( resource:Calgary ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P530
Q515 Q1048835
USER
How many cities or political territories have diplomatic associations with Germany ?
(c(Q515),P530,Q183) (c(Q1048835),P530,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P530
type Q515
action filter_type
action find_reverse
entity Q183
relation P530
type Q1048835
[{'concept': 'Q515'}, 'P530', 'Q183'] [{'concept': 'Q1048835'}, 'P530', 'Q183']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type city
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'city'}, 'diplomatic relation', 'Germany'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Germany']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:city ) ( ontology:political_territorial_entity ) } }
[]
city political territorial entity
SYSTEM
7
Q235 Q1000 Q40 Q408 Q16 Q35 Q664
(c(Q515),P530,Q183) (c(Q1048835),P530,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P530
type Q515
action filter_type
action find_reverse
entity Q183
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P530', 'Q183'] [{'concept': 'Q1048835'}, 'P530', 'Q183']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:Q515 ) ( ontology:Q1048835 ) } }
Monaco Gabon Austria Australia Canada Denmark New Zealand
7
action count
action union
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type city
action filter_type
action find_reverse
entity Germany
relation diplomatic relation
type political territorial entity
[{'concept': 'city'}, 'diplomatic relation', 'Germany'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Germany']
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h rdf:type ?d . VALUES ( ?d ) { ( ontology:city ) ( ontology:political_territorial_entity ) } }
[]