Simple Question (Direct)
Simple Question
Q6773557
P166
Q1788716
USER
Which military decoration was Marshall E. Cusic Jr. awarded with ?
(Q6773557,P166,c(Q1788716))
action filter_type
action find
entity Q6773557
relation P166
type Q1788716
['Q6773557', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?m WHERE { resource:Q6773557 property:P166 ?m . ?m rdf:type ontology:Q1788716 }
Marshall E. Cusic Jr.
action filter_type
action find
entity Marshall E. Cusic Jr.
relation award received
type military decoration
['Marshall E. Cusic Jr.', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?m WHERE { resource:Marshall_E._Cusic_Jr. property:award_received ?m . ?m rdf:type ontology:military_decoration }
[]
military decoration
Q17231624
SYSTEM
legionnaire of Legion of Merit
Q17231624
(Q6773557,P166,c(Q1788716))
action filter_type
action find
entity Q6773557
relation P166
type Q1788716
The [ANSWER] was Marshall E. Cusic Jr. awarded with
['Q6773557', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?m WHERE { resource:Q6773557 property:P166 ?m . ?m rdf:type ontology:Q1788716 }
legionnaire of Legion of Merit
The legionnaire of Legion of Merit was Marshall E. Cusic Jr. awarded with
legionnaire of Legion of Merit
action filter_type
action find
entity Marshall E. Cusic Jr.
relation award received
type military decoration
['Marshall E. Cusic Jr.', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?m WHERE { resource:Marshall_E._Cusic_Jr. property:award_received ?m . ?m rdf:type ontology:military_decoration }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6773557
P108
Q3918
USER
Which university is the workplace of Marshall E. Cusic Jr. ?
(Q6773557,P108,c(Q3918))
action filter_type
action find
entity Q6773557
relation P108
type Q3918
['Q6773557', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q6773557 property:P108 ?g . ?g rdf:type ontology:Q3918 }
Marshall E. Cusic Jr.
action filter_type
action find
entity Marshall E. Cusic Jr.
relation employer
type university
['Marshall E. Cusic Jr.', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Marshall_E._Cusic_Jr. property:employer ?g . ?g rdf:type ontology:university }
[]
university
Q838330
SYSTEM
University of Wisconsin–Madison
Q838330
(Q6773557,P108,c(Q3918))
action filter_type
action find
entity Q6773557
relation P108
type Q3918
[ANSWER] is the workplace of Marshall E. Cusic Jr.
['Q6773557', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q6773557 property:P108 ?g . ?g rdf:type ontology:Q3918 }
University of Wisconsin–Madison
University of Wisconsin–Madison is the workplace of Marshall E. Cusic Jr.
University of Wisconsin–Madison
action filter_type
action find
entity Marshall E. Cusic Jr.
relation employer
type university
['Marshall E. Cusic Jr.', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Marshall_E._Cusic_Jr. property:employer ?g . ?g rdf:type ontology:university }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q838330 Q30 Q581574
P17
Q15617994
USER
Is that university present in United States of America and Roßbach ?
(Q838330,P17,Q30) (Q838330,P17,Q581574)
action is_in
entity Q838330
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q581574
relation P17
['Q838330', 'P17', 'Q30'] ['Q838330', 'P17', 'Q581574']
ASK WHERE { resource:Q838330 property:P17 resource:Q30 . resource:Q838330 property:P17 resource:Q581574 }
University of Wisconsin–Madison United States of America Roßbach
action is_in
entity University of Wisconsin–Madison
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Roßbach
relation country
['University of Wisconsin–Madison', 'country', 'United States of America'] ['University of Wisconsin–Madison', 'country', 'Roßbach']
ASK WHERE { resource:University_of_Wisconsin–Madison property:country resource:United_States_of_America . resource:University_of_Wisconsin–Madison property:country resource:Roßbach }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q838330,P17,Q30) (Q838330,P17,Q581574)
action is_in
entity Q838330
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q581574
relation P17
[ANSWER]
['Q838330', 'P17', 'Q30'] ['Q838330', 'P17', 'Q581574']
ASK WHERE { resource:Q838330 property:P17 resource:Q30 . resource:Q838330 property:P17 resource:Q581574 }
YES and NO respectively
action is_in
entity University of Wisconsin–Madison
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Roßbach
relation country
['University of Wisconsin–Madison', 'country', 'United States of America'] ['University of Wisconsin–Madison', 'country', 'Roßbach']
ASK WHERE { resource:University_of_Wisconsin–Madison property:country resource:United_States_of_America . resource:University_of_Wisconsin–Madison property:country resource:Roßbach }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1645539 Q581574
P47 P17
Q1048835
USER
Which political territories are Roßbach a part of or share border with Chilluévar ?
OR((Q581574,P17,c(Q1048835)), (Q1645539,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q581574
relation P17
action find
entity Q1645539
relation P47
type Q1048835
{'OR': [['Q581574', 'P17', {'concept': 'Q1048835'}], ['Q1645539', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q581574 property:P17 ?b } UNION { resource:Q1645539 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Chilluévar Roßbach
action filter_type
action union
action find
entity Roßbach
relation country
action find
entity Chilluévar
relation shares border with
type political territorial entity
{'OR': [['Roßbach', 'country', {'concept': 'political territorial entity'}], ['Chilluévar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Roßbach property:country ?b } UNION { resource:Chilluévar property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q518339 Q1986483 Q183 Q1645527
SYSTEM
Cazorla, Santo Tomé, Germany, La Iruela
Q518339 Q1986483 Q183 Q1645527
OR((Q581574,P17,c(Q1048835)), (Q1645539,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q581574
relation P17
action find
entity Q1645539
relation P47
type Q1048835
[ANSWERS] are Roßbach a part of or share border with Chilluévar
{'OR': [['Q581574', 'P17', {'concept': 'Q1048835'}], ['Q1645539', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q581574 property:P17 ?b } UNION { resource:Q1645539 property:P47 ?b } } . ?b rdf:type ontology:Q1048835 }
Cazorla Santo Tomé Germany La Iruela
Cazorla, Santo Tomé, Germany and La Iruela are Roßbach a part of or share border with Chilluévar
Cazorla Santo Tomé Germany La Iruela
action filter_type
action union
action find
entity Roßbach
relation country
action find
entity Chilluévar
relation shares border with
type political territorial entity
{'OR': [['Roßbach', 'country', {'concept': 'political territorial entity'}], ['Chilluévar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Roßbach property:country ?b } UNION { resource:Chilluévar property:shares_border_with ?b } } . ?b rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q518339 Q1986483 Q183 Q1645527
P1313
Q12737077
USER
Which occupations are fulfilled by those political territories ?
(Q518339,P1313,c(Q12737077)) (Q1986483,P1313,c(Q12737077)) (Q183,P1313,c(Q12737077)) (Q1645527,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
['Q518339', 'P1313', {'concept': 'Q12737077'}] ['Q1986483', 'P1313', {'concept': 'Q12737077'}] ['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q1645527', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?m property:P1313 ?s . ?s rdf:type ontology:Q12737077 . VALUES ( ?m ) { ( resource:Q518339 ) ( resource:Q1986483 ) ( resource:Q183 ) } }
Cazorla Santo Tomé Germany La Iruela
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Cazorla', 'office held by head of government', {'concept': 'occupation'}] ['Santo Tomé', 'office held by head of government', {'concept': 'occupation'}] ['Germany', 'office held by head of government', {'concept': 'occupation'}] ['La Iruela', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?m property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation . VALUES ( ?m ) { ( resource:Cazorla ) ( resource:Santo_Tomé ) ( resource:Germany ) } }
[]
occupation
Q4970706 Q26698418 Q26697496
SYSTEM
Federal Chancellor of Germany, mayor of Cazorla, mayor of Santo Tomé
Q26698418 Q26697496 Q4970706 Q26694198
(Q518339,P1313,c(Q12737077)) (Q1986483,P1313,c(Q12737077)) (Q183,P1313,c(Q12737077)) (Q1645527,P1313,c(Q12737077))
action filter_type
action find
entity prev_answer
relation P1313
type Q12737077
[ANSWERS] are fulfilled by those political territories
['Q518339', 'P1313', {'concept': 'Q12737077'}] ['Q1986483', 'P1313', {'concept': 'Q12737077'}] ['Q183', 'P1313', {'concept': 'Q12737077'}] ['Q1645527', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { ?m property:P1313 ?s . ?s rdf:type ontology:Q12737077 . VALUES ( ?m ) { ( resource:Q518339 ) ( resource:Q1986483 ) ( resource:Q183 ) } }
mayor of Cazorla mayor of Santo Tomé Federal Chancellor of Germany mayor of La Iruela
Federal Chancellor of Germany, mayor of Cazorla and mayor of Santo Tomé are fulfilled by those political territories
Federal Chancellor of Germany mayor of Cazorla mayor of Santo Tomé
action filter_type
action find
entity prev_answer
relation office held by head of government
type occupation
['Cazorla', 'office held by head of government', {'concept': 'occupation'}] ['Santo Tomé', 'office held by head of government', {'concept': 'occupation'}] ['Germany', 'office held by head of government', {'concept': 'occupation'}] ['La Iruela', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { ?m property:office_held_by_head_of_government ?s . ?s rdf:type ontology:occupation . VALUES ( ?m ) { ( resource:Cazorla ) ( resource:Santo_Tomé ) ( resource:Germany ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q518339
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that political territory ?
(c(Q12737077),P1001,Q518339)
action filter_type
action find_reverse
entity Q518339
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q518339']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q518339 . ?e rdf:type ontology:Q12737077 }
Cazorla
action filter_type
action find_reverse
entity Cazorla
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Cazorla']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Cazorla . ?e rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q518339
SYSTEM
Did you mean Cazorla ?
Q4970706 Q26698418 Q26697496
(c(Q12737077),P1001,Q4970706) (c(Q12737077),P1001,Q26698418) (c(Q12737077),P1001,Q26697496)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q4970706'] [{'concept': 'Q12737077'}, 'P1001', 'Q26698418'] [{'concept': 'Q12737077'}, 'P1001', 'Q26697496']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q518339 . ?e rdf:type ontology:Q12737077 }
Federal Chancellor of Germany mayor of Cazorla mayor of Santo Tomé
Did you mean Cazorla ?
Cazorla
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Federal Chancellor of Germany'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Cazorla'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'mayor of Santo Tomé']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Cazorla . ?e rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q12737077),P1001,Q518339)
[{'concept': 'Q12737077'}, 'P1001', 'Q518339']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Cazorla']
[]
Q26698418
SYSTEM
mayor of Cazorla
Q26698418
(c(Q12737077),P1001,Q518339)
action filter_type
action find_reverse
entity Q518339
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q518339']
SELECT DISTINCT ?e WHERE { ?e property:P1001 resource:Q518339 . ?e rdf:type ontology:Q12737077 }
mayor of Cazorla
The mayor of Cazorla presides the jurisdiction over that political territory
mayor of Cazorla
action filter_type
action find_reverse
entity Cazorla
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Cazorla']
SELECT DISTINCT ?e WHERE { ?e property:applies_to_jurisdiction resource:Cazorla . ?e rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q26698418 Q4429427 Q518339
P1001
Q1048835
USER
Does that occupation applies to jurisdiction over Susidky and Cazorla ?
(Q26698418,P1001,Q4429427) (Q26698418,P1001,Q518339)
action is_in
entity Q26698418
action intersection
action find_reverse
entity Q4429427
relation P1001
action find_reverse
entity Q518339
relation P1001
['Q26698418', 'P1001', 'Q4429427'] ['Q26698418', 'P1001', 'Q518339']
ASK WHERE { resource:Q26698418 property:P1001 resource:Q4429427 . resource:Q26698418 property:P1001 resource:Q518339 }
mayor of Cazorla Susidky Cazorla
action is_in
entity mayor of Cazorla
action intersection
action find_reverse
entity Susidky
relation applies to jurisdiction
action find_reverse
entity Cazorla
relation applies to jurisdiction
['mayor of Cazorla', 'applies to jurisdiction', 'Susidky'] ['mayor of Cazorla', 'applies to jurisdiction', 'Cazorla']
ASK WHERE { resource:mayor_of_Cazorla property:applies_to_jurisdiction resource:Susidky . resource:mayor_of_Cazorla property:applies_to_jurisdiction resource:Cazorla }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q26698418,P1001,Q4429427) (Q26698418,P1001,Q518339)
action is_in
entity Q26698418
action intersection
action find_reverse
entity Q4429427
relation P1001
action find_reverse
entity Q518339
relation P1001
[ANSWER]
['Q26698418', 'P1001', 'Q4429427'] ['Q26698418', 'P1001', 'Q518339']
ASK WHERE { resource:Q26698418 property:P1001 resource:Q4429427 . resource:Q26698418 property:P1001 resource:Q518339 }
NO and YES respectively
action is_in
entity mayor of Cazorla
action intersection
action find_reverse
entity Susidky
relation applies to jurisdiction
action find_reverse
entity Cazorla
relation applies to jurisdiction
['mayor of Cazorla', 'applies to jurisdiction', 'Susidky'] ['mayor of Cazorla', 'applies to jurisdiction', 'Cazorla']
ASK WHERE { resource:mayor_of_Cazorla property:applies_to_jurisdiction resource:Susidky . resource:mayor_of_Cazorla property:applies_to_jurisdiction resource:Cazorla }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q26698418 Q52912
P17
Q15617994
USER
How many administrative territories are mayor of Cazorla or Statens Järnvägar located in ?
(Q26698418,P17,c(Q15617994)) (Q52912,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q26698418
relation P17
type Q15617994
action filter_type
action find
entity Q52912
relation P17
type Q15617994
['Q26698418', 'P17', {'concept': 'Q15617994'}] ['Q52912', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { resource:Q26698418 property:P17 ?w . ?w rdf:type ontology:Q15617994 } UNION { resource:Q52912 property:P17 ?w . ?w rdf:type ontology:Q15617994 } }
mayor of Cazorla Statens Järnvägar
action count
action union
action filter_type
action find
entity mayor of Cazorla
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Statens Järnvägar
relation country
type designation for an administrative territorial entity
['mayor of Cazorla', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Statens Järnvägar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { resource:mayor_of_Cazorla property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Statens_Järnvägar property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q29 Q34
(Q26698418,P17,c(Q15617994)) (Q52912,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q26698418
relation P17
type Q15617994
action filter_type
action find
entity Q52912
relation P17
type Q15617994
[ANSWER]
['Q26698418', 'P17', {'concept': 'Q15617994'}] ['Q52912', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { resource:Q26698418 property:P17 ?w . ?w rdf:type ontology:Q15617994 } UNION { resource:Q52912 property:P17 ?w . ?w rdf:type ontology:Q15617994 } }
Spain Sweden
2
action count
action union
action filter_type
action find
entity mayor of Cazorla
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Statens Järnvägar
relation country
type designation for an administrative territorial entity
['mayor of Cazorla', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Statens Järnvägar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?m ) WHERE { { resource:mayor_of_Cazorla property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Statens_Järnvägar property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q486972 Q56061
USER
Which political territories have max number of human settlements and administrative territories as their capital ?
(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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?o WHERE { VALUES ( ?n ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?x rdf:type ?n } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?f WHERE { { ?h property:P1376 ?f . ?h rdf:type ontology:Q486972 . ?f rdf:type ontology:Q1048835 } UNION { ?h property:P1376 ?f . ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q56061 } } GROUP BY ?f } . FILTER ( ?z = ?u ) }
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?o WHERE { VALUES ( ?n ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?x rdf:type ?n } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?f WHERE { { ?h property:capital_of ?f . ?h rdf:type ontology:human_settlement . ?f rdf:type ontology:political_territorial_entity } UNION { ?h property:capital_of ?f . ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:administrative_territorial_entity } } GROUP BY ?f } . FILTER ( ?z = ?u ) }
[]
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 and administrative territories as their capital
[[{'concept': 'Q486972'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?o WHERE { VALUES ( ?n ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?x rdf:type ?n } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?f WHERE { { ?h property:P1376 ?f . ?h rdf:type ontology:Q486972 . ?f rdf:type ontology:Q1048835 } UNION { ?h property:P1376 ?f . ?f rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q56061 } } GROUP BY ?f } . FILTER ( ?z = ?u ) }
Fitzcarrald Montserrat Union of South Africa Germany
Germany, Montserrat and Union of South Africa have max number of human settlements and administrative territories as their capital
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 ?f WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?u ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) ?o WHERE { VALUES ( ?n ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?x rdf:type ?n } GROUP BY ?o } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?f WHERE { { ?h property:capital_of ?f . ?h rdf:type ontology:human_settlement . ?f rdf:type ontology:political_territorial_entity } UNION { ?h property:capital_of ?f . ?f rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:administrative_territorial_entity } } GROUP BY ?f } . FILTER ( ?z = ?u ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q183 Q13353 Q193619
P1376
Q56061
USER
Which administrative territories are the capital of those political territories ?
(c(Q56061),P1376,Q183) (c(Q56061),P1376,Q13353) (c(Q56061),P1376,Q193619)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q183'] [{'concept': 'Q56061'}, 'P1376', 'Q13353'] [{'concept': 'Q56061'}, 'P1376', 'Q193619']
SELECT DISTINCT ?t WHERE { ?t property:P1376 ?c . ?t rdf:type ontology:Q56061 . VALUES ( ?c ) { ( resource:Q5455586 ) ( resource:Q13353 ) ( resource:Q193619 ) } }
Germany Montserrat Union of South Africa
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Montserrat'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Union of South Africa']
SELECT DISTINCT ?t WHERE { ?t property:capital_of ?c . ?t rdf:type ontology:administrative_territorial_entity . VALUES ( ?c ) { ( resource:Fitzcarrald ) ( resource:Montserrat ) ( resource:Union_of_South_Africa ) } }
[]
administrative territorial entity
Q64 Q586 Q5465
SYSTEM
Berlin, Bonn, Cape Town
Q586 Q64 Q30990 Q31006 Q37701 Q5465
(c(Q56061),P1376,Q183) (c(Q56061),P1376,Q13353) (c(Q56061),P1376,Q193619)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWERS] are the capital of those political territories
[{'concept': 'Q56061'}, 'P1376', 'Q183'] [{'concept': 'Q56061'}, 'P1376', 'Q13353'] [{'concept': 'Q56061'}, 'P1376', 'Q193619']
SELECT DISTINCT ?t WHERE { ?t property:P1376 ?c . ?t rdf:type ontology:Q56061 . VALUES ( ?c ) { ( resource:Q5455586 ) ( resource:Q13353 ) ( resource:Q193619 ) } }
Bonn Berlin Plymouth Brades Bloemfontein Cape Town
Berlin, Bonn and Cape Town are the capital of those political territories
Berlin Bonn Cape Town
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Germany'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Montserrat'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Union of South Africa']
SELECT DISTINCT ?t WHERE { ?t property:capital_of ?c . ?t rdf:type ontology:administrative_territorial_entity . VALUES ( ?c ) { ( resource:Fitzcarrald ) ( resource:Montserrat ) ( resource:Union_of_South_Africa ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q64 Q586 Q5465
P551
Q502895
USER
Which people dwell at those administrative territories ?
(c(Q502895),P551,Q64) (c(Q502895),P551,Q586) (c(Q502895),P551,Q5465)
action filter_type
action find_reverse
entity prev_answer
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q64'] [{'concept': 'Q502895'}, 'P551', 'Q586'] [{'concept': 'Q502895'}, 'P551', 'Q5465']
SELECT DISTINCT ?r WHERE { ?r property:P551 ?p . ?r rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q586 ) ( resource:Q64 ) ( resource:Q30990 ) } }
Berlin Bonn Cape Town
action filter_type
action find_reverse
entity prev_answer
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Berlin'] [{'concept': 'common name'}, 'residence', 'Bonn'] [{'concept': 'common name'}, 'residence', 'Cape Town']
SELECT DISTINCT ?r WHERE { ?r property:residence ?p . ?r rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Bonn ) ( resource:Berlin ) ( resource:Plymouth ) } }
[]
common name
Q2567 Q15080578 Q15080578
SYSTEM
Marcus Cyron for 2nd, 3rd, Richard von Weizsäcker for 1st
Q19960119 Q215756 Q18676928 Q18222025 Q6233875 Q6233875 Q1563179 Q3656215 Q1983985 Q1729410 Q105579 Q3441448 Q1618018 Q1085257 Q18347222 Q23008452 Q1383565 Q11730120 Q98437 Q1371858 Q41508 Q97153 Q448173 Q38049 Q23001679 Q105013 Q19850444 Q17591714 Q1331681 Q101083 Q23055219 Q13499737 Q18623833 Q1423204 Q1914033 Q20800727 Q15804115 Q17127900 Q2567 Q2883803 Q72059 Q15439496 Q1606297 Q101010 Q26887243 Q106548 Q6447106 Q27612107 Q23229865 Q27623326 Q775266 Q2475126 Q23019116 Q24650389 Q21014652 Q1793754 Q219551 Q1316036 Q272713 Q1356172 Q15054444 Q10070 Q1770290 Q2544781 Q50039 Q57384 Q7879844 Q1576085 Q23639032 Q21013724 Q101549 Q24199819 Q2254007 Q1658473 Q5653740 Q21013771 Q22998602 Q58819 Q42831 Q55192 Q23951788 Q103955 Q235095 Q18587087 Q762184 Q15080578 Q237825 Q952737 Q161363 Q17455385 Q7425760 Q1355800 Q100677 Q3979066 Q6512 Q71696 Q74651 Q58284 Q23701408 Q9014784 Q2572397 Q60984 Q6001165 Q76517 Q24237396 Q166675 Q568623 Q19059989 Q4717837 Q494437 Q23902692 Q103623 Q103623 Q97457 Q15446643 Q11912904 Q2441850 Q107194 Q18413340 Q7724 Q64850 Q22916471 Q1904446 Q14550937 Q93604 Q55419 Q6374627 Q25906197 Q16004446 Q21957410 Q106548 Q77157 Q101549 Q2073936 Q15080578 Q15430796 Q5719649 Q7384485 Q5505046 Q21540032 Q21540273 Q1123799 Q2636798
(c(Q502895),P551,Q64) (c(Q502895),P551,Q586) (c(Q502895),P551,Q5465)
action filter_type
action find_reverse
entity prev_answer
relation P551
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P551', 'Q64'] [{'concept': 'Q502895'}, 'P551', 'Q586'] [{'concept': 'Q502895'}, 'P551', 'Q5465']
SELECT DISTINCT ?r WHERE { ?r property:P551 ?p . ?r rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q586 ) ( resource:Q64 ) ( resource:Q30990 ) } }
Uwe Klimmeck Klaus Schütz Carl S. Dentzel Elsa Gidoni John Francis Charles, 7th Count de Salis-Soglio John Francis Charles, 7th Count de Salis-Soglio Klaus Eberhard Ernst L. Freud Nezaket Ekici Karin Buchholz Sebastian Rieschick Ron Rocco Hijikata Yoshi Christoph Jungmann Wenzel Goldbaum Ronja von Rönne Alexi Murdoch Chuck Smith Rolf Eden Philipp von Schulthess Ludwig Mies van der Rohe Lisa Maria Potthoff María Corda Herta Müller Anton Spieker Frederick William I of Prussia Moritz Conradi Scarlet Klimek Ella Briggs Brigitte D'Ortschy Bernhard Reicherts Brigitta Helbig-Mischewski Poul Robert Weile Simone Tippach-Schneider Maximilian Meisse Eleni-Alexandra Amburger Curt Herrmann Víctor Cruz Richard von Weizsäcker Baran bo Odar Patrik Kühnen Manfred Klimek Henrik Olesen Christian Broecking Judith Arlt Maybrit Illner Kurt Vonnegut, Sr. Jens Grötzschel Noaz Deshe Edelwald Rumpel Jean Vogt Ulla Lenze Sabrina Strehl Justina Mischewski Katja Dathe Kurt Kretschmann Ferruccio Busoni Horst Schrade Julie Wolfthorn Ernemann Sander Ignat Florian Bociort Jacob Appelbaum Aleksandra Kumorek Walter Hochmuth Patrick Conley Wernher von Braun Ulrich Marten Hannes Schwenger Uwe Mengel Jonathan Groß Erich Vermehren Sharon Dodua Otoo Avner W. Less Ilya Kitup Harald Elschenbroich Martin Rulsch Maximilian Mittelstädt Andreas Krieger Ivan Turgenev Gertrude Abercrombie Else von Behring Gustav Stresemann Peaches Becca Moore Inken Becher Marcus Cyron John Polanyi Diego Abad de Santillán Zbigniew Herbert Jerry Cooke Sasse Yuri Schukin Katja Abel Sylke Tempel Søren Kierkegaard Heinrich Blücher Paul Jacobsthal Guido Westerwelle Yusra Mardini José Ruiz Santaella Wilhelm Doms Judith Hermann Ilse Braun Alexander Gottlieb Baumgarten Gertrud Prager George William, Elector of Brandenburg Katherine Esau Kyra Sophia Kahre Alex Stepanek Andrea McEwan Florian Kohls Christoph M. Ohrt Christoph M. Ohrt Günther Anders Maike Nowak Edin Hasanovic Toni Mahoni George Grosz Tania Witte August Strindberg Ernst Wiechert Sabine Pamperrien Martin Liebscher Carmen Schrader Lotte Lenya Klaus Kinski Kaspar Anton Karl van Beethoven Ulrich Biermann Hannelore Bode Marc Asbeck Maybrit Illner Annika Beck Erich Vermehren Peter Beyer Marcus Cyron Stephan Rauhut Henry Cohen Ryan Sandes Fritz Wolmarans Alexander Lee Robert Lee Piet Norval Alan Phillips
Richard von Weizsäcker, Marcus Cyron and Marcus Cyron dwell at those administrative territories
Richard von Weizsäcker Marcus Cyron Marcus Cyron
action filter_type
action find_reverse
entity prev_answer
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Berlin'] [{'concept': 'common name'}, 'residence', 'Bonn'] [{'concept': 'common name'}, 'residence', 'Cape Town']
SELECT DISTINCT ?r WHERE { ?r property:residence ?p . ?r rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Bonn ) ( resource:Berlin ) ( resource:Plymouth ) } }
[]