Simple Question (Direct)
Simple Question
Q864852
P611
Q1530022
USER
What religion is Peter Sanz affiliated to ?
(Q864852,P611,c(Q1530022))
action filter_type
action find
entity Q864852
relation P611
type Q1530022
['Q864852', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?b WHERE { resource:Q864852 property:P611 ?b . ?b rdf:type ontology:Q1530022 }
Peter Sanz
action filter_type
action find
entity Peter Sanz
relation religious order
type religious organization
['Peter Sanz', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?b WHERE { resource:Peter_Sanz property:religious_order ?b . ?b rdf:type ontology:religious_organization }
[]
religious organization
Q131479
SYSTEM
Dominican Order
Q131479
(Q864852,P611,c(Q1530022))
action filter_type
action find
entity Q864852
relation P611
type Q1530022
Peter Sanz is affiliated with [ANSWER]
['Q864852', 'P611', {'concept': 'Q1530022'}]
SELECT DISTINCT ?b WHERE { resource:Q864852 property:P611 ?b . ?b rdf:type ontology:Q1530022 }
Dominican Order
Peter Sanz is affiliated with Dominican Order
Dominican Order
action filter_type
action find
entity Peter Sanz
relation religious order
type religious organization
['Peter Sanz', 'religious order', {'concept': 'religious organization'}]
SELECT DISTINCT ?b WHERE { resource:Peter_Sanz property:religious_order ?b . ?b rdf:type ontology:religious_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q864852
P21
Q290
USER
What is the sex of Peter Sanz ?
(Q864852,P21,c(Q290))
action filter_type
action find
entity Q864852
relation P21
type Q290
['Q864852', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q864852 property:P21 ?w . ?w rdf:type ontology:Q290 }
Peter Sanz
action filter_type
action find
entity Peter Sanz
relation gender
type sex
['Peter Sanz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Peter_Sanz property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q864852,P21,c(Q290))
action filter_type
action find
entity Q864852
relation P21
type Q290
The sex of Peter Sanz is the [ANSWER]
['Q864852', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q864852 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
The sex of Peter Sanz is the male
male
action filter_type
action find
entity Peter Sanz
relation gender
type sex
['Peter Sanz', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Peter_Sanz property:gender ?w . ?w rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q864852
P411
Q82799
USER
Which name represents the canonization status of Peter Sanz ?
(Q864852,P411,c(Q82799))
action filter_type
action find
entity Q864852
relation P411
type Q82799
['Q864852', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q864852 property:P411 ?h . ?h rdf:type ontology:Q82799 }
Peter Sanz
action filter_type
action find
entity Peter Sanz
relation canonization status
type name
['Peter Sanz', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Peter_Sanz property:canonization_status ?h . ?h rdf:type ontology:name }
[]
name
Q43115
SYSTEM
saint
Q43115
(Q864852,P411,c(Q82799))
action filter_type
action find
entity Q864852
relation P411
type Q82799
Or [ANSWER] represents the canonization status of Peter Sanz
['Q864852', 'P411', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q864852 property:P411 ?h . ?h rdf:type ontology:Q82799 }
saint
Or saint represents the canonization status of Peter Sanz
saint
action filter_type
action find
entity Peter Sanz
relation canonization status
type name
['Peter Sanz', 'canonization status', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Peter_Sanz property:canonization_status ?h . ?h rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43115
P166
Q502895
USER
Which people were honoured with that name ?
(c(Q502895),P166,Q43115)
action filter_type
action find_reverse
entity Q43115
relation P166
type Q502895
[{'concept': 'Q502895'}, 'P166', 'Q43115']
SELECT DISTINCT ?e WHERE { ?e property:P166 resource:Q43115 . ?e rdf:type ontology:Q502895 }
saint
action filter_type
action find_reverse
entity saint
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'saint']
SELECT DISTINCT ?e WHERE { ?e property:award_received resource:saint . ?e rdf:type ontology:common_name }
[]
common name
Q212850 Q87664 Q19049325
SYSTEM
Vitus, Ansverus, Mochaemog
Q212850 Q87664 Q19049325
(c(Q502895),P166,Q43115)
action filter_type
action find_reverse
entity Q43115
relation P166
type Q502895
[ANSWERS] were honoured with that name
[{'concept': 'Q502895'}, 'P166', 'Q43115']
SELECT DISTINCT ?e WHERE { ?e property:P166 resource:Q43115 . ?e rdf:type ontology:Q502895 }
Vitus Ansverus Mochaemog
Vitus, Ansverus and Mochaemog were honoured with that name
Vitus Ansverus Mochaemog
action filter_type
action find_reverse
entity saint
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'saint']
SELECT DISTINCT ?e WHERE { ?e property:award_received resource:saint . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43115
P140
Q874405
USER
Which social group does saint correspond to ?
(Q43115,P140,c(Q874405))
action filter_type
action find
entity Q43115
relation P140
type Q874405
['Q43115', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?k WHERE { resource:Q43115 property:P140 ?k . ?k rdf:type ontology:Q874405 }
saint
action filter_type
action find
entity saint
relation religion
type social group
['saint', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?k WHERE { resource:saint property:religion ?k . ?k rdf:type ontology:social_group }
[]
social group
Q5043
SYSTEM
Christianity
Q5043
(Q43115,P140,c(Q874405))
action filter_type
action find
entity Q43115
relation P140
type Q874405
Saint corresponds to [ANSWER]
['Q43115', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?k WHERE { resource:Q43115 property:P140 ?k . ?k rdf:type ontology:Q874405 }
Christianity
Saint corresponds to Christianity
Christianity
action filter_type
action find
entity saint
relation religion
type social group
['saint', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?k WHERE { resource:saint property:religion ?k . ?k rdf:type ontology:social_group }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3390777
Q874405
USER
And how about Placide-Bruno Valayer?
(Q3390777,P140,c(Q874405))
action filter_type
action find
entity Q3390777
relation P140
type Q874405
['Q3390777', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q874405 . resource:Q3390777 property:P140 ?e }
Placide-Bruno Valayer
action filter_type
action find
entity Placide-Bruno Valayer
relation religion
type social group
['Placide-Bruno Valayer', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:social_group . resource:Placide-Bruno_Valayer property:religion ?e }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q3390777,P140,c(Q874405))
action filter_type
action find
entity Q3390777
relation P140
type Q874405
[ANSWER]
['Q3390777', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q874405 . resource:Q3390777 property:P140 ?e }
Catholicism
Catholicism
action filter_type
action find
entity Placide-Bruno Valayer
relation religion
type social group
['Placide-Bruno Valayer', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:social_group . resource:Placide-Bruno_Valayer property:religion ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q5043 Q317010
P112
Q502895
USER
How many people were the founders of Christianity or Corps Hannovera Göttingen ?
(Q5043,P112,c(Q502895)) (Q317010,P112,c(Q502895))
action count
action union
action filter_type
action find
entity Q5043
relation P112
type Q502895
action filter_type
action find
entity Q317010
relation P112
type Q502895
['Q5043', 'P112', {'concept': 'Q502895'}] ['Q317010', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Q5043 property:P112 ?c . ?c rdf:type ontology:Q502895 } UNION { resource:Q317010 property:P112 ?c . ?c rdf:type ontology:Q502895 } }
Christianity Corps Hannovera Göttingen
action count
action union
action filter_type
action find
entity Christianity
relation founder
type common name
action filter_type
action find
entity Corps Hannovera Göttingen
relation founder
type common name
['Christianity', 'founder', {'concept': 'common name'}] ['Corps Hannovera Göttingen', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Christianity property:founder ?c . ?c rdf:type ontology:common_name } UNION { resource:Corps_Hannovera_Göttingen property:founder ?c . ?c rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q365615 Q1359874 Q1337410
(Q5043,P112,c(Q502895)) (Q317010,P112,c(Q502895))
action count
action union
action filter_type
action find
entity Q5043
relation P112
type Q502895
action filter_type
action find
entity Q317010
relation P112
type Q502895
[ANSWER]
['Q5043', 'P112', {'concept': 'Q502895'}] ['Q317010', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Q5043 property:P112 ?c . ?c rdf:type ontology:Q502895 } UNION { resource:Q317010 property:P112 ?c . ?c rdf:type ontology:Q502895 } }
Adolph von Voss Ernst Reinecke Wilhelm Johann Theodor Mauch
3
action count
action union
action filter_type
action find
entity Christianity
relation founder
type common name
action filter_type
action find
entity Corps Hannovera Göttingen
relation founder
type common name
['Christianity', 'founder', {'concept': 'common name'}] ['Corps Hannovera Göttingen', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Christianity property:founder ?c . ?c rdf:type ontology:common_name } UNION { resource:Corps_Hannovera_Göttingen property:founder ?c . ?c rdf:type ontology:common_name } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1895285 Q87664
P27
Q1048835
USER
Which political territories are Ansverus or Margit Frankau a civilian of ?
OR((Q87664,P27,c(Q1048835)), (Q1895285,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q87664
relation P27
action find
entity Q1895285
relation P27
type Q1048835
{'OR': [['Q87664', 'P27', {'concept': 'Q1048835'}], ['Q1895285', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q87664 property:P27 ?o } UNION { resource:Q1895285 property:P27 ?o } } . ?o rdf:type ontology:Q1048835 }
Margit Frankau Ansverus
action filter_type
action union
action find
entity Ansverus
relation country of citizenship
action find
entity Margit Frankau
relation country of citizenship
type political territorial entity
{'OR': [['Ansverus', 'country of citizenship', {'concept': 'political territorial entity'}], ['Margit Frankau', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Ansverus property:country_of_citizenship ?o } UNION { resource:Margit_Frankau property:country_of_citizenship ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q87664,P27,c(Q1048835)), (Q1895285,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q87664
relation P27
action find
entity Q1895285
relation P27
type Q1048835
[ANSWERS] are Ansverus or Margit Frankau a civilian of
{'OR': [['Q87664', 'P27', {'concept': 'Q1048835'}], ['Q1895285', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q87664 property:P27 ?o } UNION { resource:Q1895285 property:P27 ?o } } . ?o rdf:type ontology:Q1048835 }
Germany Austria
Germany and Austria are Ansverus or Margit Frankau a civilian of
Germany Austria
action filter_type
action union
action find
entity Ansverus
relation country of citizenship
action find
entity Margit Frankau
relation country of citizenship
type political territorial entity
{'OR': [['Ansverus', 'country of citizenship', {'concept': 'political territorial entity'}], ['Margit Frankau', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Ansverus property:country_of_citizenship ?o } UNION { resource:Margit_Frankau property:country_of_citizenship ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q408 Q183
P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and Australia ?
AND((Q183,P530,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q408
relation P530
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q183 property:P530 ?q . resource:Q408 property:P530 ?q . ?q rdf:type ontology:Q15617994 }
Australia Germany
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Germany property:diplomatic_relation ?q . resource:Australia property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q219 Q953 Q881 Q1033 Q1036 Q77 Q1009 Q212 Q145 Q224
SYSTEM
Some of them are Bulgaria, Zambia, Vietnam, Nigeria, Uganda, Uruguay, Cameroon, Ukraine, United Kingdom, Croatia
Q739 Q783 Q801 Q800 Q843 Q1009 Q1029 Q711 Q419 Q833 Q786 Q668 Q29 Q414 Q811 Q142 Q225 Q224 Q55 Q145 Q148 Q96 Q31 Q229 Q233 Q33 Q17 Q30 Q924 Q36 Q79 Q34 Q77 Q39 Q38 Q902 Q878 Q1036 Q774 Q423 Q810 Q1033 Q1030 Q851 Q733 Q734 Q736 Q298 Q115 Q114 Q117 Q41 Q403 Q963 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q215 Q155 Q218 Q219 Q796 Q889 Q794 Q20 Q954 Q1041 Q27 Q869 Q252 Q884 Q953 Q881 Q916
AND((Q183,P530,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q183
relation P530
action find
entity Q408
relation P530
type Q15617994
And [ANSWERS] hold diplomatic relationship with Germany and Australia
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q183 property:P530 ?q . resource:Q408 property:P530 ?q . ?q rdf:type ontology:Q15617994 }
Colombia Honduras Israel Costa Rica Pakistan Cameroon Mozambique Mongolia Peru Malaysia Dominican Republic India Spain Argentina Nicaragua France Bosnia and Herzegovina Croatia Netherlands United Kingdom People's Republic of China Mexico Belgium Cyprus Malta Finland Japan United States of America Tanzania Poland Egypt Sweden Uruguay Switzerland Italy Bangladesh United Arab Emirates Uganda Guatemala North Korea Jordan Nigeria Namibia Saudi Arabia Paraguay Guyana Ecuador Chile Ethiopia Kenya Ghana Greece Serbia Botswana South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Slovenia Brazil Romania Bulgaria Iraq Afghanistan Iran Norway Zimbabwe Senegal Ireland Thailand Indonesia South Korea Zambia Vietnam Angola
And Bulgaria, Zambia, Vietnam, Nigeria, Uganda, Uruguay, Cameroon, Ukraine, United Kingdom and Croatia hold diplomatic relationship with Germany and Australia
Bulgaria Zambia Vietnam Nigeria Uganda Uruguay Cameroon Ukraine United Kingdom Croatia
action filter_type
action intersection
action find
entity Germany
relation diplomatic relation
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Germany property:diplomatic_relation ?q . resource:Australia property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q43229 Q484652
USER
How many organizations and international organizations were that administrative territory a member of ?
(Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q219,P463,c(Q43229)) (Q219,P463,c(Q484652)) (Q953,P463,c(Q43229)) (Q953,P463,c(Q484652)) (Q881,P463,c(Q43229)) (Q881,P463,c(Q484652)) (Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q1036,P463,c(Q43229)) (Q1036,P463,c(Q484652)) (Q77,P463,c(Q43229)) (Q77,P463,c(Q484652)) (Q1009,P463,c(Q43229)) (Q1009,P463,c(Q484652)) (Q212,P463,c(Q43229)) (Q212,P463,c(Q484652)) (Q145,P463,c(Q43229)) (Q145,P463,c(Q484652)) (Q224,P463,c(Q43229)) (Q224,P463,c(Q484652))
['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q219', 'P463', {'concept': 'Q43229'}] ['Q219', 'P463', {'concept': 'Q484652'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q484652'}] ['Q881', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q484652'}] ['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q1036', 'P463', {'concept': 'Q43229'}] ['Q1036', 'P463', {'concept': 'Q484652'}] ['Q77', 'P463', {'concept': 'Q43229'}] ['Q77', 'P463', {'concept': 'Q484652'}] ['Q1009', 'P463', {'concept': 'Q43229'}] ['Q1009', 'P463', {'concept': 'Q484652'}] ['Q212', 'P463', {'concept': 'Q43229'}] ['Q212', 'P463', {'concept': 'Q484652'}] ['Q145', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q484652'}] ['Q224', 'P463', {'concept': 'Q43229'}] ['Q224', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q219 property:P463 ?z } UNION { resource:Q219 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } UNION { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q1036 property:P463 ?z } UNION { resource:Q1036 property:P463 ?y } UNION { resource:Q3296159 property:P463 ?z } UNION { resource:Q3296159 property:P463 ?y } UNION { resource:Q220213 property:P463 ?z } UNION { resource:Q220213 property:P463 ?y } UNION { resource:Q522405 property:P463 ?z } UNION { resource:Q522405 property:P463 ?y } UNION { resource:Q225249 property:P463 ?z } UNION { resource:Q225249 property:P463 ?y } UNION { resource:Q224 property:P463 ?z } UNION { resource:Q224 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Bulgaria', 'member of', {'concept': 'organization'}] ['Bulgaria', 'member of', {'concept': 'international organization'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'international organization'}] ['Vietnam', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'international organization'}] ['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Uganda', 'member of', {'concept': 'organization'}] ['Uganda', 'member of', {'concept': 'international organization'}] ['Uruguay', 'member of', {'concept': 'organization'}] ['Uruguay', 'member of', {'concept': 'international organization'}] ['Cameroon', 'member of', {'concept': 'organization'}] ['Cameroon', 'member of', {'concept': 'international organization'}] ['Ukraine', 'member of', {'concept': 'organization'}] ['Ukraine', 'member of', {'concept': 'international organization'}] ['United Kingdom', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}] ['Croatia', 'member of', {'concept': 'organization'}] ['Croatia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Bulgaria property:member_of ?z } UNION { resource:Bulgaria property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } UNION { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Uganda property:member_of ?z } UNION { resource:Uganda property:member_of ?y } UNION { resource:Uruguay property:member_of ?z } UNION { resource:Uruguay property:member_of ?y } UNION { resource:Cameroon property:member_of ?z } UNION { resource:Cameroon property:member_of ?y } UNION { resource:Ukraine property:member_of ?z } UNION { resource:Ukraine property:member_of ?y } UNION { resource:United_Kingdom property:member_of ?z } UNION { resource:United_Kingdom property:member_of ?y } UNION { resource:Croatia property:member_of ?z } UNION { resource:Croatia property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
organization international organization
Quantitative|Count|Mult. entity type|Clarification
Q1033
SYSTEM
Did you mean Nigeria ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q219 property:P463 ?z } UNION { resource:Q219 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } UNION { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q1036 property:P463 ?z } UNION { resource:Q1036 property:P463 ?y } UNION { resource:Q3296159 property:P463 ?z } UNION { resource:Q3296159 property:P463 ?y } UNION { resource:Q220213 property:P463 ?z } UNION { resource:Q220213 property:P463 ?y } UNION { resource:Q522405 property:P463 ?z } UNION { resource:Q522405 property:P463 ?y } UNION { resource:Q225249 property:P463 ?z } UNION { resource:Q225249 property:P463 ?y } UNION { resource:Q224 property:P463 ?z } UNION { resource:Q224 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
Did you mean Nigeria ?
Nigeria
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Bulgaria property:member_of ?z } UNION { resource:Bulgaria property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } UNION { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Uganda property:member_of ?z } UNION { resource:Uganda property:member_of ?y } UNION { resource:Uruguay property:member_of ?z } UNION { resource:Uruguay property:member_of ?y } UNION { resource:Cameroon property:member_of ?z } UNION { resource:Cameroon property:member_of ?y } UNION { resource:Ukraine property:member_of ?z } UNION { resource:Ukraine property:member_of ?y } UNION { resource:United_Kingdom property:member_of ?z } UNION { resource:United_Kingdom property:member_of ?y } UNION { resource:Croatia property:member_of ?z } UNION { resource:Croatia property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q219,P463,c(Q43229)) (Q219,P463,c(Q484652)) (Q953,P463,c(Q43229)) (Q953,P463,c(Q484652)) (Q881,P463,c(Q43229)) (Q881,P463,c(Q484652)) (Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q1036,P463,c(Q43229)) (Q1036,P463,c(Q484652)) (Q77,P463,c(Q43229)) (Q77,P463,c(Q484652)) (Q1009,P463,c(Q43229)) (Q1009,P463,c(Q484652)) (Q212,P463,c(Q43229)) (Q212,P463,c(Q484652)) (Q145,P463,c(Q43229)) (Q145,P463,c(Q484652)) (Q224,P463,c(Q43229)) (Q224,P463,c(Q484652))
['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q219', 'P463', {'concept': 'Q43229'}] ['Q219', 'P463', {'concept': 'Q484652'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q484652'}] ['Q881', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q484652'}] ['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q1036', 'P463', {'concept': 'Q43229'}] ['Q1036', 'P463', {'concept': 'Q484652'}] ['Q77', 'P463', {'concept': 'Q43229'}] ['Q77', 'P463', {'concept': 'Q484652'}] ['Q1009', 'P463', {'concept': 'Q43229'}] ['Q1009', 'P463', {'concept': 'Q484652'}] ['Q212', 'P463', {'concept': 'Q43229'}] ['Q212', 'P463', {'concept': 'Q484652'}] ['Q145', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q484652'}] ['Q224', 'P463', {'concept': 'Q43229'}] ['Q224', 'P463', {'concept': 'Q484652'}]
['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Bulgaria', 'member of', {'concept': 'organization'}] ['Bulgaria', 'member of', {'concept': 'international organization'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'international organization'}] ['Vietnam', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'international organization'}] ['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Uganda', 'member of', {'concept': 'organization'}] ['Uganda', 'member of', {'concept': 'international organization'}] ['Uruguay', 'member of', {'concept': 'organization'}] ['Uruguay', 'member of', {'concept': 'international organization'}] ['Cameroon', 'member of', {'concept': 'organization'}] ['Cameroon', 'member of', {'concept': 'international organization'}] ['Ukraine', 'member of', {'concept': 'organization'}] ['Ukraine', 'member of', {'concept': 'international organization'}] ['United Kingdom', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}] ['Croatia', 'member of', {'concept': 'organization'}] ['Croatia', 'member of', {'concept': 'international organization'}]
[]
SYSTEM
6 organizations and 4 international organizations
Q340195 Q191384 Q656801 Q899770 Q1043527 Q294278 Q7825 Q7785 Q1065 Q827525
(Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q219,P463,c(Q43229)) (Q219,P463,c(Q484652)) (Q953,P463,c(Q43229)) (Q953,P463,c(Q484652)) (Q881,P463,c(Q43229)) (Q881,P463,c(Q484652)) (Q1033,P463,c(Q43229)) (Q1033,P463,c(Q484652)) (Q1036,P463,c(Q43229)) (Q1036,P463,c(Q484652)) (Q77,P463,c(Q43229)) (Q77,P463,c(Q484652)) (Q1009,P463,c(Q43229)) (Q1009,P463,c(Q484652)) (Q212,P463,c(Q43229)) (Q212,P463,c(Q484652)) (Q145,P463,c(Q43229)) (Q145,P463,c(Q484652)) (Q224,P463,c(Q43229)) (Q224,P463,c(Q484652))
[ANSWER]
['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q219', 'P463', {'concept': 'Q43229'}] ['Q219', 'P463', {'concept': 'Q484652'}] ['Q953', 'P463', {'concept': 'Q43229'}] ['Q953', 'P463', {'concept': 'Q484652'}] ['Q881', 'P463', {'concept': 'Q43229'}] ['Q881', 'P463', {'concept': 'Q484652'}] ['Q1033', 'P463', {'concept': 'Q43229'}] ['Q1033', 'P463', {'concept': 'Q484652'}] ['Q1036', 'P463', {'concept': 'Q43229'}] ['Q1036', 'P463', {'concept': 'Q484652'}] ['Q77', 'P463', {'concept': 'Q43229'}] ['Q77', 'P463', {'concept': 'Q484652'}] ['Q1009', 'P463', {'concept': 'Q43229'}] ['Q1009', 'P463', {'concept': 'Q484652'}] ['Q212', 'P463', {'concept': 'Q43229'}] ['Q212', 'P463', {'concept': 'Q484652'}] ['Q145', 'P463', {'concept': 'Q43229'}] ['Q145', 'P463', {'concept': 'Q484652'}] ['Q224', 'P463', {'concept': 'Q43229'}] ['Q224', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q219 property:P463 ?z } UNION { resource:Q219 property:P463 ?y } UNION { resource:Q953 property:P463 ?z } UNION { resource:Q953 property:P463 ?y } UNION { resource:Q2523822 property:P463 ?z } UNION { resource:Q2523822 property:P463 ?y } UNION { resource:Q7032790 property:P463 ?z } UNION { resource:Q7032790 property:P463 ?y } UNION { resource:Q1036 property:P463 ?z } UNION { resource:Q1036 property:P463 ?y } UNION { resource:Q3296159 property:P463 ?z } UNION { resource:Q3296159 property:P463 ?y } UNION { resource:Q220213 property:P463 ?z } UNION { resource:Q220213 property:P463 ?y } UNION { resource:Q522405 property:P463 ?z } UNION { resource:Q522405 property:P463 ?y } UNION { resource:Q225249 property:P463 ?z } UNION { resource:Q225249 property:P463 ?y } UNION { resource:Q224 property:P463 ?z } UNION { resource:Q224 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q484652 }
African Development Bank International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes Multilateral Investment Guarantee Agency African, Caribbean and Pacific Group of States World Trade Organization Commonwealth of Nations United Nations International Development Association
6 organizations and 4 international organizations
['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Bulgaria', 'member of', {'concept': 'organization'}] ['Bulgaria', 'member of', {'concept': 'international organization'}] ['Zambia', 'member of', {'concept': 'organization'}] ['Zambia', 'member of', {'concept': 'international organization'}] ['Vietnam', 'member of', {'concept': 'organization'}] ['Vietnam', 'member of', {'concept': 'international organization'}] ['Nigeria', 'member of', {'concept': 'organization'}] ['Nigeria', 'member of', {'concept': 'international organization'}] ['Uganda', 'member of', {'concept': 'organization'}] ['Uganda', 'member of', {'concept': 'international organization'}] ['Uruguay', 'member of', {'concept': 'organization'}] ['Uruguay', 'member of', {'concept': 'international organization'}] ['Cameroon', 'member of', {'concept': 'organization'}] ['Cameroon', 'member of', {'concept': 'international organization'}] ['Ukraine', 'member of', {'concept': 'organization'}] ['Ukraine', 'member of', {'concept': 'international organization'}] ['United Kingdom', 'member of', {'concept': 'organization'}] ['United Kingdom', 'member of', {'concept': 'international organization'}] ['Croatia', 'member of', {'concept': 'organization'}] ['Croatia', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Bulgaria property:member_of ?z } UNION { resource:Bulgaria property:member_of ?y } UNION { resource:Zambia property:member_of ?z } UNION { resource:Zambia property:member_of ?y } UNION { resource:Vietnam property:member_of ?z } UNION { resource:Vietnam property:member_of ?y } UNION { resource:Nigeria property:member_of ?z } UNION { resource:Nigeria property:member_of ?y } UNION { resource:Uganda property:member_of ?z } UNION { resource:Uganda property:member_of ?y } UNION { resource:Uruguay property:member_of ?z } UNION { resource:Uruguay property:member_of ?y } UNION { resource:Cameroon property:member_of ?z } UNION { resource:Cameroon property:member_of ?y } UNION { resource:Ukraine property:member_of ?z } UNION { resource:Ukraine property:member_of ?y } UNION { resource:United_Kingdom property:member_of ?z } UNION { resource:United_Kingdom property:member_of ?y } UNION { resource:Croatia property:member_of ?z } UNION { resource:Croatia property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:international_organization }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with approximately 120 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?c ) WHERE { ?b property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?c = 120 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?c ) WHERE { ?b property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?c = 120 ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[ANSWERS] have a diplomatic relationship with approximately 120 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?c ) WHERE { ?b property:P530 ?k . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q1048835 } GROUP BY ?b } . FILTER ( ?c = 120 ) }
Germany Australia
Germany and Australia have a diplomatic relationship with approximately 120 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?c ) WHERE { ?b property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:political_territorial_entity } GROUP BY ?b } . FILTER ( ?c = 120 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P85
Q7725634
USER
Which literary work is the anthem for United Kingdom ?
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { resource:Q145 property:P85 ?s . ?s rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { resource:United_Kingdom property:anthem ?s . ?s rdf:type ontology:literary_work }
[]
literary work
Q40807
SYSTEM
God Save the Queen
Q40807
(Q145,P85,c(Q7725634))
action filter_type
action find
entity Q145
relation P85
type Q7725634
God save the Queen is the anthem for United Kingdom
['Q145', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?s WHERE { resource:Q145 property:P85 ?s . ?s rdf:type ontology:Q7725634 }
God Save the Queen
God save the Queen is the anthem for United Kingdom
God Save the Queen
action filter_type
action find
entity United Kingdom
relation anthem
type literary work
['United Kingdom', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?s WHERE { resource:United_Kingdom property:anthem ?s . ?s rdf:type ontology:literary_work }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P407
Q34770 Q7725634
USER
Which languages are the languages of work for max number of literary works ?
(c(Q7725634),P407,Q447117)
action argmax
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
[{'concept': 'Q7725634'}, 'P407', 'Q447117']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P407 ?k . ?k rdf:type ontology:Q34770 . ?o rdf:type ontology:Q7725634 } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P407 ?c . ?c rdf:type ontology:Q34770 . ?n rdf:type ontology:Q7725634 } GROUP BY ?c } . FILTER ( ?x = ?r ) }
action argmax
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
[{'concept': 'literary work'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?o rdf:type ontology:literary_work } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:language_of_work_or_name ?c . ?c rdf:type ontology:language . ?n rdf:type ontology:literary_work } GROUP BY ?c } . FILTER ( ?x = ?r ) }
[]
language literary work
Q1860
SYSTEM
English
Q1860
(c(Q7725634),P407,Q447117)
action argmax
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
[ANSWER] is the languages of work for max number of literary works
[{'concept': 'Q7725634'}, 'P407', 'Q447117']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P407 ?k . ?k rdf:type ontology:Q34770 . ?o rdf:type ontology:Q7725634 } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:P407 ?c . ?c rdf:type ontology:Q34770 . ?n rdf:type ontology:Q7725634 } GROUP BY ?c } . FILTER ( ?x = ?r ) }
English
English is the languages of work for max number of literary works
English
action argmax
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
[{'concept': 'literary work'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?r ) { SELECT DISTINCT ?k ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:language_of_work_or_name ?k . ?k rdf:type ontology:language . ?o rdf:type ontology:literary_work } GROUP BY ?k } } . { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?x ) WHERE { ?n property:language_of_work_or_name ?c . ?c rdf:type ontology:language . ?n rdf:type ontology:literary_work } GROUP BY ?c } . FILTER ( ?x = ?r ) }
[]