Simple Question (Direct)
Simple Question
Q463003
P20
Q56061
USER
Where did Dénes Kovács expire ?
(Q463003,P20,c(Q56061))
action filter_type
action find
entity Q463003
relation P20
type Q56061
['Q463003', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q463003 property:P20 ?g }
Dénes Kovács
action filter_type
action find
entity Dénes Kovács
relation place of death
type administrative territorial entity
['Dénes Kovács', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Dénes_Kovács property:place_of_death ?g }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q463003,P20,c(Q56061))
action filter_type
action find
entity Q463003
relation P20
type Q56061
Dénes Kovács expired in [ANSWER]
['Q463003', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q463003 property:P20 ?g }
Budapest
Dénes Kovács expired in Budapest
Budapest
action filter_type
action find
entity Dénes Kovács
relation place of death
type administrative territorial entity
['Dénes Kovács', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Dénes_Kovács property:place_of_death ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1781
P291
Q223393
USER
Which literary genre has that administrative territory as its release location ?
(c(Q223393),P291,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P291
type Q223393
[{'concept': 'Q223393'}, 'P291', 'Q1781']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q223393 . ?y property:P291 resource:Q1781 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation place of publication
type literary genre
[{'concept': 'literary genre'}, 'place of publication', 'Budapest']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:literary_genre . ?y property:place_of_publication resource:Budapest }
[]
literary genre
Q25164063
SYSTEM
Új magyar irodalmi lexikon
Q25164063
(c(Q223393),P291,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P291
type Q223393
[ANSWER] has that administrative territory as its release location
[{'concept': 'Q223393'}, 'P291', 'Q1781']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q223393 . ?y property:P291 resource:Q1781 }
Új magyar irodalmi lexikon
Új magyar irodalmi lexikon has that administrative territory as its release location
Új magyar irodalmi lexikon
action filter_type
action find_reverse
entity Budapest
relation place of publication
type literary genre
[{'concept': 'literary genre'}, 'place of publication', 'Budapest']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:literary_genre . ?y property:place_of_publication resource:Budapest }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P190
Q515
USER
Which cities are the sister cities of Budapest ?
(Q1781,P190,c(Q515))
action filter_type
action find
entity Q1781
relation P190
type Q515
['Q1781', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q1781 property:P190 ?b . ?b rdf:type ontology:Q515 }
Budapest
action filter_type
action find
entity Budapest
relation sister city
type city
['Budapest', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Budapest property:sister_city ?b . ?b rdf:type ontology:city }
[]
city
Q1899 Q1794 Q11194
SYSTEM
Kyiv, Frankfurt, Sarajevo
Q20921 Q1794 Q19660 Q1899 Q1761 Q11194
(Q1781,P190,c(Q515))
action filter_type
action find
entity Q1781
relation P190
type Q515
[ANSWERS] are the sister cities of Budapest
['Q1781', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q1781 property:P190 ?b . ?b rdf:type ontology:Q515 }
Daejeon Frankfurt Bucharest Kyiv Dublin Sarajevo
Kyiv, Frankfurt and Sarajevo are the sister cities of Budapest
Kyiv Frankfurt Sarajevo
action filter_type
action find
entity Budapest
relation sister city
type city
['Budapest', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Budapest property:sister_city ?b . ?b rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q552488
Q515
USER
And what about Battenberg (Eder)?
(Q552488,P190,c(Q515))
action filter_type
action find
entity Q552488
relation P190
type Q515
['Q552488', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q552488 property:P190 ?w }
Battenberg (Eder)
action filter_type
action find
entity Battenberg (Eder)
relation sister city
type city
['Battenberg (Eder)', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Battenberg_(Eder) property:sister_city ?w }
[]
city
Q986082 Q944051
SYSTEM
Litvínov, Horní Jiřetín
Q986082 Q944051
(Q552488,P190,c(Q515))
action filter_type
action find
entity Q552488
relation P190
type Q515
[ANSWERS]
['Q552488', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q552488 property:P190 ?w }
Litvínov Horní Jiřetín
Litvínov Horní Jiřetín
action filter_type
action find
entity Battenberg (Eder)
relation sister city
type city
['Battenberg (Eder)', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Battenberg_(Eder) property:sister_city ?w }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q552488
P190
Q56061
USER
Are Battenberg (Eder) twin city of those ones ?
(Q552488,P190,Q986082) (Q552488,P190,Q944051)
action is_in
entity prev_answer
action find
entity Q552488
relation P190
['Q552488', 'P190', 'Q986082'] ['Q552488', 'P190', 'Q944051']
ASK WHERE { resource:Q552488 property:P190 ?h . VALUES ( ?h ) { ( resource:Q986082 ) ( resource:Q944051 ) } }
Battenberg (Eder)
action is_in
entity prev_answer
action find
entity Battenberg (Eder)
relation sister city
['Battenberg (Eder)', 'sister city', 'Litvínov'] ['Battenberg (Eder)', 'sister city', 'Horní Jiřetín']
ASK WHERE { resource:Battenberg_(Eder) property:sister_city ?h . VALUES ( ?h ) { ( resource:Litvínov ) ( resource:Horní_Jiřetín ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q552488,P190,Q986082) (Q552488,P190,Q944051)
action is_in
entity prev_answer
action find
entity Q552488
relation P190
[ANSWER]
['Q552488', 'P190', 'Q986082'] ['Q552488', 'P190', 'Q944051']
ASK WHERE { resource:Q552488 property:P190 ?h . VALUES ( ?h ) { ( resource:Q986082 ) ( resource:Q944051 ) } }
Yes
action is_in
entity prev_answer
action find
entity Battenberg (Eder)
relation sister city
['Battenberg (Eder)', 'sister city', 'Litvínov'] ['Battenberg (Eder)', 'sister city', 'Horní Jiřetín']
ASK WHERE { resource:Battenberg_(Eder) property:sister_city ?h . VALUES ( ?h ) { ( resource:Litvínov ) ( resource:Horní_Jiřetín ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q25164063 Q5182717
P291
Q56061
USER
Was Craven Új magyar irodalmi lexikon published ?
(Q25164063,P291,Q5182717)
action is_in
entity Q5182717
action find
entity Q25164063
relation P291
['Q25164063', 'P291', 'Q5182717']
ASK WHERE { resource:Q25164063 property:P291 resource:Q5182717 }
Új magyar irodalmi lexikon Craven
action is_in
entity Craven
action find
entity Új magyar irodalmi lexikon
relation place of publication
['Új magyar irodalmi lexikon', 'place of publication', 'Craven']
ASK WHERE { resource:Új_magyar_irodalmi_lexikon property:place_of_publication resource:Craven }
[]
administrative territorial entity
SYSTEM
NO
(Q25164063,P291,Q5182717)
action is_in
entity Q5182717
action find
entity Q25164063
relation P291
[ANSWER]
['Q25164063', 'P291', 'Q5182717']
ASK WHERE { resource:Q25164063 property:P291 resource:Q5182717 }
No
action is_in
entity Craven
action find
entity Új magyar irodalmi lexikon
relation place of publication
['Új magyar irodalmi lexikon', 'place of publication', 'Craven']
ASK WHERE { resource:Új_magyar_irodalmi_lexikon property:place_of_publication resource:Craven }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q12020146 Q944051
P17
Q15617994
USER
Which administrative territories do Horní Jiřetín and Horní Brána belong to ?
AND((Q944051,P17,c(Q15617994)), (Q12020146,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q944051
relation P17
action find
entity Q12020146
relation P17
type Q15617994
{'AND': [['Q944051', 'P17', {'concept': 'Q15617994'}], ['Q12020146', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q944051 property:P17 ?x . resource:Q12020146 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Horní Brána Horní Jiřetín
action filter_type
action intersection
action find
entity Horní Jiřetín
relation country
action find
entity Horní Brána
relation country
type designation for an administrative territorial entity
{'AND': [['Horní Jiřetín', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Horní Brána', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Horní_Jiřetín property:country ?x . resource:Horní_Brána property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
AND((Q944051,P17,c(Q15617994)), (Q12020146,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q944051
relation P17
action find
entity Q12020146
relation P17
type Q15617994
[ANSWER] do Horní Jiřetín and Horní Brána belong to
{'AND': [['Q944051', 'P17', {'concept': 'Q15617994'}], ['Q12020146', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { resource:Q944051 property:P17 ?x . resource:Q12020146 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Czech Republic
Czech Republic do Horní Jiřetín and Horní Brána belong to
Czech Republic
action filter_type
action intersection
action find
entity Horní Jiřetín
relation country
action find
entity Horní Brána
relation country
type designation for an administrative territorial entity
{'AND': [['Horní Jiřetín', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Horní Brána', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { resource:Horní_Jiřetín property:country ?x . resource:Horní_Brána property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q213 Q155 Q801
P530
Q15617994
USER
Does Czech Republic have diplomatic associations with Brazil and Israel ?
(Q213,P530,Q155) (Q213,P530,Q801)
action is_in
entity Q213
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q801
relation P530
['Q213', 'P530', 'Q155'] ['Q213', 'P530', 'Q801']
ASK WHERE { resource:Q213 property:P530 resource:Q155 . resource:Q213 property:P530 resource:Q801 }
Czech Republic Brazil Israel
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['Czech Republic', 'diplomatic relation', 'Brazil'] ['Czech Republic', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Czech_Republic property:diplomatic_relation resource:Brazil . resource:Czech_Republic property:diplomatic_relation resource:Israel }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q213,P530,Q155) (Q213,P530,Q801)
action is_in
entity Q213
action intersection
action find_reverse
entity Q155
relation P530
action find_reverse
entity Q801
relation P530
[ANSWER]
['Q213', 'P530', 'Q155'] ['Q213', 'P530', 'Q801']
ASK WHERE { resource:Q213 property:P530 resource:Q155 . resource:Q213 property:P530 resource:Q801 }
Yes
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Brazil
relation diplomatic relation
action find_reverse
entity Israel
relation diplomatic relation
['Czech Republic', 'diplomatic relation', 'Brazil'] ['Czech Republic', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Czech_Republic property:diplomatic_relation resource:Brazil . resource:Czech_Republic property:diplomatic_relation resource:Israel }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q463003 Q5248793
P27
Q15617994
USER
Is Decatur Independent School District the native country of Dénes Kovács ?
(Q463003,P27,Q5248793)
action is_in
entity Q5248793
action find
entity Q463003
relation P27
['Q463003', 'P27', 'Q5248793']
ASK WHERE { resource:Q463003 property:P27 resource:Q5248793 }
Dénes Kovács Decatur Independent School District
action is_in
entity Decatur Independent School District
action find
entity Dénes Kovács
relation country of citizenship
['Dénes Kovács', 'country of citizenship', 'Decatur Independent School District']
ASK WHERE { resource:Dénes_Kovács property:country_of_citizenship resource:Decatur_Independent_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q463003,P27,Q5248793)
action is_in
entity Q5248793
action find
entity Q463003
relation P27
[ANSWER]
['Q463003', 'P27', 'Q5248793']
ASK WHERE { resource:Q463003 property:P27 resource:Q5248793 }
No
action is_in
entity Decatur Independent School District
action find
entity Dénes Kovács
relation country of citizenship
['Dénes Kovács', 'country of citizenship', 'Decatur Independent School District']
ASK WHERE { resource:Dénes_Kovács property:country_of_citizenship resource:Decatur_Independent_School_District }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3918624 Q463003
P27
Q15617994
USER
Which administrative territories do Dénes Kovács or Leon Tarasewicz belong to ?
OR((Q463003,P27,c(Q15617994)), (Q3918624,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q463003
relation P27
action find
entity Q3918624
relation P27
type Q15617994
{'OR': [['Q463003', 'P27', {'concept': 'Q15617994'}], ['Q3918624', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?i ) { ( resource:Q463003 ) ( resource:Q3918624 ) } . ?i property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Leon Tarasewicz Dénes Kovács
action filter_type
action union
action find
entity Dénes Kovács
relation country of citizenship
action find
entity Leon Tarasewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dénes Kovács', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leon Tarasewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?i ) { ( resource:Dénes_Kovács ) ( resource:Leon_Tarasewicz ) } . ?i property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28 Q36
SYSTEM
Hungary, Poland
Q28 Q36
OR((Q463003,P27,c(Q15617994)), (Q3918624,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q463003
relation P27
action find
entity Q3918624
relation P27
type Q15617994
Dénes Kovács or Leon Tarasewicz belong to [ANSWERS]
{'OR': [['Q463003', 'P27', {'concept': 'Q15617994'}], ['Q3918624', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?i ) { ( resource:Q463003 ) ( resource:Q3918624 ) } . ?i property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Hungary Poland
Dénes Kovács or Leon Tarasewicz belong to Hungary and Poland
Hungary Poland
action filter_type
action union
action find
entity Dénes Kovács
relation country of citizenship
action find
entity Leon Tarasewicz
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Dénes Kovács', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Leon Tarasewicz', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?i ) { ( resource:Dénes_Kovács ) ( resource:Leon_Tarasewicz ) } . ?i property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]