Simple Question (Direct)
Simple Question
Q85411
P20
Q56061
USER
Where did the expiration of August Meitzen occur ?
(Q85411,P20,c(Q56061))
action filter_type
action find
entity Q85411
relation P20
type Q56061
['Q85411', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q85411 property:P20 ?a . ?a rdf:type ontology:Q56061 }
August Meitzen
action filter_type
action find
entity August Meitzen
relation place of death
type administrative territorial entity
['August Meitzen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:August_Meitzen property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q85411,P20,c(Q56061))
action filter_type
action find
entity Q85411
relation P20
type Q56061
The expiration of August Meitzen occurred in [ANSWER]
['Q85411', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q85411 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Berlin
The expiration of August Meitzen occurred in Berlin
Berlin
action filter_type
action find
entity August Meitzen
relation place of death
type administrative territorial entity
['August Meitzen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:August_Meitzen property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q85411
P39
Q12737077
USER
What was the position for which August Meitzen was appointed ?
(Q85411,P39,c(Q12737077))
action filter_type
action find
entity Q85411
relation P39
type Q12737077
['Q85411', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q85411 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
August Meitzen
action filter_type
action find
entity August Meitzen
relation position held
type occupation
['August Meitzen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:August_Meitzen property:position_held ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q85411,P39,c(Q12737077))
action filter_type
action find
entity Q85411
relation P39
type Q12737077
[ANSWER]
['Q85411', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q85411 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
mayor
Mayor
mayor
action filter_type
action find
entity August Meitzen
relation position held
type occupation
['August Meitzen', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:August_Meitzen property:position_held ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5083320
Q12737077
USER
And how about Charles Wallop?
(Q5083320,P39,c(Q12737077))
action filter_type
action find
entity Q5083320
relation P39
type Q12737077
['Q5083320', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5083320 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Charles Wallop
action filter_type
action find
entity Charles Wallop
relation position held
type occupation
['Charles Wallop', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Charles_Wallop property:position_held ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q18015642
SYSTEM
Member of Parliament in the Parliament of Great Britain
Q18015642
(Q5083320,P39,c(Q12737077))
action filter_type
action find
entity Q5083320
relation P39
type Q12737077
[ANSWER]
['Q5083320', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q5083320 property:P39 ?e . ?e rdf:type ontology:Q12737077 }
Member of Parliament in the Parliament of Great Britain
Member of Parliament in the Parliament of Great Britain
action filter_type
action find
entity Charles Wallop
relation position held
type occupation
['Charles Wallop', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Charles_Wallop property:position_held ?e . ?e rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1469153
P748
Q178706 Q502895 Q12737077
USER
Which occupations did more number of institutions and people appoint than Prime Minister of Fiji ?
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q1469153
relation P748
type Q178706
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } . ?u rdf:type ?x } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Q1469153 property:P748 ?o . { { ?o rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q178706 } } } } . FILTER ( ?a > ?y ) }
Prime Minister of Fiji
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Prime Minister of Fiji
relation appointed by
type institution
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:institution ) ( ontology:common_name ) } . ?u rdf:type ?x } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Prime_Minister_of_Fiji property:appointed_by ?o . { { ?o rdf:type ontology:common_name } UNION { ?o rdf:type ontology:institution } } } } . FILTER ( ?a > ?y ) }
[]
institution common name occupation
Q81066 Q4970706 Q25860233
SYSTEM
United Nations Secretary-General, Federal Chancellor of Germany, Secretary of State for Exiting the European Union
Q1846384 Q2631987 Q740126 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q835586 Q4970706 Q1161813 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q182762 Q8882 Q1060844 Q3397406 Q691615 Q152814 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q3315134 Q3777749 Q111784 Q634291 Q1362216 Q735587 Q81066 Q25860233
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q1469153
relation P748
type Q178706
type Q502895
The United Nations Secretary-General, Federal Chancellor of Germany and Secretary of State for exiting the European Union more number of institutions and people appointed than Prime Minister of Fiji
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } . ?u rdf:type ?x } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Q1469153 property:P748 ?o . { { ?o rdf:type ontology:Q502895 } UNION { ?o rdf:type ontology:Q178706 } } } } . FILTER ( ?a > ?y ) }
Secretary of State for Wales Attorney General for England and Wales President of the European Parliament 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 Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany President of the United Nations General Assembly Chancellor of the Exchequer 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 Malaysia Prime Minister of Algeria President of the European Commission Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta 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 Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland High Representative of the Union for Foreign Affairs and Security Policy First Minister of Scotland President of the European Council United Nations Secretary-General Secretary of State for Exiting the European Union
The United Nations Secretary-General, Federal Chancellor of Germany and Secretary of State for exiting the European Union more number of institutions and people appointed than Prime Minister of Fiji
United Nations Secretary-General Federal Chancellor of Germany Secretary of State for Exiting the European Union
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Prime Minister of Fiji
relation appointed by
type institution
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?x ) { ( ontology:institution ) ( ontology:common_name ) } . ?u rdf:type ?x } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { resource:Prime_Minister_of_Fiji property:appointed_by ?o . { { ?o rdf:type ontology:common_name } UNION { ?o rdf:type ontology:institution } } } } . FILTER ( ?a > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3251775
P748
Q178706 Q502895 Q12737077
USER
And how about Minister of the Environment?
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q3251775
relation P748
type Q178706
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?d WHERE { VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q178706 ) } . ?n rdf:type ?f } GROUP BY ?d } . FILTER ( ?w > ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Q3251775 property:P748 ?e . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } } } } }
Minister of the Environment
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of the Environment
relation appointed by
type institution
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?d WHERE { VALUES ( ?f ) { ( ontology:common_name ) ( ontology:institution ) } . ?n rdf:type ?f } GROUP BY ?d } . FILTER ( ?w > ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Minister_of_the_Environment property:appointed_by ?e . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:institution ) ( ontology:common_name ) } } } } }
[]
institution common name occupation
Q81066 Q4970706 Q25860233
SYSTEM
United Nations Secretary-General, Federal Chancellor of Germany, Secretary of State for Exiting the European Union
Q1846384 Q2631987 Q740126 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q835586 Q4970706 Q1161813 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q182762 Q8882 Q1060844 Q3397406 Q691615 Q152814 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q3315134 Q3777749 Q111784 Q634291 Q1362216 Q735587 Q81066 Q25860233
(c(Q12737077),P748,c(Q178706)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q3251775
relation P748
type Q178706
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?d WHERE { VALUES ( ?f ) { ( ontology:Q502895 ) ( ontology:Q178706 ) } . ?n rdf:type ?f } GROUP BY ?d } . FILTER ( ?w > ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Q3251775 property:P748 ?e . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:Q178706 ) ( ontology:Q502895 ) } } } } }
Secretary of State for Wales Attorney General for England and Wales President of the European Parliament 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 Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany President of the United Nations General Assembly Chancellor of the Exchequer 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 Malaysia Prime Minister of Algeria President of the European Commission Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta 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 Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland High Representative of the Union for Foreign Affairs and Security Policy First Minister of Scotland President of the European Council United Nations Secretary-General Secretary of State for Exiting the European Union
United Nations Secretary-General Federal Chancellor of Germany Secretary of State for Exiting the European Union
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of the Environment
relation appointed by
type institution
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'common name'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) ?d WHERE { VALUES ( ?f ) { ( ontology:common_name ) ( ontology:institution ) } . ?n rdf:type ?f } GROUP BY ?d } . FILTER ( ?w > ?p ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) WHERE { resource:Minister_of_the_Environment property:appointed_by ?e . { ?e rdf:type ?z . VALUES ( ?z ) { ( ontology:institution ) ( ontology:common_name ) } } } } }
[]