Simple Question (Direct)
Simple Question
Q1729780
P937
Q56061
USER
What is the work location of Karl-Gustav Dicke ?
(Q1729780,P937,c(Q56061))
action filter_type
action find
entity Q1729780
relation P937
type Q56061
['Q1729780', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1729780 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Karl-Gustav Dicke
action filter_type
action find
entity Karl-Gustav Dicke
relation work location
type administrative territorial entity
['Karl-Gustav Dicke', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Karl-Gustav_Dicke property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1715
SYSTEM
Hanover
Q1715
(Q1729780,P937,c(Q56061))
action filter_type
action find
entity Q1729780
relation P937
type Q56061
The work location of Karl-Gustav Dicke is in [ANSWER]
['Q1729780', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q1729780 property:P937 ?n . ?n rdf:type ontology:Q56061 }
Hanover
The work location of Karl-Gustav Dicke is in Hanover
Hanover
action filter_type
action find
entity Karl-Gustav Dicke
relation work location
type administrative territorial entity
['Karl-Gustav Dicke', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Karl-Gustav_Dicke property:work_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729780
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q1715,P39,c(Q12737077))
action filter_type
action find
entity Q1729780
relation P39
type Q12737077
['Q1715', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1729780 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Karl-Gustav Dicke
action filter_type
action find
entity Karl-Gustav Dicke
relation position held
type occupation
['Hanover', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Karl-Gustav_Dicke property:position_held ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q17521638
SYSTEM
Member of the Landtag of Lower Saxony
Q17521638
(Q1715,P39,c(Q12737077))
action filter_type
action find
entity Q1729780
relation P39
type Q12737077
The [ANSWER]
['Q1715', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1729780 property:P39 ?j . ?j rdf:type ontology:Q12737077 }
Member of the Landtag of Lower Saxony
The Member of the Landtag of Lower Saxony
Member of the Landtag of Lower Saxony
action filter_type
action find
entity Karl-Gustav Dicke
relation position held
type occupation
['Hanover', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Karl-Gustav_Dicke property:position_held ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729780
P106
Q12737077
USER
What does that person do for a living ?
(Q17521638,P106,c(Q12737077))
action filter_type
action find
entity Q1729780
relation P106
type Q12737077
['Q17521638', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1729780 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Karl-Gustav Dicke
action filter_type
action find
entity Karl-Gustav Dicke
relation occupation
type occupation
['Member of the Landtag of Lower Saxony', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Karl-Gustav_Dicke property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q17521638,P106,c(Q12737077))
action filter_type
action find
entity Q1729780
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q17521638', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1729780 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Karl-Gustav Dicke
relation occupation
type occupation
['Member of the Landtag of Lower Saxony', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Karl-Gustav_Dicke property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1729780
P21
Q290
USER
Which sex does that person have ?
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q1729780
relation P21
type Q290
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1729780 property:P21 ?i . ?i rdf:type ontology:Q290 }
Karl-Gustav Dicke
action filter_type
action find
entity Karl-Gustav Dicke
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Karl-Gustav_Dicke property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q82955,P21,c(Q290))
action filter_type
action find
entity Q1729780
relation P21
type Q290
That person has a [ANSWER]
['Q82955', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1729780 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Karl-Gustav Dicke
relation gender
type sex
['politician', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Karl-Gustav_Dicke property:gender ?i . ?i rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q1307214 Q11204 Q12737077
USER
Which occupations are appointed by exactly 1 forms of government or legislatures ?
(c(Q12737077),P748,c(Q1307214)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?e WHERE { { ?e property:P748 ?g . ?e rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q11204 } UNION { ?e property:P748 ?g . ?g rdf:type ontology:Q1307214 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?e WHERE { { ?e property:appointed_by ?g . ?e rdf:type ontology:occupation . ?g rdf:type ontology:legislature } UNION { ?e property:appointed_by ?g . ?g rdf:type ontology:form_of_government . ?e rdf:type ontology:occupation } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
form of government legislature occupation
Q655407 Q4122271 Q26000995
SYSTEM
President of the People's Republic of China, Premier of the People's Republic of China, President of the Parliament of Catalonia
Q11793630 Q1355456 Q1507619 Q910308 Q1753754 Q943379 Q655407 Q596123 Q583809 Q1043568 Q2962001 Q866680 Q26000995 Q213107 Q4122271 Q162754 Q217217 Q1281611 Q1752225 Q687908
(c(Q12737077),P748,c(Q1307214)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[ANSWERS] are appointed by exactly 1 forms of government or legislatures
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1307214'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?e WHERE { { ?e property:P748 ?g . ?e rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q11204 } UNION { ?e property:P748 ?g . ?g rdf:type ontology:Q1307214 . ?e rdf:type ontology:Q12737077 } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
governor of national banks of Serbia and Yugoslavia Lord Chamberlain Deputy Prime Minister of the United Kingdom Lord Privy Seal Master of the Rolls Lord President of the Council President of the People's Republic of China president of Bangladesh Solicitor General for England and Wales Prime Minister of Vietnam Chief of the Defence Staff President of Vietnam President of the Parliament of Catalonia Prime Minister of Belgium Premier of the People's Republic of China Chancellor of the Duchy of Lancaster Lord Chancellor Lieutenant Governor of Jersey Lord Lieutenant of Ireland Lord Chief Justice of England and Wales
President of the People's Republic of China, Premier of the People's Republic of China and President of the Parliament of Catalonia are appointed by exactly 1 forms of government or legislatures
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
action equal
action union
action find_tuple_counts
relation appointed by
type occupation
type form of government
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'form of government'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?e WHERE { { ?e property:appointed_by ?g . ?e rdf:type ontology:occupation . ?g rdf:type ontology:legislature } UNION { ?e property:appointed_by ?g . ?g rdf:type ontology:form_of_government . ?e rdf:type ontology:occupation } } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4122271
P1313
Q15617994
USER
Which administrative territory has that occupation as office of head of government ?
(c(Q15617994),P1313,Q4122271)
action filter_type
action find_reverse
entity Q4122271
relation P1313
type Q15617994
[{'concept': 'Q15617994'}, 'P1313', 'Q4122271']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q4122271 . ?g rdf:type ontology:Q15617994 }
Premier of the People's Republic of China
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', "Premier of the People's Republic of China"]
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Premier_of_the_People's_Republic_of_China . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q26000995
SYSTEM
Did you mean President of the Parliament of Catalonia ?
Q655407 Q4122271 Q26000995
(c(Q15617994),P1313,Q655407) (c(Q15617994),P1313,Q4122271) (c(Q15617994),P1313,Q26000995)
[ANSWER]
[{'concept': 'Q15617994'}, 'P1313', 'Q655407'] [{'concept': 'Q15617994'}, 'P1313', 'Q4122271'] [{'concept': 'Q15617994'}, 'P1313', 'Q26000995']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q4122271 . ?g rdf:type ontology:Q15617994 }
President of the People's Republic of China Premier of the People's Republic of China President of the Parliament of Catalonia
Did you mean President of the Parliament of Catalonia ?
President of the Parliament of Catalonia
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', "President of the People's Republic of China"] [{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', "Premier of the People's Republic of China"] [{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', 'President of the Parliament of Catalonia']
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Premier_of_the_People's_Republic_of_China . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Premier of the People's Republic of China. Could you tell me the answer for that?
(c(Q15617994),P1313,Q4122271)
Q4122271
[{'concept': 'Q15617994'}, 'P1313', 'Q4122271']
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', "Premier of the People's Republic of China"]
[]
Q148
SYSTEM
People's Republic of China
Q148
(c(Q15617994),P1313,Q4122271)
action filter_type
action find_reverse
entity Q4122271
relation P1313
type Q15617994
[ANSWER] has that occupation as office of head of government
[{'concept': 'Q15617994'}, 'P1313', 'Q4122271']
SELECT DISTINCT ?g WHERE { ?g property:P1313 resource:Q4122271 . ?g rdf:type ontology:Q15617994 }
People's Republic of China
People's Republic of China has that occupation as office of head of government
People's Republic of China
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation office held by head of government
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'office held by head of government', "Premier of the People's Republic of China"]
SELECT DISTINCT ?g WHERE { ?g property:office_held_by_head_of_government resource:Premier_of_the_People's_Republic_of_China . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q148 Q183
P530
Q1048835
USER
Does Germany have diplomatic relationships with that administrative territory ?
(Q148,P530,Q183)
action is_in
entity Q183
action find
entity Q148
relation P530
['Q148', 'P530', 'Q183']
ASK WHERE { resource:Q148 property:P530 resource:Q183 }
People's Republic of China Germany
action is_in
entity Germany
action find
entity People's Republic of China
relation diplomatic relation
["People's Republic of China", 'diplomatic relation', 'Germany']
ASK WHERE { resource:People's_Republic_of_China property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q148,P530,Q183)
action is_in
entity Q183
action find
entity Q148
relation P530
[ANSWER]
['Q148', 'P530', 'Q183']
ASK WHERE { resource:Q148 property:P530 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity People's Republic of China
relation diplomatic relation
["People's Republic of China", 'diplomatic relation', 'Germany']
ASK WHERE { resource:People's_Republic_of_China property:diplomatic_relation resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4122271 Q3108138
P17
Q15617994
USER
Is Premier of the People's Republic of China situated in Weende ?
(Q4122271,P17,Q3108138)
action is_in
entity Q3108138
action find
entity Q4122271
relation P17
['Q4122271', 'P17', 'Q3108138']
ASK WHERE { resource:Q4122271 property:P17 resource:Q3108138 }
Premier of the People's Republic of China Weende
action is_in
entity Weende
action find
entity Premier of the People's Republic of China
relation country
["Premier of the People's Republic of China", 'country', 'Weende']
ASK WHERE { resource:Premier_of_the_People's_Republic_of_China property:country resource:Weende }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4122271,P17,Q3108138)
action is_in
entity Q3108138
action find
entity Q4122271
relation P17
[ANSWER]
['Q4122271', 'P17', 'Q3108138']
ASK WHERE { resource:Q4122271 property:P17 resource:Q3108138 }
No
action is_in
entity Weende
action find
entity Premier of the People's Republic of China
relation country
["Premier of the People's Republic of China", 'country', 'Weende']
ASK WHERE { resource:Premier_of_the_People's_Republic_of_China property:country resource:Weende }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4122271
P1313
Q15617994
USER
Which administrative territory has that occupation as office of head of government ?
action filter_type
action find_reverse
entity Q4122271
relation P1313
type Q15617994
SELECT DISTINCT ?v WHERE { ?v property:P1313 resource:Q4122271 . ?v rdf:type ontology:Q15617994 }
Premier of the People's Republic of China
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation office held by head of government
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v property:office_held_by_head_of_government resource:Premier_of_the_People's_Republic_of_China . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
action filter_type
action find_reverse
entity Q4122271
relation P1313
type Q15617994
[ANSWER] has that occupation as office of head of government
SELECT DISTINCT ?v WHERE { ?v property:P1313 resource:Q4122271 . ?v rdf:type ontology:Q15617994 }
People's Republic of China
People's Republic of China has that occupation as office of head of government
People's Republic of China
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation office held by head of government
type designation for an administrative territorial entity
SELECT DISTINCT ?v WHERE { ?v property:office_held_by_head_of_government resource:Premier_of_the_People's_Republic_of_China . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]