Simple Question (Direct)
Simple Question
Q7817122
P21
Q290
USER
What is the sex of Tom Orpe ?
(Q7817122,P21,c(Q290))
action filter_type
action find
entity Q7817122
relation P21
type Q290
['Q7817122', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q7817122 property:P21 ?v . ?v rdf:type ontology:Q290 }
Tom Orpe
action filter_type
action find
entity Tom Orpe
relation gender
type sex
['Tom Orpe', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Tom_Orpe property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7817122,P21,c(Q290))
action filter_type
action find
entity Q7817122
relation P21
type Q290
The sex of Tom Orpe is the [ANSWER]
['Q7817122', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q7817122 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
The sex of Tom Orpe is the male
male
action filter_type
action find
entity Tom Orpe
relation gender
type sex
['Tom Orpe', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Tom_Orpe property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7817122
P27
Q15617994
USER
Which administrative territory is that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7817122
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7817122 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Tom Orpe
action filter_type
action find
entity Tom Orpe
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Tom_Orpe property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q7817122
relation P27
type Q15617994
[ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7817122 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is that person an inhabitant of
United Kingdom
action filter_type
action find
entity Tom Orpe
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Tom_Orpe property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q7725634
USER
How many administrative territories are the origin of less number of works of art or literary works than that administrative territory ?
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q838948
type Q7725634
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?y rdf:type ?c } GROUP BY ?m } . FILTER ( ?o < ?n ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q7725634 } } . ?u property:P495 resource:Q145 } } }
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?y rdf:type ?c } GROUP BY ?m } . FILTER ( ?o < ?n ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:literary_work } } . ?u property:country_of_origin resource:United_Kingdom } } }
[]
designation for an administrative territorial entity work of art literary work
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q838948)|c(Q7725634),P495,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q145
relation P495
type Q838948
type Q7725634
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q7725634 ) } . ?y rdf:type ?c } GROUP BY ?m } . FILTER ( ?o < ?n ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:Q838948 } UNION { ?u rdf:type ontology:Q7725634 } } . ?u property:P495 resource:Q145 } } }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
166
action count
action less
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity United Kingdom
relation country of origin
type work of art
type literary work
[[{'concept': 'work of art'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) ?m WHERE { VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:literary_work ) } . ?y rdf:type ?c } GROUP BY ?m } . FILTER ( ?o < ?n ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?n ) WHERE { { { ?u rdf:type ontology:work_of_art } UNION { ?u rdf:type ontology:literary_work } } . ?u property:country_of_origin resource:United_Kingdom } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q12737077 Q4164871 Q15617994
USER
How many administrative territories have around 1 occupations and positions as the type of government ?
(c(Q15617994),P122,c(Q12737077)|c(Q4164871))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?e property:P122 ?b . ?e rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q4164871 } UNION { ?e rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q12737077 . ?e property:P122 ?b } } GROUP BY ?e } }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?e property:basic_form_of_government ?b . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:position } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:occupation . ?e property:basic_form_of_government ?b } } GROUP BY ?e } }
[]
occupation position designation for an administrative territorial entity
SYSTEM
4
Q541991 Q313175 Q228 Q696651
(c(Q15617994),P122,c(Q12737077)|c(Q4164871))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q12737077
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q12737077'}, {'concept': 'Q4164871'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?e property:P122 ?b . ?e rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q4164871 } UNION { ?e rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q12737077 . ?e property:P122 ?b } } GROUP BY ?e } }
Hummelfeld Saxe-Lauenburg Andorra Saxe-Eisenach
4
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type occupation
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'occupation'}, {'concept': 'position'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { FILTER ( ?t = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?t ) WHERE { { ?e property:basic_form_of_government ?b . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:position } UNION { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:occupation . ?e property:basic_form_of_government ?b } } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15854522 Q7817122
P106
Q12737077
USER
Which occupations are the professions of Tom Orpe or Wilhelm Meyer ?
OR((Q7817122,P106,c(Q12737077)), (Q15854522,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7817122
relation P106
action find
entity Q15854522
relation P106
type Q12737077
{'OR': [['Q7817122', 'P106', {'concept': 'Q12737077'}], ['Q15854522', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { ?f property:P106 ?z . VALUES ( ?f ) { ( resource:Q7817122 ) ( resource:Q15854522 ) } } . ?z rdf:type ontology:Q12737077 }
Wilhelm Meyer Tom Orpe
action filter_type
action union
action find
entity Tom Orpe
relation occupation
action find
entity Wilhelm Meyer
relation occupation
type occupation
{'OR': [['Tom Orpe', 'occupation', {'concept': 'occupation'}], ['Wilhelm Meyer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { ?f property:occupation ?z . VALUES ( ?f ) { ( resource:Tom_Orpe ) ( resource:Wilhelm_Meyer ) } } . ?z rdf:type ontology:occupation }
[]
occupation
Q250867 Q937857
SYSTEM
Catholic priest, association football player
Q250867 Q937857
OR((Q7817122,P106,c(Q12737077)), (Q15854522,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7817122
relation P106
action find
entity Q15854522
relation P106
type Q12737077
The professions of Tom Orpe or Wilhelm Meyer are a [ANSWERS]
{'OR': [['Q7817122', 'P106', {'concept': 'Q12737077'}], ['Q15854522', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?z WHERE { { ?f property:P106 ?z . VALUES ( ?f ) { ( resource:Q7817122 ) ( resource:Q15854522 ) } } . ?z rdf:type ontology:Q12737077 }
Catholic priest association football player
The professions of Tom Orpe or Wilhelm Meyer are a Catholic priest and association football player
Catholic priest association football player
action filter_type
action union
action find
entity Tom Orpe
relation occupation
action find
entity Wilhelm Meyer
relation occupation
type occupation
{'OR': [['Tom Orpe', 'occupation', {'concept': 'occupation'}], ['Wilhelm Meyer', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?z WHERE { { ?f property:occupation ?z . VALUES ( ?f ) { ( resource:Tom_Orpe ) ( resource:Wilhelm_Meyer ) } } . ?z rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P530
Q1048835 Q15617994
USER
How many political territories and administrative territories have ambassadorial relations with United Kingdom ?
(c(Q1048835),P530,Q145) (c(Q15617994),P530,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q145
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', 'Q145'] [{'concept': 'Q15617994'}, 'P530', 'Q145']
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?r . VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?r . VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
3 political territories and 11 administrative territories
Q142 Q805 Q38 Q230 Q801 Q155 Q183 Q408 Q16 Q37 Q114 Q403 Q17 Q902
(c(Q1048835),P530,Q145) (c(Q15617994),P530,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q145
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q145'] [{'concept': 'Q15617994'}, 'P530', 'Q145']
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?r . VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } }
France Yemen Italy Georgia Israel Brazil Germany Australia Canada Lithuania Kenya Serbia Japan Bangladesh
3 political territories and 11 administrative territories
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity United Kingdom
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?d ) AS ?f ) WHERE { ?d rdf:type ?r . VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]