Simple Question (Direct)
Simple Question
Q15444461
P463
Q3947
USER
What was Klaus-Dirk Henke a member of ?
(Q15444461,P463,c(Q3947))
action filter_type
action find
entity Q15444461
relation P463
type Q3947
['Q15444461', 'P463', {'concept': 'Q3947'}]
SELECT DISTINCT ?u WHERE { resource:Q15444461 property:P463 ?u . ?u rdf:type ontology:Q3947 }
Klaus-Dirk Henke
action filter_type
action find
entity Klaus-Dirk Henke
relation member of
type house
['Klaus-Dirk Henke', 'member of', {'concept': 'house'}]
SELECT DISTINCT ?u WHERE { resource:Klaus-Dirk_Henke property:member_of ?u . ?u rdf:type ontology:house }
[]
house
Q414188
SYSTEM
Göttingen Academy of Sciences
Q414188
(Q15444461,P463,c(Q3947))
action filter_type
action find
entity Q15444461
relation P463
type Q3947
Klaus-Dirk was the [ANSWER]
['Q15444461', 'P463', {'concept': 'Q3947'}]
SELECT DISTINCT ?u WHERE { resource:Q15444461 property:P463 ?u . ?u rdf:type ontology:Q3947 }
Göttingen Academy of Sciences
Klaus-Dirk was the Göttingen Academy of Sciences
Göttingen Academy of Sciences
action filter_type
action find
entity Klaus-Dirk Henke
relation member of
type house
['Klaus-Dirk Henke', 'member of', {'concept': 'house'}]
SELECT DISTINCT ?u WHERE { resource:Klaus-Dirk_Henke property:member_of ?u . ?u rdf:type ontology:house }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15444461
P27
Q1048835
USER
Which political territory is the country of citizenship of Klaus-Dirk Henke ?
(Q15444461,P27,c(Q1048835))
action filter_type
action find
entity Q15444461
relation P27
type Q1048835
['Q15444461', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q15444461 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Klaus-Dirk Henke
action filter_type
action find
entity Klaus-Dirk Henke
relation country of citizenship
type political territorial entity
['Klaus-Dirk Henke', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Klaus-Dirk_Henke property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q15444461,P27,c(Q1048835))
action filter_type
action find
entity Q15444461
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Klaus-Dirk Henke
['Q15444461', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q15444461 property:P27 ?f . ?f rdf:type ontology:Q1048835 }
Germany
Germany is the country of citizenship of Klaus-Dirk Henke
Germany
action filter_type
action find
entity Klaus-Dirk Henke
relation country of citizenship
type political territorial entity
['Klaus-Dirk Henke', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Klaus-Dirk_Henke property:country_of_citizenship ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15444461
P21
Q290
USER
What is the sex of that person ?
(Q183,P21,c(Q290))
action filter_type
action find
entity Q15444461
relation P21
type Q290
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q15444461 property:P21 ?j . ?j rdf:type ontology:Q290 }
Klaus-Dirk Henke
action filter_type
action find
entity Klaus-Dirk Henke
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Klaus-Dirk_Henke property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q183,P21,c(Q290))
action filter_type
action find
entity Q15444461
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q15444461 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Klaus-Dirk Henke
relation gender
type sex
['Germany', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Klaus-Dirk_Henke property:gender ?j . ?j rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q252 Q183
P495
Q838948
USER
Which works of art originated in Germany and Indonesia ?
AND((c(Q838948),P495,Q183), (c(Q838948),P495,Q252))
action filter_type
action intersection
action find_reverse
entity Q183
relation P495
action find_reverse
entity Q252
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P495', 'Q183'], [{'concept': 'Q838948'}, 'P495', 'Q252']]}
SELECT DISTINCT ?b WHERE { ?b property:P495 resource:Q183 . ?b property:P495 resource:Q252 . ?b rdf:type ontology:Q838948 }
Indonesia Germany
action filter_type
action intersection
action find_reverse
entity Germany
relation country of origin
action find_reverse
entity Indonesia
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'country of origin', 'Germany'], [{'concept': 'work of art'}, 'country of origin', 'Indonesia']]}
SELECT DISTINCT ?b WHERE { ?b property:country_of_origin resource:Germany . ?b property:country_of_origin resource:Indonesia . ?b rdf:type ontology:work_of_art }
[]
work of art
Q12485037 Q17586651 Q1381796
SYSTEM
Habibie & Ainun, The Look of Silence, Postcards from the Zoo
Q12485037 Q17586651 Q1381796
AND((c(Q838948),P495,Q183), (c(Q838948),P495,Q252))
action filter_type
action intersection
action find_reverse
entity Q183
relation P495
action find_reverse
entity Q252
relation P495
type Q838948
[ANSWERS] originated in Germany and Indonesia
{'AND': [[{'concept': 'Q838948'}, 'P495', 'Q183'], [{'concept': 'Q838948'}, 'P495', 'Q252']]}
SELECT DISTINCT ?b WHERE { ?b property:P495 resource:Q183 . ?b property:P495 resource:Q252 . ?b rdf:type ontology:Q838948 }
Habibie & Ainun The Look of Silence Postcards from the Zoo
Habibie & Ainun, The Look of Silence and Postcards from the Zoo originated in Germany and Indonesia
Habibie & Ainun The Look of Silence Postcards from the Zoo
action filter_type
action intersection
action find_reverse
entity Germany
relation country of origin
action find_reverse
entity Indonesia
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'country of origin', 'Germany'], [{'concept': 'work of art'}, 'country of origin', 'Indonesia']]}
SELECT DISTINCT ?b WHERE { ?b property:country_of_origin resource:Germany . ?b property:country_of_origin resource:Indonesia . ?b rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3702283 Q183
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are not the countries of citizenship of Danny Kamuchira ?
AND((Q183,P530,c(Q15617994)), NOT((Q3702283,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3702283
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3702283', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Q183 property:P530 ?n . FILTER NOT EXISTS { resource:Q3702283 property:P27 ?n } . ?n rdf:type ontology:Q15617994 }
Danny Kamuchira Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Danny Kamuchira
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Danny Kamuchira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Germany property:diplomatic_relation ?n . FILTER NOT EXISTS { resource:Danny_Kamuchira property:country_of_citizenship ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q1036 Q810 Q232 Q33 Q77 Q38 Q20 Q115 Q774
SYSTEM
Some of them are Brazil, Uganda, Jordan, Kazakhstan, Finland, Uruguay, Italy, Norway, Ethiopia, Guatemala
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q3702283,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3702283
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany and are not the countries of citizenship of Danny Kamuchira
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3702283', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Q183 property:P530 ?n . FILTER NOT EXISTS { resource:Q3702283 property:P27 ?n } . ?n rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Brazil, Uganda, Jordan, Kazakhstan, Finland, Uruguay, Italy, Norway, Ethiopia and Guatemala hold diplomatic relationship with Germany and are not the countries of citizenship of Danny Kamuchira
Brazil Uganda Jordan Kazakhstan Finland Uruguay Italy Norway Ethiopia Guatemala
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Danny Kamuchira
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Danny Kamuchira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?n WHERE { resource:Germany property:diplomatic_relation ?n . FILTER NOT EXISTS { resource:Danny_Kamuchira property:country_of_citizenship ?n } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6126382 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy or are the native countriesof Severiano Pavón ?
OR((Q38,P530,c(Q15617994)), (Q6126382,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q6126382
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q6126382', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q38 property:P530 ?k } UNION { resource:Q6126382 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Severiano Pavón Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Severiano Pavón
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Severiano Pavón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Italy property:diplomatic_relation ?k } UNION { resource:Severiano_Pavón property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39 Q423 Q399 Q155 Q96 Q419 Q233 Q217 Q45 Q733
SYSTEM
Some of them are Switzerland, North Korea, Armenia, Brazil, Mexico, Peru, Malta, Republic of Moldova, Portugal, Paraguay
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q6126382,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q6126382
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with Italy or are the native countriesof Severiano Pavón
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q6126382', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q38 property:P530 ?k } UNION { resource:Q6126382 property:P27 ?k } } . ?k rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Switzerland, North Korea, Armenia, Brazil, Mexico, Peru, Malta, Republic of Moldova, Portugal and Paraguay have diplomatic relationships with Italy or are the native countriesof Severiano Pavón
Switzerland North Korea Armenia Brazil Mexico Peru Malta Republic of Moldova Portugal Paraguay
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Severiano Pavón
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Severiano Pavón', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Italy property:diplomatic_relation ?k } UNION { resource:Severiano_Pavón property:country_of_citizenship ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P710
Q350604 Q1190554
USER
How many armed conflicts and events have that administrative territory as their participant ?
(c(Q350604),P710,Q733) (c(Q1190554),P710,Q733) (c(Q350604),P710,Q39) (c(Q1190554),P710,Q39) (c(Q350604),P710,Q423) (c(Q1190554),P710,Q423) (c(Q350604),P710,Q399) (c(Q1190554),P710,Q399) (c(Q350604),P710,Q155) (c(Q1190554),P710,Q155) (c(Q350604),P710,Q96) (c(Q1190554),P710,Q96) (c(Q350604),P710,Q419) (c(Q1190554),P710,Q419) (c(Q350604),P710,Q233) (c(Q1190554),P710,Q233) (c(Q350604),P710,Q217) (c(Q1190554),P710,Q217) (c(Q350604),P710,Q45) (c(Q1190554),P710,Q45) (c(Q350604),P710,Q733) (c(Q1190554),P710,Q733)
[{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733'] [{'concept': 'Q350604'}, 'P710', 'Q39'] [{'concept': 'Q1190554'}, 'P710', 'Q39'] [{'concept': 'Q350604'}, 'P710', 'Q423'] [{'concept': 'Q1190554'}, 'P710', 'Q423'] [{'concept': 'Q350604'}, 'P710', 'Q399'] [{'concept': 'Q1190554'}, 'P710', 'Q399'] [{'concept': 'Q350604'}, 'P710', 'Q155'] [{'concept': 'Q1190554'}, 'P710', 'Q155'] [{'concept': 'Q350604'}, 'P710', 'Q96'] [{'concept': 'Q1190554'}, 'P710', 'Q96'] [{'concept': 'Q350604'}, 'P710', 'Q419'] [{'concept': 'Q1190554'}, 'P710', 'Q419'] [{'concept': 'Q350604'}, 'P710', 'Q233'] [{'concept': 'Q1190554'}, 'P710', 'Q233'] [{'concept': 'Q350604'}, 'P710', 'Q217'] [{'concept': 'Q1190554'}, 'P710', 'Q217'] [{'concept': 'Q350604'}, 'P710', 'Q45'] [{'concept': 'Q1190554'}, 'P710', 'Q45'] [{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } UNION { ?z property:P710 resource:Q2373348 } UNION { ?y property:P710 resource:Q2373348 } UNION { ?z property:P710 resource:Q423 } UNION { ?y property:P710 resource:Q423 } UNION { ?z property:P710 resource:Q328518 } UNION { ?y property:P710 resource:Q328518 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q2294975 } UNION { ?y property:P710 resource:Q2294975 } UNION { ?z property:P710 resource:Q1758012 } UNION { ?y property:P710 resource:Q1758012 } UNION { ?z property:P710 resource:Q19334248 } UNION { ?y property:P710 resource:Q19334248 } UNION { ?z property:P710 resource:Q217 } UNION { ?y property:P710 resource:Q217 } UNION { ?z property:P710 resource:Q7232531 } UNION { ?y property:P710 resource:Q7232531 } UNION { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } } . ?z rdf:type ontology:Q350604 . ?y rdf:type ontology:Q5416694 }
[{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay'] [{'concept': 'armed conflict'}, 'participant', 'Switzerland'] [{'concept': 'event'}, 'participant', 'Switzerland'] [{'concept': 'armed conflict'}, 'participant', 'North Korea'] [{'concept': 'event'}, 'participant', 'North Korea'] [{'concept': 'armed conflict'}, 'participant', 'Armenia'] [{'concept': 'event'}, 'participant', 'Armenia'] [{'concept': 'armed conflict'}, 'participant', 'Brazil'] [{'concept': 'event'}, 'participant', 'Brazil'] [{'concept': 'armed conflict'}, 'participant', 'Mexico'] [{'concept': 'event'}, 'participant', 'Mexico'] [{'concept': 'armed conflict'}, 'participant', 'Peru'] [{'concept': 'event'}, 'participant', 'Peru'] [{'concept': 'armed conflict'}, 'participant', 'Malta'] [{'concept': 'event'}, 'participant', 'Malta'] [{'concept': 'armed conflict'}, 'participant', 'Republic of Moldova'] [{'concept': 'event'}, 'participant', 'Republic of Moldova'] [{'concept': 'armed conflict'}, 'participant', 'Portugal'] [{'concept': 'event'}, 'participant', 'Portugal'] [{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } UNION { ?z property:participant resource:Switzerland } UNION { ?y property:participant resource:Switzerland } UNION { ?z property:participant resource:North_Korea } UNION { ?y property:participant resource:North_Korea } UNION { ?z property:participant resource:Armenia } UNION { ?y property:participant resource:Armenia } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Mexico } UNION { ?y property:participant resource:Mexico } UNION { ?z property:participant resource:Peru } UNION { ?y property:participant resource:Peru } UNION { ?z property:participant resource:Malta } UNION { ?y property:participant resource:Malta } UNION { ?z property:participant resource:Republic_of_Moldova } UNION { ?y property:participant resource:Republic_of_Moldova } UNION { ?z property:participant resource:Portugal } UNION { ?y property:participant resource:Portugal } UNION { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } } . ?z rdf:type ontology:armed_conflict . ?y rdf:type ontology:event }
[]
armed conflict event
Quantitative|Count|Mult. entity type|Clarification
Q733
SYSTEM
Did you mean Paraguay ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } UNION { ?z property:P710 resource:Q2373348 } UNION { ?y property:P710 resource:Q2373348 } UNION { ?z property:P710 resource:Q423 } UNION { ?y property:P710 resource:Q423 } UNION { ?z property:P710 resource:Q328518 } UNION { ?y property:P710 resource:Q328518 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q2294975 } UNION { ?y property:P710 resource:Q2294975 } UNION { ?z property:P710 resource:Q1758012 } UNION { ?y property:P710 resource:Q1758012 } UNION { ?z property:P710 resource:Q19334248 } UNION { ?y property:P710 resource:Q19334248 } UNION { ?z property:P710 resource:Q217 } UNION { ?y property:P710 resource:Q217 } UNION { ?z property:P710 resource:Q7232531 } UNION { ?y property:P710 resource:Q7232531 } UNION { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } } . ?z rdf:type ontology:Q350604 . ?y rdf:type ontology:Q5416694 }
Did you mean Paraguay ?
Paraguay
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } UNION { ?z property:participant resource:Switzerland } UNION { ?y property:participant resource:Switzerland } UNION { ?z property:participant resource:North_Korea } UNION { ?y property:participant resource:North_Korea } UNION { ?z property:participant resource:Armenia } UNION { ?y property:participant resource:Armenia } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Mexico } UNION { ?y property:participant resource:Mexico } UNION { ?z property:participant resource:Peru } UNION { ?y property:participant resource:Peru } UNION { ?z property:participant resource:Malta } UNION { ?y property:participant resource:Malta } UNION { ?z property:participant resource:Republic_of_Moldova } UNION { ?y property:participant resource:Republic_of_Moldova } UNION { ?z property:participant resource:Portugal } UNION { ?y property:participant resource:Portugal } UNION { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } } . ?z rdf:type ontology:armed_conflict . ?y rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q350604),P710,Q733) (c(Q1190554),P710,Q733) (c(Q350604),P710,Q39) (c(Q1190554),P710,Q39) (c(Q350604),P710,Q423) (c(Q1190554),P710,Q423) (c(Q350604),P710,Q399) (c(Q1190554),P710,Q399) (c(Q350604),P710,Q155) (c(Q1190554),P710,Q155) (c(Q350604),P710,Q96) (c(Q1190554),P710,Q96) (c(Q350604),P710,Q419) (c(Q1190554),P710,Q419) (c(Q350604),P710,Q233) (c(Q1190554),P710,Q233) (c(Q350604),P710,Q217) (c(Q1190554),P710,Q217) (c(Q350604),P710,Q45) (c(Q1190554),P710,Q45) (c(Q350604),P710,Q733) (c(Q1190554),P710,Q733)
[{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733'] [{'concept': 'Q350604'}, 'P710', 'Q39'] [{'concept': 'Q1190554'}, 'P710', 'Q39'] [{'concept': 'Q350604'}, 'P710', 'Q423'] [{'concept': 'Q1190554'}, 'P710', 'Q423'] [{'concept': 'Q350604'}, 'P710', 'Q399'] [{'concept': 'Q1190554'}, 'P710', 'Q399'] [{'concept': 'Q350604'}, 'P710', 'Q155'] [{'concept': 'Q1190554'}, 'P710', 'Q155'] [{'concept': 'Q350604'}, 'P710', 'Q96'] [{'concept': 'Q1190554'}, 'P710', 'Q96'] [{'concept': 'Q350604'}, 'P710', 'Q419'] [{'concept': 'Q1190554'}, 'P710', 'Q419'] [{'concept': 'Q350604'}, 'P710', 'Q233'] [{'concept': 'Q1190554'}, 'P710', 'Q233'] [{'concept': 'Q350604'}, 'P710', 'Q217'] [{'concept': 'Q1190554'}, 'P710', 'Q217'] [{'concept': 'Q350604'}, 'P710', 'Q45'] [{'concept': 'Q1190554'}, 'P710', 'Q45'] [{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733']
[{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay'] [{'concept': 'armed conflict'}, 'participant', 'Switzerland'] [{'concept': 'event'}, 'participant', 'Switzerland'] [{'concept': 'armed conflict'}, 'participant', 'North Korea'] [{'concept': 'event'}, 'participant', 'North Korea'] [{'concept': 'armed conflict'}, 'participant', 'Armenia'] [{'concept': 'event'}, 'participant', 'Armenia'] [{'concept': 'armed conflict'}, 'participant', 'Brazil'] [{'concept': 'event'}, 'participant', 'Brazil'] [{'concept': 'armed conflict'}, 'participant', 'Mexico'] [{'concept': 'event'}, 'participant', 'Mexico'] [{'concept': 'armed conflict'}, 'participant', 'Peru'] [{'concept': 'event'}, 'participant', 'Peru'] [{'concept': 'armed conflict'}, 'participant', 'Malta'] [{'concept': 'event'}, 'participant', 'Malta'] [{'concept': 'armed conflict'}, 'participant', 'Republic of Moldova'] [{'concept': 'event'}, 'participant', 'Republic of Moldova'] [{'concept': 'armed conflict'}, 'participant', 'Portugal'] [{'concept': 'event'}, 'participant', 'Portugal'] [{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay']
[]
SYSTEM
1 armed conflicts and 1 events
Q5722546 Q58947
(c(Q350604),P710,Q733) (c(Q1190554),P710,Q733) (c(Q350604),P710,Q39) (c(Q1190554),P710,Q39) (c(Q350604),P710,Q423) (c(Q1190554),P710,Q423) (c(Q350604),P710,Q399) (c(Q1190554),P710,Q399) (c(Q350604),P710,Q155) (c(Q1190554),P710,Q155) (c(Q350604),P710,Q96) (c(Q1190554),P710,Q96) (c(Q350604),P710,Q419) (c(Q1190554),P710,Q419) (c(Q350604),P710,Q233) (c(Q1190554),P710,Q233) (c(Q350604),P710,Q217) (c(Q1190554),P710,Q217) (c(Q350604),P710,Q45) (c(Q1190554),P710,Q45) (c(Q350604),P710,Q733) (c(Q1190554),P710,Q733)
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733'] [{'concept': 'Q350604'}, 'P710', 'Q39'] [{'concept': 'Q1190554'}, 'P710', 'Q39'] [{'concept': 'Q350604'}, 'P710', 'Q423'] [{'concept': 'Q1190554'}, 'P710', 'Q423'] [{'concept': 'Q350604'}, 'P710', 'Q399'] [{'concept': 'Q1190554'}, 'P710', 'Q399'] [{'concept': 'Q350604'}, 'P710', 'Q155'] [{'concept': 'Q1190554'}, 'P710', 'Q155'] [{'concept': 'Q350604'}, 'P710', 'Q96'] [{'concept': 'Q1190554'}, 'P710', 'Q96'] [{'concept': 'Q350604'}, 'P710', 'Q419'] [{'concept': 'Q1190554'}, 'P710', 'Q419'] [{'concept': 'Q350604'}, 'P710', 'Q233'] [{'concept': 'Q1190554'}, 'P710', 'Q233'] [{'concept': 'Q350604'}, 'P710', 'Q217'] [{'concept': 'Q1190554'}, 'P710', 'Q217'] [{'concept': 'Q350604'}, 'P710', 'Q45'] [{'concept': 'Q1190554'}, 'P710', 'Q45'] [{'concept': 'Q350604'}, 'P710', 'Q733'] [{'concept': 'Q1190554'}, 'P710', 'Q733']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } UNION { ?z property:P710 resource:Q2373348 } UNION { ?y property:P710 resource:Q2373348 } UNION { ?z property:P710 resource:Q423 } UNION { ?y property:P710 resource:Q423 } UNION { ?z property:P710 resource:Q328518 } UNION { ?y property:P710 resource:Q328518 } UNION { ?z property:P710 resource:Q21475816 } UNION { ?y property:P710 resource:Q21475816 } UNION { ?z property:P710 resource:Q2294975 } UNION { ?y property:P710 resource:Q2294975 } UNION { ?z property:P710 resource:Q1758012 } UNION { ?y property:P710 resource:Q1758012 } UNION { ?z property:P710 resource:Q19334248 } UNION { ?y property:P710 resource:Q19334248 } UNION { ?z property:P710 resource:Q217 } UNION { ?y property:P710 resource:Q217 } UNION { ?z property:P710 resource:Q7232531 } UNION { ?y property:P710 resource:Q7232531 } UNION { ?z property:P710 resource:Q417004 } UNION { ?y property:P710 resource:Q417004 } } . ?z rdf:type ontology:Q350604 . ?y rdf:type ontology:Q5416694 }
Battle of Lomas Valentinas War of the Triple Alliance
1 armed conflicts and 1 events
[{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay'] [{'concept': 'armed conflict'}, 'participant', 'Switzerland'] [{'concept': 'event'}, 'participant', 'Switzerland'] [{'concept': 'armed conflict'}, 'participant', 'North Korea'] [{'concept': 'event'}, 'participant', 'North Korea'] [{'concept': 'armed conflict'}, 'participant', 'Armenia'] [{'concept': 'event'}, 'participant', 'Armenia'] [{'concept': 'armed conflict'}, 'participant', 'Brazil'] [{'concept': 'event'}, 'participant', 'Brazil'] [{'concept': 'armed conflict'}, 'participant', 'Mexico'] [{'concept': 'event'}, 'participant', 'Mexico'] [{'concept': 'armed conflict'}, 'participant', 'Peru'] [{'concept': 'event'}, 'participant', 'Peru'] [{'concept': 'armed conflict'}, 'participant', 'Malta'] [{'concept': 'event'}, 'participant', 'Malta'] [{'concept': 'armed conflict'}, 'participant', 'Republic of Moldova'] [{'concept': 'event'}, 'participant', 'Republic of Moldova'] [{'concept': 'armed conflict'}, 'participant', 'Portugal'] [{'concept': 'event'}, 'participant', 'Portugal'] [{'concept': 'armed conflict'}, 'participant', 'Paraguay'] [{'concept': 'event'}, 'participant', 'Paraguay']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } UNION { ?z property:participant resource:Switzerland } UNION { ?y property:participant resource:Switzerland } UNION { ?z property:participant resource:North_Korea } UNION { ?y property:participant resource:North_Korea } UNION { ?z property:participant resource:Armenia } UNION { ?y property:participant resource:Armenia } UNION { ?z property:participant resource:Brazil } UNION { ?y property:participant resource:Brazil } UNION { ?z property:participant resource:Mexico } UNION { ?y property:participant resource:Mexico } UNION { ?z property:participant resource:Peru } UNION { ?y property:participant resource:Peru } UNION { ?z property:participant resource:Malta } UNION { ?y property:participant resource:Malta } UNION { ?z property:participant resource:Republic_of_Moldova } UNION { ?y property:participant resource:Republic_of_Moldova } UNION { ?z property:participant resource:Portugal } UNION { ?y property:participant resource:Portugal } UNION { ?z property:participant resource:Paraguay } UNION { ?y property:participant resource:Paraguay } } . ?z rdf:type ontology:armed_conflict . ?y rdf:type ontology:event }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q15617994 Q838948 Q340169
USER
Which administrative territories are depicted in max number of works of art and medias ?
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?v WHERE { { ?h property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q340169 . ?h property:P180 ?v } } GROUP BY ?v } . FILTER ( ?c = ?l ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?z WHERE { { ?r property:P180 ?z . ?r rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 } UNION { ?r property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q340169 } } GROUP BY ?z } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?v WHERE { { ?h property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:media . ?h property:depicts ?v } } GROUP BY ?v } . FILTER ( ?c = ?l ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?z WHERE { { ?r property:depicts ?z . ?r rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:media } } GROUP BY ?z } } }
[]
designation for an administrative territorial entity work of art media
Q82025
SYSTEM
horn
Q82025
(c(Q838948)|c(Q340169),P180,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
[ANSWER] is depicted in max number of works of art and medias
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?v WHERE { { ?h property:P180 ?v . ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q340169 . ?h property:P180 ?v } } GROUP BY ?v } . FILTER ( ?c = ?l ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?z WHERE { { ?r property:P180 ?z . ?r rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 } UNION { ?r property:P180 ?z . ?z rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q340169 } } GROUP BY ?z } } }
horn
Horn is depicted in max number of works of art and medias
horn
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) ?v WHERE { { ?h property:depicts ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:media . ?h property:depicts ?v } } GROUP BY ?v } . FILTER ( ?c = ?l ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?l ) { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) ?z WHERE { { ?r property:depicts ?z . ?r rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:depicts ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:media } } GROUP BY ?z } } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q82025 Q4342629 Q22970
P17
Q15617994
USER
Is that administrative territory present in Paliki and Lustadt ?
(Q82025,P17,Q4342629) (Q82025,P17,Q22970)
action is_in
entity Q82025
action intersection
action find_reverse
entity Q4342629
relation P17
action find_reverse
entity Q22970
relation P17
['Q82025', 'P17', 'Q4342629'] ['Q82025', 'P17', 'Q22970']
ASK WHERE { resource:Q82025 property:P17 resource:Q4342629 . resource:Q82025 property:P17 resource:Q22970 }
horn Paliki Lustadt
action is_in
entity horn
action intersection
action find_reverse
entity Paliki
relation country
action find_reverse
entity Lustadt
relation country
['horn', 'country', 'Paliki'] ['horn', 'country', 'Lustadt']
ASK WHERE { resource:horn property:country resource:Paliki . resource:horn property:country resource:Lustadt }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q82025,P17,Q4342629) (Q82025,P17,Q22970)
action is_in
entity Q82025
action intersection
action find_reverse
entity Q4342629
relation P17
action find_reverse
entity Q22970
relation P17
[ANSWER]
['Q82025', 'P17', 'Q4342629'] ['Q82025', 'P17', 'Q22970']
ASK WHERE { resource:Q82025 property:P17 resource:Q4342629 . resource:Q82025 property:P17 resource:Q22970 }
No
action is_in
entity horn
action intersection
action find_reverse
entity Paliki
relation country
action find_reverse
entity Lustadt
relation country
['horn', 'country', 'Paliki'] ['horn', 'country', 'Lustadt']
ASK WHERE { resource:horn property:country resource:Paliki . resource:horn property:country resource:Lustadt }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q45
P463
Q43229
USER
How many organizations were Portugal a member of ?
(Q45,P463,c(Q43229))
action count
action filter_type
action find
entity Q45
relation P463
type Q43229
['Q45', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q45 property:P463 ?x . ?x rdf:type ontology:Q43229 }
Portugal
action count
action filter_type
action find
entity Portugal
relation member of
type organization
['Portugal', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Portugal property:member_of ?x . ?x rdf:type ontology:organization }
[]
organization
SYSTEM
9
Q340195 Q191384 Q899770 Q182500 Q7825 Q656801 Q151991 Q41550 Q827525
(Q45,P463,c(Q43229))
action count
action filter_type
action find
entity Q45
relation P463
type Q43229
[ANSWER]
['Q45', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Q45 property:P463 ?x . ?x rdf:type ontology:Q43229 }
African Development Bank International Bank for Reconstruction and Development International Centre for Settlement of Investment Disputes Community of Portuguese Language Countries World Trade Organization International Finance Corporation European Southern Observatory Organisation for Economic Co-operation and Development International Development Association
9
action count
action filter_type
action find
entity Portugal
relation member of
type organization
['Portugal', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?n ) WHERE { resource:Portugal property:member_of ?x . ?x rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P20
Q502895
USER
Which people have Portugal as the location of death ?
(c(Q502895),P20,Q45)
action filter_type
action find_reverse
entity Q45
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q45']
SELECT DISTINCT ?v WHERE { ?v property:P20 resource:Q45 . ?v rdf:type ontology:Q502895 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Portugal']
SELECT DISTINCT ?v WHERE { ?v property:place_of_death resource:Portugal . ?v rdf:type ontology:common_name }
[]
common name
Q2594188 Q272903 Q4794447
SYSTEM
Theresa of Portugal, Queen of León, Afonso IV of Portugal, Arnaldo Silva
Q6173673 Q8076677 Q1644961 Q2386207 Q272903 Q1767640 Q2857760 Q3187281 Q1467938 Q3886455 Q126300 Q3040481 Q5716770 Q20109219 Q1705219 Q716827 Q1678962 Q555770 Q1647901 Q7931015 Q4720917 Q46053 Q6192713 Q5294485 Q2594188 Q226023 Q257001 Q5302093 Q461373 Q4777570 Q8896932 Q2580420 Q343809 Q4794447 Q2666814 Q2402476
(c(Q502895),P20,Q45)
action filter_type
action find_reverse
entity Q45
relation P20
type Q502895
[ANSWERS] have Portugal as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q45']
SELECT DISTINCT ?v WHERE { ?v property:P20 resource:Q45 . ?v rdf:type ontology:Q502895 }
Ángela de Azevedo Álvaro Carolino Raymond Lygo Conny van Rietschoten Afonso IV of Portugal Solomon Alami António Reis João Baptista Martins Fritz Reinhold Holmer Oscar Tarrío W. W. Shols Duarte de Menezes Henrique Viana Susanne Hay Josef Martin Hurka David Berg Jakob Chrysostomus Praetorius Luís Goes Albano Ville Salminen Alexandre de Pontes Clive Dunn Jill Adams Donald Hardman Theresa of Portugal, Queen of León João Tamagnini Barbosa Matilda II, Countess of Boulogne Douglas Wellesley Morrell Sara Pinto Coelho António Jesus Correia Jean de Rouen William Roy Samir Shihabi Arnaldo Silva Saint Ovidius Manuel Vasques
Theresa of Portugal, Queen of León, Afonso IV of Portugal and Arnaldo Silva have Portugal as the location of death
Theresa of Portugal, Queen of León Afonso IV of Portugal Arnaldo Silva
action filter_type
action find_reverse
entity Portugal
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Portugal']
SELECT DISTINCT ?v WHERE { ?v property:place_of_death resource:Portugal . ?v rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q45
P47
Q15617994
USER
Which administrative territory is adjacent to that one ?
(Q2594188,P47,c(Q15617994)) (Q272903,P47,c(Q15617994)) (Q4794447,P47,c(Q15617994))
action filter_type
action find
entity Q45
relation P47
type Q15617994
['Q2594188', 'P47', {'concept': 'Q15617994'}] ['Q272903', 'P47', {'concept': 'Q15617994'}] ['Q4794447', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q45 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Portugal
action filter_type
action find
entity Portugal
relation shares border with
type designation for an administrative territorial entity
['Theresa of Portugal, Queen of León', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Afonso IV of Portugal', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Arnaldo Silva', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Portugal property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q2594188,P47,c(Q15617994)) (Q272903,P47,c(Q15617994)) (Q4794447,P47,c(Q15617994))
action filter_type
action find
entity Q45
relation P47
type Q15617994
[ANSWER] is adjacent to that one
['Q2594188', 'P47', {'concept': 'Q15617994'}] ['Q272903', 'P47', {'concept': 'Q15617994'}] ['Q4794447', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q45 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Spain
Spain is adjacent to that one
Spain
action filter_type
action find
entity Portugal
relation shares border with
type designation for an administrative territorial entity
['Theresa of Portugal, Queen of León', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Afonso IV of Portugal', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Arnaldo Silva', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Portugal property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q41176 Q811979
USER
How many buildings or architectural structures have that administrative territory as their toponym ?
(c(Q41176),P138,Q29) (c(Q811979),P138,Q29) (c(Q41176),P138,Q29) (c(Q811979),P138,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P138
type Q41176
action filter_type
action find_reverse
entity Q29
relation P138
type Q811979
[{'concept': 'Q41176'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q29'] [{'concept': 'Q41176'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q29']
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { ?g rdf:type ontology:Q41176 . ?g property:P138 resource:Q29 } UNION { ?g rdf:type ontology:Q811979 . ?g property:P138 resource:Q29 } }
action count
action union
action filter_type
action find_reverse
entity Spain
relation named after
type building
action filter_type
action find_reverse
entity Spain
relation named after
type architectural structure
[{'concept': 'building'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Spain'] [{'concept': 'building'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Spain']
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { ?g rdf:type ontology:building . ?g property:named_after resource:Spain } UNION { ?g rdf:type ontology:architectural_structure . ?g property:named_after resource:Spain } }
[]
building architectural structure
SYSTEM
4
Q2013874 Q9055890 Q956018 Q1326261
(c(Q41176),P138,Q29) (c(Q811979),P138,Q29) (c(Q41176),P138,Q29) (c(Q811979),P138,Q29)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P138
type Q41176
action filter_type
action find_reverse
entity Q29
relation P138
type Q811979
[ANSWER]
[{'concept': 'Q41176'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q29'] [{'concept': 'Q41176'}, 'P138', 'Q29'] [{'concept': 'Q811979'}, 'P138', 'Q29']
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { ?g rdf:type ontology:Q41176 . ?g property:P138 resource:Q29 } UNION { ?g rdf:type ontology:Q811979 . ?g property:P138 resource:Q29 } }
Plaça d'Espanya Parque de España Plaza de España plaza de España
4
action count
action union
action filter_type
action find_reverse
entity Spain
relation named after
type building
action filter_type
action find_reverse
entity Spain
relation named after
type architectural structure
[{'concept': 'building'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Spain'] [{'concept': 'building'}, 'named after', 'Spain'] [{'concept': 'architectural structure'}, 'named after', 'Spain']
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { ?g rdf:type ontology:building . ?g property:named_after resource:Spain } UNION { ?g rdf:type ontology:architectural_structure . ?g property:named_after resource:Spain } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P937
Q502895
USER
Who is an person who works at Portugal ?
(c(Q502895),P937,Q45)
action filter_type
action find_reverse
entity Q45
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q45']
SELECT DISTINCT ?m WHERE { ?m property:P937 resource:Q45 . ?m rdf:type ontology:Q502895 }
Portugal
action filter_type
action find_reverse
entity Portugal
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Portugal']
SELECT DISTINCT ?m WHERE { ?m property:work_location resource:Portugal . ?m rdf:type ontology:common_name }
[]
common name
Q310870
SYSTEM
Marcelo Caetano
Q310870
(c(Q502895),P937,Q45)
action filter_type
action find_reverse
entity Q45
relation P937
type Q502895
An person works at Portugal is Prince [ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q45']
SELECT DISTINCT ?m WHERE { ?m property:P937 resource:Q45 . ?m rdf:type ontology:Q502895 }
Marcelo Caetano
An person works at Portugal is Prince Marcelo Caetano
Marcelo Caetano
action filter_type
action find_reverse
entity Portugal
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Portugal']
SELECT DISTINCT ?m WHERE { ?m property:work_location resource:Portugal . ?m rdf:type ontology:common_name }
[]