Simple Question (Direct)
Simple Question
Q7052944
P106
Q12737077
USER
Which occupation is the profession of Norman Wilkinson ?
(Q7052944,P106,c(Q12737077))
action filter_type
action find
entity Q7052944
relation P106
type Q12737077
['Q7052944', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7052944 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Norman Wilkinson
action filter_type
action find
entity Norman Wilkinson
relation occupation
type occupation
['Norman Wilkinson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Norman_Wilkinson property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7052944,P106,c(Q12737077))
action filter_type
action find
entity Q7052944
relation P106
type Q12737077
As [ANSWER] is the profession of Norman Wilkinson
['Q7052944', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q7052944 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football player
As association football player is the profession of Norman Wilkinson
association football player
action filter_type
action find
entity Norman Wilkinson
relation occupation
type occupation
['Norman Wilkinson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Norman_Wilkinson property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7052944
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q7052944
relation P27
type Q15617994
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q7052944 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
Norman Wilkinson
action filter_type
action find
entity Norman Wilkinson
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Norman_Wilkinson property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q937857,P27,c(Q15617994))
action filter_type
action find
entity Q7052944
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q937857', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q7052944 property:P27 ?v . ?v rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the native country of that person
United Kingdom
action filter_type
action find
entity Norman Wilkinson
relation country of citizenship
type designation for an administrative territorial entity
['association football player', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Norman_Wilkinson property:country_of_citizenship ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7052944
P641
Q349
USER
Which sport was that person a part of ?
(Q145,P641,c(Q349))
action filter_type
action find
entity Q7052944
relation P641
type Q349
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q7052944 property:P641 ?q . ?q rdf:type ontology:Q349 }
Norman Wilkinson
action filter_type
action find
entity Norman Wilkinson
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Norman_Wilkinson property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q145,P641,c(Q349))
action filter_type
action find
entity Q7052944
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q145', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q7052944 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Norman Wilkinson
relation sport
type sport
['United Kingdom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Norman_Wilkinson property:sport ?q . ?q rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q5259183 Q937857
P425 P641
Q349
USER
Which sports are associated with the field of occupation association football player and did Denny Gigliotti participate in ?
AND((Q937857,P425,c(Q349)), (Q5259183,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q5259183
relation P641
type Q349
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q5259183', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { resource:Q937857 property:P425 ?a . resource:Q5259183 property:P641 ?a . ?a rdf:type ontology:Q349 }
Denny Gigliotti association football player
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Denny Gigliotti
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Denny Gigliotti', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { resource:association_football_player property:field_of_this_occupation ?a . resource:Denny_Gigliotti property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q937857,P425,c(Q349)), (Q5259183,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q937857
relation P425
action find
entity Q5259183
relation P641
type Q349
Team [ANSWER] is associated with the field of occupation [ANSWER] player and did Denny Gigliotti participate in
{'AND': [['Q937857', 'P425', {'concept': 'Q349'}], ['Q5259183', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?a WHERE { resource:Q937857 property:P425 ?a . resource:Q5259183 property:P641 ?a . ?a rdf:type ontology:Q349 }
association football
Team association football is associated with the field of occupation association football player and did Denny Gigliotti participate in
association football
action filter_type
action intersection
action find
entity association football player
relation field of this occupation
action find
entity Denny Gigliotti
relation sport
type sport
{'AND': [['association football player', 'field of this occupation', {'concept': 'sport'}], ['Denny Gigliotti', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?a WHERE { resource:association_football_player property:field_of_this_occupation ?a . resource:Denny_Gigliotti property:sport ?a . ?a rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5259183
P21
Q290
USER
What is the sex of that person ?
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q5259183
relation P21
type Q290
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q5259183 property:P21 ?e . ?e rdf:type ontology:Q290 }
Denny Gigliotti
action filter_type
action find
entity Denny Gigliotti
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Denny_Gigliotti property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2736,P21,c(Q290))
action filter_type
action find
entity Q5259183
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q2736', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q5259183 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Denny Gigliotti
relation gender
type sex
['association football', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Denny_Gigliotti property:gender ?e . ?e rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q8470872
P21
Q502895
USER
Is Didier Muñoz a that sex ?
(Q8470872,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q8470872
relation P21
['Q8470872', 'P21', 'Q6581097']
ASK WHERE { resource:Q8470872 property:P21 resource:Q6581097 }
male Didier Muñoz
action is_in
entity male
action find
entity Didier Muñoz
relation gender
['Didier Muñoz', 'gender', 'male']
ASK WHERE { resource:Didier_Muñoz property:gender resource:male }
[]
common name
SYSTEM
YES
(Q8470872,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q8470872
relation P21
[ANSWER]
['Q8470872', 'P21', 'Q6581097']
ASK WHERE { resource:Q8470872 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Didier Muñoz
relation gender
['Didier Muñoz', 'gender', 'male']
ASK WHERE { resource:Didier_Muñoz property:gender resource:male }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1393469
P1376
Q15617994 Q20667921 Q486972
USER
How many administrative territories have more number of french administrative divisions and human settlements as their capital than Jemmapes ?
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1393469
relation P1376
type Q20667921
type Q486972
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?i WHERE { { ?q property:P1376 ?i . ?q rdf:type ontology:Q486972 . ?i rdf:type ontology:Q15617994 } UNION { ?q property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P1376 resource:Q1393469 . { { ?x rdf:type ontology:Q20667921 } UNION { ?x rdf:type ontology:Q486972 } } } } . FILTER ( ?g > ?h ) }
Jemmapes
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Jemmapes
relation capital of
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?i WHERE { { ?q property:capital_of ?i . ?q rdf:type ontology:human_settlement . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:capital_of resource:Jemmapes . { { ?x rdf:type ontology:type_of_french_administrative_division } UNION { ?x rdf:type ontology:human_settlement } } } } . FILTER ( ?g > ?h ) }
[]
designation for an administrative territorial entity type of french administrative division human settlement
SYSTEM
95
Q12631 Q3368 Q1111401 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q492437 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q492430 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1393469
relation P1376
type Q20667921
type Q486972
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?i WHERE { { ?q property:P1376 ?i . ?q rdf:type ontology:Q486972 . ?i rdf:type ontology:Q15617994 } UNION { ?q property:P1376 ?i . ?i rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q20667921 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P1376 resource:Q1393469 . { { ?x rdf:type ontology:Q20667921 } UNION { ?x rdf:type ontology:Q486972 } } } } . FILTER ( ?g > ?h ) }
Meuse Essonne Kispest District Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Bouches-du-Weser Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Bouches-de-l'Elbe Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
95
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Jemmapes
relation capital of
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) ?i WHERE { { ?q property:capital_of ?i . ?q rdf:type ontology:human_settlement . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q property:capital_of ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:capital_of resource:Jemmapes . { { ?x rdf:type ontology:type_of_french_administrative_division } UNION { ?x rdf:type ontology:human_settlement } } } } . FILTER ( ?g > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1515346
P1376
Q15617994 Q20667921 Q486972
USER
And how about Gert Sibande District Municipality?
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1515346
relation P1376
type Q20667921
type Q486972
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } . ?t rdf:type ?l } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P1376 resource:Q1515346 . { { ?w rdf:type ontology:Q20667921 } UNION { ?w rdf:type ontology:Q486972 } } } } . FILTER ( ?h > ?j ) }
Gert Sibande District Municipality
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Gert Sibande District Municipality
relation capital of
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } . ?t rdf:type ?l } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:capital_of resource:Gert_Sibande_District_Municipality . { { ?w rdf:type ontology:type_of_french_administrative_division } UNION { ?w rdf:type ontology:human_settlement } } } } . FILTER ( ?h > ?j ) }
[]
designation for an administrative territorial entity type of french administrative division human settlement
SYSTEM
95
Q12631 Q3368 Q1111401 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q2528268 Q12594 Q12574 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12789 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q492437 Q12675 Q12589 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q12657 Q12652 Q12556 Q12816 Q3353 Q3357 Q492430 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q12761 Q12765 Q3334 Q12572 Q12576 Q12578 Q12679 Q3113 Q12758 Q12753 Q12751 Q12564
(c(Q20667921)|c(Q486972),P1376,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1515346
relation P1376
type Q20667921
type Q486972
[ANSWER]
[[{'concept': 'Q20667921'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } . ?t rdf:type ?l } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P1376 resource:Q1515346 . { { ?w rdf:type ontology:Q20667921 } UNION { ?w rdf:type ontology:Q486972 } } } } . FILTER ( ?h > ?j ) }
Meuse Essonne Kispest District Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Mont-Blanc Marne Loiret Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Var Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Bouches-du-Weser Oise Manche Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Nièvre Moselle Indre-et-Loire Yonne Creuse Dordogne Bouches-de-l'Elbe Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot Lot-et-Garonne Orne Allier Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
95
action count
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Gert Sibande District Municipality
relation capital of
type type of french administrative division
type human settlement
[[{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?h ) WHERE { VALUES ( ?l ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } . ?t rdf:type ?l } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:capital_of resource:Gert_Sibande_District_Municipality . { { ?w rdf:type ontology:type_of_french_administrative_division } UNION { ?w rdf:type ontology:human_settlement } } } } . FILTER ( ?h > ?j ) }
[]