Simple Question (Direct)
Simple Question
Q3270815
P27
Q15617994
USER
Which administrative territory is Qin Jiwei a civilian of ?
(Q3270815,P27,c(Q15617994))
action filter_type
action find
entity Q3270815
relation P27
type Q15617994
['Q3270815', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3270815 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
Qin Jiwei
action filter_type
action find
entity Qin Jiwei
relation country of citizenship
type designation for an administrative territorial entity
['Qin Jiwei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Qin_Jiwei property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q3270815,P27,c(Q15617994))
action filter_type
action find
entity Q3270815
relation P27
type Q15617994
[ANSWER] is Qin Jiwei a civilian of
['Q3270815', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q3270815 property:P27 ?d . ?d rdf:type ontology:Q15617994 }
People's Republic of China
People's Republic of China is Qin Jiwei a civilian of
People's Republic of China
action filter_type
action find
entity Qin Jiwei
relation country of citizenship
type designation for an administrative territorial entity
['Qin Jiwei', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Qin_Jiwei property:country_of_citizenship ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3270815
P410
Q56019
USER
Which military rank has that person achieved ?
(Q148,P410,c(Q56019))
action filter_type
action find
entity Q3270815
relation P410
type Q56019
['Q148', 'P410', {'concept': 'Q56019'}]
SELECT DISTINCT ?c WHERE { resource:Q3270815 property:P410 ?c . ?c rdf:type ontology:Q56019 }
Qin Jiwei
action filter_type
action find
entity Qin Jiwei
relation military rank
type military rank
["People's Republic of China", 'military rank', {'concept': 'military rank'}]
SELECT DISTINCT ?c WHERE { resource:Qin_Jiwei property:military_rank ?c . ?c rdf:type ontology:military_rank }
[]
military rank
Q10872929
SYSTEM
Shang Jiang
Q10872929
(Q148,P410,c(Q56019))
action filter_type
action find
entity Q3270815
relation P410
type Q56019
That person has achieved the [ANSWER]
['Q148', 'P410', {'concept': 'Q56019'}]
SELECT DISTINCT ?c WHERE { resource:Q3270815 property:P410 ?c . ?c rdf:type ontology:Q56019 }
Shang Jiang
That person has achieved the Shang Jiang
Shang Jiang
action filter_type
action find
entity Qin Jiwei
relation military rank
type military rank
["People's Republic of China", 'military rank', {'concept': 'military rank'}]
SELECT DISTINCT ?c WHERE { resource:Qin_Jiwei property:military_rank ?c . ?c rdf:type ontology:military_rank }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q7561974
P206
Q355304 Q337567 Q15617994
USER
Which administrative territories are located nearby more number of watercourses or still waterss than Sonning Eye ?
(c(Q15617994),P206,c(Q355304)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q7561974
relation P206
type Q355304
type Q337567
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?o ) WHERE { { ?j property:P206 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q337567 } UNION { ?j property:P206 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q355304 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q7561974 property:P206 ?e . { VALUES ( ?d ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?e rdf:type ?d } } } . FILTER ( ?o > ?y ) }
Sonning Eye
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Sonning Eye
relation located next to body of water
type watercourse
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?o ) WHERE { { ?j property:located_next_to_body_of_water ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:still_waters } UNION { ?j property:located_next_to_body_of_water ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:watercourse } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Sonning_Eye property:located_next_to_body_of_water ?e . { VALUES ( ?d ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?e rdf:type ?d } } } . FILTER ( ?o > ?y ) }
[]
watercourse still waters designation for an administrative territorial entity
Q36 Q213 Q214
SYSTEM
Poland, Czech Republic, Slovakia
Q241358 Q214 Q491751 Q14825 Q36 Q104192 Q28 Q525900 Q213 Q3923 Q252320 Q526087 Q2758 Q494305
(c(Q15617994),P206,c(Q355304)|c(Q337567))
action greater
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q337567
action count
action filter_multi_types
action find
entity Q7561974
relation P206
type Q355304
type Q337567
[ANSWERS] are located nearby more number of watercourses or still waterss than Sonning Eye
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?o ) WHERE { { ?j property:P206 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q337567 } UNION { ?j property:P206 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q355304 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Q7561974 property:P206 ?e . { VALUES ( ?d ) { ( ontology:Q355304 ) ( ontology:Q337567 ) } . ?e rdf:type ?d } } } . FILTER ( ?o > ?y ) }
Schleiden Slovakia Pfatter Memmingen Poland Kleinmachnow Hungary Meinheim Czech Republic Bayreuth Pleinfeld Nennslingen Mönchengladbach Kelheim
Poland, Czech Republic and Slovakia are located nearby more number of watercourses or still waterss than Sonning Eye
Poland Czech Republic Slovakia
action greater
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
action count
action filter_multi_types
action find
entity Sonning Eye
relation located next to body of water
type watercourse
type still waters
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?o ) WHERE { { ?j property:located_next_to_body_of_water ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:still_waters } UNION { ?j property:located_next_to_body_of_water ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:watercourse } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { resource:Sonning_Eye property:located_next_to_body_of_water ?e . { VALUES ( ?d ) { ( ontology:watercourse ) ( ontology:still_waters ) } . ?e rdf:type ?d } } } . FILTER ( ?o > ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1506122 Q3270815
P102
Q7278
USER
Which political parties are Qin Jiwei or Georg Stibi affiliated with ?
OR((Q3270815,P102,c(Q7278)), (Q1506122,P102,c(Q7278)))
action filter_type
action union
action find
entity Q3270815
relation P102
action find
entity Q1506122
relation P102
type Q7278
{'OR': [['Q3270815', 'P102', {'concept': 'Q7278'}], ['Q1506122', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?u WHERE { { ?t property:P102 ?u . VALUES ( ?t ) { ( resource:Q3270815 ) ( resource:Q1506122 ) } } . ?u rdf:type ontology:Q7278 }
Georg Stibi Qin Jiwei
action filter_type
action union
action find
entity Qin Jiwei
relation member of political party
action find
entity Georg Stibi
relation member of political party
type political party
{'OR': [['Qin Jiwei', 'member of political party', {'concept': 'political party'}], ['Georg Stibi', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?u WHERE { { ?t property:member_of_political_party ?u . VALUES ( ?t ) { ( resource:Qin_Jiwei ) ( resource:Georg_Stibi ) } } . ?u rdf:type ontology:political_party }
[]
political party
Q17427 Q49750 Q153401
SYSTEM
Communist Party of China, Socialist Unity Party of Germany, Communist Party of Germany
Q17427 Q49750 Q153401
OR((Q3270815,P102,c(Q7278)), (Q1506122,P102,c(Q7278)))
action filter_type
action union
action find
entity Q3270815
relation P102
action find
entity Q1506122
relation P102
type Q7278
Qin Jiwei or Georg Stibi are affiliated with [ANSWERS]
{'OR': [['Q3270815', 'P102', {'concept': 'Q7278'}], ['Q1506122', 'P102', {'concept': 'Q7278'}]]}
SELECT DISTINCT ?u WHERE { { ?t property:P102 ?u . VALUES ( ?t ) { ( resource:Q3270815 ) ( resource:Q1506122 ) } } . ?u rdf:type ontology:Q7278 }
Communist Party of China Socialist Unity Party of Germany Communist Party of Germany
Qin Jiwei or Georg Stibi are affiliated with Communist Party of China, Socialist Unity Party of Germany and Communist Party of Germany
Communist Party of China Socialist Unity Party of Germany Communist Party of Germany
action filter_type
action union
action find
entity Qin Jiwei
relation member of political party
action find
entity Georg Stibi
relation member of political party
type political party
{'OR': [['Qin Jiwei', 'member of political party', {'concept': 'political party'}], ['Georg Stibi', 'member of political party', {'concept': 'political party'}]]}
SELECT DISTINCT ?u WHERE { { ?t property:member_of_political_party ?u . VALUES ( ?t ) { ( resource:Qin_Jiwei ) ( resource:Georg_Stibi ) } } . ?u rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6095645
P102
Q502895
USER
Are Iva Campbell Fallis members of those political parties ?
(Q6095645,P102,Q17427) (Q6095645,P102,Q49750) (Q6095645,P102,Q153401)
action is_in
entity prev_answer
action find
entity Q6095645
relation P102
['Q6095645', 'P102', 'Q17427'] ['Q6095645', 'P102', 'Q49750'] ['Q6095645', 'P102', 'Q153401']
ASK WHERE { VALUES ( ?b ) { ( resource:Q17427 ) ( resource:Q49750 ) ( resource:Q153401 ) } . resource:Q6095645 property:P102 ?b }
Iva Campbell Fallis
action is_in
entity prev_answer
action find
entity Iva Campbell Fallis
relation member of political party
['Iva Campbell Fallis', 'member of political party', 'Communist Party of China'] ['Iva Campbell Fallis', 'member of political party', 'Socialist Unity Party of Germany'] ['Iva Campbell Fallis', 'member of political party', 'Communist Party of Germany']
ASK WHERE { VALUES ( ?b ) { ( resource:Communist_Party_of_China ) ( resource:Socialist_Unity_Party_of_Germany ) ( resource:Communist_Party_of_Germany ) } . resource:Iva_Campbell_Fallis property:member_of_political_party ?b }
[]
common name
SYSTEM
NO
(Q6095645,P102,Q17427) (Q6095645,P102,Q49750) (Q6095645,P102,Q153401)
action is_in
entity prev_answer
action find
entity Q6095645
relation P102
[ANSWER]
['Q6095645', 'P102', 'Q17427'] ['Q6095645', 'P102', 'Q49750'] ['Q6095645', 'P102', 'Q153401']
ASK WHERE { VALUES ( ?b ) { ( resource:Q17427 ) ( resource:Q49750 ) ( resource:Q153401 ) } . resource:Q6095645 property:P102 ?b }
No
action is_in
entity prev_answer
action find
entity Iva Campbell Fallis
relation member of political party
['Iva Campbell Fallis', 'member of political party', 'Communist Party of China'] ['Iva Campbell Fallis', 'member of political party', 'Socialist Unity Party of Germany'] ['Iva Campbell Fallis', 'member of political party', 'Communist Party of Germany']
ASK WHERE { VALUES ( ?b ) { ( resource:Communist_Party_of_China ) ( resource:Socialist_Unity_Party_of_Germany ) ( resource:Communist_Party_of_Germany ) } . resource:Iva_Campbell_Fallis property:member_of_political_party ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q338094
P19
Q502895
USER
Who were born at Polsingen ?
(c(Q502895),P19,Q338094)
action filter_type
action find_reverse
entity Q338094
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q338094']
SELECT DISTINCT ?k WHERE { ?k property:P19 resource:Q338094 . ?k rdf:type ontology:Q502895 }
Polsingen
action filter_type
action find_reverse
entity Polsingen
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Polsingen']
SELECT DISTINCT ?k WHERE { ?k property:place_of_birth resource:Polsingen . ?k rdf:type ontology:common_name }
[]
common name
Q12365207 Q49709 Q1417389
SYSTEM
Johann Georg Eisen von Schwarzenberg, Christian Weber, Otto Weber
Q12365207 Q49709 Q1417389
(c(Q502895),P19,Q338094)
action filter_type
action find_reverse
entity Q338094
relation P19
type Q502895
[ANSWERS] were born at Polsingen
[{'concept': 'Q502895'}, 'P19', 'Q338094']
SELECT DISTINCT ?k WHERE { ?k property:P19 resource:Q338094 . ?k rdf:type ontology:Q502895 }
Johann Georg Eisen von Schwarzenberg Christian Weber Otto Weber
Johann Georg Eisen von Schwarzenberg, Christian Weber and Otto Weber were born at Polsingen
Johann Georg Eisen von Schwarzenberg Christian Weber Otto Weber
action filter_type
action find_reverse
entity Polsingen
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Polsingen']
SELECT DISTINCT ?k WHERE { ?k property:place_of_birth resource:Polsingen . ?k rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1417389
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q1417389,P106,c(Q12737077))
action filter_type
action find
entity Q1417389
relation P106
type Q12737077
['Q1417389', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1417389 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Otto Weber
action filter_type
action find
entity Otto Weber
relation occupation
type occupation
['Otto Weber', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Otto_Weber property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q12365207
SYSTEM
Did you mean Johann Georg Eisen von Schwarzenberg ?
Q12365207 Q49709 Q1417389
(Q12365207,P106,c(Q12737077)) (Q49709,P106,c(Q12737077)) (Q1417389,P106,c(Q12737077))
[ANSWER]
['Q12365207', 'P106', {'concept': 'Q12737077'}] ['Q49709', 'P106', {'concept': 'Q12737077'}] ['Q1417389', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1417389 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Johann Georg Eisen von Schwarzenberg Christian Weber Otto Weber
Did you mean Johann Georg Eisen von Schwarzenberg ?
Johann Georg Eisen von Schwarzenberg
['Johann Georg Eisen von Schwarzenberg', 'occupation', {'concept': 'occupation'}] ['Christian Weber', 'occupation', {'concept': 'occupation'}] ['Otto Weber', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Otto_Weber property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Otto Weber. Could you tell me the answer for that?
(Q1417389,P106,c(Q12737077))
Q1417389
['Q1417389', 'P106', {'concept': 'Q12737077'}]
['Otto Weber', 'occupation', {'concept': 'occupation'}]
[]
Q1731155
SYSTEM
orientalist
Q1731155
(Q1417389,P106,c(Q12737077))
action filter_type
action find
entity Q1417389
relation P106
type Q12737077
[ANSWER] is the profession of that person
['Q1417389', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1417389 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
orientalist
Orientalist is the profession of that person
orientalist
action filter_type
action find
entity Otto Weber
relation occupation
type occupation
['Otto Weber', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Otto_Weber property:occupation ?f . ?f rdf:type ontology:occupation }
[]