Simple Question (Direct)
Simple Question
Q1218929
P9
Q502895
USER
Which person is the sister of Péter Novák ?
(Q1218929,P9,c(Q502895))
action filter_type
action find
entity Q1218929
relation P9
type Q502895
['Q1218929', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1218929 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Péter Novák
action filter_type
action find
entity Péter Novák
relation sister
type common name
['Péter Novák', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Péter_Novák property:sister ?o . ?o rdf:type ontology:common_name }
[]
common name
Q1218905
SYSTEM
Eszter Novák
Q1218905
(Q1218929,P9,c(Q502895))
action filter_type
action find
entity Q1218929
relation P9
type Q502895
[ANSWER] is the sister of Péter Novák
['Q1218929', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1218929 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Eszter Novák
Eszter Novák is the sister of Péter Novák
Eszter Novák
action filter_type
action find
entity Péter Novák
relation sister
type common name
['Péter Novák', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Péter_Novák property:sister ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1218905
P25
Q502895
USER
Which person was the mother of that one ?
(Q1218905,P25,c(Q502895))
action filter_type
action find
entity Q1218905
relation P25
type Q502895
['Q1218905', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1218905 property:P25 ?f . ?f rdf:type ontology:Q502895 }
Eszter Novák
action filter_type
action find
entity Eszter Novák
relation mother
type common name
['Eszter Novák', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Eszter_Novák property:mother ?f . ?f rdf:type ontology:common_name }
[]
common name
Q928709
SYSTEM
Jolán Foltin
Q928709
(Q1218905,P25,c(Q502895))
action filter_type
action find
entity Q1218905
relation P25
type Q502895
[ANSWER] was the mother of that one
['Q1218905', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1218905 property:P25 ?f . ?f rdf:type ontology:Q502895 }
Jolán Foltin
Jolán Foltin was the mother of that one
Jolán Foltin
action filter_type
action find
entity Eszter Novák
relation mother
type common name
['Eszter Novák', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Eszter_Novák property:mother ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1218905
P7
Q502895
USER
Who has Eszter Novák as their brother ?
(Q1218905,P7,c(Q502895))
action filter_type
action find
entity Q1218905
relation P7
type Q502895
['Q1218905', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1218905 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Eszter Novák
action filter_type
action find
entity Eszter Novák
relation brother
type common name
['Eszter Novák', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Eszter_Novák property:brother ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1218929
SYSTEM
Péter Novák
Q1218929
(Q1218905,P7,c(Q502895))
action filter_type
action find
entity Q1218905
relation P7
type Q502895
[ANSWER] has Eszter Novák as their brother
['Q1218905', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1218905 property:P7 ?t . ?t rdf:type ontology:Q502895 }
Péter Novák
Péter Novák has Eszter Novák as their brother
Péter Novák
action filter_type
action find
entity Eszter Novák
relation brother
type common name
['Eszter Novák', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Eszter_Novák property:brother ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3124402
Q502895
USER
And also tell me about Gerard, Count of Boulogne?
(Q3124402,P7,c(Q502895))
action filter_type
action find
entity Q3124402
relation P7
type Q502895
['Q3124402', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3124402 property:P7 ?b . ?b rdf:type ontology:Q502895 }
Gerard, Count of Boulogne
action filter_type
action find
entity Gerard, Count of Boulogne
relation brother
type common name
['Gerard, Count of Boulogne', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gerard,_Count_of_Boulogne property:brother ?b . ?b rdf:type ontology:common_name }
[]
common name
Q74016
SYSTEM
Otto I, Count of Guelders
Q74016
(Q3124402,P7,c(Q502895))
action filter_type
action find
entity Q3124402
relation P7
type Q502895
[ANSWER]
['Q3124402', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3124402 property:P7 ?b . ?b rdf:type ontology:Q502895 }
Otto I, Count of Guelders
Otto I, Count of Guelders
action filter_type
action find
entity Gerard, Count of Boulogne
relation brother
type common name
['Gerard, Count of Boulogne', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Gerard,_Count_of_Boulogne property:brother ?b . ?b rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3169225 Q1218929
P19
Q56061
USER
Which administrative territories were Péter Novák or Jean-Pierre Dopagne born in ?
OR((Q1218929,P19,c(Q56061)), (Q3169225,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1218929
relation P19
action find
entity Q3169225
relation P19
type Q56061
{'OR': [['Q1218929', 'P19', {'concept': 'Q56061'}], ['Q3169225', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1218929 property:P19 ?g } UNION { resource:Q3169225 property:P19 ?g } } . ?g rdf:type ontology:Q56061 }
Jean-Pierre Dopagne Péter Novák
action filter_type
action union
action find
entity Péter Novák
relation place of birth
action find
entity Jean-Pierre Dopagne
relation place of birth
type administrative territorial entity
{'OR': [['Péter Novák', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jean-Pierre Dopagne', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Péter_Novák property:place_of_birth ?g } UNION { resource:Jean-Pierre_Dopagne property:place_of_birth ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q134121 Q1781
SYSTEM
Namur, Budapest
Q134121 Q1781
OR((Q1218929,P19,c(Q56061)), (Q3169225,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1218929
relation P19
action find
entity Q3169225
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q1218929', 'P19', {'concept': 'Q56061'}], ['Q3169225', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1218929 property:P19 ?g } UNION { resource:Q3169225 property:P19 ?g } } . ?g rdf:type ontology:Q56061 }
Namur Budapest
Which administrative territories were Péter Novák or Jean-Pierre Dopagne born in
Namur Budapest
action filter_type
action union
action find
entity Péter Novák
relation place of birth
action find
entity Jean-Pierre Dopagne
relation place of birth
type administrative territorial entity
{'OR': [['Péter Novák', 'place of birth', {'concept': 'administrative territorial entity'}], ['Jean-Pierre Dopagne', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Péter_Novák property:place_of_birth ?g } UNION { resource:Jean-Pierre_Dopagne property:place_of_birth ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P47
Q2590631
USER
Which municipality of Hungary is adjacent to Budapest ?
(Q1781,P47,c(Q2590631))
action filter_type
action find
entity Q1781
relation P47
type Q2590631
['Q1781', 'P47', {'concept': 'Q2590631'}]
SELECT DISTINCT ?o WHERE { resource:Q1781 property:P47 ?o . ?o rdf:type ontology:Q2590631 }
Budapest
action filter_type
action find
entity Budapest
relation shares border with
type municipality of Hungary
['Budapest', 'shares border with', {'concept': 'municipality of Hungary'}]
SELECT DISTINCT ?o WHERE { resource:Budapest property:shares_border_with ?o . ?o rdf:type ontology:municipality_of_Hungary }
[]
municipality of Hungary
Q30317
SYSTEM
Ecser
Q30317
(Q1781,P47,c(Q2590631))
action filter_type
action find
entity Q1781
relation P47
type Q2590631
Er [ANSWER] is adjacent to Budapest
['Q1781', 'P47', {'concept': 'Q2590631'}]
SELECT DISTINCT ?o WHERE { resource:Q1781 property:P47 ?o . ?o rdf:type ontology:Q2590631 }
Ecser
Er Ecser is adjacent to Budapest
Ecser
action filter_type
action find
entity Budapest
relation shares border with
type municipality of Hungary
['Budapest', 'shares border with', {'concept': 'municipality of Hungary'}]
SELECT DISTINCT ?o WHERE { resource:Budapest property:shares_border_with ?o . ?o rdf:type ontology:municipality_of_Hungary }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30317 Q1781
P47
Q56061
USER
Does Budapest have a shared border with that municipality of Hungary ?
(Q30317,P47,Q1781)
action is_in
entity Q1781
action find
entity Q30317
relation P47
['Q30317', 'P47', 'Q1781']
ASK WHERE { resource:Q30317 property:P47 resource:Q1781 }
Ecser Budapest
action is_in
entity Budapest
action find
entity Ecser
relation shares border with
['Ecser', 'shares border with', 'Budapest']
ASK WHERE { resource:Ecser property:shares_border_with resource:Budapest }
[]
administrative territorial entity
SYSTEM
YES
(Q30317,P47,Q1781)
action is_in
entity Q1781
action find
entity Q30317
relation P47
[ANSWER]
['Q30317', 'P47', 'Q1781']
ASK WHERE { resource:Q30317 property:P47 resource:Q1781 }
Yes
action is_in
entity Budapest
action find
entity Ecser
relation shares border with
['Ecser', 'shares border with', 'Budapest']
ASK WHERE { resource:Ecser property:shares_border_with resource:Budapest }
[]