Simple Question (Direct)
Simple Question
Q2078081
P20
Q56061
USER
Where did the expiration of Peter Scheuer occur ?
(Q2078081,P20,c(Q56061))
action filter_type
action find
entity Q2078081
relation P20
type Q56061
['Q2078081', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2078081 property:P20 ?v . ?v rdf:type ontology:Q56061 }
Peter Scheuer
action filter_type
action find
entity Peter Scheuer
relation place of death
type administrative territorial entity
['Peter Scheuer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Peter_Scheuer property:place_of_death ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q14907
SYSTEM
Sankt Ingbert
Q14907
(Q2078081,P20,c(Q56061))
action filter_type
action find
entity Q2078081
relation P20
type Q56061
The expiration of Peter Scheuer occurred in [ANSWER]
['Q2078081', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q2078081 property:P20 ?v . ?v rdf:type ontology:Q56061 }
Sankt Ingbert
The expiration of Peter Scheuer occurred in Sankt Ingbert
Sankt Ingbert
action filter_type
action find
entity Peter Scheuer
relation place of death
type administrative territorial entity
['Peter Scheuer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Peter_Scheuer property:place_of_death ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2078081
P106
Q12737077
USER
Which occupations have that person as his/her 's career ?
(Q14907,P106,c(Q12737077))
action filter_type
action find
entity Q2078081
relation P106
type Q12737077
['Q14907', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2078081 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Peter Scheuer
action filter_type
action find
entity Peter Scheuer
relation occupation
type occupation
['Sankt Ingbert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Peter_Scheuer property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q1930187 Q82955
SYSTEM
journalist, politician
Q1930187 Q82955
(Q14907,P106,c(Q12737077))
action filter_type
action find
entity Q2078081
relation P106
type Q12737077
And [ANSWERS] have that person as his/her 's career
['Q14907', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q2078081 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
journalist politician
And journalist and politician have that person as his/her 's career
journalist politician
action filter_type
action find
entity Peter Scheuer
relation occupation
type occupation
['Sankt Ingbert', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Peter_Scheuer property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P921
Q2342494 Q223393
USER
How many collectables and literary genres are that occupation a main subject of ?
(c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955) (c(Q2342494),P921,Q1930187) (c(Q223393),P921,Q1930187) (c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955)
[{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q1930187'] [{'concept': 'Q223393'}, 'P921', 'Q1930187'] [{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } UNION { ?z property:P921 resource:Q1930187 } UNION { ?y property:P921 resource:Q1930187 } UNION { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q223393 }
[{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'journalist'] [{'concept': 'literary genre'}, 'main subject', 'journalist'] [{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } UNION { ?z property:main_subject resource:journalist } UNION { ?y property:main_subject resource:journalist } UNION { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:literary_genre }
[]
collectable literary genre
Quantitative|Count|Mult. entity type|Clarification
Q1930187
SYSTEM
Did you mean journalist ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } UNION { ?z property:P921 resource:Q1930187 } UNION { ?y property:P921 resource:Q1930187 } UNION { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q223393 }
Did you mean journalist ?
journalist
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } UNION { ?z property:main_subject resource:journalist } UNION { ?y property:main_subject resource:journalist } UNION { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:literary_genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant politician. Could you tell me the answer for that?
(c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955) (c(Q2342494),P921,Q1930187) (c(Q223393),P921,Q1930187) (c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955)
Q82955
[{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q1930187'] [{'concept': 'Q223393'}, 'P921', 'Q1930187'] [{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955']
[{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'journalist'] [{'concept': 'literary genre'}, 'main subject', 'journalist'] [{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician']
[]
SYSTEM
1 collectables and 1 literary genres
Q21815179 Q21601944
(c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955) (c(Q2342494),P921,Q1930187) (c(Q223393),P921,Q1930187) (c(Q2342494),P921,Q82955) (c(Q223393),P921,Q82955)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955'] [{'concept': 'Q2342494'}, 'P921', 'Q1930187'] [{'concept': 'Q223393'}, 'P921', 'Q1930187'] [{'concept': 'Q2342494'}, 'P921', 'Q82955'] [{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } UNION { ?z property:P921 resource:Q1930187 } UNION { ?y property:P921 resource:Q1930187 } UNION { ?z property:P921 resource:Q82955 } UNION { ?y property:P921 resource:Q82955 } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q223393 }
worldstatesmen Notitia Parliamentaria, Or, An History of the Counties, Cities, and Boroughs in England and Wales
1 collectables and 1 literary genres
[{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician'] [{'concept': 'collectable'}, 'main subject', 'journalist'] [{'concept': 'literary genre'}, 'main subject', 'journalist'] [{'concept': 'collectable'}, 'main subject', 'politician'] [{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } UNION { ?z property:main_subject resource:journalist } UNION { ?y property:main_subject resource:journalist } UNION { ?z property:main_subject resource:politician } UNION { ?y property:main_subject resource:politician } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:literary_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14907
P190
Q3559024
USER
Which village of Senegal is twin city of Sankt Ingbert ?
(Q14907,P190,c(Q3559024))
action filter_type
action find
entity Q14907
relation P190
type Q3559024
['Q14907', 'P190', {'concept': 'Q3559024'}]
SELECT DISTINCT ?f WHERE { resource:Q14907 property:P190 ?f . ?f rdf:type ontology:Q3559024 }
Sankt Ingbert
action filter_type
action find
entity Sankt Ingbert
relation sister city
type village of Senegal
['Sankt Ingbert', 'sister city', {'concept': 'village of Senegal'}]
SELECT DISTINCT ?f WHERE { resource:Sankt_Ingbert property:sister_city ?f . ?f rdf:type ontology:village_of_Senegal }
[]
village of Senegal
Q475474
SYSTEM
N’Diaganiao
Q475474
(Q14907,P190,c(Q3559024))
action filter_type
action find
entity Q14907
relation P190
type Q3559024
[ANSWER] is twin city of Sankt Ingbert
['Q14907', 'P190', {'concept': 'Q3559024'}]
SELECT DISTINCT ?f WHERE { resource:Q14907 property:P190 ?f . ?f rdf:type ontology:Q3559024 }
N’Diaganiao
N’Diaganiao is twin city of Sankt Ingbert
N’Diaganiao
action filter_type
action find
entity Sankt Ingbert
relation sister city
type village of Senegal
['Sankt Ingbert', 'sister city', {'concept': 'village of Senegal'}]
SELECT DISTINCT ?f WHERE { resource:Sankt_Ingbert property:sister_city ?f . ?f rdf:type ontology:village_of_Senegal }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q14907
Q20667921
USER
And which french administrative division?
(Q14907,P190,c(Q20667921))
action filter_type
action find
entity Q14907
relation P190
type Q20667921
['Q14907', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q20667921 . resource:Q14907 property:P190 ?b }
Sankt Ingbert
action filter_type
action find
entity Sankt Ingbert
relation sister city
type type of french administrative division
['Sankt Ingbert', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:type_of_french_administrative_division . resource:Sankt_Ingbert property:sister_city ?b }
[]
type of french administrative division
Q273922
SYSTEM
Saint-Herblain
Q273922
(Q14907,P190,c(Q20667921))
action filter_type
action find
entity Q14907
relation P190
type Q20667921
[ANSWER]
['Q14907', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q20667921 . resource:Q14907 property:P190 ?b }
Saint-Herblain
Saint-Herblain
action filter_type
action find
entity Sankt Ingbert
relation sister city
type type of french administrative division
['Sankt Ingbert', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:type_of_french_administrative_division . resource:Sankt_Ingbert property:sister_city ?b }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1656160 Q273922
P47 P36
Q56061
USER
Which administrative territories are adjacent to Saint-Herblain or are known as the capital of Sukhinichsky District ?
OR((Q273922,P47,c(Q56061)), (Q1656160,P36,c(Q56061)))
action filter_type
action union
action find
entity Q273922
relation P47
action find
entity Q1656160
relation P36
type Q56061
{'OR': [['Q273922', 'P47', {'concept': 'Q56061'}], ['Q1656160', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q273922 property:P47 ?g } UNION { resource:Q1656160 property:P36 ?g } } . ?g rdf:type ontology:Q56061 }
Sukhinichsky District Saint-Herblain
action filter_type
action union
action find
entity Saint-Herblain
relation shares border with
action find
entity Sukhinichsky District
relation capital
type administrative territorial entity
{'OR': [['Saint-Herblain', 'shares border with', {'concept': 'administrative territorial entity'}], ['Sukhinichsky District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Saint-Herblain property:shares_border_with ?g } UNION { resource:Sukhinichsky_District property:capital ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q196526 Q12191
SYSTEM
Sukhinichi, Nantes
Q196526 Q12191
OR((Q273922,P47,c(Q56061)), (Q1656160,P36,c(Q56061)))
action filter_type
action union
action find
entity Q273922
relation P47
action find
entity Q1656160
relation P36
type Q56061
[ANSWERS] are adjacent to Saint-Herblain or are known as the capital of Sukhinichsky District
{'OR': [['Q273922', 'P47', {'concept': 'Q56061'}], ['Q1656160', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q273922 property:P47 ?g } UNION { resource:Q1656160 property:P36 ?g } } . ?g rdf:type ontology:Q56061 }
Sukhinichi Nantes
Sukhinichi and Nantes are adjacent to Saint-Herblain or are known as the capital of Sukhinichsky District
Sukhinichi Nantes
action filter_type
action union
action find
entity Saint-Herblain
relation shares border with
action find
entity Sukhinichsky District
relation capital
type administrative territorial entity
{'OR': [['Saint-Herblain', 'shares border with', {'concept': 'administrative territorial entity'}], ['Sukhinichsky District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Saint-Herblain property:shares_border_with ?g } UNION { resource:Sukhinichsky_District property:capital ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P19
Q502895
USER
How many people have birthplace at that administrative territory ?
(c(Q502895),P19,Q196526)
[{'concept': 'Q502895'}, 'P19', 'Q196526']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q196526 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'place of birth', 'Sukhinichi']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Sukhinichi . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q196526
SYSTEM
Did you mean Sukhinichi ?
(c(Q502895),P19,Q196526) (c(Q502895),P19,Q12191)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q196526'] [{'concept': 'Q502895'}, 'P19', 'Q12191']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q196526 . ?z rdf:type ontology:Q502895 }
Did you mean Sukhinichi ?
Sukhinichi
[{'concept': 'common name'}, 'place of birth', 'Sukhinichi'] [{'concept': 'common name'}, 'place of birth', 'Nantes']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Sukhinichi . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P19,Q196526)
[{'concept': 'Q502895'}, 'P19', 'Q196526']
[{'concept': 'common name'}, 'place of birth', 'Sukhinichi']
[]
SYSTEM
2
Q16685028 Q1469536
(c(Q502895),P19,Q196526)
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q196526']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q1322263 resource:Q196526 . ?z rdf:type ontology:Q502895 }
Anatoly Parshin Lev Okun
2
[{'concept': 'common name'}, 'place of birth', 'Sukhinichi']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:place_of_birth resource:Sukhinichi . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12191
P921
Q838948
USER
Which work of art has Nantes as its main topic ?
(c(Q838948),P921,Q12191)
action filter_type
action find_reverse
entity Q12191
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q12191']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q12191 . ?h rdf:type ontology:Q838948 }
Nantes
action filter_type
action find_reverse
entity Nantes
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Nantes']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Nantes . ?h rdf:type ontology:work_of_art }
[]
work of art
Q23641884
SYSTEM
Nantes
Q23641884
(c(Q838948),P921,Q12191)
action filter_type
action find_reverse
entity Q12191
relation P921
type Q838948
Has [ANSWER] has [ANSWER] as its main topic
[{'concept': 'Q838948'}, 'P921', 'Q12191']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q12191 . ?h rdf:type ontology:Q838948 }
Nantes
Has Nantes has Nantes as its main topic
Nantes
action filter_type
action find_reverse
entity Nantes
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'Nantes']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Nantes . ?h rdf:type ontology:work_of_art }
[]