Simple Question (Direct)
Simple Question
Q4888192
P69
Q41176
USER
What is the building where Benjamin Allen was educated ?
(Q4888192,P69,c(Q41176))
action filter_type
action find
entity Q4888192
relation P69
type Q41176
['Q4888192', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?k WHERE { resource:Q4888192 property:P69 ?k . ?k rdf:type ontology:Q41176 }
Benjamin Allen
action filter_type
action find
entity Benjamin Allen
relation educated at
type building
['Benjamin Allen', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?k WHERE { resource:Benjamin_Allen property:educated_at ?k . ?k rdf:type ontology:building }
[]
building
Q327116
SYSTEM
Sidney Sussex College
Q327116
(Q4888192,P69,c(Q41176))
action filter_type
action find
entity Q4888192
relation P69
type Q41176
The building Benjamin Allen was educated is at [ANSWER]
['Q4888192', 'P69', {'concept': 'Q41176'}]
SELECT DISTINCT ?k WHERE { resource:Q4888192 property:P69 ?k . ?k rdf:type ontology:Q41176 }
Sidney Sussex College
The building Benjamin Allen was educated is at Sidney Sussex College
Sidney Sussex College
action filter_type
action find
entity Benjamin Allen
relation educated at
type building
['Benjamin Allen', 'educated at', {'concept': 'building'}]
SELECT DISTINCT ?k WHERE { resource:Benjamin_Allen property:educated_at ?k . ?k rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4888192
P106
Q12737077
USER
What does Benjamin Allen do for a living ?
(Q4888192,P106,c(Q12737077))
action filter_type
action find
entity Q4888192
relation P106
type Q12737077
['Q4888192', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q4888192 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Benjamin Allen
action filter_type
action find
entity Benjamin Allen
relation occupation
type occupation
['Benjamin Allen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Benjamin_Allen property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q4888192,P106,c(Q12737077))
action filter_type
action find
entity Q4888192
relation P106
type Q12737077
Benjamin Allen does a [ANSWER] for a living
['Q4888192', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q4888192 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
politician
Benjamin Allen does a politician for a living
politician
action filter_type
action find
entity Benjamin Allen
relation occupation
type occupation
['Benjamin Allen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Benjamin_Allen property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19335487
Q12737077
USER
And what about James Burn?
(Q19335487,P106,c(Q12737077))
action filter_type
action find
entity Q19335487
relation P106
type Q12737077
['Q19335487', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q19335487 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
James Burn
action filter_type
action find
entity James Burn
relation occupation
type occupation
['James Burn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:James_Burn property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q638172 Q1930187 Q1391362
SYSTEM
peddler, journalist, warehouseman
Q638172 Q1639239 Q1930187 Q1391362 Q36180 Q738142
(Q19335487,P106,c(Q12737077))
action filter_type
action find
entity Q19335487
relation P106
type Q12737077
[ANSWERS]
['Q19335487', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q19335487 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
peddler hatter journalist warehouseman writer clerk
peddler journalist warehouseman
action filter_type
action find
entity James Burn
relation occupation
type occupation
['James Burn', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:James_Burn property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19335487
P106
Q502895
USER
Do James Burn have the profession of those occupations ?
(Q19335487,P106,Q638172) (Q19335487,P106,Q1930187) (Q19335487,P106,Q1391362)
action is_in
entity prev_answer
action find
entity Q19335487
relation P106
['Q19335487', 'P106', 'Q638172'] ['Q19335487', 'P106', 'Q1930187'] ['Q19335487', 'P106', 'Q1391362']
ASK WHERE { VALUES ( ?t ) { ( resource:Q638172 ) ( resource:Q1639239 ) ( resource:Q1930187 ) } . resource:Q19335487 property:P106 ?t }
James Burn
action is_in
entity prev_answer
action find
entity James Burn
relation occupation
['James Burn', 'occupation', 'peddler'] ['James Burn', 'occupation', 'journalist'] ['James Burn', 'occupation', 'warehouseman']
ASK WHERE { VALUES ( ?t ) { ( resource:peddler ) ( resource:hatter ) ( resource:journalist ) } . resource:James_Burn property:occupation ?t }
[]
common name
SYSTEM
YES
(Q19335487,P106,Q638172) (Q19335487,P106,Q1930187) (Q19335487,P106,Q1391362)
action is_in
entity prev_answer
action find
entity Q19335487
relation P106
[ANSWER]
['Q19335487', 'P106', 'Q638172'] ['Q19335487', 'P106', 'Q1930187'] ['Q19335487', 'P106', 'Q1391362']
ASK WHERE { VALUES ( ?t ) { ( resource:Q638172 ) ( resource:Q1639239 ) ( resource:Q1930187 ) } . resource:Q19335487 property:P106 ?t }
Yes
action is_in
entity prev_answer
action find
entity James Burn
relation occupation
['James Burn', 'occupation', 'peddler'] ['James Burn', 'occupation', 'journalist'] ['James Burn', 'occupation', 'warehouseman']
ASK WHERE { VALUES ( ?t ) { ( resource:peddler ) ( resource:hatter ) ( resource:journalist ) } . resource:James_Burn property:occupation ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q717558 Q4888192
P1412
Q34770
USER
Which languages are Benjamin Allen or Braulio Rodríguez Plaza capable of writing ?
OR((Q4888192,P1412,c(Q34770)), (Q717558,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q4888192
relation P1412
action find
entity Q717558
relation P1412
type Q34770
{'OR': [['Q4888192', 'P1412', {'concept': 'Q34770'}], ['Q717558', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q4888192 property:P1412 ?s } UNION { resource:Q717558 property:P1412 ?s } } . ?s rdf:type ontology:Q34770 }
Braulio Rodríguez Plaza Benjamin Allen
action filter_type
action union
action find
entity Benjamin Allen
relation languages spoken, written or signed
action find
entity Braulio Rodríguez Plaza
relation languages spoken, written or signed
type language
{'OR': [['Benjamin Allen', 'languages spoken, written or signed', {'concept': 'language'}], ['Braulio Rodríguez Plaza', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Benjamin_Allen property:languages_spoken,_written_or_signed ?s } UNION { resource:Braulio_Rodríguez_Plaza property:languages_spoken,_written_or_signed ?s } } . ?s rdf:type ontology:language }
[]
language
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
OR((Q4888192,P1412,c(Q34770)), (Q717558,P1412,c(Q34770)))
action filter_type
action union
action find
entity Q4888192
relation P1412
action find
entity Q717558
relation P1412
type Q34770
[ANSWERS] are Benjamin Allen or Braulio Rodríguez Plaza capable of writing
{'OR': [['Q4888192', 'P1412', {'concept': 'Q34770'}], ['Q717558', 'P1412', {'concept': 'Q34770'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q4888192 property:P1412 ?s } UNION { resource:Q717558 property:P1412 ?s } } . ?s rdf:type ontology:Q34770 }
English Spanish
English and Spanish are Benjamin Allen or Braulio Rodríguez Plaza capable of writing
English Spanish
action filter_type
action union
action find
entity Benjamin Allen
relation languages spoken, written or signed
action find
entity Braulio Rodríguez Plaza
relation languages spoken, written or signed
type language
{'OR': [['Benjamin Allen', 'languages spoken, written or signed', {'concept': 'language'}], ['Braulio Rodríguez Plaza', 'languages spoken, written or signed', {'concept': 'language'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Benjamin_Allen property:languages_spoken,_written_or_signed ?s } UNION { resource:Braulio_Rodríguez_Plaza property:languages_spoken,_written_or_signed ?s } } . ?s rdf:type ontology:language }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19477425 Q19335487
P276 P551
Q56061
USER
Which administrative territories were the place of residence of James Burn or can Roggemolen be found ?
OR((Q19335487,P551,c(Q56061)), (Q19477425,P276,c(Q56061)))
action filter_type
action union
action find
entity Q19335487
relation P551
action find
entity Q19477425
relation P276
type Q56061
{'OR': [['Q19335487', 'P551', {'concept': 'Q56061'}], ['Q19477425', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19335487 property:P551 ?g } UNION { resource:Q19477425 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Roggemolen James Burn
action filter_type
action union
action find
entity James Burn
relation residence
action find
entity Roggemolen
relation location
type administrative territorial entity
{'OR': [['James Burn', 'residence', {'concept': 'administrative territorial entity'}], ['Roggemolen', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:James_Burn property:residence ?g } UNION { resource:Roggemolen property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2335721 Q25395 Q1826446 Q84 Q4093 Q60
SYSTEM
Brandon, Newark, Loppersum, London, Glasgow, New York City
Q2335721 Q25395 Q1826446 Q84 Q4093 Q60
OR((Q19335487,P551,c(Q56061)), (Q19477425,P276,c(Q56061)))
action filter_type
action union
action find
entity Q19335487
relation P551
action find
entity Q19477425
relation P276
type Q56061
[ANSWERS] were the place of residence of James Burn or can Roggemolen be found
{'OR': [['Q19335487', 'P551', {'concept': 'Q56061'}], ['Q19477425', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q19335487 property:P551 ?g } UNION { resource:Q19477425 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Brandon Newark Loppersum London Glasgow New York City
Brandon, Newark, Loppersum, London, Glasgow and New York City were the place of residence of James Burn or can Roggemolen be found
Brandon Newark Loppersum London Glasgow New York City
action filter_type
action union
action find
entity James Burn
relation residence
action find
entity Roggemolen
relation location
type administrative territorial entity
{'OR': [['James Burn', 'residence', {'concept': 'administrative territorial entity'}], ['Roggemolen', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:James_Burn property:residence ?g } UNION { resource:Roggemolen property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q20872339
P748
Q1752346 Q502895 Q12737077
USER
How many occupations are appointed by more number of assemblies or people than municipal executive of Woerden ?
(c(Q12737077),P748,c(Q1752346)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q20872339
relation P748
type Q1752346
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1752346 ) ( ontology:Q502895 ) } } GROUP BY ?v } . FILTER ( ?r > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { { ?l rdf:type ontology:Q1752346 } UNION { ?l rdf:type ontology:Q502895 } } . resource:Q20872339 property:P748 ?l } } }
municipal executive of Woerden
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity municipal executive of Woerden
relation appointed by
type assembly
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:assembly ) ( ontology:common_name ) } } GROUP BY ?v } . FILTER ( ?r > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { { ?l rdf:type ontology:assembly } UNION { ?l rdf:type ontology:common_name } } . resource:municipal_executive_of_Woerden property:appointed_by ?l } } }
[]
assembly common name occupation
SYSTEM
50
Q1846384 Q2631987 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q15305714 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q842386 Q835586 Q19056310 Q4970706 Q890030 Q796593 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q7574264 Q182762 Q1060844 Q3397406 Q691615 Q152814 Q3409203 Q195965 Q327948 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q1370482 Q3315134 Q3777749 Q111784 Q1362216 Q628102 Q25860233
(c(Q12737077),P748,c(Q1752346)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q20872339
relation P748
type Q1752346
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q1752346 ) ( ontology:Q502895 ) } } GROUP BY ?v } . FILTER ( ?r > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { { ?l rdf:type ontology:Q1752346 } UNION { ?l rdf:type ontology:Q502895 } } . resource:Q20872339 property:P748 ?l } } }
Secretary of State for Wales 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 Prime Minister of Libya 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 Russia Prime Minister of Serbia President of Botswana Federal Chancellor of Germany State President of South Africa President of Malta 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 Speaker of the Hellenic Parliament Prime Minister of Algeria Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta President of Greece Governor of Gibraltar President of Israel 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 President of Cuba Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland President of Nauru Secretary of State for Exiting the European Union
50
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity municipal executive of Woerden
relation appointed by
type assembly
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:assembly ) ( ontology:common_name ) } } GROUP BY ?v } . FILTER ( ?r > ?j ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?j ) WHERE { { { ?l rdf:type ontology:assembly } UNION { ?l rdf:type ontology:common_name } } . resource:municipal_executive_of_Woerden property:appointed_by ?l } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2505890
P748
Q1752346 Q502895 Q12737077
USER
And how about Leader of the Government in the House of Commons?
(c(Q12737077),P748,c(Q1752346)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q2505890
relation P748
type Q1752346
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?l ) WHERE { VALUES ( ?n ) { ( ontology:Q1752346 ) ( ontology:Q502895 ) } . ?k rdf:type ?n } GROUP BY ?j } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q2505890 property:P748 ?e . { { ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q1752346 } } } } }
Leader of the Government in the House of Commons
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Leader of the Government in the House of Commons
relation appointed by
type assembly
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?l ) WHERE { VALUES ( ?n ) { ( ontology:assembly ) ( ontology:common_name ) } . ?k rdf:type ?n } GROUP BY ?j } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Leader_of_the_Government_in_the_House_of_Commons property:appointed_by ?e . { { ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:assembly } } } } }
[]
assembly common name occupation
SYSTEM
50
Q1846384 Q2631987 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q15305714 Q3246797 Q1371091 Q3315116 Q3477307 Q1369302 Q842386 Q835586 Q19056310 Q4970706 Q890030 Q796593 Q531471 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q565424 Q862559 Q7574264 Q182762 Q1060844 Q3397406 Q691615 Q152814 Q3409203 Q195965 Q327948 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q1370482 Q3315134 Q3777749 Q111784 Q1362216 Q628102 Q25860233
(c(Q12737077),P748,c(Q1752346)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q2505890
relation P748
type Q1752346
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?l ) WHERE { VALUES ( ?n ) { ( ontology:Q1752346 ) ( ontology:Q502895 ) } . ?k rdf:type ?n } GROUP BY ?j } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q2505890 property:P748 ?e . { { ?e rdf:type ontology:Q502895 } UNION { ?e rdf:type ontology:Q1752346 } } } } }
Secretary of State for Wales 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 Prime Minister of Libya 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 Russia Prime Minister of Serbia President of Botswana Federal Chancellor of Germany State President of South Africa President of Malta 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 Speaker of the Hellenic Parliament Prime Minister of Algeria Paymaster General Secretary of State for Health Governor of the Virgin Islands Prime Minister of Malta President of Greece Governor of Gibraltar President of Israel 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 President of Cuba Minister for Women and Equalities Attorney General of Ireland Secretary of State for Scotland First Minister of Scotland President of Nauru Secretary of State for Exiting the European Union
50
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Leader of the Government in the House of Commons
relation appointed by
type assembly
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?y ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?l ) WHERE { VALUES ( ?n ) { ( ontology:assembly ) ( ontology:common_name ) } . ?k rdf:type ?n } GROUP BY ?j } . FILTER ( ?l > ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Leader_of_the_Government_in_the_House_of_Commons property:appointed_by ?e . { { ?e rdf:type ontology:common_name } UNION { ?e rdf:type ontology:assembly } } } } }
[]