Simple Question (Direct)
Simple Question
Q47677
P734
Q82799
USER
Who is associated with Chen Boda ?
(Q47677,P734,c(Q82799))
action filter_type
action find
entity Q47677
relation P734
type Q82799
['Q47677', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q47677 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Chen Boda
action filter_type
action find
entity Chen Boda
relation family name
type name
['Chen Boda', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Chen_Boda property:family_name ?j . ?j rdf:type ontology:name }
[]
name
Q804988
SYSTEM
Chen
Q804988
(Q47677,P734,c(Q82799))
action filter_type
action find
entity Q47677
relation P734
type Q82799
So [ANSWER] is associated with [ANSWER] Boda
['Q47677', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { resource:Q47677 property:P734 ?j . ?j rdf:type ontology:Q82799 }
Chen
So Chen is associated with Chen Boda
Chen
action filter_type
action find
entity Chen Boda
relation family name
type name
['Chen Boda', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { resource:Chen_Boda property:family_name ?j . ?j rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47677
P102
Q7278
USER
Which political party is Chen Boda a member of ?
(Q47677,P102,c(Q7278))
action filter_type
action find
entity Q47677
relation P102
type Q7278
['Q47677', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?o WHERE { resource:Q47677 property:P102 ?o . ?o rdf:type ontology:Q7278 }
Chen Boda
action filter_type
action find
entity Chen Boda
relation member of political party
type political party
['Chen Boda', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?o WHERE { resource:Chen_Boda property:member_of_political_party ?o . ?o rdf:type ontology:political_party }
[]
political party
Q17427
SYSTEM
Communist Party of China
Q17427
(Q47677,P102,c(Q7278))
action filter_type
action find
entity Q47677
relation P102
type Q7278
The [ANSWER] is Chen Boda a member of
['Q47677', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?o WHERE { resource:Q47677 property:P102 ?o . ?o rdf:type ontology:Q7278 }
Communist Party of China
The Communist Party of China is Chen Boda a member of
Communist Party of China
action filter_type
action find
entity Chen Boda
relation member of political party
type political party
['Chen Boda', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?o WHERE { resource:Chen_Boda property:member_of_political_party ?o . ?o rdf:type ontology:political_party }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1652530
Q7278
USER
And what about Luo Huining?
(Q1652530,P102,c(Q7278))
action filter_type
action find
entity Q1652530
relation P102
type Q7278
['Q1652530', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?k WHERE { resource:Q1652530 property:P102 ?k . ?k rdf:type ontology:Q7278 }
Luo Huining
action filter_type
action find
entity Luo Huining
relation member of political party
type political party
['Luo Huining', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?k WHERE { resource:Luo_Huining property:member_of_political_party ?k . ?k rdf:type ontology:political_party }
[]
political party
Q17427
SYSTEM
Communist Party of China
Q17427
(Q1652530,P102,c(Q7278))
action filter_type
action find
entity Q1652530
relation P102
type Q7278
[ANSWER]
['Q1652530', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?k WHERE { resource:Q1652530 property:P102 ?k . ?k rdf:type ontology:Q7278 }
Communist Party of China
Communist Party of China
action filter_type
action find
entity Luo Huining
relation member of political party
type political party
['Luo Huining', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?k WHERE { resource:Luo_Huining property:member_of_political_party ?k . ?k rdf:type ontology:political_party }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17427 Q624899
P159
Q56061
USER
How many administrative territories are the headquarter locations of Communist Party of China or Arado Flugzeugwerke ?
(Q17427,P159,c(Q56061)) (Q624899,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q17427
relation P159
type Q56061
action filter_type
action find
entity Q624899
relation P159
type Q56061
['Q17427', 'P159', {'concept': 'Q56061'}] ['Q624899', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?v property:P159 ?x . VALUES ( ?v ) { ( resource:Q17427 ) ( resource:Q624899 ) } }
Communist Party of China Arado Flugzeugwerke
action count
action union
action filter_type
action find
entity Communist Party of China
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Arado Flugzeugwerke
relation headquarters location
type administrative territorial entity
['Communist Party of China', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Arado Flugzeugwerke', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?v property:headquarters_location ?x . VALUES ( ?v ) { ( resource:Communist_Party_of_China ) ( resource:Arado_Flugzeugwerke ) } }
[]
administrative territorial entity
SYSTEM
2
Q64 Q2861
(Q17427,P159,c(Q56061)) (Q624899,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q17427
relation P159
type Q56061
action filter_type
action find
entity Q624899
relation P159
type Q56061
[ANSWER]
['Q17427', 'P159', {'concept': 'Q56061'}] ['Q624899', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?v property:P159 ?x . VALUES ( ?v ) { ( resource:Q17427 ) ( resource:Q624899 ) } }
Berlin Rostock
2
action count
action union
action filter_type
action find
entity Communist Party of China
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Arado Flugzeugwerke
relation headquarters location
type administrative territorial entity
['Communist Party of China', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Arado Flugzeugwerke', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { ?v property:headquarters_location ?x . VALUES ( ?v ) { ( resource:Communist_Party_of_China ) ( resource:Arado_Flugzeugwerke ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1164315 Q17427
P488
Q502895
USER
Which people were the chairpersons of Communist Party of China or National Olympic Committee and Sports Confederation of Denmark ?
OR((Q17427,P488,c(Q502895)), (Q1164315,P488,c(Q502895)))
action filter_type
action union
action find
entity Q17427
relation P488
action find
entity Q1164315
relation P488
type Q502895
{'OR': [['Q17427', 'P488', {'concept': 'Q502895'}], ['Q1164315', 'P488', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P488 ?b . VALUES ( ?n ) { ( resource:Q17427 ) ( resource:Q1164315 ) } } . ?b rdf:type ontology:Q502895 }
National Olympic Committee and Sports Confederation of Denmark Communist Party of China
action filter_type
action union
action find
entity Communist Party of China
relation chairperson
action find
entity National Olympic Committee and Sports Confederation of Denmark
relation chairperson
type common name
{'OR': [['Communist Party of China', 'chairperson', {'concept': 'common name'}], ['National Olympic Committee and Sports Confederation of Denmark', 'chairperson', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:chairperson ?b . VALUES ( ?n ) { ( resource:Communist_Party_of_China ) ( resource:National_Olympic_Committee_and_Sports_Confederation_of_Denmark ) } } . ?b rdf:type ontology:common_name }
[]
common name
Q99829 Q99850 Q41570 Q15029 Q12328865 Q15031 Q16597 Q5816
SYSTEM
Zhao Ziyang, Hu Yaobang, Hua Guofeng, Hu Jintao, Niels Nygaard, Xi Jinping, Jiang Zemin, Mao Zedong
Q99829 Q99850 Q41570 Q15029 Q12328865 Q15031 Q16597 Q5816
OR((Q17427,P488,c(Q502895)), (Q1164315,P488,c(Q502895)))
action filter_type
action union
action find
entity Q17427
relation P488
action find
entity Q1164315
relation P488
type Q502895
[ANSWERS] were the chairpersons of Communist Party of China or National Olympic Committee and Sports Confederation of Denmark
{'OR': [['Q17427', 'P488', {'concept': 'Q502895'}], ['Q1164315', 'P488', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P488 ?b . VALUES ( ?n ) { ( resource:Q17427 ) ( resource:Q1164315 ) } } . ?b rdf:type ontology:Q502895 }
Zhao Ziyang Hu Yaobang Hua Guofeng Hu Jintao Niels Nygaard Xi Jinping Jiang Zemin Mao Zedong
Zhao Ziyang, Hu Yaobang, Hua Guofeng, Hu Jintao, Niels Nygaard, Xi Jinping, Jiang Zemin and Mao Zedong were the chairpersons of Communist Party of China or National Olympic Committee and Sports Confederation of Denmark
Zhao Ziyang Hu Yaobang Hua Guofeng Hu Jintao Niels Nygaard Xi Jinping Jiang Zemin Mao Zedong
action filter_type
action union
action find
entity Communist Party of China
relation chairperson
action find
entity National Olympic Committee and Sports Confederation of Denmark
relation chairperson
type common name
{'OR': [['Communist Party of China', 'chairperson', {'concept': 'common name'}], ['National Olympic Committee and Sports Confederation of Denmark', 'chairperson', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:chairperson ?b . VALUES ( ?n ) { ( resource:Communist_Party_of_China ) ( resource:National_Olympic_Committee_and_Sports_Confederation_of_Denmark ) } } . ?b rdf:type ontology:common_name }
[]