Simple Question (Direct)
Simple Question
Q3370548
P106
Q12737077
USER
Which occupation has Paul Baier as his/her 's career ?
(Q3370548,P106,c(Q12737077))
action filter_type
action find
entity Q3370548
relation P106
type Q12737077
['Q3370548', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3370548 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Paul Baier
action filter_type
action find
entity Paul Baier
relation occupation
type occupation
['Paul Baier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Paul_Baier property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q11774891
SYSTEM
ice hockey player
Q11774891
(Q3370548,P106,c(Q12737077))
action filter_type
action find
entity Q3370548
relation P106
type Q12737077
Player [ANSWER] has Paul Baier as his/her 's career
['Q3370548', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3370548 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
ice hockey player
Player ice hockey player has Paul Baier as his/her 's career
ice hockey player
action filter_type
action find
entity Paul Baier
relation occupation
type occupation
['Paul Baier', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Paul_Baier property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3370548
P54
Q12973014
USER
What is that person a member of ?
(Q11774891,P54,c(Q12973014))
action filter_type
action find
entity Q3370548
relation P54
type Q12973014
['Q11774891', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12973014 . resource:Q3370548 property:P54 ?p }
Paul Baier
action filter_type
action find
entity Paul Baier
relation member of sports team
type sports team
['ice hockey player', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sports_team . resource:Paul_Baier property:member_of_sports_team ?p }
[]
sports team
Q1640548
SYSTEM
Rochester Americans
Q1640548
(Q11774891,P54,c(Q12973014))
action filter_type
action find
entity Q3370548
relation P54
type Q12973014
That person a member of is the [ANSWER]
['Q11774891', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q12973014 . resource:Q3370548 property:P54 ?p }
Rochester Americans
That person a member of is the Rochester Americans
Rochester Americans
action filter_type
action find
entity Paul Baier
relation member of sports team
type sports team
['ice hockey player', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sports_team . resource:Paul_Baier property:member_of_sports_team ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5560634
P21
Q290
USER
Which sex does Gil Whitehouse possess ?
(Q5560634,P21,c(Q290))
action filter_type
action find
entity Q5560634
relation P21
type Q290
['Q5560634', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q5560634 property:P21 ?o }
Gil Whitehouse
action filter_type
action find
entity Gil Whitehouse
relation gender
type sex
['Gil Whitehouse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Gil_Whitehouse property:gender ?o }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5560634,P21,c(Q290))
action filter_type
action find
entity Q5560634
relation P21
type Q290
Gil Whitehouse possesses a [ANSWER]
['Q5560634', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q290 . resource:Q5560634 property:P21 ?o }
male
Gil Whitehouse possesses a male
male
action filter_type
action find
entity Gil Whitehouse
relation gender
type sex
['Gil Whitehouse', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sex . resource:Gil_Whitehouse property:gender ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12028105
Q290
USER
And what about Karel Adámek?
(Q12028105,P21,c(Q290))
action filter_type
action find
entity Q12028105
relation P21
type Q290
['Q12028105', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q12028105 property:P21 ?k . ?k rdf:type ontology:Q290 }
Karel Adámek
action filter_type
action find
entity Karel Adámek
relation gender
type sex
['Karel Adámek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Karel_Adámek property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12028105,P21,c(Q290))
action filter_type
action find
entity Q12028105
relation P21
type Q290
[ANSWER]
['Q12028105', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q12028105 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Karel Adámek
relation gender
type sex
['Karel Adámek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Karel_Adámek property:gender ?k . ?k rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q7279092
P21
Q502895
USER
Is Rachael Small a that sex ?
(Q7279092,P21,Q6581097)
action is_in
entity Q7279092
action find
entity Q6581097
relation P21
['Q7279092', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q7279092 }
male Rachael Small
action is_in
entity Rachael Small
action find
entity male
relation gender
['Rachael Small', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Rachael_Small }
[]
common name
SYSTEM
NO
(Q7279092,P21,Q6581097)
action is_in
entity Q7279092
action find
entity Q6581097
relation P21
[ANSWER]
['Q7279092', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q7279092 }
No
action is_in
entity Rachael Small
action find
entity male
relation gender
['Rachael Small', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Rachael_Small }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q9188365 Q5560634
P27
Q15617994
USER
Which administrative territories do Gil Whitehouse or Cezariusz Chrapkiewicz belong to ?
OR((Q5560634,P27,c(Q15617994)), (Q9188365,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5560634
relation P27
action find
entity Q9188365
relation P27
type Q15617994
{'OR': [['Q5560634', 'P27', {'concept': 'Q15617994'}], ['Q9188365', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?i property:P27 ?b . VALUES ( ?i ) { ( resource:Q9188365 ) ( resource:Q5560634 ) } } . ?b rdf:type ontology:Q15617994 }
Cezariusz Chrapkiewicz Gil Whitehouse
action filter_type
action union
action find
entity Gil Whitehouse
relation country of citizenship
action find
entity Cezariusz Chrapkiewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gil Whitehouse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cezariusz Chrapkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?i property:country_of_citizenship ?b . VALUES ( ?i ) { ( resource:Cezariusz_Chrapkiewicz ) ( resource:Gil_Whitehouse ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q36
SYSTEM
United States of America, Poland
Q30 Q36
OR((Q5560634,P27,c(Q15617994)), (Q9188365,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5560634
relation P27
action find
entity Q9188365
relation P27
type Q15617994
Gil Whitehouse or Cezariusz Chrapkiewicz belong to the [ANSWERS]
{'OR': [['Q5560634', 'P27', {'concept': 'Q15617994'}], ['Q9188365', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?i property:P27 ?b . VALUES ( ?i ) { ( resource:Q9188365 ) ( resource:Q5560634 ) } } . ?b rdf:type ontology:Q15617994 }
United States of America Poland
Gil Whitehouse or Cezariusz Chrapkiewicz belong to the United States of America and Poland
United States of America Poland
action filter_type
action union
action find
entity Gil Whitehouse
relation country of citizenship
action find
entity Cezariusz Chrapkiewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gil Whitehouse', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cezariusz Chrapkiewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?i property:country_of_citizenship ?b . VALUES ( ?i ) { ( resource:Cezariusz_Chrapkiewicz ) ( resource:Gil_Whitehouse ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q7725634
USER
How many administrative territories are the origins of more number of works of art and literary works than that administrative territory ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?n property:P495 ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?n property:country_of_origin ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity work of art literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q36
SYSTEM
Did you mean Poland ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?n property:P495 ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Poland ?
Poland
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { ?n property:country_of_origin ?y . VALUES ( ?n ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
18
Q668 Q414 Q142 Q55 Q145 Q148 Q43 Q155 Q884 Q31 Q30 Q34 Q928 Q38 Q20 Q96 Q17 Q29
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
India Argentina France Netherlands United Kingdom People's Republic of China Turkey Brazil South Korea Belgium United States of America Sweden Philippines Italy Norway Mexico Japan Spain
18
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]