Simple Question (Direct)
Simple Question
Q1403255
P27
Q15617994
USER
Which administrative territory does Felipe del Río Crespo belong to ?
(Q1403255,P27,c(Q15617994))
action filter_type
action find
entity Q1403255
relation P27
type Q15617994
['Q1403255', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1403255 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Felipe del Río Crespo
action filter_type
action find
entity Felipe del Río Crespo
relation country of citizenship
type designation for an administrative territorial entity
['Felipe del Río Crespo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Felipe_del_Río_Crespo property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1403255,P27,c(Q15617994))
action filter_type
action find
entity Q1403255
relation P27
type Q15617994
Felipe del Río Crespo belongs to [ANSWER]
['Q1403255', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1403255 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Spain
Felipe del Río Crespo belongs to Spain
Spain
action filter_type
action find
entity Felipe del Río Crespo
relation country of citizenship
type designation for an administrative territorial entity
['Felipe del Río Crespo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Felipe_del_Río_Crespo property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1403255
P21
Q290
USER
Which sex does that person possess ?
(Q29,P21,c(Q290))
action filter_type
action find
entity Q1403255
relation P21
type Q290
['Q29', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1403255 property:P21 ?k . ?k rdf:type ontology:Q290 }
Felipe del Río Crespo
action filter_type
action find
entity Felipe del Río Crespo
relation gender
type sex
['Spain', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Felipe_del_Río_Crespo property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q29,P21,c(Q290))
action filter_type
action find
entity Q1403255
relation P21
type Q290
That person possesses a [ANSWER]
['Q29', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1403255 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Felipe del Río Crespo
relation gender
type sex
['Spain', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Felipe_del_Río_Crespo property:gender ?k . ?k rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q217
P840
Q15617994 Q838948 Q166142
USER
How many administrative territories are the narrative locations of greater number of works of art or applications than Republic of Moldova ?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q217
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:P840 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P840 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q166142 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q166142 } } . ?v property:P840 resource:Q217 } } . FILTER ( ?p > ?w ) }
Republic of Moldova
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Republic of Moldova
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:narrative_location ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:work_of_art } UNION { ?o property:narrative_location ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:application } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:application } } . ?v property:narrative_location resource:Republic_of_Moldova } } . FILTER ( ?p > ?w ) }
[]
designation for an administrative territorial entity work of art application
SYSTEM
66
Q805 Q804 Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q710 Q717 Q837 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q33 Q32 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q236 Q232 Q20 Q27 Q29 Q184 Q1028 Q227 Q96 Q17 Q1033 Q1030 Q191 Q298 Q750 Q212 Q218 Q14859 Q2742 Q79 Q77 Q774 Q817 Q810 Q1014 Q28 Q1952 Q869
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q217
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:P840 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q838948 } UNION { ?o property:P840 ?b . ?b rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q166142 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q166142 } } . ?v property:P840 resource:Q217 } } . FILTER ( ?p > ?w ) }
Yemen Panama Israel India Argentina France Netherlands United Kingdom People's Republic of China Iceland Kiribati Venezuela Nepal South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Finland Luxembourg Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Montenegro Kazakhstan Norway Ireland Spain Belarus Morocco Azerbaijan Mexico Japan Nigeria Namibia Estonia Chile Bolivia Ukraine Romania Ansbach Münster Egypt Uruguay Guatemala Kuwait Jordan Liberia Hungary Nova Scotia Thailand
66
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Republic of Moldova
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?p ) WHERE { { ?o property:narrative_location ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:work_of_art } UNION { ?o property:narrative_location ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:application } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:application } } . ?v property:narrative_location resource:Republic_of_Moldova } } . FILTER ( ?p > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1860611
P840
Q15617994 Q838948 Q166142
USER
And how about Viby?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1860611
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?d ) WHERE { { ?z property:P840 ?o . ?z rdf:type ontology:Q166142 . ?o rdf:type ontology:Q15617994 } UNION { ?z property:P840 ?o . ?z rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P840 resource:Q1860611 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?c rdf:type ?j } } } . FILTER ( ?d > ?p ) }
Viby
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Viby
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?d ) WHERE { { ?z property:narrative_location ?o . ?z rdf:type ontology:application . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:narrative_location ?o . ?z rdf:type ontology:work_of_art . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:narrative_location resource:Viby . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:application ) } . ?c rdf:type ?j } } } . FILTER ( ?d > ?p ) }
[]
designation for an administrative territorial entity work of art application
SYSTEM
112
Q377277 Q805 Q804 Q801 Q278221 Q186115 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q189 Q47428 Q842 Q36678 Q710 Q717 Q837 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q889 Q884 Q881 Q858 Q419 Q822 Q241 Q232782 Q244 Q1974 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q12798 Q236 Q232 Q233 Q1093 Q20 Q1045 Q1041 Q27 Q913434 Q29 Q127043 Q184 Q1028 Q1458 Q91217 Q1452 Q227 Q225 Q2336399 Q96 Q17 Q1033 Q1030 Q191 Q962 Q963 Q298 Q41158 Q750 Q212 Q213 Q517107 Q217 Q218 Q912 Q2107 Q1007 Q833 Q14859 Q2742 Q836 Q79 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q28 Q12620 Q800 Q1952 Q869 Q6247
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q1860611
relation P840
type Q838948
type Q166142
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?d ) WHERE { { ?z property:P840 ?o . ?z rdf:type ontology:Q166142 . ?o rdf:type ontology:Q15617994 } UNION { ?z property:P840 ?o . ?z rdf:type ontology:Q838948 . ?o rdf:type ontology:Q15617994 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P840 resource:Q1860611 . { VALUES ( ?j ) { ( ontology:Q838948 ) ( ontology:Q166142 ) } . ?c rdf:type ?j } } } . FILTER ( ?d > ?p ) }
Glückstadt Yemen Panama Israel Berchtesgaden Montmartre India Argentina France Netherlands United Kingdom Algeria People's Republic of China Iceland Valdobbiadene Oman West Bank Kiribati Venezuela Nepal Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Afghanistan South Korea Vietnam Syria Peru Lebanon Cuba Portofino Barbados British Columbia Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Vendée Montenegro Kazakhstan Malta Limburg Norway Somalia Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Belarus Morocco Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Baluchistan Mexico Japan Nigeria Namibia Estonia Benin Botswana Chile Cortina d'Ampezzo Bolivia Ukraine Czech Republic Rudolstadt Republic of Moldova Romania Mali Wuppertal Guinea-Bissau Malaysia Ansbach Münster Myanmar Egypt Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Hungary Mayenne Costa Rica Nova Scotia Thailand Mantua
112
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Viby
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?g ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?d ) WHERE { { ?z property:narrative_location ?o . ?z rdf:type ontology:application . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?z property:narrative_location ?o . ?z rdf:type ontology:work_of_art . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:narrative_location resource:Viby . { VALUES ( ?j ) { ( ontology:work_of_art ) ( ontology:application ) } . ?c rdf:type ?j } } } . FILTER ( ?d > ?p ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q2848406 Q1403255
P106
Q12737077
USER
Which occupations are the professions of Felipe del Río Crespo and André Paul Bouchard ?
AND((Q1403255,P106,c(Q12737077)), (Q2848406,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1403255
relation P106
action find
entity Q2848406
relation P106
type Q12737077
{'AND': [['Q1403255', 'P106', {'concept': 'Q12737077'}], ['Q2848406', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q1403255 property:P106 ?k . resource:Q2848406 property:P106 ?k }
André Paul Bouchard Felipe del Río Crespo
action filter_type
action intersection
action find
entity Felipe del Río Crespo
relation occupation
action find
entity André Paul Bouchard
relation occupation
type occupation
{'AND': [['Felipe del Río Crespo', 'occupation', {'concept': 'occupation'}], ['André Paul Bouchard', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Felipe_del_Río_Crespo property:occupation ?k . resource:André_Paul_Bouchard property:occupation ?k }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
AND((Q1403255,P106,c(Q12737077)), (Q2848406,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1403255
relation P106
action find
entity Q2848406
relation P106
type Q12737077
The [ANSWER] is the professions of Felipe del Río Crespo and André Paul Bouchard
{'AND': [['Q1403255', 'P106', {'concept': 'Q12737077'}], ['Q2848406', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q1403255 property:P106 ?k . resource:Q2848406 property:P106 ?k }
military personnel
The military personnel is the professions of Felipe del Río Crespo and André Paul Bouchard
military personnel
action filter_type
action intersection
action find
entity Felipe del Río Crespo
relation occupation
action find
entity André Paul Bouchard
relation occupation
type occupation
{'AND': [['Felipe del Río Crespo', 'occupation', {'concept': 'occupation'}], ['André Paul Bouchard', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:Felipe_del_Río_Crespo property:occupation ?k . resource:André_Paul_Bouchard property:occupation ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q6866295
P748
Q701632 Q502895 Q12737077
USER
How many occupations were appointed by more number of municipal councils or people than Minister of Public Services and Procurement ?
(c(Q12737077),P748,c(Q701632)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q6866295
relation P748
type Q701632
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?u WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q701632 ) ( ontology:Q502895 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q6866295 property:P748 ?q . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q701632 ) ( ontology:Q502895 ) } } } } . FILTER ( ?i > ?l ) }
Minister of Public Services and Procurement
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of Public Services and Procurement
relation appointed by
type municipal council
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?u WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:municipal_council ) ( ontology:common_name ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Minister_of_Public_Services_and_Procurement property:appointed_by ?q . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:municipal_council ) ( ontology:common_name ) } } } } . FILTER ( ?i > ?l ) }
[]
municipal council common name occupation
SYSTEM
57
Q20748656 Q20890913 Q1846384 Q21371106 Q2631987 Q21013169 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q20872382 Q3246797 Q1371091 Q3315116 Q20872273 Q3477307 Q1369302 Q835586 Q4970706 Q20891385 Q531471 Q21384866 Q20194364 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q21383592 Q565424 Q862559 Q182762 Q20859388 Q20867550 Q1060844 Q3397406 Q691615 Q20872296 Q152814 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q20872339 Q3315134 Q26209358 Q3777749 Q111784 Q20992515 Q1362216 Q26721218 Q25860233
(c(Q12737077),P748,c(Q701632)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q6866295
relation P748
type Q701632
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?u WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q701632 ) ( ontology:Q502895 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q6866295 property:P748 ?q . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:Q701632 ) ( ontology:Q502895 ) } } } } . FILTER ( ?i > ?l ) }
municipal executive of Zoetermeer municipal executive of Eindhoven Secretary of State for Wales municipal executive of Amersfoort Attorney General for England and Wales municipal executive of The Hague 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 municipal executive of Coevorden Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany municipal executive of Deventer Chancellor of the Exchequer municipal executive of Rotterdam municipal executive of Amsterdam 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 municipal executive of Haarlem Prime Minister of the Bahamas Prime Minister of Malaysia Prime Minister of Algeria municipal executive of Mierlo municipal executive of Gorinchem Paymaster General Secretary of State for Health Governor of the Virgin Islands municipal executive of Almere 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 municipal executive of Woerden Minister for Women and Equalities municipal executive of Warffum Attorney General of Ireland Secretary of State for Scotland municipal executive of Utrecht First Minister of Scotland municipal executive of Almere Secretary of State for Exiting the European Union
57
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Minister of Public Services and Procurement
relation appointed by
type municipal council
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) ?u WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:municipal_council ) ( ontology:common_name ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Minister_of_Public_Services_and_Procurement property:appointed_by ?q . { ?q rdf:type ?e . VALUES ( ?e ) { ( ontology:municipal_council ) ( ontology:common_name ) } } } } . FILTER ( ?i > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1790154
P748
Q701632 Q502895 Q12737077
USER
And what about Chief Minister of Delhi?
(c(Q12737077),P748,c(Q701632)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q1790154
relation P748
type Q701632
type Q502895
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?f ) WHERE { { ?k rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q701632 . ?k property:P748 ?m } UNION { ?k property:P748 ?m . ?k rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q502895 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q701632 } UNION { ?o rdf:type ontology:Q502895 } } . resource:Q1790154 property:P748 ?o } } . FILTER ( ?f > ?i ) }
Chief Minister of Delhi
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Chief Minister of Delhi
relation appointed by
type municipal council
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?f ) WHERE { { ?k rdf:type ontology:occupation . ?m rdf:type ontology:municipal_council . ?k property:appointed_by ?m } UNION { ?k property:appointed_by ?m . ?k rdf:type ontology:occupation . ?m rdf:type ontology:common_name } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:municipal_council } UNION { ?o rdf:type ontology:common_name } } . resource:Chief_Minister_of_Delhi property:appointed_by ?o } } . FILTER ( ?f > ?i ) }
[]
municipal council common name occupation
SYSTEM
57
Q20748656 Q20890913 Q1846384 Q21371106 Q2631987 Q21013169 Q14984399 Q2484309 Q2012061 Q7444357 Q7444352 Q20872382 Q3246797 Q1371091 Q3315116 Q20872273 Q3477307 Q1369302 Q835586 Q4970706 Q20891385 Q531471 Q21384866 Q20194364 Q2636053 Q464103 Q3858507 Q1124265 Q3477306 Q866756 Q21383592 Q565424 Q862559 Q182762 Q20859388 Q20867550 Q1060844 Q3397406 Q691615 Q20872296 Q152814 Q195965 Q1975365 Q609884 Q1123764 Q7240368 Q3297079 Q6865995 Q20872339 Q3315134 Q26209358 Q3777749 Q111784 Q20992515 Q1362216 Q26721218 Q25860233
(c(Q12737077),P748,c(Q701632)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action find_tuple_counts
relation P748
type Q12737077
type Q502895
action count
action filter_multi_types
action find
entity Q1790154
relation P748
type Q701632
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q701632'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?f ) WHERE { { ?k rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q701632 . ?k property:P748 ?m } UNION { ?k property:P748 ?m . ?k rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q502895 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:Q701632 } UNION { ?o rdf:type ontology:Q502895 } } . resource:Q1790154 property:P748 ?o } } . FILTER ( ?f > ?i ) }
municipal executive of Zoetermeer municipal executive of Eindhoven Secretary of State for Wales municipal executive of Amersfoort Attorney General for England and Wales municipal executive of The Hague 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 municipal executive of Coevorden Secretary of State for Transport Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer Secretary of State for Justice Secretary of State for Northern Ireland Prime Minister of Serbia Federal Chancellor of Germany municipal executive of Deventer Chancellor of the Exchequer municipal executive of Rotterdam municipal executive of Amsterdam 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 municipal executive of Haarlem Prime Minister of the Bahamas Prime Minister of Malaysia Prime Minister of Algeria municipal executive of Mierlo municipal executive of Gorinchem Paymaster General Secretary of State for Health Governor of the Virgin Islands municipal executive of Almere 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 municipal executive of Woerden Minister for Women and Equalities municipal executive of Warffum Attorney General of Ireland Secretary of State for Scotland municipal executive of Utrecht First Minister of Scotland municipal executive of Almere Secretary of State for Exiting the European Union
57
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action find_tuple_counts
relation appointed by
type occupation
type common name
action count
action filter_multi_types
action find
entity Chief Minister of Delhi
relation appointed by
type municipal council
type common name
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'municipal council'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?m ) AS ?f ) WHERE { { ?k rdf:type ontology:occupation . ?m rdf:type ontology:municipal_council . ?k property:appointed_by ?m } UNION { ?k property:appointed_by ?m . ?k rdf:type ontology:occupation . ?m rdf:type ontology:common_name } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { { { ?o rdf:type ontology:municipal_council } UNION { ?o rdf:type ontology:common_name } } . resource:Chief_Minister_of_Delhi property:appointed_by ?o } } . FILTER ( ?f > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q29182
P921
Q12737077 Q386724 Q2342494
USER
How many occupations were discussed in more number of works and collectables than bishop ?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?z WHERE { { ?d property:P921 ?z . ?z rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 . ?d property:P921 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { VALUES ( ?w ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?u rdf:type ?w } . ?u property:P921 resource:Q29182 } } . FILTER ( ?t > ?f ) }
bishop
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?z WHERE { { ?d property:main_subject ?z . ?z rdf:type ontology:occupation . ?d rdf:type ontology:work } UNION { ?z rdf:type ontology:occupation . ?d rdf:type ontology:collectable . ?d property:main_subject ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { VALUES ( ?w ) { ( ontology:work ) ( ontology:collectable ) } . ?u rdf:type ?w } . ?u property:main_subject resource:bishop } } . FILTER ( ?t > ?f ) }
[]
occupation work collectable
SYSTEM
5
Q39631 Q11631 Q937857 Q9402 Q16746569
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q29182
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?z WHERE { { ?d property:P921 ?z . ?z rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q386724 } UNION { ?z rdf:type ontology:Q12737077 . ?d rdf:type ontology:Q2342494 . ?d property:P921 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { VALUES ( ?w ) { ( ontology:Q386724 ) ( ontology:Q2342494 ) } . ?u rdf:type ?w } . ?u property:P921 resource:Q29182 } } . FILTER ( ?t > ?f ) }
physician astronaut association football player ninja high school student
5
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity bishop
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) ?z WHERE { { ?d property:main_subject ?z . ?z rdf:type ontology:occupation . ?d rdf:type ontology:work } UNION { ?z rdf:type ontology:occupation . ?d rdf:type ontology:collectable . ?d property:main_subject ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { { VALUES ( ?w ) { ( ontology:work ) ( ontology:collectable ) } . ?u rdf:type ?w } . ?u property:main_subject resource:bishop } } . FILTER ( ?t > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1856798
P921
Q12737077 Q386724 Q2342494
USER
And also tell me about baseball umpire?
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1856798
relation P921
type Q386724
type Q2342494
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?w rdf:type ontology:Q386724 . ?c rdf:type ontology:Q12737077 . ?w property:P921 ?c } UNION { ?w property:P921 ?c . ?w rdf:type ontology:Q2342494 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:P921 resource:Q1856798 . { { ?u rdf:type ontology:Q2342494 } UNION { ?u rdf:type ontology:Q386724 } } } } . FILTER ( ?y > ?g ) }
baseball umpire
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity baseball umpire
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?w rdf:type ontology:work . ?c rdf:type ontology:occupation . ?w property:main_subject ?c } UNION { ?w property:main_subject ?c . ?w rdf:type ontology:collectable . ?c rdf:type ontology:occupation } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:main_subject resource:baseball_umpire . { { ?u rdf:type ontology:collectable } UNION { ?u rdf:type ontology:work } } } } . FILTER ( ?y > ?g ) }
[]
occupation work collectable
SYSTEM
22
Q39631 Q11631 Q774306 Q83307 Q4610556 Q18145518 Q82955 Q730242 Q42973 Q937857 Q9402 Q43845 Q29182 Q131524 Q14373094 Q18220900 Q16746569 Q16003605 Q49757 Q1238570 Q2259532 Q16003532
(c(Q386724)|c(Q2342494),P921,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1856798
relation P921
type Q386724
type Q2342494
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?w rdf:type ontology:Q386724 . ?c rdf:type ontology:Q12737077 . ?w property:P921 ?c } UNION { ?w property:P921 ?c . ?w rdf:type ontology:Q2342494 . ?c rdf:type ontology:Q12737077 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:P921 resource:Q1856798 . { { ?u rdf:type ontology:Q2342494 } UNION { ?u rdf:type ontology:Q386724 } } } } . FILTER ( ?y > ?g ) }
physician astronaut surgeon minister model Member of the New Zealand House of Representatives politician test pilot architect association football player ninja businessperson bishop entrepreneur rugby league player Member of the South Australian House of Assembly high school student elementary school student poet political scientist cleric middle school student
22
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action count
action filter_multi_types
action find_reverse
entity baseball umpire
relation main subject
type work
type collectable
[[{'concept': 'work'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) ?c WHERE { { ?w rdf:type ontology:work . ?c rdf:type ontology:occupation . ?w property:main_subject ?c } UNION { ?w property:main_subject ?c . ?w rdf:type ontology:collectable . ?c rdf:type ontology:occupation } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?g ) WHERE { ?u property:main_subject resource:baseball_umpire . { { ?u rdf:type ontology:collectable } UNION { ?u rdf:type ontology:work } } } } . FILTER ( ?y > ?g ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1860611
P19 P21
Q502895
USER
Which people have birthplace at Viby and are a male ?
AND((c(Q502895),P19,Q1860611), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1860611
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1860611'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q1860611 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
male Viby
action filter_type
action intersection
action find_reverse
entity Viby
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Viby'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Viby . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
common name
Q27069184
SYSTEM
Rasmus Gemke
Q27069184
AND((c(Q502895),P19,Q1860611), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1860611
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have birthplace at Viby and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q1860611'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P19 resource:Q1860611 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
Rasmus Gemke
Rasmus Gemke have birthplace at Viby and are a male
Rasmus Gemke
action filter_type
action intersection
action find_reverse
entity Viby
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Viby'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:place_of_birth resource:Viby . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]