Simple Question (Direct)
Simple Question
Q702757
P106
Q12737077
USER
Which occupation has Liu Yuan as his/her 's career ?
(Q702757,P106,c(Q12737077))
action filter_type
action find
entity Q702757
relation P106
type Q12737077
['Q702757', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q702757 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
Liu Yuan
action filter_type
action find
entity Liu Yuan
relation occupation
type occupation
['Liu Yuan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Liu_Yuan property:occupation ?g . ?g rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q702757,P106,c(Q12737077))
action filter_type
action find
entity Q702757
relation P106
type Q12737077
The [ANSWER] has Liu Yuan as his/her 's career
['Q702757', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q702757 property:P106 ?g . ?g rdf:type ontology:Q12737077 }
politician
The politician has Liu Yuan as his/her 's career
politician
action filter_type
action find
entity Liu Yuan
relation occupation
type occupation
['Liu Yuan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Liu_Yuan property:occupation ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q702757
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q82955,P27,c(Q15617994))
action filter_type
action find
entity Q702757
relation P27
type Q15617994
['Q82955', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q702757 property:P27 ?g }
Liu Yuan
action filter_type
action find
entity Liu Yuan
relation country of citizenship
type designation for an administrative territorial entity
['politician', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liu_Yuan property:country_of_citizenship ?g }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q82955,P27,c(Q15617994))
action filter_type
action find
entity Q702757
relation P27
type Q15617994
The [ANSWER] is the native country of that person
['Q82955', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . resource:Q702757 property:P27 ?g }
People's Republic of China
The People's Republic of China is the native country of that person
People's Republic of China
action filter_type
action find
entity Liu Yuan
relation country of citizenship
type designation for an administrative territorial entity
['politician', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Liu_Yuan property:country_of_citizenship ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q702757
P734
Q101352
USER
Which family name is associated with Liu Yuan ?
(Q702757,P734,c(Q101352))
action filter_type
action find
entity Q702757
relation P734
type Q101352
['Q702757', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?i WHERE { resource:Q702757 property:P734 ?i . ?i rdf:type ontology:Q101352 }
Liu Yuan
action filter_type
action find
entity Liu Yuan
relation family name
type family name
['Liu Yuan', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?i WHERE { resource:Liu_Yuan property:family_name ?i . ?i rdf:type ontology:family_name }
[]
family name
Q804970
SYSTEM
Liu
Q804970
(Q702757,P734,c(Q101352))
action filter_type
action find
entity Q702757
relation P734
type Q101352
[ANSWER] is associated with [ANSWER] Yuan
['Q702757', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?i WHERE { resource:Q702757 property:P734 ?i . ?i rdf:type ontology:Q101352 }
Liu
Liu is associated with Liu Yuan
Liu
action filter_type
action find
entity Liu Yuan
relation family name
type family name
['Liu Yuan', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?i WHERE { resource:Liu_Yuan property:family_name ?i . ?i rdf:type ontology:family_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16233050
Q101352
USER
And what about Chang Hao?
(Q16233050,P734,c(Q101352))
action filter_type
action find
entity Q16233050
relation P734
type Q101352
['Q16233050', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?l WHERE { resource:Q16233050 property:P734 ?l . ?l rdf:type ontology:Q101352 }
Chang Hao
action filter_type
action find
entity Chang Hao
relation family name
type family name
['Chang Hao', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?l WHERE { resource:Chang_Hao property:family_name ?l . ?l rdf:type ontology:family_name }
[]
family name
Q804909
SYSTEM
Zhang
Q804909
(Q16233050,P734,c(Q101352))
action filter_type
action find
entity Q16233050
relation P734
type Q101352
[ANSWER]
['Q16233050', 'P734', {'concept': 'Q101352'}]
SELECT DISTINCT ?l WHERE { resource:Q16233050 property:P734 ?l . ?l rdf:type ontology:Q101352 }
Zhang
Zhang
action filter_type
action find
entity Chang Hao
relation family name
type family name
['Chang Hao', 'family name', {'concept': 'family name'}]
SELECT DISTINCT ?l WHERE { resource:Chang_Hao property:family_name ?l . ?l rdf:type ontology:family_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q16233050
P1344
Q2312410
USER
How many sport disciplines did Chang Hao participate in ?
(Q16233050,P1344,c(Q2312410))
action count
action filter_type
action find
entity Q16233050
relation P1344
type Q2312410
['Q16233050', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Q16233050 property:P1344 ?g . ?g rdf:type ontology:Q2312410 }
Chang Hao
action count
action filter_type
action find
entity Chang Hao
relation participant of
type sport discipline
['Chang Hao', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Chang_Hao property:participant_of ?g . ?g rdf:type ontology:sport_discipline }
[]
sport discipline
SYSTEM
1
Q7400384
(Q16233050,P1344,c(Q2312410))
action count
action filter_type
action find
entity Q16233050
relation P1344
type Q2312410
[ANSWER]
['Q16233050', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Q16233050 property:P1344 ?g . ?g rdf:type ontology:Q2312410 }
sailing at the 2016 Summer Olympics
1
action count
action filter_type
action find
entity Chang Hao
relation participant of
type sport discipline
['Chang Hao', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { resource:Chang_Hao property:participant_of ?g . ?g rdf:type ontology:sport_discipline }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q6811382
Q2312410
USER
And how about Melanie Wilson?
(Q6811382,P1344,c(Q2312410))
action count
action filter_type
action find
entity Q6811382
relation P1344
type Q2312410
['Q6811382', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q6811382 property:P1344 ?q . ?q rdf:type ontology:Q2312410 }
Melanie Wilson
action count
action filter_type
action find
entity Melanie Wilson
relation participant of
type sport discipline
['Melanie Wilson', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Melanie_Wilson property:participant_of ?q . ?q rdf:type ontology:sport_discipline }
[]
sport discipline
SYSTEM
1
(Q6811382,P1344,c(Q2312410))
action count
action filter_type
action find
entity Q6811382
relation P1344
type Q2312410
[ANSWER]
['Q6811382', 'P1344', {'concept': 'Q2312410'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q6811382 property:P1344 ?q . ?q rdf:type ontology:Q2312410 }
1
action count
action filter_type
action find
entity Melanie Wilson
relation participant of
type sport discipline
['Melanie Wilson', 'participant of', {'concept': 'sport discipline'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Melanie_Wilson property:participant_of ?q . ?q rdf:type ontology:sport_discipline }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26431479 Q16233050
P1344
Q2312410
USER
Which sport disciplines did Chang Hao or Inna Kashyna participate in ?
OR((Q16233050,P1344,c(Q2312410)), (Q26431479,P1344,c(Q2312410)))
action filter_type
action union
action find
entity Q16233050
relation P1344
action find
entity Q26431479
relation P1344
type Q2312410
{'OR': [['Q16233050', 'P1344', {'concept': 'Q2312410'}], ['Q26431479', 'P1344', {'concept': 'Q2312410'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?q ) { ( resource:Q16233050 ) ( resource:Q26431479 ) } . ?q property:P1344 ?h } . ?h rdf:type ontology:Q2312410 }
Inna Kashyna Chang Hao
action filter_type
action union
action find
entity Chang Hao
relation participant of
action find
entity Inna Kashyna
relation participant of
type sport discipline
{'OR': [['Chang Hao', 'participant of', {'concept': 'sport discipline'}], ['Inna Kashyna', 'participant of', {'concept': 'sport discipline'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?q ) { ( resource:Chang_Hao ) ( resource:Inna_Kashyna ) } . ?q property:participant_of ?h } . ?h rdf:type ontology:sport_discipline }
[]
sport discipline
Q18193712 Q7400384
SYSTEM
athletics at the 2016 Summer Olympics, sailing at the 2016 Summer Olympics
Q18193712 Q7400384
OR((Q16233050,P1344,c(Q2312410)), (Q26431479,P1344,c(Q2312410)))
action filter_type
action union
action find
entity Q16233050
relation P1344
action find
entity Q26431479
relation P1344
type Q2312410
Chang Hao or Inna Kashyna participated in [ANSWERS]
{'OR': [['Q16233050', 'P1344', {'concept': 'Q2312410'}], ['Q26431479', 'P1344', {'concept': 'Q2312410'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?q ) { ( resource:Q16233050 ) ( resource:Q26431479 ) } . ?q property:P1344 ?h } . ?h rdf:type ontology:Q2312410 }
athletics at the 2016 Summer Olympics sailing at the 2016 Summer Olympics
Chang Hao or Inna Kashyna participated in athletics at the 2016 Summer Olympics and sailing at the 2016 Summer Olympics
athletics at the 2016 Summer Olympics sailing at the 2016 Summer Olympics
action filter_type
action union
action find
entity Chang Hao
relation participant of
action find
entity Inna Kashyna
relation participant of
type sport discipline
{'OR': [['Chang Hao', 'participant of', {'concept': 'sport discipline'}], ['Inna Kashyna', 'participant of', {'concept': 'sport discipline'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?q ) { ( resource:Chang_Hao ) ( resource:Inna_Kashyna ) } . ?q property:participant_of ?h } . ?h rdf:type ontology:sport_discipline }
[]