Simple Question (Direct)
Simple Question
Q7381574
P106
Q28640
USER
Which profession is the profession of Russell Howarth ?
(Q7381574,P106,c(Q28640))
action filter_type
action find
entity Q7381574
relation P106
type Q28640
['Q7381574', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { resource:Q7381574 property:P106 ?a . ?a rdf:type ontology:Q28640 }
Russell Howarth
action filter_type
action find
entity Russell Howarth
relation occupation
type profession
['Russell Howarth', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { resource:Russell_Howarth property:occupation ?a . ?a rdf:type ontology:profession }
[]
profession
Q330204
SYSTEM
paramedic
Q330204
(Q7381574,P106,c(Q28640))
action filter_type
action find
entity Q7381574
relation P106
type Q28640
The profession of Russell Howarth is a [ANSWER]
['Q7381574', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?a WHERE { resource:Q7381574 property:P106 ?a . ?a rdf:type ontology:Q28640 }
paramedic
The profession of Russell Howarth is a paramedic
paramedic
action filter_type
action find
entity Russell Howarth
relation occupation
type profession
['Russell Howarth', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?a WHERE { resource:Russell_Howarth property:occupation ?a . ?a rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7381574
P19
Q56061
USER
Which administrative territory is the birthplace of Russell Howarth ?
(Q7381574,P19,c(Q56061))
action filter_type
action find
entity Q7381574
relation P19
type Q56061
['Q7381574', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q7381574 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Russell Howarth
action filter_type
action find
entity Russell Howarth
relation place of birth
type administrative territorial entity
['Russell Howarth', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Russell_Howarth property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42462
SYSTEM
York
Q42462
(Q7381574,P19,c(Q56061))
action filter_type
action find
entity Q7381574
relation P19
type Q56061
[ANSWER] is the birthplace of Russell Howarth
['Q7381574', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q7381574 property:P19 ?c . ?c rdf:type ontology:Q56061 }
York
York is the birthplace of Russell Howarth
York
action filter_type
action find
entity Russell Howarth
relation place of birth
type administrative territorial entity
['Russell Howarth', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Russell_Howarth property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q62960
Q56061
USER
And what about Kathrin Neimke?
(Q62960,P19,c(Q56061))
action filter_type
action find
entity Q62960
relation P19
type Q56061
['Q62960', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q62960 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Kathrin Neimke
action filter_type
action find
entity Kathrin Neimke
relation place of birth
type administrative territorial entity
['Kathrin Neimke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Kathrin_Neimke property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1733
SYSTEM
Magdeburg
Q1733
(Q62960,P19,c(Q56061))
action filter_type
action find
entity Q62960
relation P19
type Q56061
[ANSWER]
['Q62960', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q62960 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Magdeburg
Magdeburg
action filter_type
action find
entity Kathrin Neimke
relation place of birth
type administrative territorial entity
['Kathrin Neimke', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Kathrin_Neimke property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P17
Q7275 Q3024240
USER
How many states and former countries do that administrative territory belong to ?
(Q1733,P17,c(Q7275)) (Q1733,P17,c(Q3024240)) (Q1733,P17,c(Q7275)) (Q1733,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1733
relation P17
type Q7275
action filter_type
action find
entity Q1733
relation P17
type Q3024240
['Q1733', 'P17', {'concept': 'Q7275'}] ['Q1733', 'P17', {'concept': 'Q3024240'}] ['Q1733', 'P17', {'concept': 'Q7275'}] ['Q1733', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7275 ) ( ontology:Q3024240 ) } }
action count
action union
action filter_type
action find
entity Magdeburg
relation country
type state
action filter_type
action find
entity Magdeburg
relation country
type former country
['Magdeburg', 'country', {'concept': 'state'}] ['Magdeburg', 'country', {'concept': 'former country'}] ['Magdeburg', 'country', {'concept': 'state'}] ['Magdeburg', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:state ) ( ontology:former_country ) } }
[]
state former country
SYSTEM
7 states and 1 former countries
Q153943 Q12548 Q16957 Q41304 Q27306 Q7318 Q157367 Q43287
(Q1733,P17,c(Q7275)) (Q1733,P17,c(Q3024240)) (Q1733,P17,c(Q7275)) (Q1733,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1733
relation P17
type Q7275
action filter_type
action find
entity Q1733
relation P17
type Q3024240
[ANSWER]
['Q1733', 'P17', {'concept': 'Q7275'}] ['Q1733', 'P17', {'concept': 'Q3024240'}] ['Q1733', 'P17', {'concept': 'Q7275'}] ['Q1733', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q7275 ) ( ontology:Q3024240 ) } }
Kingdom of Westphalia Holy Roman Empire East Germany Weimar Republic Kingdom of Prussia Nazi Germany Brandenburg-Prussia German Empire
7 states and 1 former countries
action count
action union
action filter_type
action find
entity Magdeburg
relation country
type state
action filter_type
action find
entity Magdeburg
relation country
type former country
['Magdeburg', 'country', {'concept': 'state'}] ['Magdeburg', 'country', {'concept': 'former country'}] ['Magdeburg', 'country', {'concept': 'state'}] ['Magdeburg', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:state ) ( ontology:former_country ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1733
P190
Q515
USER
How many cities are twin towns of Magdeburg ?
(Q1733,P190,c(Q515))
action count
action filter_type
action find
entity Q1733
relation P190
type Q515
['Q1733', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ontology:Q515 . resource:Q1733 property:P190 ?g }
Magdeburg
action count
action filter_type
action find
entity Magdeburg
relation sister city
type city
['Magdeburg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ontology:city . resource:Magdeburg property:sister_city ?g }
[]
city
SYSTEM
3
Q157835 Q2773 Q11194
(Q1733,P190,c(Q515))
action count
action filter_type
action find
entity Q1733
relation P190
type Q515
[ANSWER]
['Q1733', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ontology:Q515 . resource:Q1733 property:P190 ?g }
Zaporizhzhya Braunschweig Sarajevo
3
action count
action filter_type
action find
entity Magdeburg
relation sister city
type city
['Magdeburg', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { ?g rdf:type ontology:city . resource:Magdeburg property:sister_city ?g }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q61837
Q515
USER
And what about Bönnigheim?
(Q61837,P190,c(Q515))
action count
action filter_type
action find
entity Q61837
relation P190
type Q515
['Q61837', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ontology:Q515 . resource:Q61837 property:P190 ?b }
Bönnigheim
action count
action filter_type
action find
entity Bönnigheim
relation sister city
type city
['Bönnigheim', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ontology:city . resource:Bönnigheim property:sister_city ?b }
[]
city
SYSTEM
1
(Q61837,P190,c(Q515))
action count
action filter_type
action find
entity Q61837
relation P190
type Q515
[ANSWER]
['Q61837', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ontology:Q515 . resource:Q61837 property:P190 ?b }
1
action count
action filter_type
action find
entity Bönnigheim
relation sister city
type city
['Bönnigheim', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b rdf:type ontology:city . resource:Bönnigheim property:sister_city ?b }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q71538 Q7381574
P106
Q12737077
USER
Which occupations do Russell Howarth or Adolf Mayer do for a living ?
OR((Q7381574,P106,c(Q12737077)), (Q71538,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7381574
relation P106
action find
entity Q71538
relation P106
type Q12737077
{'OR': [['Q7381574', 'P106', {'concept': 'Q12737077'}], ['Q71538', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7381574 property:P106 ?y } UNION { resource:Q71538 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
Adolf Mayer Russell Howarth
action filter_type
action union
action find
entity Russell Howarth
relation occupation
action find
entity Adolf Mayer
relation occupation
type occupation
{'OR': [['Russell Howarth', 'occupation', {'concept': 'occupation'}], ['Adolf Mayer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Russell_Howarth property:occupation ?y } UNION { resource:Adolf_Mayer property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]
occupation
Q937857 Q1622272 Q4991371 Q2919046 Q593644
SYSTEM
association football player, university teacher, soldier, biochemist, chemist
Q937857 Q1622272 Q4991371 Q2919046 Q593644
OR((Q7381574,P106,c(Q12737077)), (Q71538,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7381574
relation P106
action find
entity Q71538
relation P106
type Q12737077
Russell Howarth or Adolf Mayer do for a living a [ANSWERS]
{'OR': [['Q7381574', 'P106', {'concept': 'Q12737077'}], ['Q71538', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q7381574 property:P106 ?y } UNION { resource:Q71538 property:P106 ?y } } . ?y rdf:type ontology:Q12737077 }
association football player university teacher soldier biochemist chemist
Russell Howarth or Adolf Mayer do for a living a association football player, university teacher, soldier, biochemist and chemist
association football player university teacher soldier biochemist chemist
action filter_type
action union
action find
entity Russell Howarth
relation occupation
action find
entity Adolf Mayer
relation occupation
type occupation
{'OR': [['Russell Howarth', 'occupation', {'concept': 'occupation'}], ['Adolf Mayer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Russell_Howarth property:occupation ?y } UNION { resource:Adolf_Mayer property:occupation ?y } } . ?y rdf:type ontology:occupation }
[]