Simple Question (Direct)
Simple Question
Q1685296
P21
Q290
USER
What is the sex of Leopold von Wien ?
(Q1685296,P21,c(Q290))
action filter_type
action find
entity Q1685296
relation P21
type Q290
['Q1685296', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q1685296 property:P21 ?l }
Leopold von Wien
action filter_type
action find
entity Leopold von Wien
relation gender
type sex
['Leopold von Wien', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Leopold_von_Wien property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1685296,P21,c(Q290))
action filter_type
action find
entity Q1685296
relation P21
type Q290
The sex of Leopold von Wien is the [ANSWER]
['Q1685296', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q1685296 property:P21 ?l }
male
The sex of Leopold von Wien is the male
male
action filter_type
action find
entity Leopold von Wien
relation gender
type sex
['Leopold von Wien', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Leopold_von_Wien property:gender ?l }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1685296
P106
Q12737077
USER
What are the professions of Leopold von Wien ?
(Q1685296,P106,c(Q12737077))
action filter_type
action find
entity Q1685296
relation P106
type Q12737077
['Q1685296', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q1685296 property:P106 ?u }
Leopold von Wien
action filter_type
action find
entity Leopold von Wien
relation occupation
type occupation
['Leopold von Wien', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leopold_von_Wien property:occupation ?u }
[]
occupation
Q1622272 Q36180
SYSTEM
university teacher, writer
Q1622272 Q36180
(Q1685296,P106,c(Q12737077))
action filter_type
action find
entity Q1685296
relation P106
type Q12737077
The professions of Leopold von Wien are the [ANSWERS]
['Q1685296', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q12737077 . resource:Q1685296 property:P106 ?u }
university teacher writer
The professions of Leopold von Wien are the university teacher and writer
university teacher writer
action filter_type
action find
entity Leopold von Wien
relation occupation
type occupation
['Leopold von Wien', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:occupation . resource:Leopold_von_Wien property:occupation ?u }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1622272 Q36180
P101
Q502895
USER
Which people have field of work as university teacher and writer ?
(c(Q502895),P101,Q1622272) (c(Q502895),P101,Q36180)
action union
action filter_type
action find_reverse
entity Q1622272
relation P101
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q1622272'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?m WHERE { ?m property:P101 ?b . VALUES ( ?b ) { ( resource:Q1622272 ) ( resource:Q36180 ) } }
university teacher writer
action union
action filter_type
action find_reverse
entity university teacher
relation field of work
type common name
action filter_type
action find_reverse
entity writer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'university teacher'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?m WHERE { ?m property:field_of_work ?b . VALUES ( ?b ) { ( resource:university_teacher ) ( resource:writer ) } }
[]
common name
Q21030230 Q168569
SYSTEM
Eliška Klimková-Deutschová, Martin Andersen Nexø
Q21030230 Q168569
(c(Q502895),P101,Q1622272) (c(Q502895),P101,Q36180)
action union
action filter_type
action find_reverse
entity Q1622272
relation P101
type Q502895
action filter_type
action find_reverse
entity Q36180
relation P101
type Q502895
[ANSWERS] have field of work as university teacher and writer
[{'concept': 'Q502895'}, 'P101', 'Q1622272'] [{'concept': 'Q502895'}, 'P101', 'Q36180']
SELECT DISTINCT ?m WHERE { ?m property:P101 ?b . VALUES ( ?b ) { ( resource:Q1622272 ) ( resource:Q36180 ) } }
Eliška Klimková-Deutschová Martin Andersen Nexø
Eliška Klimková-Deutschová and Martin Andersen Nexø have field of work as university teacher and writer
Eliška Klimková-Deutschová Martin Andersen Nexø
action union
action filter_type
action find_reverse
entity university teacher
relation field of work
type common name
action filter_type
action find_reverse
entity writer
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'university teacher'] [{'concept': 'common name'}, 'field of work', 'writer']
SELECT DISTINCT ?m WHERE { ?m property:field_of_work ?b . VALUES ( ?b ) { ( resource:university_teacher ) ( resource:writer ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21030230
P512
Q3412758
USER
What is the degree held by that person ?
(Q21030230,P512,c(Q3412758))
action filter_type
action find
entity Q21030230
relation P512
type Q3412758
['Q21030230', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q21030230 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
Eliška Klimková-Deutschová
action filter_type
action find
entity Eliška Klimková-Deutschová
relation academic degree
type qualification
['Eliška Klimková-Deutschová', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Eliška_Klimková-Deutschová property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
qualification
Clarification for simple ques.
Q168569
SYSTEM
Did you mean Martin Andersen Nexø ?
Q21030230 Q168569
(Q21030230,P512,c(Q3412758)) (Q168569,P512,c(Q3412758))
[ANSWER]
['Q21030230', 'P512', {'concept': 'Q3412758'}] ['Q168569', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q21030230 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
Eliška Klimková-Deutschová Martin Andersen Nexø
Did you mean Martin Andersen Nexø ?
Martin Andersen Nexø
['Eliška Klimková-Deutschová', 'academic degree', {'concept': 'qualification'}] ['Martin Andersen Nexø', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Eliška_Klimková-Deutschová property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
Simple Question (Coreferenced)
USER
No, I meant Eliška Klimková-Deutschová. Could you tell me the answer for that?
(Q21030230,P512,c(Q3412758))
Q21030230
['Q21030230', 'P512', {'concept': 'Q3412758'}]
['Eliška Klimková-Deutschová', 'academic degree', {'concept': 'qualification'}]
[]
Q121594
SYSTEM
professor
Q121594
(Q21030230,P512,c(Q3412758))
action filter_type
action find
entity Q21030230
relation P512
type Q3412758
The degree held by that person is a [ANSWER]
['Q21030230', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?u WHERE { resource:Q21030230 property:P512 ?u . ?u rdf:type ontology:Q3412758 }
professor
The degree held by that person is a professor
professor
action filter_type
action find
entity Eliška Klimková-Deutschová
relation academic degree
type qualification
['Eliška Klimková-Deutschová', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?u WHERE { resource:Eliška_Klimková-Deutschová property:academic_degree ?u . ?u rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1685296
P20
Q56061
USER
Which administrative territory is the place of death of Leopold von Wien ?
(Q1685296,P20,c(Q56061))
action filter_type
action find
entity Q1685296
relation P20
type Q56061
['Q1685296', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1685296 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Leopold von Wien
action filter_type
action find
entity Leopold von Wien
relation place of death
type administrative territorial entity
['Leopold von Wien', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Leopold_von_Wien property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741
SYSTEM
Vienna
Q1741
(Q1685296,P20,c(Q56061))
action filter_type
action find
entity Q1685296
relation P20
type Q56061
Austria [ANSWER] is the place of death of Leopold von Wien
['Q1685296', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q1685296 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Vienna
Austria Vienna is the place of death of Leopold von Wien
Vienna
action filter_type
action find
entity Leopold von Wien
relation place of death
type administrative territorial entity
['Leopold von Wien', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Leopold_von_Wien property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q498668
Q56061
USER
And how about Andreas Kalvos?
(Q498668,P20,c(Q56061))
action filter_type
action find
entity Q498668
relation P20
type Q56061
['Q498668', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q498668 property:P20 ?x }
Andreas Kalvos
action filter_type
action find
entity Andreas Kalvos
relation place of death
type administrative territorial entity
['Andreas Kalvos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Andreas_Kalvos property:place_of_death ?x }
[]
administrative territorial entity
Q1554129
SYSTEM
Louth
Q1554129
(Q498668,P20,c(Q56061))
action filter_type
action find
entity Q498668
relation P20
type Q56061
[ANSWER]
['Q498668', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q498668 property:P20 ?x }
Louth
Louth
action filter_type
action find
entity Andreas Kalvos
relation place of death
type administrative territorial entity
['Andreas Kalvos', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Andreas_Kalvos property:place_of_death ?x }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1554129 Q1634009
P19
Q502895
USER
Does Kyril Bonfiglioli have location of birth at that administrative territory ?
(Q1634009,P19,Q1554129)
action is_in
entity Q1634009
action find
entity Q1554129
relation P19
['Q1634009', 'P19', 'Q1554129']
ASK WHERE { resource:Q1554129 property:P19 resource:Q1634009 }
Louth Kyril Bonfiglioli
action is_in
entity Kyril Bonfiglioli
action find
entity Louth
relation place of birth
['Kyril Bonfiglioli', 'place of birth', 'Louth']
ASK WHERE { resource:Louth property:place_of_birth resource:Kyril_Bonfiglioli }
[]
common name
SYSTEM
NO
(Q1634009,P19,Q1554129)
action is_in
entity Q1634009
action find
entity Q1554129
relation P19
[ANSWER]
['Q1634009', 'P19', 'Q1554129']
ASK WHERE { resource:Q1554129 property:P19 resource:Q1634009 }
No
action is_in
entity Kyril Bonfiglioli
action find
entity Louth
relation place of birth
['Kyril Bonfiglioli', 'place of birth', 'Louth']
ASK WHERE { resource:Louth property:place_of_birth resource:Kyril_Bonfiglioli }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1622272 Q15463449
P417
Q502895
USER
Is Jon J Muth the patron saint of university teacher ?
(Q1622272,P417,Q15463449)
action is_in
entity Q15463449
action find
entity Q1622272
relation P417
['Q1622272', 'P417', 'Q15463449']
ASK WHERE { resource:Q1622272 property:P417 resource:Q15463449 }
university teacher Jon J Muth
action is_in
entity Jon J Muth
action find
entity university teacher
relation patron saint
['university teacher', 'patron saint', 'Jon J Muth']
ASK WHERE { resource:university_teacher property:patron_saint resource:Jon_J_Muth }
[]
common name
SYSTEM
NO
(Q1622272,P417,Q15463449)
action is_in
entity Q15463449
action find
entity Q1622272
relation P417
[ANSWER]
['Q1622272', 'P417', 'Q15463449']
ASK WHERE { resource:Q1622272 property:P417 resource:Q15463449 }
No
action is_in
entity Jon J Muth
action find
entity university teacher
relation patron saint
['university teacher', 'patron saint', 'Jon J Muth']
ASK WHERE { resource:university_teacher property:patron_saint resource:Jon_J_Muth }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1741
P291
Q93288 Q2342494
USER
How many contracts or collectables have Vienna as their publication place ?
(c(Q93288),P291,Q1741) (c(Q2342494),P291,Q1741)
action count
action union
action filter_type
action find_reverse
entity Q1741
relation P291
type Q93288
action filter_type
action find_reverse
entity Q1741
relation P291
type Q2342494
[{'concept': 'Q93288'}, 'P291', 'Q1741'] [{'concept': 'Q2342494'}, 'P291', 'Q1741']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:P291 resource:Q1741 . ?g rdf:type ontology:Q93288 } UNION { ?g rdf:type ontology:Q2342494 . ?g property:P291 resource:Q1741 } }
Vienna
action count
action union
action filter_type
action find_reverse
entity Vienna
relation place of publication
type contract
action filter_type
action find_reverse
entity Vienna
relation place of publication
type collectable
[{'concept': 'contract'}, 'place of publication', 'Vienna'] [{'concept': 'collectable'}, 'place of publication', 'Vienna']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:place_of_publication resource:Vienna . ?g rdf:type ontology:contract } UNION { ?g rdf:type ontology:collectable . ?g property:place_of_publication resource:Vienna } }
[]
contract collectable
SYSTEM
3
Q5834575 Q17001802 Q26236183
(c(Q93288),P291,Q1741) (c(Q2342494),P291,Q1741)
action count
action union
action filter_type
action find_reverse
entity Q1741
relation P291
type Q93288
action filter_type
action find_reverse
entity Q1741
relation P291
type Q2342494
[ANSWER]
[{'concept': 'Q93288'}, 'P291', 'Q1741'] [{'concept': 'Q2342494'}, 'P291', 'Q1741']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:P291 resource:Q1741 . ?g rdf:type ontology:Q93288 } UNION { ?g rdf:type ontology:Q2342494 . ?g property:P291 resource:Q1741 } }
Enumeratio Stirpium Pleraumque, quae sponte crescunt in agro Vindobonensi Joint Comprehensive Plan of Action Liber disputationis Petri et Raimundi
3
action count
action union
action filter_type
action find_reverse
entity Vienna
relation place of publication
type contract
action filter_type
action find_reverse
entity Vienna
relation place of publication
type collectable
[{'concept': 'contract'}, 'place of publication', 'Vienna'] [{'concept': 'collectable'}, 'place of publication', 'Vienna']
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { ?g property:place_of_publication resource:Vienna . ?g rdf:type ontology:contract } UNION { ?g rdf:type ontology:collectable . ?g property:place_of_publication resource:Vienna } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5932030 Q1741
P19 P190
Q56061
USER
Which administrative territories are twin towns of Vienna or are the places of birth of Joaquín González Echegaray ?
OR((Q1741,P190,c(Q56061)), (Q5932030,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1741
relation P190
action find
entity Q5932030
relation P19
type Q56061
{'OR': [['Q1741', 'P190', {'concept': 'Q56061'}], ['Q5932030', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1741 property:P190 ?t } UNION { resource:Q5932030 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Joaquín González Echegaray Vienna
action filter_type
action union
action find
entity Vienna
relation sister city
action find
entity Joaquín González Echegaray
relation place of birth
type administrative territorial entity
{'OR': [['Vienna', 'sister city', {'concept': 'administrative territorial entity'}], ['Joaquín González Echegaray', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Vienna property:sister_city ?t } UNION { resource:Joaquín_González_Echegaray property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270 Q437 Q1781 Q12233 Q70 Q33935 Q406 Q472 Q3711 Q649
SYSTEM
Some of them are Warsaw, Ljubljana, Budapest, Santander, Bern, Tel Aviv, Istanbul, Sofia, Belgrade, Moscow
Q437 Q4656 Q3711 Q33935 Q649 Q472 Q270 Q1780 Q1781 Q406 Q12233 Q70
OR((Q1741,P190,c(Q56061)), (Q5932030,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1741
relation P190
action find
entity Q5932030
relation P19
type Q56061
[ANSWERS] are twin towns of Vienna or are the places of birth of Joaquín González Echegaray
{'OR': [['Q1741', 'P190', {'concept': 'Q56061'}], ['Q5932030', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1741 property:P190 ?t } UNION { resource:Q5932030 property:P19 ?t } } . ?t rdf:type ontology:Q56061 }
Ljubljana Pula Belgrade Tel Aviv Moscow Sofia Warsaw Bratislava Budapest Istanbul Santander Bern
Warsaw, Ljubljana, Budapest, Santander, Bern, Tel Aviv, Istanbul, Sofia, Belgrade and Moscow are twin towns of Vienna or are the places of birth of Joaquín González Echegaray
Warsaw Ljubljana Budapest Santander Bern Tel Aviv Istanbul Sofia Belgrade Moscow
action filter_type
action union
action find
entity Vienna
relation sister city
action find
entity Joaquín González Echegaray
relation place of birth
type administrative territorial entity
{'OR': [['Vienna', 'sister city', {'concept': 'administrative territorial entity'}], ['Joaquín González Echegaray', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Vienna property:sister_city ?t } UNION { resource:Joaquín_González_Echegaray property:place_of_birth ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]