Simple Question (Direct)
Simple Question
Q16360859
P21
Q290
USER
What is the sex of Kārlis Strēlis ?
(Q16360859,P21,c(Q290))
action filter_type
action find
entity Q16360859
relation P21
type Q290
['Q16360859', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q16360859 property:P21 ?p . ?p rdf:type ontology:Q290 }
Kārlis Strēlis
action filter_type
action find
entity Kārlis Strēlis
relation gender
type sex
['Kārlis Strēlis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Kārlis_Strēlis property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16360859,P21,c(Q290))
action filter_type
action find
entity Q16360859
relation P21
type Q290
The sex of Kārlis Strēlis is the [ANSWER]
['Q16360859', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q16360859 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
The sex of Kārlis Strēlis is the male
male
action filter_type
action find
entity Kārlis Strēlis
relation gender
type sex
['Kārlis Strēlis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Kārlis_Strēlis property:gender ?p . ?p rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P21
Q842697 Q11424
USER
How many thunder gods or films have the gender as that sex ?
(c(Q842697),P21,Q6581097) (c(Q11424),P21,Q6581097) (c(Q842697),P21,Q6581097) (c(Q11424),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q842697
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q11424
[{'concept': 'Q842697'}, 'P21', 'Q6581097'] [{'concept': 'Q11424'}, 'P21', 'Q6581097'] [{'concept': 'Q842697'}, 'P21', 'Q6581097'] [{'concept': 'Q11424'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:Q11424 ) ( ontology:Q842697 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type thunder god
action filter_type
action find_reverse
entity male
relation gender
type film
[{'concept': 'thunder god'}, 'gender', 'male'] [{'concept': 'film'}, 'gender', 'male'] [{'concept': 'thunder god'}, 'gender', 'male'] [{'concept': 'film'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:film ) ( ontology:thunder_god ) } }
[]
thunder god film
SYSTEM
5
Q34201 Q4832123 Q5270151 Q200661 Q7550103
(c(Q842697),P21,Q6581097) (c(Q11424),P21,Q6581097) (c(Q842697),P21,Q6581097) (c(Q11424),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q842697
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q11424
[ANSWER]
[{'concept': 'Q842697'}, 'P21', 'Q6581097'] [{'concept': 'Q11424'}, 'P21', 'Q6581097'] [{'concept': 'Q842697'}, 'P21', 'Q6581097'] [{'concept': 'Q11424'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:Q11424 ) ( ontology:Q842697 ) } }
Zeus Azaka-Tonnerre Diable Tonnere Juan Rulfo Sobo
5
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type thunder god
action filter_type
action find_reverse
entity male
relation gender
type film
[{'concept': 'thunder god'}, 'gender', 'male'] [{'concept': 'film'}, 'gender', 'male'] [{'concept': 'thunder god'}, 'gender', 'male'] [{'concept': 'film'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { ?d rdf:type ?i . VALUES ( ?i ) { ( ontology:film ) ( ontology:thunder_god ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17382690 Q16360859
P27
Q15617994
USER
Which administrative territories do Kārlis Strēlis or Aulis Ojajärvi belong to ?
OR((Q16360859,P27,c(Q15617994)), (Q17382690,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16360859
relation P27
action find
entity Q17382690
relation P27
type Q15617994
{'OR': [['Q16360859', 'P27', {'concept': 'Q15617994'}], ['Q17382690', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:P27 ?f . VALUES ( ?y ) { ( resource:Q16360859 ) ( resource:Q17382690 ) } } . ?f rdf:type ontology:Q15617994 }
Aulis Ojajärvi Kārlis Strēlis
action filter_type
action union
action find
entity Kārlis Strēlis
relation country of citizenship
action find
entity Aulis Ojajärvi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kārlis Strēlis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aulis Ojajärvi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:country_of_citizenship ?f . VALUES ( ?y ) { ( resource:Kārlis_Strēlis ) ( resource:Aulis_Ojajärvi ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q211
SYSTEM
Finland, Latvia
Q33 Q211
OR((Q16360859,P27,c(Q15617994)), (Q17382690,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16360859
relation P27
action find
entity Q17382690
relation P27
type Q15617994
Kārlis Strēlis or Aulis Ojajärvi belong to the [ANSWERS]
{'OR': [['Q16360859', 'P27', {'concept': 'Q15617994'}], ['Q17382690', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:P27 ?f . VALUES ( ?y ) { ( resource:Q16360859 ) ( resource:Q17382690 ) } } . ?f rdf:type ontology:Q15617994 }
Finland Latvia
Kārlis Strēlis or Aulis Ojajärvi belong to the Finland and Latvia
Finland Latvia
action filter_type
action union
action find
entity Kārlis Strēlis
relation country of citizenship
action find
entity Aulis Ojajärvi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kārlis Strēlis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Aulis Ojajärvi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?y property:country_of_citizenship ?f . VALUES ( ?y ) { ( resource:Kārlis_Strēlis ) ( resource:Aulis_Ojajärvi ) } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5100291
P17
Q930933
USER
Are China–Zimbabwe relations located in those administrative territories ?
(Q5100291,P17,Q33) (Q5100291,P17,Q211)
action is_in
entity prev_answer
action find
entity Q5100291
relation P17
['Q5100291', 'P17', 'Q33'] ['Q5100291', 'P17', 'Q211']
ASK WHERE { VALUES ( ?i ) { ( resource:Q33 ) ( resource:Q211 ) } . resource:Q5100291 property:P17 ?i }
China–Zimbabwe relations
action is_in
entity prev_answer
action find
entity China–Zimbabwe relations
relation country
['China–Zimbabwe relations', 'country', 'Finland'] ['China–Zimbabwe relations', 'country', 'Latvia']
ASK WHERE { VALUES ( ?i ) { ( resource:Finland ) ( resource:Latvia ) } . resource:China–Zimbabwe_relations property:country ?i }
[]
relationship
SYSTEM
NO
(Q5100291,P17,Q33) (Q5100291,P17,Q211)
action is_in
entity prev_answer
action find
entity Q5100291
relation P17
[ANSWER]
['Q5100291', 'P17', 'Q33'] ['Q5100291', 'P17', 'Q211']
ASK WHERE { VALUES ( ?i ) { ( resource:Q33 ) ( resource:Q211 ) } . resource:Q5100291 property:P17 ?i }
No
action is_in
entity prev_answer
action find
entity China–Zimbabwe relations
relation country
['China–Zimbabwe relations', 'country', 'Finland'] ['China–Zimbabwe relations', 'country', 'Latvia']
ASK WHERE { VALUES ( ?i ) { ( resource:Finland ) ( resource:Latvia ) } . resource:China–Zimbabwe_relations property:country ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33
P30
Q2221906
USER
Which geographic location is Finland a part of ?
(Q33,P30,c(Q2221906))
action filter_type
action find
entity Q33
relation P30
type Q2221906
['Q33', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { resource:Q33 property:P30 ?c . ?c rdf:type ontology:Q2221906 }
Finland
action filter_type
action find
entity Finland
relation continent
type geographic location
['Finland', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { resource:Finland property:continent ?c . ?c rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q33,P30,c(Q2221906))
action filter_type
action find
entity Q33
relation P30
type Q2221906
Which geographic location is Finland a part of
['Q33', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?c WHERE { resource:Q33 property:P30 ?c . ?c rdf:type ontology:Q2221906 }
Europe
Which geographic location is Finland a part of
Europe
action filter_type
action find
entity Finland
relation continent
type geographic location
['Finland', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?c WHERE { resource:Finland property:continent ?c . ?c rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P172
Q502895
USER
Which people have that geographic location as ethnic group ?
(c(Q502895),P172,Q46)
action filter_type
action find_reverse
entity Q46
relation P172
type Q502895
[{'concept': 'Q502895'}, 'P172', 'Q46']
SELECT DISTINCT ?i WHERE { ?i property:P172 resource:Q46 . ?i rdf:type ontology:Q502895 }
Europe
action filter_type
action find_reverse
entity Europe
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Europe']
SELECT DISTINCT ?i WHERE { ?i property:ethnic_group resource:Europe . ?i rdf:type ontology:common_name }
[]
common name
Q5814410 Q7635397
SYSTEM
Nicole Neumann, Suicide of Dawn-Marie Wesley
Q5814410 Q7635397
(c(Q502895),P172,Q46)
action filter_type
action find_reverse
entity Q46
relation P172
type Q502895
[ANSWERS] have that geographic location as ethnic group
[{'concept': 'Q502895'}, 'P172', 'Q46']
SELECT DISTINCT ?i WHERE { ?i property:P172 resource:Q46 . ?i rdf:type ontology:Q502895 }
Nicole Neumann Suicide of Dawn-Marie Wesley
Nicole Neumann and Suicide of Dawn-Marie Wesley have that geographic location as ethnic group
Nicole Neumann Suicide of Dawn-Marie Wesley
action filter_type
action find_reverse
entity Europe
relation ethnic group
type common name
[{'concept': 'common name'}, 'ethnic group', 'Europe']
SELECT DISTINCT ?i WHERE { ?i property:ethnic_group resource:Europe . ?i rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7635397
P1196
Q1914636
USER
Which activity best describes with circumstances of death of that person ?
(Q7635397,P1196,c(Q1914636))
action filter_type
action find
entity Q7635397
relation P1196
type Q1914636
['Q7635397', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1914636 . resource:Q7635397 property:P1196 ?e }
Suicide of Dawn-Marie Wesley
action filter_type
action find
entity Suicide of Dawn-Marie Wesley
relation manner of death
type activity
['Suicide of Dawn-Marie Wesley', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:activity . resource:Suicide_of_Dawn-Marie_Wesley property:manner_of_death ?e }
[]
activity
Clarification for simple ques.
Q7635397
SYSTEM
Did you mean Suicide of Dawn-Marie Wesley ?
Q5814410 Q7635397
(Q5814410,P1196,c(Q1914636)) (Q7635397,P1196,c(Q1914636))
[ANSWER]
['Q5814410', 'P1196', {'concept': 'Q1914636'}] ['Q7635397', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1914636 . resource:Q7635397 property:P1196 ?e }
Nicole Neumann Suicide of Dawn-Marie Wesley
Did you mean Suicide of Dawn-Marie Wesley ?
Suicide of Dawn-Marie Wesley
['Nicole Neumann', 'manner of death', {'concept': 'activity'}] ['Suicide of Dawn-Marie Wesley', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:activity . resource:Suicide_of_Dawn-Marie_Wesley property:manner_of_death ?e }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7635397,P1196,c(Q1914636))
['Q7635397', 'P1196', {'concept': 'Q1914636'}]
['Suicide of Dawn-Marie Wesley', 'manner of death', {'concept': 'activity'}]
[]
Q10737
SYSTEM
suicide
Q10737
(Q7635397,P1196,c(Q1914636))
action filter_type
action find
entity Q7635397
relation P1196
type Q1914636
[ANSWER] best describes with circumstances of death of that person
['Q7635397', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q1914636 . resource:Q7635397 property:P1196 ?e }
suicide
Suicide best describes with circumstances of death of that person
suicide
action filter_type
action find
entity Suicide of Dawn-Marie Wesley
relation manner of death
type activity
['Suicide of Dawn-Marie Wesley', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:activity . resource:Suicide_of_Dawn-Marie_Wesley property:manner_of_death ?e }
[]