Simple Question (Direct)
Simple Question
Q1465704
P102
Q7210356
USER
Which party does Fritz Bernotat belong to ?
(Q1465704,P102,c(Q7210356))
action filter_type
action find
entity Q1465704
relation P102
type Q7210356
['Q1465704', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q1465704 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Fritz Bernotat
action filter_type
action find
entity Fritz Bernotat
relation member of political party
type political organization
['Fritz Bernotat', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Fritz_Bernotat property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
political organization
Q7320
SYSTEM
Nazi Party
Q7320
(Q1465704,P102,c(Q7210356))
action filter_type
action find
entity Q1465704
relation P102
type Q7210356
Fritz Bernotat belongs to [ANSWER]
['Q1465704', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?t WHERE { resource:Q1465704 property:P102 ?t . ?t rdf:type ontology:Q7210356 }
Nazi Party
Fritz Bernotat belongs to Nazi Party
Nazi Party
action filter_type
action find
entity Fritz Bernotat
relation member of political party
type political organization
['Fritz Bernotat', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?t WHERE { resource:Fritz_Bernotat property:member_of_political_party ?t . ?t rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1465704
P20
Q15617994
USER
Where did that person die ?
(Q7320,P20,c(Q15617994))
action filter_type
action find
entity Q1465704
relation P20
type Q15617994
['Q7320', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1465704 property:P20 ?o . ?o rdf:type ontology:Q15617994 }
Fritz Bernotat
action filter_type
action find
entity Fritz Bernotat
relation place of death
type designation for an administrative territorial entity
['Nazi Party', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Fritz_Bernotat property:place_of_death ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q624122
SYSTEM
Neuhof
Q624122
(Q7320,P20,c(Q15617994))
action filter_type
action find
entity Q1465704
relation P20
type Q15617994
That person died in [ANSWER]
['Q7320', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q1465704 property:P20 ?o . ?o rdf:type ontology:Q15617994 }
Neuhof
That person died in Neuhof
Neuhof
action filter_type
action find
entity Fritz Bernotat
relation place of death
type designation for an administrative territorial entity
['Nazi Party', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Fritz_Bernotat property:place_of_death ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q624122
P19
Q502895
USER
Which people were born at that administrative territory ?
(c(Q502895),P19,Q624122)
action filter_type
action find_reverse
entity Q624122
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q624122']
SELECT DISTINCT ?x WHERE { ?x property:P19 resource:Q624122 . ?x rdf:type ontology:Q502895 }
Neuhof
action filter_type
action find_reverse
entity Neuhof
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Neuhof']
SELECT DISTINCT ?x WHERE { ?x property:place_of_birth resource:Neuhof . ?x rdf:type ontology:common_name }
[]
common name
Q121300 Q1448637 Q2150246
SYSTEM
Aloys Ruppel, Franz Rang, Richard Möller
Q1448637 Q2150246 Q97317 Q121300
(c(Q502895),P19,Q624122)
action filter_type
action find_reverse
entity Q624122
relation P19
type Q502895
[ANSWERS] were born at that administrative territory
[{'concept': 'Q502895'}, 'P19', 'Q624122']
SELECT DISTINCT ?x WHERE { ?x property:P19 resource:Q624122 . ?x rdf:type ontology:Q502895 }
Franz Rang Richard Möller Wilhelm Diegelmann Aloys Ruppel
Aloys Ruppel, Franz Rang and Richard Möller were born at that administrative territory
Aloys Ruppel Franz Rang Richard Möller
action filter_type
action find_reverse
entity Neuhof
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Neuhof']
SELECT DISTINCT ?x WHERE { ?x property:place_of_birth resource:Neuhof . ?x rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q605397 Q1465704
P47 P27
Q1048835
USER
Which political territories do Fritz Bernotat belong to or are bordered by El Padul ?
OR((Q1465704,P27,c(Q1048835)), (Q605397,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1465704
relation P27
action find
entity Q605397
relation P47
type Q1048835
{'OR': [['Q1465704', 'P27', {'concept': 'Q1048835'}], ['Q605397', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1465704 property:P27 ?q } UNION { resource:Q605397 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
El Padul Fritz Bernotat
action filter_type
action union
action find
entity Fritz Bernotat
relation country of citizenship
action find
entity El Padul
relation shares border with
type political territorial entity
{'OR': [['Fritz Bernotat', 'country of citizenship', {'concept': 'political territorial entity'}], ['El Padul', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Fritz_Bernotat property:country_of_citizenship ?q } UNION { resource:El_Padul property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q619842 Q559313 Q564773 Q559839 Q183 Q1631872 Q564780 Q605381
SYSTEM
Villamena, Dílar, Alhendín, Dúrcal, Germany, Jayena, Albuñuelas, Otura
Q619842 Q559313 Q564773 Q559839 Q183 Q1631872 Q564780 Q605381
OR((Q1465704,P27,c(Q1048835)), (Q605397,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1465704
relation P27
action find
entity Q605397
relation P47
type Q1048835
Fritz Bernotat belong to the [ANSWERS]
{'OR': [['Q1465704', 'P27', {'concept': 'Q1048835'}], ['Q605397', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1465704 property:P27 ?q } UNION { resource:Q605397 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Villamena Dílar Alhendín Dúrcal Germany Jayena Albuñuelas Otura
Fritz Bernotat belong to the Villamena, Dílar, Alhendín, Dúrcal, Germany, Jayena, Albuñuelas and Otura
Villamena Dílar Alhendín Dúrcal Germany Jayena Albuñuelas Otura
action filter_type
action union
action find
entity Fritz Bernotat
relation country of citizenship
action find
entity El Padul
relation shares border with
type political territorial entity
{'OR': [['Fritz Bernotat', 'country of citizenship', {'concept': 'political territorial entity'}], ['El Padul', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Fritz_Bernotat property:country_of_citizenship ?q } UNION { resource:El_Padul property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q564773
P47 P17
Q1048835
USER
Which political territories have an adjacent border with Alhendín and are located in Spain ?
AND((c(Q1048835),P47,Q564773), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q564773
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q564773'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q564773 . ?t property:P17 resource:Q29 . ?t rdf:type ontology:Q1048835 }
Spain Alhendín
action filter_type
action intersection
action find_reverse
entity Alhendín
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Alhendín'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Alhendín . ?t property:country resource:Spain . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q583023 Q1631872 Q605381 Q605335 Q574347 Q605397 Q558134 Q574340 Q559286 Q550985
SYSTEM
Some of them are La Malahá, Jayena, Otura, Ogíjares, Gójar, El Padul, Churriana de la Vega, Las Gabias, Escúzar, Armilla
Q558134 Q574340 Q605335 Q574347 Q1631872 Q583023 Q1636706 Q605397 Q550985 Q605381 Q559286
AND((c(Q1048835),P47,Q564773), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q564773
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] have an adjacent border with Alhendín and are located in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q564773'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q564773 . ?t property:P17 resource:Q29 . ?t rdf:type ontology:Q1048835 }
Churriana de la Vega Las Gabias Ogíjares Gójar Jayena La Malahá Agrón El Padul Armilla Otura Escúzar
La Malahá, Jayena, Otura, Ogíjares, Gójar, El Padul, Churriana de la Vega, Las Gabias, Escúzar and Armilla have an adjacent border with Alhendín and are located in Spain
La Malahá Jayena Otura Ogíjares Gójar El Padul Churriana de la Vega Las Gabias Escúzar Armilla
action filter_type
action intersection
action find_reverse
entity Alhendín
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', 'Alhendín'], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Alhendín . ?t property:country resource:Spain . ?t rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with exactly 2 political territories ?
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?u = 2 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?u = 2 ) }
[]
designation for an administrative territorial entity political territorial entity
Q55 Q148 Q17
SYSTEM
Netherlands, People's Republic of China, Japan
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action equal
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
value 2
[ANSWERS] have a diplomatic relationship with exactly 2 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?y property:P530 ?c . ?y rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1048835 } GROUP BY ?y } . FILTER ( ?u = 2 ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands, People's Republic of China and Japan have a diplomatic relationship with exactly 2 political territories
Netherlands People's Republic of China Japan
action equal
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 2
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?u ) WHERE { ?y property:diplomatic_relation ?c . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?y } . FILTER ( ?u = 2 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic relations with those administrative territories ?
(Q408,P530,Q55) (Q408,P530,Q148) (Q408,P530,Q17)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q55'] ['Q408', 'P530', 'Q148'] ['Q408', 'P530', 'Q17']
ASK WHERE { VALUES ( ?d ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q419 ) } . resource:Q408 property:P530 ?d }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Netherlands'] ['Australia', 'diplomatic relation', "People's Republic of China"] ['Australia', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?d ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Peru ) } . resource:Australia property:diplomatic_relation ?d }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q55) (Q408,P530,Q148) (Q408,P530,Q17)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q55'] ['Q408', 'P530', 'Q148'] ['Q408', 'P530', 'Q17']
ASK WHERE { VALUES ( ?d ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q419 ) } . resource:Q408 property:P530 ?d }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Netherlands'] ['Australia', 'diplomatic relation', "People's Republic of China"] ['Australia', 'diplomatic relation', 'Japan']
ASK WHERE { VALUES ( ?d ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Peru ) } . resource:Australia property:diplomatic_relation ?d }
[]