Simple Question (Direct)
Simple Question
Q1795552
P19
Q486972
USER
Where was Catherine Stern born ?
(Q1795552,P19,c(Q486972))
action filter_type
action find
entity Q1795552
relation P19
type Q486972
['Q1795552', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q1795552 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Catherine Stern
action filter_type
action find
entity Catherine Stern
relation place of birth
type human settlement
['Catherine Stern', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Catherine_Stern property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
human settlement
Q1799
SYSTEM
Wrocław
Q1799
(Q1795552,P19,c(Q486972))
action filter_type
action find
entity Q1795552
relation P19
type Q486972
Catherine Stern was born in [ANSWER]
['Q1795552', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q1795552 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Wrocław
Catherine Stern was born in Wrocław
Wrocław
action filter_type
action find
entity Catherine Stern
relation place of birth
type human settlement
['Catherine Stern', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Catherine_Stern property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1795552
P512
Q3412758
USER
Which qualification does that person hold ?
(Q1799,P512,c(Q3412758))
action filter_type
action find
entity Q1795552
relation P512
type Q3412758
['Q1799', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3412758 . resource:Q1795552 property:P512 ?m }
Catherine Stern
action filter_type
action find
entity Catherine Stern
relation academic degree
type qualification
['Wrocław', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:qualification . resource:Catherine_Stern property:academic_degree ?m }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1799,P512,c(Q3412758))
action filter_type
action find
entity Q1795552
relation P512
type Q3412758
That person holds a [ANSWER]
['Q1799', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3412758 . resource:Q1795552 property:P512 ?m }
doctoral degree
That person holds a doctoral degree
doctoral degree
action filter_type
action find
entity Catherine Stern
relation academic degree
type qualification
['Wrocław', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:qualification . resource:Catherine_Stern property:academic_degree ?m }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q4477834 Q1795552
P512
Q3412758
USER
Or Lev Usov?
OR((Q1795552,P512,c(Q3412758)), (Q4477834,P512,c(Q3412758)))
action filter_type
action union
action find
entity Q1795552
relation P512
action find
entity Q4477834
relation P512
type Q3412758
{'OR': [['Q1795552', 'P512', {'concept': 'Q3412758'}], ['Q4477834', 'P512', {'concept': 'Q3412758'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1795552 property:P512 ?l } UNION { resource:Q4477834 property:P512 ?l } } . ?l rdf:type ontology:Q3412758 }
Lev Usov Catherine Stern
action filter_type
action union
action find
entity Catherine Stern
relation academic degree
action find
entity Lev Usov
relation academic degree
type qualification
{'OR': [['Catherine Stern', 'academic degree', {'concept': 'qualification'}], ['Lev Usov', 'academic degree', {'concept': 'qualification'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Catherine_Stern property:academic_degree ?l } UNION { resource:Lev_Usov property:academic_degree ?l } } . ?l rdf:type ontology:qualification }
[]
qualification
Q17281165 Q849697
SYSTEM
Doktor Nauk in Medicine, doctoral degree
Q17281165 Q849697
OR((Q1795552,P512,c(Q3412758)), (Q4477834,P512,c(Q3412758)))
action filter_type
action union
action find
entity Q1795552
relation P512
action find
entity Q4477834
relation P512
type Q3412758
[ANSWERS]
{'OR': [['Q1795552', 'P512', {'concept': 'Q3412758'}], ['Q4477834', 'P512', {'concept': 'Q3412758'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q1795552 property:P512 ?l } UNION { resource:Q4477834 property:P512 ?l } } . ?l rdf:type ontology:Q3412758 }
Doktor Nauk in Medicine doctoral degree
Doktor Nauk in Medicine doctoral degree
action filter_type
action union
action find
entity Catherine Stern
relation academic degree
action find
entity Lev Usov
relation academic degree
type qualification
{'OR': [['Catherine Stern', 'academic degree', {'concept': 'qualification'}], ['Lev Usov', 'academic degree', {'concept': 'qualification'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Catherine_Stern property:academic_degree ?l } UNION { resource:Lev_Usov property:academic_degree ?l } } . ?l rdf:type ontology:qualification }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2756454 Q17281165
P17
Q15617994
USER
Which administrative territories are Doktor Nauk in Medicine or Nowy Duninów a part of ?
OR((Q17281165,P17,c(Q15617994)), (Q2756454,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17281165
relation P17
action find
entity Q2756454
relation P17
type Q15617994
{'OR': [['Q17281165', 'P17', {'concept': 'Q15617994'}], ['Q2756454', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q2756454 property:P17 ?e } UNION { resource:Q17281165 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Nowy Duninów Doktor Nauk in Medicine
action filter_type
action union
action find
entity Doktor Nauk in Medicine
relation country
action find
entity Nowy Duninów
relation country
type designation for an administrative territorial entity
{'OR': [['Doktor Nauk in Medicine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nowy Duninów', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Nowy_Duninów property:country ?e } UNION { resource:Doktor_Nauk_in_Medicine property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q212 Q159 Q36
SYSTEM
Ukraine, Russia, Poland
Q212 Q159 Q36
OR((Q17281165,P17,c(Q15617994)), (Q2756454,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q17281165
relation P17
action find
entity Q2756454
relation P17
type Q15617994
[ANSWERS] are Doktor Nauk in Medicine or Nowy Duninów a part of
{'OR': [['Q17281165', 'P17', {'concept': 'Q15617994'}], ['Q2756454', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q2756454 property:P17 ?e } UNION { resource:Q17281165 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Ukraine Russia Poland
Ukraine, Russia and Poland are Doktor Nauk in Medicine or Nowy Duninów a part of
Ukraine Russia Poland
action filter_type
action union
action find
entity Doktor Nauk in Medicine
relation country
action find
entity Nowy Duninów
relation country
type designation for an administrative territorial entity
{'OR': [['Doktor Nauk in Medicine', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nowy Duninów', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Nowy_Duninów property:country ?e } UNION { resource:Doktor_Nauk_in_Medicine property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q155
P530
Q15617994
USER
Do Brazil have tactful political relations with those ones ?
(Q155,P530,Q212) (Q155,P530,Q159) (Q155,P530,Q36)
action is_in
entity prev_answer
action find
entity Q155
relation P530
['Q155', 'P530', 'Q212'] ['Q155', 'P530', 'Q159'] ['Q155', 'P530', 'Q36']
ASK WHERE { resource:Q155 property:P530 ?h . VALUES ( ?h ) { ( resource:Q212 ) ( resource:Q159 ) ( resource:Q36 ) } }
Brazil
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Ukraine'] ['Brazil', 'diplomatic relation', 'Russia'] ['Brazil', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Brazil property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Ukraine ) ( resource:Russia ) ( resource:Poland ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q212) (Q155,P530,Q159) (Q155,P530,Q36)
action is_in
entity prev_answer
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q212'] ['Q155', 'P530', 'Q159'] ['Q155', 'P530', 'Q36']
ASK WHERE { resource:Q155 property:P530 ?h . VALUES ( ?h ) { ( resource:Q212 ) ( resource:Q159 ) ( resource:Q36 ) } }
Yes
action is_in
entity prev_answer
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Ukraine'] ['Brazil', 'diplomatic relation', 'Russia'] ['Brazil', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Brazil property:diplomatic_relation ?h . VALUES ( ?h ) { ( resource:Ukraine ) ( resource:Russia ) ( resource:Poland ) } }
[]