Simple Question (Direct)
Simple Question
Q62707
P607
Q198
USER
Which war did Joachim Lemelsen take part in ?
(Q62707,P607,c(Q198))
action filter_type
action find
entity Q62707
relation P607
type Q198
['Q62707', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { resource:Q62707 property:P607 ?w . ?w rdf:type ontology:Q198 }
Joachim Lemelsen
action filter_type
action find
entity Joachim Lemelsen
relation conflict
type war
['Joachim Lemelsen', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { resource:Joachim_Lemelsen property:conflict ?w . ?w rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q62707,P607,c(Q198))
action filter_type
action find
entity Q62707
relation P607
type Q198
Joachim Lemelsen took part in [ANSWER]
['Q62707', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { resource:Q62707 property:P607 ?w . ?w rdf:type ontology:Q198 }
World War I
Joachim Lemelsen took part in World War I
World War I
action filter_type
action find
entity Joachim Lemelsen
relation conflict
type war
['Joachim Lemelsen', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { resource:Joachim_Lemelsen property:conflict ?w . ?w rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62707
P410
Q4189293
USER
Which title was the military rank held by Joachim Lemelsen ?
(Q62707,P410,c(Q4189293))
action filter_type
action find
entity Q62707
relation P410
type Q4189293
['Q62707', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4189293 . resource:Q62707 property:P410 ?a }
Joachim Lemelsen
action filter_type
action find
entity Joachim Lemelsen
relation military rank
type title
['Joachim Lemelsen', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:title . resource:Joachim_Lemelsen property:military_rank ?a }
[]
title
Q664082
SYSTEM
General der Panzertruppe
Q664082
(Q62707,P410,c(Q4189293))
action filter_type
action find
entity Q62707
relation P410
type Q4189293
[ANSWER] was the military rank held by Joachim Lemelsen
['Q62707', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q4189293 . resource:Q62707 property:P410 ?a }
General der Panzertruppe
General der Panzertruppe was the military rank held by Joachim Lemelsen
General der Panzertruppe
action filter_type
action find
entity Joachim Lemelsen
relation military rank
type title
['Joachim Lemelsen', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:title . resource:Joachim_Lemelsen property:military_rank ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62707
P166
Q18328097
USER
Which courage award was that person awarded with ?
(Q664082,P166,c(Q18328097))
action filter_type
action find
entity Q62707
relation P166
type Q18328097
['Q664082', 'P166', {'concept': 'Q18328097'}]
SELECT DISTINCT ?a WHERE { resource:Q62707 property:P166 ?a . ?a rdf:type ontology:Q18328097 }
Joachim Lemelsen
action filter_type
action find
entity Joachim Lemelsen
relation award received
type courage award
['General der Panzertruppe', 'award received', {'concept': 'courage award'}]
SELECT DISTINCT ?a WHERE { resource:Joachim_Lemelsen property:award_received ?a . ?a rdf:type ontology:courage_award }
[]
courage award
Q17412908
SYSTEM
German Cross in Gold
Q17412908
(Q664082,P166,c(Q18328097))
action filter_type
action find
entity Q62707
relation P166
type Q18328097
That person was awarded the [ANSWER]
['Q664082', 'P166', {'concept': 'Q18328097'}]
SELECT DISTINCT ?a WHERE { resource:Q62707 property:P166 ?a . ?a rdf:type ontology:Q18328097 }
German Cross in Gold
That person was awarded the German Cross in Gold
German Cross in Gold
action filter_type
action find
entity Joachim Lemelsen
relation award received
type courage award
['General der Panzertruppe', 'award received', {'concept': 'courage award'}]
SELECT DISTINCT ?a WHERE { resource:Joachim_Lemelsen property:award_received ?a . ?a rdf:type ontology:courage_award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q17412908 Q5481495
P166
Q502895
USER
Did Francis Jeune, 1st Baron St Helier win that courage award ?
(Q5481495,P166,Q17412908)
action is_in
entity Q5481495
action find
entity Q17412908
relation P166
['Q5481495', 'P166', 'Q17412908']
ASK WHERE { resource:Q17412908 property:P166 resource:Q5481495 }
German Cross in Gold Francis Jeune, 1st Baron St Helier
action is_in
entity Francis Jeune, 1st Baron St Helier
action find
entity German Cross in Gold
relation award received
['Francis Jeune, 1st Baron St Helier', 'award received', 'German Cross in Gold']
ASK WHERE { resource:German_Cross_in_Gold property:award_received resource:Francis_Jeune,_1st_Baron_St_Helier }
[]
common name
SYSTEM
NO
(Q5481495,P166,Q17412908)
action is_in
entity Q5481495
action find
entity Q17412908
relation P166
[ANSWER]
['Q5481495', 'P166', 'Q17412908']
ASK WHERE { resource:Q17412908 property:P166 resource:Q5481495 }
No
action is_in
entity Francis Jeune, 1st Baron St Helier
action find
entity German Cross in Gold
relation award received
['Francis Jeune, 1st Baron St Helier', 'award received', 'German Cross in Gold']
ASK WHERE { resource:German_Cross_in_Gold property:award_received resource:Francis_Jeune,_1st_Baron_St_Helier }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q75984
P921
Q198 Q2342494 Q838948
USER
How many wars were around the same number of collectables and works of art mainly about as Dirty War ?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q75984
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?j rdf:type ?i } . ?j property:P921 resource:Q75984 } } . FILTER ( ?k = ?a ) }
Dirty War
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Dirty War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?j rdf:type ?i } . ?j property:main_subject resource:Dirty_War } } . FILTER ( ?k = ?a ) }
[]
war collectable work of art
SYSTEM
18
Q8683 Q81545 Q211855 Q8676 Q633862 Q188972 Q129053 Q1049945 Q10859 Q209297 Q242352 Q201424 Q142529 Q361 Q75984 Q178810 Q545449 Q243620
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q75984
relation P921
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?j rdf:type ?i } . ?j property:P921 resource:Q75984 } } . FILTER ( ?k = ?a ) }
Cold War 2011 Libyan Civil War Finnish Civil War American Civil War Cold War Greek Civil War partition of India Jacobite rising of 1745 Spanish Civil War Farroupilha Revolution Yugoslav Wars nuclear war Algerian Civil War World War I Dirty War Syrian Civil War Iraq War Somali Civil War
18
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity Dirty War
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?k ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:work_of_art ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) WHERE { { VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?j rdf:type ?i } . ?j property:main_subject resource:Dirty_War } } . FILTER ( ?k = ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q201424
P921
Q198 Q2342494 Q838948
USER
And what about nuclear war?
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q201424
relation P921
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?w rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P921 resource:Q201424 . { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q838948 } } } } . FILTER ( ?q = ?a ) }
nuclear war
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity nuclear war
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?w rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:main_subject resource:nuclear_war . { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:work_of_art } } } } . FILTER ( ?q = ?a ) }
[]
war collectable work of art
SYSTEM
18
Q8683 Q81545 Q211855 Q8676 Q633862 Q188972 Q129053 Q1049945 Q10859 Q209297 Q242352 Q201424 Q142529 Q361 Q75984 Q178810 Q545449 Q243620
(c(Q2342494)|c(Q838948),P921,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q201424
relation P921
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?w rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:P921 resource:Q201424 . { { ?v rdf:type ontology:Q2342494 } UNION { ?v rdf:type ontology:Q838948 } } } } . FILTER ( ?q = ?a ) }
Cold War 2011 Libyan Civil War Finnish Civil War American Civil War Cold War Greek Civil War partition of India Jacobite rising of 1745 Spanish Civil War Farroupilha Revolution Yugoslav Wars nuclear war Algerian Civil War World War I Dirty War Syrian Civil War Iraq War Somali Civil War
18
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action count
action filter_multi_types
action find_reverse
entity nuclear war
relation main subject
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?w rdf:type ?k } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { ?v property:main_subject resource:nuclear_war . { { ?v rdf:type ontology:collectable } UNION { ?v rdf:type ontology:work_of_art } } } } . FILTER ( ?q = ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62707
P19
Q56061
USER
Which administrative territory is the birthplace of Joachim Lemelsen ?
(Q62707,P19,c(Q56061))
action filter_type
action find
entity Q62707
relation P19
type Q56061
['Q62707', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q62707 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Joachim Lemelsen
action filter_type
action find
entity Joachim Lemelsen
relation place of birth
type administrative territorial entity
['Joachim Lemelsen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Joachim_Lemelsen property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q62707,P19,c(Q56061))
action filter_type
action find
entity Q62707
relation P19
type Q56061
[ANSWER] is the birthplace of Joachim Lemelsen
['Q62707', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q62707 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Berlin
Berlin is the birthplace of Joachim Lemelsen
Berlin
action filter_type
action find
entity Joachim Lemelsen
relation place of birth
type administrative territorial entity
['Joachim Lemelsen', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Joachim_Lemelsen property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q64 Q3824024
P17
Q1048835
USER
Does that administrative territory belong to Ananea District ?
(Q64,P17,Q3824024)
action is_in
entity Q3824024
action find
entity Q64
relation P17
['Q64', 'P17', 'Q3824024']
ASK WHERE { resource:Q64 property:P17 resource:Q3824024 }
Berlin Ananea District
action is_in
entity Ananea District
action find
entity Berlin
relation country
['Berlin', 'country', 'Ananea District']
ASK WHERE { resource:Berlin property:country resource:Ananea_District }
[]
political territorial entity
SYSTEM
NO
(Q64,P17,Q3824024)
action is_in
entity Q3824024
action find
entity Q64
relation P17
[ANSWER]
['Q64', 'P17', 'Q3824024']
ASK WHERE { resource:Q64 property:P17 resource:Q3824024 }
No
action is_in
entity Ananea District
action find
entity Berlin
relation country
['Berlin', 'country', 'Ananea District']
ASK WHERE { resource:Berlin property:country resource:Ananea_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q664082 Q4108316 Q183
P17
Q1048835
USER
Is General der Panzertruppe located in Verkhnobohdanivka and Germany ?
(Q664082,P17,Q4108316) (Q664082,P17,Q183)
action is_in
entity Q664082
action intersection
action find_reverse
entity Q4108316
relation P17
action find_reverse
entity Q183
relation P17
['Q664082', 'P17', 'Q4108316'] ['Q664082', 'P17', 'Q183']
ASK WHERE { resource:Q664082 property:P17 resource:Q4108316 . resource:Q664082 property:P17 resource:Q183 }
General der Panzertruppe Verkhnobohdanivka Germany
action is_in
entity General der Panzertruppe
action intersection
action find_reverse
entity Verkhnobohdanivka
relation country
action find_reverse
entity Germany
relation country
['General der Panzertruppe', 'country', 'Verkhnobohdanivka'] ['General der Panzertruppe', 'country', 'Germany']
ASK WHERE { resource:General_der_Panzertruppe property:country resource:Verkhnobohdanivka . resource:General_der_Panzertruppe property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q664082,P17,Q4108316) (Q664082,P17,Q183)
action is_in
entity Q664082
action intersection
action find_reverse
entity Q4108316
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q664082', 'P17', 'Q4108316'] ['Q664082', 'P17', 'Q183']
ASK WHERE { resource:Q664082 property:P17 resource:Q4108316 . resource:Q664082 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity General der Panzertruppe
action intersection
action find_reverse
entity Verkhnobohdanivka
relation country
action find_reverse
entity Germany
relation country
['General der Panzertruppe', 'country', 'Verkhnobohdanivka'] ['General der Panzertruppe', 'country', 'Germany']
ASK WHERE { resource:General_der_Panzertruppe property:country resource:Verkhnobohdanivka . resource:General_der_Panzertruppe property:country resource:Germany }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P610
Q151885
USER
Which concept is the highest point of Berlin ?
(Q64,P610,c(Q151885))
action filter_type
action find
entity Q64
relation P610
type Q151885
['Q64', 'P610', {'concept': 'Q151885'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q151885 . resource:Q64 property:P610 ?t }
Berlin
action filter_type
action find
entity Berlin
relation highest point
type concept
['Berlin', 'highest point', {'concept': 'concept'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:concept . resource:Berlin property:highest_point ?t }
[]
concept
Q19259618
SYSTEM
Arkenberge
Q19259618
(Q64,P610,c(Q151885))
action filter_type
action find
entity Q64
relation P610
type Q151885
[ANSWER] is the highest point of Berlin
['Q64', 'P610', {'concept': 'Q151885'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q151885 . resource:Q64 property:P610 ?t }
Arkenberge
Arkenberge is the highest point of Berlin
Arkenberge
action filter_type
action find
entity Berlin
relation highest point
type concept
['Berlin', 'highest point', {'concept': 'concept'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:concept . resource:Berlin property:highest_point ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22814600 Q4108316
P17
Q15617994
USER
Which administrative territories are Verkhnobohdanivka or Te Aceng Primary School a part of ?
OR((Q4108316,P17,c(Q15617994)), (Q22814600,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4108316
relation P17
action find
entity Q22814600
relation P17
type Q15617994
{'OR': [['Q4108316', 'P17', {'concept': 'Q15617994'}], ['Q22814600', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q4108316 property:P17 ?j } UNION { resource:Q22814600 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Te Aceng Primary School Verkhnobohdanivka
action filter_type
action union
action find
entity Verkhnobohdanivka
relation country
action find
entity Te Aceng Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['Verkhnobohdanivka', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Te Aceng Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Verkhnobohdanivka property:country ?j } UNION { resource:Te_Aceng_Primary_School property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q1036
SYSTEM
Ukraine, Uganda
Q212 Q1036
OR((Q4108316,P17,c(Q15617994)), (Q22814600,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q4108316
relation P17
action find
entity Q22814600
relation P17
type Q15617994
[ANSWERS] are Verkhnobohdanivka or Te Aceng Primary School a part of
{'OR': [['Q4108316', 'P17', {'concept': 'Q15617994'}], ['Q22814600', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q4108316 property:P17 ?j } UNION { resource:Q22814600 property:P17 ?j } } . ?j rdf:type ontology:Q15617994 }
Ukraine Uganda
Ukraine and Uganda are Verkhnobohdanivka or Te Aceng Primary School a part of
Ukraine Uganda
action filter_type
action union
action find
entity Verkhnobohdanivka
relation country
action find
entity Te Aceng Primary School
relation country
type designation for an administrative territorial entity
{'OR': [['Verkhnobohdanivka', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Te Aceng Primary School', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Verkhnobohdanivka property:country ?j } UNION { resource:Te_Aceng_Primary_School property:country ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1228759
P530
Q1048835
USER
Are La Unión known to have diplomatic connections with those administrative territories ?
(Q1228759,P530,Q212) (Q1228759,P530,Q1036)
action is_in
entity prev_answer
action find
entity Q1228759
relation P530
['Q1228759', 'P530', 'Q212'] ['Q1228759', 'P530', 'Q1036']
ASK WHERE { VALUES ( ?a ) { ( resource:Q212 ) ( resource:Q1036 ) } . resource:Q1228759 property:P530 ?a }
La Unión
action is_in
entity prev_answer
action find
entity La Unión
relation diplomatic relation
['La Unión', 'diplomatic relation', 'Ukraine'] ['La Unión', 'diplomatic relation', 'Uganda']
ASK WHERE { VALUES ( ?a ) { ( resource:Ukraine ) ( resource:Uganda ) } . resource:La_Unión property:diplomatic_relation ?a }
[]
political territorial entity
SYSTEM
NO
(Q1228759,P530,Q212) (Q1228759,P530,Q1036)
action is_in
entity prev_answer
action find
entity Q1228759
relation P530
[ANSWER]
['Q1228759', 'P530', 'Q212'] ['Q1228759', 'P530', 'Q1036']
ASK WHERE { VALUES ( ?a ) { ( resource:Q212 ) ( resource:Q1036 ) } . resource:Q1228759 property:P530 ?a }
No
action is_in
entity prev_answer
action find
entity La Unión
relation diplomatic relation
['La Unión', 'diplomatic relation', 'Ukraine'] ['La Unión', 'diplomatic relation', 'Uganda']
ASK WHERE { VALUES ( ?a ) { ( resource:Ukraine ) ( resource:Uganda ) } . resource:La_Unión property:diplomatic_relation ?a }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q241
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with more number of administrative territories than Cuba ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q241
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { ?i property:P530 ?v . ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:P530 resource:Q241 . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?n ) }
Cuba
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { ?i property:diplomatic_relation ?v . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:diplomatic_relation resource:Cuba . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?n ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q159 Q43 Q155 Q796 Q794 Q30 Q38 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q241
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with more number of administrative territories than Cuba
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { ?i property:P530 ?v . ?i rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:P530 resource:Q241 . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?n ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Russia Turkey Brazil Iraq Iran United States of America Italy Liechtenstein Japan Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America have diplomatic relationships with more number of administrative territories than Cuba
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?s ) WHERE { ?i property:diplomatic_relation ?v . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t property:diplomatic_relation resource:Cuba . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?n ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P710
Q476300 Q930933
USER
How many competitions or relationships were that administrative territory a participant of ?
(c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q38) (c(Q930933),P710,Q38) (c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q30) (c(Q930933),P710,Q30)
[{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q38'] [{'concept': 'Q930933'}, 'P710', 'Q38'] [{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q30'] [{'concept': 'Q930933'}, 'P710', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q977238 } UNION { ?y property:P710 resource:Q977238 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q30 } UNION { ?y property:P710 resource:Q30 } } . ?z rdf:type ontology:Q45767 . ?y rdf:type ontology:Q7310741 }
[{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'Italy'] [{'concept': 'relationship'}, 'participant', 'Italy'] [{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'United States of America'] [{'concept': 'relationship'}, 'participant', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Italy } UNION { ?y property:participant resource:Italy } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:United_States_of_America } UNION { ?y property:participant resource:United_States_of_America } } . ?z rdf:type ontology:competition . ?y rdf:type ontology:relationship }
[]
competition relationship
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q977238 } UNION { ?y property:P710 resource:Q977238 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q30 } UNION { ?y property:P710 resource:Q30 } } . ?z rdf:type ontology:Q45767 . ?y rdf:type ontology:Q7310741 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Italy } UNION { ?y property:participant resource:Italy } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:United_States_of_America } UNION { ?y property:participant resource:United_States_of_America } } . ?z rdf:type ontology:competition . ?y rdf:type ontology:relationship }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q38) (c(Q930933),P710,Q38) (c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q30) (c(Q930933),P710,Q30)
[{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q38'] [{'concept': 'Q930933'}, 'P710', 'Q38'] [{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q30'] [{'concept': 'Q930933'}, 'P710', 'Q30']
[{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'Italy'] [{'concept': 'relationship'}, 'participant', 'Italy'] [{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'United States of America'] [{'concept': 'relationship'}, 'participant', 'United States of America']
[]
SYSTEM
2
Q9538 Q4825269
(c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q38) (c(Q930933),P710,Q38) (c(Q476300),P710,Q155) (c(Q930933),P710,Q155) (c(Q476300),P710,Q30) (c(Q930933),P710,Q30)
[ANSWER]
[{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q38'] [{'concept': 'Q930933'}, 'P710', 'Q38'] [{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q476300'}, 'P710', 'Q30'] [{'concept': 'Q930933'}, 'P710', 'Q30']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q977238 } UNION { ?y property:P710 resource:Q977238 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q30 } UNION { ?y property:P710 resource:Q30 } } . ?z rdf:type ontology:Q45767 . ?y rdf:type ontology:Q7310741 }
South American dreadnought race Australia–Brazil relations
2
[{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'Italy'] [{'concept': 'relationship'}, 'participant', 'Italy'] [{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'competition'}, 'participant', 'United States of America'] [{'concept': 'relationship'}, 'participant', 'United States of America']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Italy } UNION { ?y property:participant resource:Italy } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:United_States_of_America } UNION { ?y property:participant resource:United_States_of_America } } . ?z rdf:type ontology:competition . ?y rdf:type ontology:relationship }
[]