Simple Question (Direct)
Simple Question
Q504553
P47
Q15617994
USER
Which administrative territories are adjacent to Arnstein ?
(Q504553,P47,c(Q15617994))
action filter_type
action find
entity Q504553
relation P47
type Q15617994
['Q504553', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q504553 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Arnstein
action filter_type
action find
entity Arnstein
relation shares border with
type designation for an administrative territorial entity
['Arnstein', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Arnstein property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q583371 Q508945 Q517233
SYSTEM
Wasserlosen, Retzstadt, Thüngen
Q508945 Q521160 Q508959 Q583371 Q517233 Q503920 Q526691
(Q504553,P47,c(Q15617994))
action filter_type
action find
entity Q504553
relation P47
type Q15617994
Are [ANSWERS] are adjacent to Arnstein
['Q504553', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q504553 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Retzstadt Rimpar Hausen bei Würzburg Wasserlosen Thüngen Eußenheim Werneck
Are Wasserlosen, Retzstadt and Thüngen are adjacent to Arnstein
Wasserlosen Retzstadt Thüngen
action filter_type
action find
entity Arnstein
relation shares border with
type designation for an administrative territorial entity
['Arnstein', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Arnstein property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q517233
P17
Q1048835
USER
Which political territory is Thüngen located in ?
(Q517233,P17,c(Q1048835))
action filter_type
action find
entity Q517233
relation P17
type Q1048835
['Q517233', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q517233 property:P17 ?e . ?e rdf:type ontology:Q1048835 }
Thüngen
action filter_type
action find
entity Thüngen
relation country
type political territorial entity
['Thüngen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Thüngen property:country ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q517233,P17,c(Q1048835))
action filter_type
action find
entity Q517233
relation P17
type Q1048835
Which political territory is Thüngen located in
['Q517233', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q517233 property:P17 ?e . ?e rdf:type ontology:Q1048835 }
Germany
Which political territory is Thüngen located in
Germany
action filter_type
action find
entity Thüngen
relation country
type political territorial entity
['Thüngen', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Thüngen property:country ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q517233
P20
Q502895
USER
Which people expired at that administrative territory ?
(c(Q502895),P20,Q183)
action filter_type
action find_reverse
entity Q517233
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q517233 . ?y rdf:type ontology:Q502895 }
Thüngen
action filter_type
action find_reverse
entity Thüngen
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Thüngen . ?y rdf:type ontology:common_name }
[]
common name
Q1732547 Q2576081
SYSTEM
Karl Otto Kameke, Wilhelm Thüngen
Q1732547 Q2576081
(c(Q502895),P20,Q183)
action filter_type
action find_reverse
entity Q517233
relation P20
type Q502895
[ANSWERS] expired at that administrative territory
[{'concept': 'Q502895'}, 'P20', 'Q183']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q517233 . ?y rdf:type ontology:Q502895 }
Karl Otto Kameke Wilhelm Thüngen
Karl Otto Kameke and Wilhelm Thüngen expired at that administrative territory
Karl Otto Kameke Wilhelm Thüngen
action filter_type
action find_reverse
entity Thüngen
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Germany']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Thüngen . ?y rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P106
Q28640 Q12737077
USER
How many professions or occupations are the professions of that person ?
(Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q2576081,P106,c(Q28640)) (Q2576081,P106,c(Q12737077))
['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q2576081', 'P106', {'concept': 'Q28640'}] ['Q2576081', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q2576081 property:Q528892 ?z } UNION { resource:Q2576081 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'profession'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Wilhelm_Thüngen property:occupation ?z } UNION { resource:Wilhelm_Thüngen property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
profession occupation
Quantitative|Count|Mult. entity type|Clarification
Q1732547
SYSTEM
Did you mean Karl Otto Kameke ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q2576081 property:Q528892 ?z } UNION { resource:Q2576081 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
Did you mean Karl Otto Kameke ?
Karl Otto Kameke
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Wilhelm_Thüngen property:occupation ?z } UNION { resource:Wilhelm_Thüngen property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q2576081,P106,c(Q28640)) (Q2576081,P106,c(Q12737077))
['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q2576081', 'P106', {'concept': 'Q28640'}] ['Q2576081', 'P106', {'concept': 'Q12737077'}]
['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'profession'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'occupation'}]
[]
SYSTEM
2
Q16533 Q185351
(Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q1732547,P106,c(Q28640)) (Q1732547,P106,c(Q12737077)) (Q2576081,P106,c(Q28640)) (Q2576081,P106,c(Q12737077))
[ANSWER]
['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q1732547', 'P106', {'concept': 'Q28640'}] ['Q1732547', 'P106', {'concept': 'Q12737077'}] ['Q2576081', 'P106', {'concept': 'Q28640'}] ['Q2576081', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q1732547 property:Q528892 ?z } UNION { resource:Q1732547 property:Q528892 ?y } UNION { resource:Q2576081 property:Q528892 ?z } UNION { resource:Q2576081 property:Q528892 ?y } } . ?z rdf:type ontology:Q28640 . ?y rdf:type ontology:Q528892 }
judge jurist
2
['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Karl Otto Kameke', 'occupation', {'concept': 'profession'}] ['Karl Otto Kameke', 'occupation', {'concept': 'occupation'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'profession'}] ['Wilhelm Thüngen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Karl_Otto_Kameke property:occupation ?z } UNION { resource:Karl_Otto_Kameke property:occupation ?y } UNION { resource:Wilhelm_Thüngen property:occupation ?z } UNION { resource:Wilhelm_Thüngen property:occupation ?y } } . ?z rdf:type ontology:profession . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q508945
P19
Q502895
USER
Which people have place of birth as Retzstadt ?
(c(Q502895),P19,Q508945)
action filter_type
action find_reverse
entity Q508945
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q508945']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q508945 . ?l rdf:type ontology:Q502895 }
Retzstadt
action filter_type
action find_reverse
entity Retzstadt
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Retzstadt']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Retzstadt . ?l rdf:type ontology:common_name }
[]
common name
Q1715211 Q1741278
SYSTEM
Vinzenz Koch, Kilian Caspar Flasch
Q1715211 Q1741278
(c(Q502895),P19,Q508945)
action filter_type
action find_reverse
entity Q508945
relation P19
type Q502895
[ANSWERS] have place of birth as Retzstadt
[{'concept': 'Q502895'}, 'P19', 'Q508945']
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q508945 . ?l rdf:type ontology:Q502895 }
Vinzenz Koch Kilian Caspar Flasch
Vinzenz Koch and Kilian Caspar Flasch have place of birth as Retzstadt
Vinzenz Koch Kilian Caspar Flasch
action filter_type
action find_reverse
entity Retzstadt
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Retzstadt']
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Retzstadt . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1715211 Q1741278
P21
Q290
USER
What are the sex of Vinzenz Koch and Kilian Caspar Flasch ?
(Q1715211,P21,c(Q290)) (Q1741278,P21,c(Q290))
action union
action filter_type
action find
entity Q1715211
relation P21
type Q290
action filter_type
action find
entity Q1741278
relation P21
type Q290
['Q1715211', 'P21', {'concept': 'Q290'}] ['Q1741278', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?r property:P21 ?a . VALUES ( ?r ) { ( resource:Q1715211 ) ( resource:Q1741278 ) } }
Vinzenz Koch Kilian Caspar Flasch
action union
action filter_type
action find
entity Vinzenz Koch
relation gender
type sex
action filter_type
action find
entity Kilian Caspar Flasch
relation gender
type sex
['Vinzenz Koch', 'gender', {'concept': 'sex'}] ['Kilian Caspar Flasch', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?r property:gender ?a . VALUES ( ?r ) { ( resource:Vinzenz_Koch ) ( resource:Kilian_Caspar_Flasch ) } }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q1715211,P21,c(Q290)) (Q1741278,P21,c(Q290))
action union
action filter_type
action find
entity Q1715211
relation P21
type Q290
action filter_type
action find
entity Q1741278
relation P21
type Q290
The sex of Vinzenz Koch and Kilian Caspar Flasch are both [ANSWER] and [ANSWER]
['Q1715211', 'P21', {'concept': 'Q290'}] ['Q1741278', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { ?r property:P21 ?a . VALUES ( ?r ) { ( resource:Q1715211 ) ( resource:Q1741278 ) } }
male male
The sex of Vinzenz Koch and Kilian Caspar Flasch are both male and male
male male
action union
action filter_type
action find
entity Vinzenz Koch
relation gender
type sex
action filter_type
action find
entity Kilian Caspar Flasch
relation gender
type sex
['Vinzenz Koch', 'gender', {'concept': 'sex'}] ['Kilian Caspar Flasch', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { ?r property:gender ?a . VALUES ( ?r ) { ( resource:Vinzenz_Koch ) ( resource:Kilian_Caspar_Flasch ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1741278
P69
Q163740
USER
Which nonprofit organization is Kilian Caspar Flasch an alumni of ?
(Q1741278,P69,c(Q163740))
action filter_type
action find
entity Q1741278
relation P69
type Q163740
['Q1741278', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?l WHERE { resource:Q1741278 property:P69 ?l . ?l rdf:type ontology:Q163740 }
Kilian Caspar Flasch
action filter_type
action find
entity Kilian Caspar Flasch
relation educated at
type nonprofit organization
['Kilian Caspar Flasch', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?l WHERE { resource:Kilian_Caspar_Flasch property:educated_at ?l . ?l rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q178848
SYSTEM
University of Notre Dame
Q178848
(Q1741278,P69,c(Q163740))
action filter_type
action find
entity Q1741278
relation P69
type Q163740
The [ANSWER] is Kilian Caspar Flasch an alumni of
['Q1741278', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?l WHERE { resource:Q1741278 property:P69 ?l . ?l rdf:type ontology:Q163740 }
University of Notre Dame
The University of Notre Dame is Kilian Caspar Flasch an alumni of
University of Notre Dame
action filter_type
action find
entity Kilian Caspar Flasch
relation educated at
type nonprofit organization
['Kilian Caspar Flasch', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?l WHERE { resource:Kilian_Caspar_Flasch property:educated_at ?l . ?l rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5489469
Q163740
USER
And what about Frank Scott Hogg?
(Q5489469,P69,c(Q163740))
action filter_type
action find
entity Q5489469
relation P69
type Q163740
['Q5489469', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q5489469 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Frank Scott Hogg
action filter_type
action find
entity Frank Scott Hogg
relation educated at
type nonprofit organization
['Frank Scott Hogg', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Frank_Scott_Hogg property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q5489469,P69,c(Q163740))
action filter_type
action find
entity Q5489469
relation P69
type Q163740
[ANSWER]
['Q5489469', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?s WHERE { resource:Q5489469 property:P69 ?s . ?s rdf:type ontology:Q163740 }
Harvard University
Harvard University
action filter_type
action find
entity Frank Scott Hogg
relation educated at
type nonprofit organization
['Frank Scott Hogg', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?s WHERE { resource:Frank_Scott_Hogg property:educated_at ?s . ?s rdf:type ontology:nonprofit_organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q13371 Q30
P17
Q15617994
USER
Does that nonprofit organization belong to United States of America ?
(Q13371,P17,Q30)
action is_in
entity Q30
action find
entity Q13371
relation P17
['Q13371', 'P17', 'Q30']
ASK WHERE { resource:Q13371 property:P17 resource:Q30 }
Harvard University United States of America
action is_in
entity United States of America
action find
entity Harvard University
relation country
['Harvard University', 'country', 'United States of America']
ASK WHERE { resource:Harvard_University property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q13371,P17,Q30)
action is_in
entity Q30
action find
entity Q13371
relation P17
[ANSWER]
['Q13371', 'P17', 'Q30']
ASK WHERE { resource:Q13371 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Harvard University
relation country
['Harvard University', 'country', 'United States of America']
ASK WHERE { resource:Harvard_University property:country resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q486972 Q56061
USER
Which political territories have max number of human settlements or administrative territories have their first city ?
(c(Q486972)|c(Q56061),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[[{'concept': 'Q486972'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?o WHERE { VALUES ( ?w ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?q rdf:type ?w } GROUP BY ?o } . FILTER ( ?v = ?t ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?c rdf:type ?y } GROUP BY ?z } } }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?o WHERE { VALUES ( ?w ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?w } GROUP BY ?o } . FILTER ( ?v = ?t ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?y } GROUP BY ?z } } }
[]
political territorial entity human settlement administrative territorial entity
Q183 Q13353 Q193619
SYSTEM
Germany, Montserrat, Union of South Africa
Q5455586 Q13353 Q193619 Q183
(c(Q486972)|c(Q56061),P1376,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[ANSWERS] have max number of human settlements or administrative territories have their first city
[[{'concept': 'Q486972'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?o WHERE { VALUES ( ?w ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?q rdf:type ?w } GROUP BY ?o } . FILTER ( ?v = ?t ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?c rdf:type ?y } GROUP BY ?z } } }
Fitzcarrald Montserrat Union of South Africa Germany
Germany, Montserrat and Union of South Africa have max number of human settlements or administrative territories have their first city
Germany Montserrat Union of South Africa
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?o WHERE { VALUES ( ?w ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?q rdf:type ?w } GROUP BY ?o } . FILTER ( ?v = ?t ) . { SELECT DISTINCT ( MAX ( ?d ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?z WHERE { VALUES ( ?y ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?c rdf:type ?y } GROUP BY ?z } } }
[]