Simple Question (Direct)
Simple Question
Q6369331
P106
Q28640
USER
What are the job of Karel Lavrič ?
(Q6369331,P106,c(Q28640))
action filter_type
action find
entity Q6369331
relation P106
type Q28640
['Q6369331', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q6369331 property:P106 ?u . ?u rdf:type ontology:Q28640 }
Karel Lavrič
action filter_type
action find
entity Karel Lavrič
relation occupation
type profession
['Karel Lavrič', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Karel_Lavrič property:occupation ?u . ?u rdf:type ontology:profession }
[]
profession
Q185351 Q40348
SYSTEM
jurist, lawyer
Q185351 Q40348
(Q6369331,P106,c(Q28640))
action filter_type
action find
entity Q6369331
relation P106
type Q28640
The job of Karel Lavrič are a [ANSWERS]
['Q6369331', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?u WHERE { resource:Q6369331 property:P106 ?u . ?u rdf:type ontology:Q28640 }
jurist lawyer
The job of Karel Lavrič are a jurist and lawyer
jurist lawyer
action filter_type
action find
entity Karel Lavrič
relation occupation
type profession
['Karel Lavrič', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?u WHERE { resource:Karel_Lavrič property:occupation ?u . ?u rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6369331
P20
Q15617994
USER
Where did the expiration of that person occur ?
(Q185351,P20,c(Q15617994)) (Q40348,P20,c(Q15617994))
action filter_type
action find
entity Q6369331
relation P20
type Q15617994
['Q185351', 'P20', {'concept': 'Q15617994'}] ['Q40348', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q6369331 property:P20 ?v . ?v rdf:type ontology:Q15617994 }
Karel Lavrič
action filter_type
action find
entity Karel Lavrič
relation place of death
type designation for an administrative territorial entity
['jurist', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['lawyer', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Karel_Lavrič property:place_of_death ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q6596
SYSTEM
Gorizia
Q6596
(Q185351,P20,c(Q15617994)) (Q40348,P20,c(Q15617994))
action filter_type
action find
entity Q6369331
relation P20
type Q15617994
The expiration of that person occurred in [ANSWER]
['Q185351', 'P20', {'concept': 'Q15617994'}] ['Q40348', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q6369331 property:P20 ?v . ?v rdf:type ontology:Q15617994 }
Gorizia
The expiration of that person occurred in Gorizia
Gorizia
action filter_type
action find
entity Karel Lavrič
relation place of death
type designation for an administrative territorial entity
['jurist', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['lawyer', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Karel_Lavrič property:place_of_death ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q6596 Q674491
P17
Q15617994
USER
Is that one located in Mörlen ?
(Q6596,P17,Q674491)
action is_in
entity Q674491
action find
entity Q6596
relation P17
['Q6596', 'P17', 'Q674491']
ASK WHERE { resource:Q6596 property:P17 resource:Q674491 }
Gorizia Mörlen
action is_in
entity Mörlen
action find
entity Gorizia
relation country
['Gorizia', 'country', 'Mörlen']
ASK WHERE { resource:Gorizia property:country resource:Mörlen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6596,P17,Q674491)
action is_in
entity Q674491
action find
entity Q6596
relation P17
[ANSWER]
['Q6596', 'P17', 'Q674491']
ASK WHERE { resource:Q6596 property:P17 resource:Q674491 }
No
action is_in
entity Mörlen
action find
entity Gorizia
relation country
['Gorizia', 'country', 'Mörlen']
ASK WHERE { resource:Gorizia property:country resource:Mörlen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6369331 Q2357871 Q5851436
P19
Q56061
USER
Does Karel Lavrič have location of birth at Prem and Dehnow-e Shams Ali ?
(Q6369331,P19,Q2357871) (Q6369331,P19,Q5851436)
action is_in
entity Q6369331
action intersection
action find_reverse
entity Q2357871
relation P19
action find_reverse
entity Q5851436
relation P19
['Q6369331', 'P19', 'Q2357871'] ['Q6369331', 'P19', 'Q5851436']
ASK WHERE { resource:Q6369331 property:P19 resource:Q5851436 . resource:Q6369331 property:P19 resource:Q2357871 }
Karel Lavrič Prem Dehnow-e Shams Ali
action is_in
entity Karel Lavrič
action intersection
action find_reverse
entity Prem
relation place of birth
action find_reverse
entity Dehnow-e Shams Ali
relation place of birth
['Karel Lavrič', 'place of birth', 'Prem'] ['Karel Lavrič', 'place of birth', 'Dehnow-e Shams Ali']
ASK WHERE { resource:Karel_Lavrič property:place_of_birth resource:Dehnow-e_Shams_Ali . resource:Karel_Lavrič property:place_of_birth resource:Prem }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q6369331,P19,Q2357871) (Q6369331,P19,Q5851436)
action is_in
entity Q6369331
action intersection
action find_reverse
entity Q2357871
relation P19
action find_reverse
entity Q5851436
relation P19
[ANSWER]
['Q6369331', 'P19', 'Q2357871'] ['Q6369331', 'P19', 'Q5851436']
ASK WHERE { resource:Q6369331 property:P19 resource:Q5851436 . resource:Q6369331 property:P19 resource:Q2357871 }
YES and NO respectively
action is_in
entity Karel Lavrič
action intersection
action find_reverse
entity Prem
relation place of birth
action find_reverse
entity Dehnow-e Shams Ali
relation place of birth
['Karel Lavrič', 'place of birth', 'Prem'] ['Karel Lavrič', 'place of birth', 'Dehnow-e Shams Ali']
ASK WHERE { resource:Karel_Lavrič property:place_of_birth resource:Dehnow-e_Shams_Ali . resource:Karel_Lavrič property:place_of_birth resource:Prem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6369331
P106
Q12737077 Q28640
USER
How many occupations and professions do Karel Lavrič do for a living ?
(Q6369331,P106,c(Q12737077)) (Q6369331,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q6369331
relation P106
type Q12737077
action filter_type
action find
entity Q6369331
relation P106
type Q28640
['Q6369331', 'P106', {'concept': 'Q12737077'}] ['Q6369331', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { resource:Q6369331 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { ?y rdf:type ontology:Q28640 . resource:Q6369331 property:P106 ?y } }
Karel Lavrič
action count
action union
action filter_type
action find
entity Karel Lavrič
relation occupation
type occupation
action filter_type
action find
entity Karel Lavrič
relation occupation
type profession
['Karel Lavrič', 'occupation', {'concept': 'occupation'}] ['Karel Lavrič', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { resource:Karel_Lavrič property:occupation ?y . ?y rdf:type ontology:occupation } UNION { ?y rdf:type ontology:profession . resource:Karel_Lavrič property:occupation ?y } }
[]
occupation profession
SYSTEM
1 occupations and 2 professions
Q185351 Q82955 Q40348
(Q6369331,P106,c(Q12737077)) (Q6369331,P106,c(Q28640))
action count
action union
action filter_type
action find
entity Q6369331
relation P106
type Q12737077
action filter_type
action find
entity Q6369331
relation P106
type Q28640
[ANSWER]
['Q6369331', 'P106', {'concept': 'Q12737077'}] ['Q6369331', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { resource:Q6369331 property:P106 ?y . ?y rdf:type ontology:Q12737077 } UNION { ?y rdf:type ontology:Q28640 . resource:Q6369331 property:P106 ?y } }
jurist politician lawyer
1 occupations and 2 professions
action count
action union
action filter_type
action find
entity Karel Lavrič
relation occupation
type occupation
action filter_type
action find
entity Karel Lavrič
relation occupation
type profession
['Karel Lavrič', 'occupation', {'concept': 'occupation'}] ['Karel Lavrič', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { { resource:Karel_Lavrič property:occupation ?y . ?y rdf:type ontology:occupation } UNION { ?y rdf:type ontology:profession . resource:Karel_Lavrič property:occupation ?y } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6163050 Q6369331
P19
Q56061
USER
Which administrative territories were Karel Lavrič or Jason Massie born ?
OR((Q6369331,P19,c(Q56061)), (Q6163050,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6369331
relation P19
action find
entity Q6163050
relation P19
type Q56061
{'OR': [['Q6369331', 'P19', {'concept': 'Q56061'}], ['Q6163050', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6163050 property:P19 ?h } UNION { resource:Q6369331 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Jason Massie Karel Lavrič
action filter_type
action union
action find
entity Karel Lavrič
relation place of birth
action find
entity Jason Massie
relation place of birth
type administrative territorial entity
{'OR': [['Karel Lavrič', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jason Massie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Jason_Massie property:place_of_birth ?h } UNION { resource:Karel_Lavrič property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2357871 Q24826
SYSTEM
Prem, Liverpool
Q2357871 Q24826
OR((Q6369331,P19,c(Q56061)), (Q6163050,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6369331
relation P19
action find
entity Q6163050
relation P19
type Q56061
[ANSWERS] were Karel Lavrič or Jason Massie born
{'OR': [['Q6369331', 'P19', {'concept': 'Q56061'}], ['Q6163050', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q6163050 property:P19 ?h } UNION { resource:Q6369331 property:P19 ?h } } . ?h rdf:type ontology:Q56061 }
Prem Liverpool
Prem and Liverpool were Karel Lavrič or Jason Massie born
Prem Liverpool
action filter_type
action union
action find
entity Karel Lavrič
relation place of birth
action find
entity Jason Massie
relation place of birth
type administrative territorial entity
{'OR': [['Karel Lavrič', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jason Massie', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Jason_Massie property:place_of_birth ?h } UNION { resource:Karel_Lavrič property:place_of_birth ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2357871 Q24826
P17
Q15617994
USER
Which administrative territories are those administrative territories located in ?
(Q2357871,P17,c(Q15617994)) (Q24826,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q2357871', 'P17', {'concept': 'Q15617994'}] ['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?b property:P17 ?a . ?a rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q2357871 ) ( resource:Q24826 ) } }
Prem Liverpool
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Prem', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?b property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:Prem ) ( resource:Liverpool ) } }
[]
designation for an administrative territorial entity
Q215 Q145
SYSTEM
Slovenia, United Kingdom
Q215 Q145
(Q2357871,P17,c(Q15617994)) (Q24826,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
Those administrative territories are located in [ANSWERS]
['Q2357871', 'P17', {'concept': 'Q15617994'}] ['Q24826', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?b property:P17 ?a . ?a rdf:type ontology:Q15617994 . VALUES ( ?b ) { ( resource:Q2357871 ) ( resource:Q24826 ) } }
Slovenia United Kingdom
Those administrative territories are located in Slovenia and United Kingdom
Slovenia United Kingdom
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Prem', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Liverpool', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?b property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?b ) { ( resource:Prem ) ( resource:Liverpool ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2357871
P1435
Q2065736
USER
Which cultural property represents the heritage status given to that administrative territory ?
(Q2357871,P1435,c(Q2065736))
action filter_type
action find
entity Q2357871
relation P1435
type Q2065736
['Q2357871', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?k WHERE { resource:Q2357871 property:P1435 ?k . ?k rdf:type ontology:Q2065736 }
Prem
action filter_type
action find
entity Prem
relation heritage status
type cultural property
['Prem', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?k WHERE { resource:Prem property:heritage_status ?k . ?k rdf:type ontology:cultural_property }
[]
cultural property
Clarification for simple ques.
Q2357871
SYSTEM
Did you mean Prem ?
Q215 Q145
(Q215,P1435,c(Q2065736)) (Q145,P1435,c(Q2065736))
[ANSWER]
['Q215', 'P1435', {'concept': 'Q2065736'}] ['Q145', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?k WHERE { resource:Q2357871 property:P1435 ?k . ?k rdf:type ontology:Q2065736 }
Slovenia United Kingdom
Did you mean Prem ?
Prem
['Slovenia', 'heritage status', {'concept': 'cultural property'}] ['United Kingdom', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?k WHERE { resource:Prem property:heritage_status ?k . ?k rdf:type ontology:cultural_property }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2357871,P1435,c(Q2065736))
['Q2357871', 'P1435', {'concept': 'Q2065736'}]
['Prem', 'heritage status', {'concept': 'cultural property'}]
[]
Q18363639
SYSTEM
monument of local significance
Q18363639
(Q2357871,P1435,c(Q2065736))
action filter_type
action find
entity Q2357871
relation P1435
type Q2065736
Or [ANSWER] represents the heritage status given to that administrative territory
['Q2357871', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?k WHERE { resource:Q2357871 property:P1435 ?k . ?k rdf:type ontology:Q2065736 }
monument of local significance
Or monument of local significance represents the heritage status given to that administrative territory
monument of local significance
action filter_type
action find
entity Prem
relation heritage status
type cultural property
['Prem', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?k WHERE { resource:Prem property:heritage_status ?k . ?k rdf:type ontology:cultural_property }
[]