Simple Question (Direct)
Simple Question
Q10442838
P106
Q12737077
USER
Which occupation is the profession of Ömer Közen ?
(Q10442838,P106,c(Q12737077))
action filter_type
action find
entity Q10442838
relation P106
type Q12737077
['Q10442838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q10442838 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Ömer Közen
action filter_type
action find
entity Ömer Közen
relation occupation
type occupation
['Ömer Közen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Ömer_Közen property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q10442838,P106,c(Q12737077))
action filter_type
action find
entity Q10442838
relation P106
type Q12737077
As [ANSWER] is the profession of Ömer Közen
['Q10442838', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q10442838 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
association football player
As association football player is the profession of Ömer Közen
association football player
action filter_type
action find
entity Ömer Közen
relation occupation
type occupation
['Ömer Közen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Ömer_Közen property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q937857
P425
Q349
USER
Which sport has that one as the associated field of occupation ?
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q937857 property:P425 ?p . ?p rdf:type ontology:Q349 }
association football player
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:association_football_player property:field_of_this_occupation ?p . ?p rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P425,c(Q349))
action filter_type
action find
entity Q937857
relation P425
type Q349
[ANSWER] has that one as the associated field of occupation
['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q937857 property:P425 ?p . ?p rdf:type ontology:Q349 }
association football
Association football has that one as the associated field of occupation
association football
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:association_football_player property:field_of_this_occupation ?p . ?p rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q2342494
USER
Which sports do approximately the same number of people and collectables belong to as that sport ?
(c(Q502895)|c(Q2342494),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P101 resource:Q2736 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?v = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?v ) WHERE { { ?t rdf:type ontology:Q502895 . ?q rdf:type ontology:Q349 . ?t property:P101 ?q } UNION { ?t property:P101 ?q . ?t rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q349 } } GROUP BY ?q } }
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:field_of_work resource:association_football . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?v = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?v ) WHERE { { ?t rdf:type ontology:common_name . ?q rdf:type ontology:sport . ?t property:field_of_work ?q } UNION { ?t property:field_of_work ?q . ?t rdf:type ontology:collectable . ?q rdf:type ontology:sport } } GROUP BY ?q } }
[]
sport common name collectable
Q31920 Q2736
SYSTEM
swimming, association football
Q31920 Q2736
(c(Q502895)|c(Q2342494),P101,c(Q349))
action approx
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q2342494
The [ANSWERS] approximately the same number of people and collectables belong to as that sport
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P101 resource:Q2736 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q502895 } } } } . FILTER ( ?v = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?v ) WHERE { { ?t rdf:type ontology:Q502895 . ?q rdf:type ontology:Q349 . ?t property:P101 ?q } UNION { ?t property:P101 ?q . ?t rdf:type ontology:Q2342494 . ?q rdf:type ontology:Q349 } } GROUP BY ?q } }
swimming association football
The swimming and association football approximately the same number of people and collectables belong to as that sport
swimming association football
action approx
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type collectable
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:field_of_work resource:association_football . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:common_name } } } } . FILTER ( ?v = ?p ) . { SELECT DISTINCT ?q ( COUNT ( ?t ) AS ?v ) WHERE { { ?t rdf:type ontology:common_name . ?q rdf:type ontology:sport . ?t property:field_of_work ?q } UNION { ?t property:field_of_work ?q . ?t rdf:type ontology:collectable . ?q rdf:type ontology:sport } } GROUP BY ?q } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26309992 Q10442838
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Ömer Közen or are 3, Gentle Street a part of ?
OR((Q10442838,P27,c(Q15617994)), (Q26309992,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10442838
relation P27
action find
entity Q26309992
relation P17
type Q15617994
{'OR': [['Q10442838', 'P27', {'concept': 'Q15617994'}], ['Q26309992', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q10442838 property:P27 ?w } UNION { resource:Q26309992 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
3, Gentle Street Ömer Közen
action filter_type
action union
action find
entity Ömer Közen
relation country of citizenship
action find
entity 3, Gentle Street
relation country
type designation for an administrative territorial entity
{'OR': [['Ömer Közen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['3, Gentle Street', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ömer_Közen property:country_of_citizenship ?w } UNION { resource:3,_Gentle_Street property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43 Q145
SYSTEM
Turkey, United Kingdom
Q43 Q145
OR((Q10442838,P27,c(Q15617994)), (Q26309992,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q10442838
relation P27
action find
entity Q26309992
relation P17
type Q15617994
[ANSWERS] are the native countriesof Ömer Közen or are 3, Gentle Street a part of
{'OR': [['Q10442838', 'P27', {'concept': 'Q15617994'}], ['Q26309992', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q10442838 property:P27 ?w } UNION { resource:Q26309992 property:P17 ?w } } . ?w rdf:type ontology:Q15617994 }
Turkey United Kingdom
Turkey and United Kingdom are the native countriesof Ömer Közen or are 3, Gentle Street a part of
Turkey United Kingdom
action filter_type
action union
action find
entity Ömer Közen
relation country of citizenship
action find
entity 3, Gentle Street
relation country
type designation for an administrative territorial entity
{'OR': [['Ömer Közen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['3, Gentle Street', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ömer_Közen property:country_of_citizenship ?w } UNION { resource:3,_Gentle_Street property:country ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q846
P463
Q43229
USER
How many organizations were United Kingdom and Qatar a member of ?
(Q145,P463,c(Q43229)) (Q846,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q846
relation P463
type Q43229
['Q145', 'P463', {'concept': 'Q43229'}] ['Q846', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q145 property:P463 ?v . ?v rdf:type ontology:Q43229 . ?v rdf:type ontology:Q43229 . resource:Q846 property:P463 ?v }
United Kingdom Qatar
action count
action intersection
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity Qatar
relation member of
type organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['Qatar', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:United_Kingdom property:member_of ?v . ?v rdf:type ontology:organization . ?v rdf:type ontology:organization . resource:Qatar property:member_of ?v }
[]
organization
SYSTEM
4
Q7825 Q191384 Q899770 Q656801
(Q145,P463,c(Q43229)) (Q846,P463,c(Q43229))
action count
action intersection
action filter_type
action find
entity Q145
relation P463
type Q43229
action filter_type
action find
entity Q846
relation P463
type Q43229
[ANSWER]
['Q145', 'P463', {'concept': 'Q43229'}] ['Q846', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:Q145 property:P463 ?v . ?v rdf:type ontology:Q43229 . ?v rdf:type ontology:Q43229 . resource:Q846 property:P463 ?v }
World Trade Organization International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes International Finance Corporation
4
action count
action intersection
action filter_type
action find
entity United Kingdom
relation member of
type organization
action filter_type
action find
entity Qatar
relation member of
type organization
['United Kingdom', 'member of', {'concept': 'organization'}] ['Qatar', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { resource:United_Kingdom property:member_of ?v . ?v rdf:type ontology:organization . ?v rdf:type ontology:organization . resource:Qatar property:member_of ?v }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q657
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of political territories or administrative territories as Chad ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q657
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?h ) WHERE { { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q657 property:P530 ?b . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?h = ?k ) }
Chad
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Chad
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?h ) WHERE { { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Chad property:diplomatic_relation ?b . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?h = ?k ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q657
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?h ) WHERE { { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?y . ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Q657 property:P530 ?b . { { ?b rdf:type ontology:Q1048835 } UNION { ?b rdf:type ontology:Q15617994 } } } } . FILTER ( ?h = ?k ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Chad
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?h ) WHERE { { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?y . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { resource:Chad property:diplomatic_relation ?b . { { ?b rdf:type ontology:political_territorial_entity } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?h = ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q783
P530
Q1048835 Q15617994 Q15617994
USER
And also tell me about Honduras?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q783
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p property:P530 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q783 property:P530 ?d . { { ?d rdf:type ontology:Q1048835 } UNION { ?d rdf:type ontology:Q15617994 } } } } . FILTER ( ?k = ?y ) }
Honduras
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Honduras
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Honduras property:diplomatic_relation ?d . { { ?d rdf:type ontology:political_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k = ?y ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
149
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find
entity Q783
relation P530
type Q1048835
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p property:P530 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } UNION { ?p property:P530 ?q . ?p rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q783 property:P530 ?d . { { ?d rdf:type ontology:Q1048835 } UNION { ?d rdf:type ontology:Q15617994 } } } } . FILTER ( ?k = ?y ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
149
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Honduras
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?k ) ?p WHERE { { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } UNION { ?p property:diplomatic_relation ?q . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Honduras property:diplomatic_relation ?d . { { ?d rdf:type ontology:political_territorial_entity } UNION { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?k = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P35
Q502895
USER
Which people are the heads of state of United Kingdom ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q145 property:P35 ?f . ?f rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:United_Kingdom property:head_of_state ?f . ?f rdf:type ontology:common_name }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] are the heads of state of United Kingdom
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q145 property:P35 ?f . ?f rdf:type ontology:Q502895 }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V are the heads of state of United Kingdom
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:United_Kingdom property:head_of_state ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15020889
Q502895
USER
And how about Solberg's Cabinet?
(Q15020889,P35,c(Q502895))
action filter_type
action find
entity Q15020889
relation P35
type Q502895
['Q15020889', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q15020889 property:P35 ?j . ?j rdf:type ontology:Q502895 }
Solberg's Cabinet
action filter_type
action find
entity Solberg's Cabinet
relation head of state
type common name
["Solberg's Cabinet", 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Solberg's_Cabinet property:head_of_state ?j . ?j rdf:type ontology:common_name }
[]
common name
Q57287
SYSTEM
Harald V of Norway
Q57287
(Q15020889,P35,c(Q502895))
action filter_type
action find
entity Q15020889
relation P35
type Q502895
[ANSWER]
['Q15020889', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q15020889 property:P35 ?j . ?j rdf:type ontology:Q502895 }
Harald V of Norway
Harald V of Norway
action filter_type
action find
entity Solberg's Cabinet
relation head of state
type common name
["Solberg's Cabinet", 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Solberg's_Cabinet property:head_of_state ?j . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q4377230
P748
Q12737077 Q895526 Q12737077
USER
How many occupations were appointed by less number of occupations and authority organs than Prime Minister of Greece ?
(c(Q12737077),P748,c(Q12737077)|c(Q895526))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action count
action filter_multi_types
action find
entity Q4377230
relation P748
type Q12737077
type Q895526
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?k WHERE { { ?k property:P748 ?l . ?k rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q895526 } UNION { ?k property:P748 ?l . ?k rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q4377230 property:P748 ?c . { { ?c rdf:type ontology:Q895526 } UNION { ?c rdf:type ontology:Q12737077 } } } } . FILTER ( ?b < ?j ) }
Prime Minister of Greece
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action count
action filter_multi_types
action find
entity Prime Minister of Greece
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?k WHERE { { ?k property:appointed_by ?l . ?k rdf:type ontology:occupation . ?l rdf:type ontology:authority_organ } UNION { ?k property:appointed_by ?l . ?k rdf:type ontology:occupation . ?l rdf:type ontology:occupation } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Prime_Minister_of_Greece property:appointed_by ?c . { { ?c rdf:type ontology:authority_organ } UNION { ?c rdf:type ontology:occupation } } } } . FILTER ( ?b < ?j ) }
[]
occupation authority organ occupation
SYSTEM
176
Q7643465 Q27650845 Q373548 Q4011167 Q17018201 Q20748656 Q20890913 Q191954 Q1846384 Q11793630 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q376006 Q21013169 Q26209348 Q39021 Q20867494 Q740126 Q21013163 Q14984399 Q7241304 Q910308 Q1753754 Q2484309 Q2012061 Q20890902 Q1140848 Q15730802 Q7444357 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1371091 Q3315116 Q20872273 Q655407 Q3477307 Q1369302 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q796593 Q6865833 Q2660943 Q20172329 Q531471 Q21384866 Q596123 Q20194364 Q1476165 Q2914452 Q2636053 Q464103 Q3058109 Q3858507 Q1124265 Q273884 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q2390270 Q13527933 Q583809 Q565424 Q15731141 Q313383 Q1043568 Q912994 Q27531790 Q19328352 Q862559 Q475658 Q7574264 Q182762 Q20859386 Q2962001 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q8882 Q20867550 Q1060844 Q3397406 Q467926 Q813403 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q20872296 Q838380 Q5096847 Q4818607 Q152814 Q26000995 Q3409203 Q213107 Q195965 Q327948 Q19364214 Q1753094 Q1975365 Q609884 Q2741486 Q3315112 Q1123764 Q2708520 Q22955080 Q7240368 Q3297079 Q6865995 Q319145 Q3111221 Q29558 Q1044136 Q4122271 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q1071117 Q34071 Q25223 Q20872267 Q5261065 Q3315134 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q20748654 Q19328451 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q1074656 Q735587 Q592866 Q1281611 Q81066 Q26721218 Q628102 Q17058425 Q20128098 Q1752225 Q687908 Q25860233 Q1072341
(c(Q12737077),P748,c(Q12737077)|c(Q895526))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action count
action filter_multi_types
action find
entity Q4377230
relation P748
type Q12737077
type Q895526
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?k WHERE { { ?k property:P748 ?l . ?k rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q895526 } UNION { ?k property:P748 ?l . ?k rdf:type ontology:Q12737077 . ?l rdf:type ontology:Q12737077 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q4377230 property:P748 ?c . { { ?c rdf:type ontology:Q895526 } UNION { ?c rdf:type ontology:Q12737077 } } } } . FILTER ( ?b < ?j ) }
Superintendent of Finance of the United States member of the Provincial Executive of Utrecht President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer municipal executive of Eindhoven President of the French Republic Secretary of State for Wales governor of national banks of Serbia and Yugoslavia King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum President of Singapore Mayor of Gorinchem President of the European Parliament Mayor of The Hague Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Lord Privy Seal Master of the Rolls Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven President pro tempore of the United States Senate Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Prime Minister of Libya 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 President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer President of Malta Minister for Finance Minister for Foreign Affairs Mayor of Hoogland Chancellor of the Exchequer municipal executive of Rotterdam president of Bangladesh municipal executive of Amsterdam Prime Minister of Iraq President of Algeria Leader of the House of Commons Speaker of the House of Commons Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community President of South Africa Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of the Bahamas Mayor of Almere President of India Prime Minister of Vietnam speaker of the United States House of Representatives member of the Provincial Executive of South Holland Mayor of Leersum Prime Minister of Malaysia President of Austria Speaker of the Hellenic Parliament Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco President of the European Commission municipal executive of Gorinchem Paymaster General Secretary of State for Health Cathaoirleach King's or Queen's Commissioner King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere President of Iran Chief Minister Attorney-General of Australia Prime Minister of Malta President of the Parliament of Catalonia President of Greece Prime Minister of Belgium Governor of Gibraltar President of Israel President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Chief Executive of Hong Kong Minister for Defence Prime Minister of Armenia Chairman of the Communist Party of China president of FIFA Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Commonwealth Secretary-General President of Finland president of Tajikistan Premier of the People's Republic of China Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs municipal executive of Woerden Prime Minister of New Zealand President of Paraguay President of Germany Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Mayor of Zoetermeer Mayor of Haarlem Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Prime Minister of Papua New Guinea President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey United Nations Secretary-General municipal executive of Almere President of Nauru Mayor of Coevorden Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Secretary of State for Exiting the European Union Chief Minister of the Northern Territory
176
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action count
action filter_multi_types
action find
entity Prime Minister of Greece
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?k WHERE { { ?k property:appointed_by ?l . ?k rdf:type ontology:occupation . ?l rdf:type ontology:authority_organ } UNION { ?k property:appointed_by ?l . ?k rdf:type ontology:occupation . ?l rdf:type ontology:occupation } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Prime_Minister_of_Greece property:appointed_by ?c . { { ?c rdf:type ontology:authority_organ } UNION { ?c rdf:type ontology:occupation } } } } . FILTER ( ?b < ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q3315120
P748
Q12737077 Q895526 Q12737077
USER
And what about Minister of Justice?
(c(Q12737077),P748,c(Q12737077)|c(Q895526))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action count
action filter_multi_types
action find
entity Q3315120
relation P748
type Q12737077
type Q895526
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q12737077 ) ( ontology:Q895526 ) } . ?u rdf:type ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q3315120 property:P748 ?y . { { ?y rdf:type ontology:Q12737077 } UNION { ?y rdf:type ontology:Q895526 } } } } . FILTER ( ?q < ?l ) }
Minister of Justice
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action count
action filter_multi_types
action find
entity Minister of Justice
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:occupation ) ( ontology:authority_organ ) } . ?u rdf:type ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Minister_of_Justice property:appointed_by ?y . { { ?y rdf:type ontology:occupation } UNION { ?y rdf:type ontology:authority_organ } } } } . FILTER ( ?q < ?l ) }
[]
occupation authority organ occupation
SYSTEM
176
Q7643465 Q27650845 Q373548 Q4011167 Q17018201 Q20748656 Q20890913 Q191954 Q1846384 Q11793630 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q376006 Q21013169 Q26209348 Q39021 Q20867494 Q740126 Q21013163 Q14984399 Q7241304 Q910308 Q1753754 Q2484309 Q2012061 Q20890902 Q1140848 Q15730802 Q7444357 Q7444352 Q943379 Q15305714 Q20872382 Q3246797 Q1371091 Q3315116 Q20872273 Q655407 Q3477307 Q1369302 Q27531658 Q842386 Q48894 Q835586 Q12376089 Q19056310 Q4970706 Q890030 Q27516521 Q1161813 Q20891385 Q796593 Q6865833 Q2660943 Q20172329 Q531471 Q21384866 Q596123 Q20194364 Q1476165 Q2914452 Q2636053 Q464103 Q3058109 Q3858507 Q1124265 Q273884 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q2390270 Q13527933 Q583809 Q565424 Q15731141 Q313383 Q1043568 Q912994 Q27531790 Q19328352 Q862559 Q475658 Q7574264 Q182762 Q20859386 Q2962001 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q8882 Q20867550 Q1060844 Q3397406 Q467926 Q813403 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q20872296 Q838380 Q5096847 Q4818607 Q152814 Q26000995 Q3409203 Q213107 Q195965 Q327948 Q19364214 Q1753094 Q1975365 Q609884 Q2741486 Q3315112 Q1123764 Q2708520 Q22955080 Q7240368 Q3297079 Q6865995 Q319145 Q3111221 Q29558 Q1044136 Q4122271 Q13423495 Q795477 Q1370482 Q6866148 Q20872339 Q1071117 Q34071 Q25223 Q20872267 Q5261065 Q3315134 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q20748654 Q19328451 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q1074656 Q735587 Q592866 Q1281611 Q81066 Q26721218 Q628102 Q17058425 Q20128098 Q1752225 Q687908 Q25860233 Q1072341
(c(Q12737077),P748,c(Q12737077)|c(Q895526))
action count
action less
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action count
action filter_multi_types
action find
entity Q3315120
relation P748
type Q12737077
type Q895526
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q12737077 ) ( ontology:Q895526 ) } . ?u rdf:type ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q3315120 property:P748 ?y . { { ?y rdf:type ontology:Q12737077 } UNION { ?y rdf:type ontology:Q895526 } } } } . FILTER ( ?q < ?l ) }
Superintendent of Finance of the United States member of the Provincial Executive of Utrecht President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer municipal executive of Eindhoven President of the French Republic Secretary of State for Wales governor of national banks of Serbia and Yugoslavia King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum President of Singapore Mayor of Gorinchem President of the European Parliament Mayor of The Hague Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Lord Privy Seal Master of the Rolls Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven President pro tempore of the United States Senate Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council Prime Minister of Libya 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 President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland King's Commissioner of South Holland Prime Minister of Russia President of Fiji Prime Minister of Serbia Prime Minister of Thailand President of Botswana Federal Chancellor of Germany State President of South Africa member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer President of Malta Minister for Finance Minister for Foreign Affairs Mayor of Hoogland Chancellor of the Exchequer municipal executive of Rotterdam president of Bangladesh municipal executive of Amsterdam Prime Minister of Iraq President of Algeria Leader of the House of Commons Speaker of the House of Commons Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy List of Presidents of the Basque Autonomous Community President of South Africa Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of the Bahamas Mayor of Almere President of India Prime Minister of Vietnam speaker of the United States House of Representatives member of the Provincial Executive of South Holland Mayor of Leersum Prime Minister of Malaysia President of Austria Speaker of the Hellenic Parliament Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco President of the European Commission municipal executive of Gorinchem Paymaster General Secretary of State for Health Cathaoirleach King's or Queen's Commissioner King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere President of Iran Chief Minister Attorney-General of Australia Prime Minister of Malta President of the Parliament of Catalonia President of Greece Prime Minister of Belgium Governor of Gibraltar President of Israel President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Chief Executive of Hong Kong Minister for Defence Prime Minister of Armenia Chairman of the Communist Party of China president of FIFA Premier of the Northwest Territories Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Commonwealth Secretary-General President of Finland president of Tajikistan Premier of the People's Republic of China Mayor of Amsterdam Prime Minister of Denmark President of Cuba Minister of Foreign Affairs municipal executive of Woerden Prime Minister of New Zealand President of Paraguay President of Germany Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Mayor of Zoetermeer Mayor of Haarlem Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Prime Minister of Papua New Guinea President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey United Nations Secretary-General municipal executive of Almere President of Nauru Mayor of Coevorden Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Secretary of State for Exiting the European Union Chief Minister of the Northern Territory
176
action count
action less
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action count
action filter_multi_types
action find
entity Minister of Justice
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:occupation ) ( ontology:authority_organ ) } . ?u rdf:type ?a } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Minister_of_Justice property:appointed_by ?y . { { ?y rdf:type ontology:occupation } UNION { ?y rdf:type ontology:authority_organ } } } } . FILTER ( ?q < ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q280856 Q21468760
P1038
Q502895
USER
How many people are a relative of George VI or Phillip Klimek ?
(c(Q502895),P1038,Q280856) (c(Q502895),P1038,Q21468760)
action count
action union
action filter_type
action find_reverse
entity Q280856
relation P1038
type Q502895
action filter_type
action find_reverse
entity Q21468760
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q280856'] [{'concept': 'Q502895'}, 'P1038', 'Q21468760']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P1038 ?n . VALUES ( ?n ) { ( resource:Q280856 ) ( resource:Q21468760 ) } }
George VI Phillip Klimek
action count
action union
action filter_type
action find_reverse
entity George VI
relation relative
type common name
action filter_type
action find_reverse
entity Phillip Klimek
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'George VI'] [{'concept': 'common name'}, 'relative', 'Phillip Klimek']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:relative ?n . VALUES ( ?n ) { ( resource:George_VI ) ( resource:Phillip_Klimek ) } }
[]
common name
SYSTEM
3
Q1702351 Q544690 Q43274
(c(Q502895),P1038,Q280856) (c(Q502895),P1038,Q21468760)
action count
action union
action filter_type
action find_reverse
entity Q280856
relation P1038
type Q502895
action filter_type
action find_reverse
entity Q21468760
relation P1038
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q280856'] [{'concept': 'Q502895'}, 'P1038', 'Q21468760']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P1038 ?n . VALUES ( ?n ) { ( resource:Q280856 ) ( resource:Q21468760 ) } }
Johnny Klimek Jayney Klimek Charles, Prince of Wales
3
action count
action union
action filter_type
action find_reverse
entity George VI
relation relative
type common name
action filter_type
action find_reverse
entity Phillip Klimek
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'George VI'] [{'concept': 'common name'}, 'relative', 'Phillip Klimek']
SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:relative ?n . VALUES ( ?n ) { ( resource:George_VI ) ( resource:Phillip_Klimek ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P291
Q1002697
USER
Which periodical literatures have United Kingdom as their release location ?
(c(Q1002697),P291,Q145)
action filter_type
action find_reverse
entity Q145
relation P291
type Q1002697
[{'concept': 'Q1002697'}, 'P291', 'Q145']
SELECT DISTINCT ?c WHERE { ?c property:P291 resource:Q145 . ?c rdf:type ontology:Q1002697 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ?c WHERE { ?c property:place_of_publication resource:United_Kingdom . ?c rdf:type ontology:periodical_literature }
[]
periodical literature
Q7333536 Q752796 Q5116865
SYSTEM
Right Now!, Sinclair User, Church of England Newspaper
Q7333536 Q752796 Q5116865
(c(Q1002697),P291,Q145)
action filter_type
action find_reverse
entity Q145
relation P291
type Q1002697
[ANSWERS] have United Kingdom as their release location
[{'concept': 'Q1002697'}, 'P291', 'Q145']
SELECT DISTINCT ?c WHERE { ?c property:P291 resource:Q145 . ?c rdf:type ontology:Q1002697 }
Right Now! Sinclair User Church of England Newspaper
Right Now!, Sinclair User and Church of England Newspaper have United Kingdom as their release location
Right Now! Sinclair User Church of England Newspaper
action filter_type
action find_reverse
entity United Kingdom
relation place of publication
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'United Kingdom']
SELECT DISTINCT ?c WHERE { ?c property:place_of_publication resource:United_Kingdom . ?c rdf:type ontology:periodical_literature }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7333536
P364
Q34770
USER
Which language was used originally for the creation of that periodical literature ?
(Q7333536,P364,c(Q34770))
action filter_type
action find
entity Q7333536
relation P364
type Q34770
['Q7333536', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7333536 property:P364 ?a . ?a rdf:type ontology:Q34770 }
Right Now!
action filter_type
action find
entity Right Now!
relation original language of work
type language
['Right Now!', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Right_Now! property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q7333536
SYSTEM
Did you mean Right Now! ?
Q7333536 Q752796 Q5116865
(Q7333536,P364,c(Q34770)) (Q752796,P364,c(Q34770)) (Q5116865,P364,c(Q34770))
[ANSWER]
['Q7333536', 'P364', {'concept': 'Q34770'}] ['Q752796', 'P364', {'concept': 'Q34770'}] ['Q5116865', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7333536 property:P364 ?a . ?a rdf:type ontology:Q34770 }
Right Now! Sinclair User Church of England Newspaper
Did you mean Right Now! ?
Right Now!
['Right Now!', 'original language of work', {'concept': 'language'}] ['Sinclair User', 'original language of work', {'concept': 'language'}] ['Church of England Newspaper', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Right_Now! property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7333536,P364,c(Q34770))
['Q7333536', 'P364', {'concept': 'Q34770'}]
['Right Now!', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q7333536,P364,c(Q34770))
action filter_type
action find
entity Q7333536
relation P364
type Q34770
[ANSWER] was used originally for the creation of that periodical literature
['Q7333536', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { resource:Q7333536 property:P364 ?a . ?a rdf:type ontology:Q34770 }
English
English was used originally for the creation of that periodical literature
English
action filter_type
action find
entity Right Now!
relation original language of work
type language
['Right Now!', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { resource:Right_Now! property:original_language_of_work ?a . ?a rdf:type ontology:language }
[]