Simple Question (Direct)
Simple Question
Q5954916
P106
Q12737077
USER
What does Julio Alas do for a living ?
(Q5954916,P106,c(Q12737077))
action filter_type
action find
entity Q5954916
relation P106
type Q12737077
['Q5954916', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5954916 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Julio Alas
action filter_type
action find
entity Julio Alas
relation occupation
type occupation
['Julio Alas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Julio_Alas property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q5954916,P106,c(Q12737077))
action filter_type
action find
entity Q5954916
relation P106
type Q12737077
Julio Alas does for a living as [ANSWER]
['Q5954916', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q5954916 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
association football player
Julio Alas does for a living as association football player
association football player
action filter_type
action find
entity Julio Alas
relation occupation
type occupation
['Julio Alas', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Julio_Alas property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5954916
P641
Q349
USER
Which sport did that person participate in ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q5954916
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q5954916 property:P641 ?c . ?c rdf:type ontology:Q349 }
Julio Alas
action filter_type
action find
entity Julio Alas
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Julio_Alas property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q5954916
relation P641
type Q349
That person participated in [ANSWER]
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q5954916 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Julio Alas
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Julio_Alas property:sport ?c . ?c rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q208050 Q5954916
P641
Q349
USER
And also Leonardo Juan Bonucci
AND((Q5954916,P641,c(Q349)), (Q208050,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q5954916
relation P641
action find
entity Q208050
relation P641
type Q349
{'AND': [['Q5954916', 'P641', {'concept': 'Q349'}], ['Q208050', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?k WHERE { resource:Q5954916 property:P641 ?k . resource:Q208050 property:P641 ?k . ?k rdf:type ontology:Q349 }
Leonardo Juan Bonucci Julio Alas
action filter_type
action intersection
action find
entity Julio Alas
relation sport
action find
entity Leonardo Juan Bonucci
relation sport
type sport
{'AND': [['Julio Alas', 'sport', {'concept': 'sport'}], ['Leonardo Juan Bonucci', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?k WHERE { resource:Julio_Alas property:sport ?k . resource:Leonardo_Juan_Bonucci property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
AND((Q5954916,P641,c(Q349)), (Q208050,P641,c(Q349)))
action filter_type
action intersection
action find
entity Q5954916
relation P641
action find
entity Q208050
relation P641
type Q349
[ANSWER]
{'AND': [['Q5954916', 'P641', {'concept': 'Q349'}], ['Q208050', 'P641', {'concept': 'Q349'}]]}
SELECT DISTINCT ?k WHERE { resource:Q5954916 property:P641 ?k . resource:Q208050 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
association football
action filter_type
action intersection
action find
entity Julio Alas
relation sport
action find
entity Leonardo Juan Bonucci
relation sport
type sport
{'AND': [['Julio Alas', 'sport', {'concept': 'sport'}], ['Leonardo Juan Bonucci', 'sport', {'concept': 'sport'}]]}
SELECT DISTINCT ?k WHERE { resource:Julio_Alas property:sport ?k . resource:Leonardo_Juan_Bonucci property:sport ?k . ?k rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q349 Q2342494 Q502895
USER
Which sports do lesser number of collectables or people belong to than that sport ?
(c(Q2342494)|c(Q502895),P101,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q2342494
type Q502895
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?a WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } . ?o rdf:type ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:P101 resource:Q2736 . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } } } } . FILTER ( ?j < ?e ) }
action less
action union
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?a WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:common_name ) } . ?o rdf:type ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:field_of_work resource:association_football . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:common_name ) } } } } . FILTER ( ?j < ?e ) }
[]
sport collectable common name
Q809831 Q136851 Q10962
SYSTEM
BASE jumping, curling, rugby league
Q10962 Q136851 Q43450 Q1109032 Q170737 Q5375 Q22857 Q14300548 Q1734 Q31920 Q12100 Q8418 Q15991265 Q2215841 Q108429 Q592031 Q7707 Q809831 Q847 Q3177899 Q177275 Q42486 Q5372 Q2167372 Q130949 Q1497658 Q178678 Q41466 Q114466 Q328716 Q131359 Q201965 Q2922870 Q204686 Q11420 Q124100 Q1541373 Q41323
(c(Q2342494)|c(Q502895),P101,c(Q349))
action less
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q2342494
type Q502895
[ANSWERS] lesser number of collectables or people belong to than that sport
[[{'concept': 'Q2342494'}, {'concept': 'Q502895'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?a WHERE { VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } . ?o rdf:type ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:P101 resource:Q2736 . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:Q2342494 ) ( ontology:Q502895 ) } } } } . FILTER ( ?j < ?e ) }
rugby league curling gymnastics college football long jump cricket climbing skating volleyball swimming fencing handball amateur football cycle sport archery wingsuit flying water polo BASE jumping tennis bowling bobsleigh wrestling basketball fell running skiing memory sport kick boxing ice hockey mixed martial arts motorcycle sport professional wrestling Nordic combined boxe winter sport judo bodybuilding sport climbing American football
BASE jumping, curling and rugby league lesser number of collectables or people belong to than that sport
BASE jumping curling rugby league
action less
action union
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type collectable
type common name
[[{'concept': 'collectable'}, {'concept': 'common name'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) ?a WHERE { VALUES ( ?r ) { ( ontology:collectable ) ( ontology:common_name ) } . ?o rdf:type ?r } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) WHERE { ?y property:field_of_work resource:association_football . { ?y rdf:type ?s . VALUES ( ?s ) { ( ontology:collectable ) ( ontology:common_name ) } } } } . FILTER ( ?j < ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q15934457
P748
Q502895 Q11204 Q12737077
USER
Which occupations are appointed by greater number of people and legislatures than Minister of Transport ?
(c(Q12737077),P748,c(Q502895)|c(Q11204))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q15934457
relation P748
type Q502895
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?g WHERE { { ?g rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q502895 . ?g property:P748 ?p } UNION { ?g property:P748 ?p . ?g rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q11204 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q15934457 property:P748 ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q11204 ) } } } } . FILTER ( ?q > ?l ) }
Minister of Transport
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Minister of Transport
relation appointed by
type common name
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?g WHERE { { ?g rdf:type ontology:occupation . ?p rdf:type ontology:common_name . ?g property:appointed_by ?p } UNION { ?g property:appointed_by ?p . ?g rdf:type ontology:occupation . ?p rdf:type ontology:legislature } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Minister_of_Transport property:appointed_by ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:common_name ) ( ontology:legislature ) } } } } . FILTER ( ?q > ?l ) }
[]
common name legislature occupation
Q655407 Q4970706 Q4122271
SYSTEM
President of the People's Republic of China, Federal Chancellor of Germany, Premier of the People's Republic of China
Q1846384 Q11793630 Q2631987 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q3246797 Q1371091 Q3315116 Q655407 Q3477307 Q1369302 Q835586 Q4970706 Q531471 Q596123 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q1043568 Q862559 Q182762 Q1060844 Q3397406 Q691615 Q866680 Q152814 Q26000995 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q4122271 Q3315134 Q3777749 Q111784 Q1362216 Q25860233
(c(Q12737077),P748,c(Q502895)|c(Q11204))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q15934457
relation P748
type Q502895
type Q11204
[ANSWERS] are appointed by greater number of people and legislatures than Minister of Transport
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?g WHERE { { ?g rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q502895 . ?g property:P748 ?p } UNION { ?g property:P748 ?p . ?g rdf:type ontology:Q12737077 . ?p rdf:type ontology:Q11204 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Q15934457 property:P748 ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q502895 ) ( ontology:Q11204 ) } } } } . FILTER ( ?q > ?l ) }
Secretary of State for Wales governor of national banks of Serbia and Yugoslavia Attorney General for England and Wales Secretary of State for Environment, Food and Rural Affairs Secretary of State for the Home Department Leader of the House of Lords Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany Chancellor of the Exchequer president of Bangladesh Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community Secretary of State for Education Prime Minister of Singapore Prime Minister of the Bahamas Prime Minister of Vietnam Prime Minister of Malaysia Prime Minister of Algeria Paymaster General Secretary of State for Health Governor of the Virgin Islands President of Vietnam Prime Minister of Malta President of the Parliament of Catalonia Governor of Gibraltar Prime Minister of Georgia First Lord of the Treasury Prime Minister of Armenia Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Premier of the People's Republic of China Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Secretary of State for Exiting the European Union
President of the People's Republic of China, Federal Chancellor of Germany and Premier of the People's Republic of China are appointed by greater number of people and legislatures than Minister of Transport
President of the People's Republic of China Federal Chancellor of Germany Premier of the People's Republic of China
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Minister of Transport
relation appointed by
type common name
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?q ) ?g WHERE { { ?g rdf:type ontology:occupation . ?p rdf:type ontology:common_name . ?g property:appointed_by ?p } UNION { ?g property:appointed_by ?p . ?g rdf:type ontology:occupation . ?p rdf:type ontology:legislature } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?l ) WHERE { resource:Minister_of_Transport property:appointed_by ?w . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:common_name ) ( ontology:legislature ) } } } } . FILTER ( ?q > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q19328352
P748
Q502895 Q11204 Q12737077
USER
And what about Mayor of Leersum?
(c(Q12737077),P748,c(Q502895)|c(Q11204))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q19328352
relation P748
type Q502895
type Q11204
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?g WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q11204 ) } . ?h rdf:type ?t } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { { ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q11204 } } . resource:Q19328352 property:P748 ?e } } . FILTER ( ?m > ?j ) }
Mayor of Leersum
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Mayor of Leersum
relation appointed by
type common name
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?g WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:legislature ) } . ?h rdf:type ?t } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { { ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:legislature } } . resource:Mayor_of_Leersum property:appointed_by ?e } } . FILTER ( ?m > ?j ) }
[]
common name legislature occupation
Q655407 Q4970706 Q4122271
SYSTEM
President of the People's Republic of China, Federal Chancellor of Germany, Premier of the People's Republic of China
Q1846384 Q11793630 Q2631987 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q3246797 Q1371091 Q3315116 Q655407 Q3477307 Q1369302 Q835586 Q4970706 Q531471 Q596123 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q1043568 Q862559 Q182762 Q1060844 Q3397406 Q691615 Q866680 Q152814 Q26000995 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q4122271 Q3315134 Q3777749 Q111784 Q1362216 Q25860233
(c(Q12737077),P748,c(Q502895)|c(Q11204))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action find_tuple_counts
relation P748
type Q12737077
type Q11204
action count
action filter_multi_types
action find
entity Q19328352
relation P748
type Q502895
type Q11204
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q502895'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?g WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q11204 ) } . ?h rdf:type ?t } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { { ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q11204 } } . resource:Q19328352 property:P748 ?e } } . FILTER ( ?m > ?j ) }
Secretary of State for Wales governor of national banks of Serbia and Yugoslavia Attorney General for England and Wales Secretary of State for Environment, Food and Rural Affairs Secretary of State for the Home Department Leader of the House of Lords Secretary of State for Work and Pensions Secretary of State for International Development Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany Chancellor of the Exchequer president of Bangladesh Leader of the House of Commons Speaker of the House of Commons Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community Secretary of State for Education Prime Minister of Singapore Prime Minister of the Bahamas Prime Minister of Vietnam Prime Minister of Malaysia Prime Minister of Algeria Paymaster General Secretary of State for Health Governor of the Virgin Islands President of Vietnam Prime Minister of Malta President of the Parliament of Catalonia Governor of Gibraltar Prime Minister of Georgia First Lord of the Treasury Prime Minister of Armenia Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Premier of the People's Republic of China Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland Secretary of State for Exiting the European Union
President of the People's Republic of China Federal Chancellor of Germany Premier of the People's Republic of China
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type common name
action find_tuple_counts
relation appointed by
type occupation
type legislature
action count
action filter_multi_types
action find
entity Mayor of Leersum
relation appointed by
type common name
type legislature
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'common name'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) ?g WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:legislature ) } . ?h rdf:type ?t } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?j ) WHERE { { { ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:legislature } } . resource:Mayor_of_Leersum property:appointed_by ?e } } . FILTER ( ?m > ?j ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4122271
P39
Q502895
USER
Which people were appointed for the position of that occupation ?
(c(Q502895),P39,Q4122271)
action filter_type
action find_reverse
entity Q4122271
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q4122271']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q4122271 . ?z rdf:type ontology:Q502895 }
Premier of the People's Republic of China
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation position held
type common name
[{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"]
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:Premier_of_the_People's_Republic_of_China . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q655407
SYSTEM
Did you mean President of the People's Republic of China ?
Q655407 Q4970706 Q4122271
(c(Q502895),P39,Q655407) (c(Q502895),P39,Q4970706) (c(Q502895),P39,Q4122271)
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q655407'] [{'concept': 'Q502895'}, 'P39', 'Q4970706'] [{'concept': 'Q502895'}, 'P39', 'Q4122271']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q4122271 . ?z rdf:type ontology:Q502895 }
President of the People's Republic of China Federal Chancellor of Germany Premier of the People's Republic of China
Did you mean President of the People's Republic of China ?
President of the People's Republic of China
[{'concept': 'common name'}, 'position held', "President of the People's Republic of China"] [{'concept': 'common name'}, 'position held', 'Federal Chancellor of Germany'] [{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"]
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:Premier_of_the_People's_Republic_of_China . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Premier of the People's Republic of China. Could you tell me the answer for that?
(c(Q502895),P39,Q4122271)
Q4122271
[{'concept': 'Q502895'}, 'P39', 'Q4122271']
[{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"]
[]
Q99829 Q17410 Q18301
SYSTEM
Zhao Ziyang, Zhou Enlai, Li Peng
Q99829 Q41570 Q18111 Q18285 Q18301 Q17410 Q16628
(c(Q502895),P39,Q4122271)
action filter_type
action find_reverse
entity Q4122271
relation P39
type Q502895
[ANSWERS] were appointed for the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q4122271']
SELECT DISTINCT ?z WHERE { ?z property:P39 resource:Q4122271 . ?z rdf:type ontology:Q502895 }
Zhao Ziyang Hua Guofeng Li Keqiang Zhu Rongji Li Peng Zhou Enlai Wen Jiabao
Zhao Ziyang, Zhou Enlai and Li Peng were appointed for the position of that occupation
Zhao Ziyang Zhou Enlai Li Peng
action filter_type
action find_reverse
entity Premier of the People's Republic of China
relation position held
type common name
[{'concept': 'common name'}, 'position held', "Premier of the People's Republic of China"]
SELECT DISTINCT ?z WHERE { ?z property:position_held resource:Premier_of_the_People's_Republic_of_China . ?z rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17410
P26
Q502895
USER
Which person is the life partner of that one ?
(c(Q502895),P26,Q17410)
action filter_type
action find
entity Q17410
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q17410']
SELECT DISTINCT ?m WHERE { resource:Q17410 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Zhou Enlai
action filter_type
action find
entity Zhou Enlai
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Zhou Enlai']
SELECT DISTINCT ?m WHERE { resource:Zhou_Enlai property:spouse ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q17410
SYSTEM
Did you mean Zhou Enlai ?
Q99829 Q17410 Q18301
(c(Q502895),P26,Q99829) (c(Q502895),P26,Q17410) (c(Q502895),P26,Q18301)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q99829'] [{'concept': 'Q502895'}, 'P26', 'Q17410'] [{'concept': 'Q502895'}, 'P26', 'Q18301']
SELECT DISTINCT ?m WHERE { resource:Q17410 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Zhao Ziyang Zhou Enlai Li Peng
Did you mean Zhou Enlai ?
Zhou Enlai
[{'concept': 'common name'}, 'spouse', 'Zhao Ziyang'] [{'concept': 'common name'}, 'spouse', 'Zhou Enlai'] [{'concept': 'common name'}, 'spouse', 'Li Peng']
SELECT DISTINCT ?m WHERE { resource:Zhou_Enlai property:spouse ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P26,Q17410)
[{'concept': 'Q502895'}, 'P26', 'Q17410']
[{'concept': 'common name'}, 'spouse', 'Zhou Enlai']
[]
Q253682
SYSTEM
Deng Yingchao
Q253682
(c(Q502895),P26,Q17410)
action filter_type
action find
entity Q17410
relation P26
type Q502895
[ANSWER] is the life partner of that one
[{'concept': 'Q502895'}, 'P26', 'Q17410']
SELECT DISTINCT ?m WHERE { resource:Q17410 property:P26 ?m . ?m rdf:type ontology:Q502895 }
Deng Yingchao
Deng Yingchao is the life partner of that one
Deng Yingchao
action filter_type
action find
entity Zhou Enlai
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Zhou Enlai']
SELECT DISTINCT ?m WHERE { resource:Zhou_Enlai property:spouse ?m . ?m rdf:type ontology:common_name }
[]