Simple Question (Direct)
Simple Question
Q1095511
P21
Q290
USER
What is the sex of Clarence Shaw ?
(Q1095511,P21,c(Q290))
action filter_type
action find
entity Q1095511
relation P21
type Q290
['Q1095511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1095511 property:P21 ?h . ?h rdf:type ontology:Q290 }
Clarence Shaw
action filter_type
action find
entity Clarence Shaw
relation gender
type sex
['Clarence Shaw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Clarence_Shaw property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1095511,P21,c(Q290))
action filter_type
action find
entity Q1095511
relation P21
type Q290
The sex of Clarence Shaw is the [ANSWER]
['Q1095511', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1095511 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Clarence Shaw is the male
male
action filter_type
action find
entity Clarence Shaw
relation gender
type sex
['Clarence Shaw', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Clarence_Shaw property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1095511
P1303
Q34379
USER
Which musical instrument does Clarence Shaw know to play ?
(Q1095511,P1303,c(Q34379))
action filter_type
action find
entity Q1095511
relation P1303
type Q34379
['Q1095511', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { resource:Q1095511 property:P1303 ?g . ?g rdf:type ontology:Q34379 }
Clarence Shaw
action filter_type
action find
entity Clarence Shaw
relation instrument
type musical instrument
['Clarence Shaw', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { resource:Clarence_Shaw property:instrument ?g . ?g rdf:type ontology:musical_instrument }
[]
musical instrument
Q8338
SYSTEM
trumpet
Q8338
(Q1095511,P1303,c(Q34379))
action filter_type
action find
entity Q1095511
relation P1303
type Q34379
Clarence Shaw knows the [ANSWER]
['Q1095511', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { resource:Q1095511 property:P1303 ?g . ?g rdf:type ontology:Q34379 }
trumpet
Clarence Shaw knows the trumpet
trumpet
action filter_type
action find
entity Clarence Shaw
relation instrument
type musical instrument
['Clarence Shaw', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { resource:Clarence_Shaw property:instrument ?g . ?g rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1095511
P19
Q56061
USER
Which administrative territory was Clarence Shaw born at ?
(Q1095511,P19,c(Q56061))
action filter_type
action find
entity Q1095511
relation P19
type Q56061
['Q1095511', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1095511 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Clarence Shaw
action filter_type
action find
entity Clarence Shaw
relation place of birth
type administrative territorial entity
['Clarence Shaw', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Clarence_Shaw property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12439
SYSTEM
Detroit
Q12439
(Q1095511,P19,c(Q56061))
action filter_type
action find
entity Q1095511
relation P19
type Q56061
Clarence Shaw was born in [ANSWER]
['Q1095511', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1095511 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Detroit
Clarence Shaw was born in Detroit
Detroit
action filter_type
action find
entity Clarence Shaw
relation place of birth
type administrative territorial entity
['Clarence Shaw', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Clarence_Shaw property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11256832
Q56061
USER
And what about Takao Aoyagi?
(Q11256832,P19,c(Q56061))
action filter_type
action find
entity Q11256832
relation P19
type Q56061
['Q11256832', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q11256832 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Takao Aoyagi
action filter_type
action find
entity Takao Aoyagi
relation place of birth
type administrative territorial entity
['Takao Aoyagi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Takao_Aoyagi property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
(Q11256832,P19,c(Q56061))
action filter_type
action find
entity Q11256832
relation P19
type Q56061
[ANSWER]
['Q11256832', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q11256832 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Tokyo
Tokyo
action filter_type
action find
entity Takao Aoyagi
relation place of birth
type administrative territorial entity
['Takao Aoyagi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Takao_Aoyagi property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11256832 Q487095
P21
Q290
USER
How many sexes do Takao Aoyagi or Liu Yongqing belong to ?
(Q11256832,P21,c(Q290)) (Q487095,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q11256832
relation P21
type Q290
action filter_type
action find
entity Q487095
relation P21
type Q290
['Q11256832', 'P21', {'concept': 'Q290'}] ['Q487095', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?w property:P21 ?e . VALUES ( ?w ) { ( resource:Q11256832 ) ( resource:Q487095 ) } }
Takao Aoyagi Liu Yongqing
action count
action union
action filter_type
action find
entity Takao Aoyagi
relation gender
type sex
action filter_type
action find
entity Liu Yongqing
relation gender
type sex
['Takao Aoyagi', 'gender', {'concept': 'sex'}] ['Liu Yongqing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?w property:gender ?e . VALUES ( ?w ) { ( resource:Takao_Aoyagi ) ( resource:Liu_Yongqing ) } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q11256832,P21,c(Q290)) (Q487095,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q11256832
relation P21
type Q290
action filter_type
action find
entity Q487095
relation P21
type Q290
[ANSWER]
['Q11256832', 'P21', {'concept': 'Q290'}] ['Q487095', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?w property:P21 ?e . VALUES ( ?w ) { ( resource:Q11256832 ) ( resource:Q487095 ) } }
male female
2
action count
action union
action filter_type
action find
entity Takao Aoyagi
relation gender
type sex
action filter_type
action find
entity Liu Yongqing
relation gender
type sex
['Takao Aoyagi', 'gender', {'concept': 'sex'}] ['Liu Yongqing', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?w property:gender ?e . VALUES ( ?w ) { ( resource:Takao_Aoyagi ) ( resource:Liu_Yongqing ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11256832
P50
Q5398426
USER
Which television series is written by that person ?
action filter_type
action find_reverse
entity Q11256832
relation P50
type Q5398426
SELECT DISTINCT ?w WHERE { ?w property:P50 resource:Q11256832 . ?w rdf:type ontology:Q5398426 }
Takao Aoyagi
action filter_type
action find_reverse
entity Takao Aoyagi
relation author
type television series
SELECT DISTINCT ?w WHERE { ?w property:author resource:Takao_Aoyagi . ?w rdf:type ontology:television_series }
[]
television series
Q872379
SYSTEM
Welcome to the El-Palacio
Q872379
action filter_type
action find_reverse
entity Q11256832
relation P50
type Q5398426
[ANSWER] is written by that person
SELECT DISTINCT ?w WHERE { ?w property:P50 resource:Q11256832 . ?w rdf:type ontology:Q5398426 }
Welcome to the El-Palacio
Welcome to the El-Palacio is written by that person
Welcome to the El-Palacio
action filter_type
action find_reverse
entity Takao Aoyagi
relation author
type television series
SELECT DISTINCT ?w WHERE { ?w property:author resource:Takao_Aoyagi . ?w rdf:type ontology:television_series }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2434329 Q1095511
P27 P17
Q15617994
USER
Which administrative territories are Clarence Shaw a civilian of or are Sucre, Cauca located in ?
OR((Q1095511,P27,c(Q15617994)), (Q2434329,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1095511
relation P27
action find
entity Q2434329
relation P17
type Q15617994
{'OR': [['Q1095511', 'P27', {'concept': 'Q15617994'}], ['Q2434329', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1095511 property:P27 ?c } UNION { resource:Q2434329 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Sucre, Cauca Clarence Shaw
action filter_type
action union
action find
entity Clarence Shaw
relation country of citizenship
action find
entity Sucre, Cauca
relation country
type designation for an administrative territorial entity
{'OR': [['Clarence Shaw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sucre, Cauca', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Clarence_Shaw property:country_of_citizenship ?c } UNION { resource:Sucre,_Cauca property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q739 Q30
SYSTEM
Colombia, United States of America
Q739 Q30
OR((Q1095511,P27,c(Q15617994)), (Q2434329,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1095511
relation P27
action find
entity Q2434329
relation P17
type Q15617994
The [ANSWERS] are Clarence Shaw a civilian of or are Sucre, Cauca located in
{'OR': [['Q1095511', 'P27', {'concept': 'Q15617994'}], ['Q2434329', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q1095511 property:P27 ?c } UNION { resource:Q2434329 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Colombia United States of America
The Colombia and United States of America are Clarence Shaw a civilian of or are Sucre, Cauca located in
Colombia United States of America
action filter_type
action union
action find
entity Clarence Shaw
relation country of citizenship
action find
entity Sucre, Cauca
relation country
type designation for an administrative territorial entity
{'OR': [['Clarence Shaw', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sucre, Cauca', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Clarence_Shaw property:country_of_citizenship ?c } UNION { resource:Sucre,_Cauca property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]