Simple Question (Direct)
Simple Question
Q1366216
P20
Q15617994
USER
Where did the demise of Gustav Riedel occur ?
(Q1366216,P20,c(Q15617994))
action filter_type
action find
entity Q1366216
relation P20
type Q15617994
['Q1366216', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1366216 property:P20 ?l . ?l rdf:type ontology:Q15617994 }
Gustav Riedel
action filter_type
action find
entity Gustav Riedel
relation place of death
type designation for an administrative territorial entity
['Gustav Riedel', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gustav_Riedel property:place_of_death ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q4077
SYSTEM
Görlitz
Q4077
(Q1366216,P20,c(Q15617994))
action filter_type
action find
entity Q1366216
relation P20
type Q15617994
The demise of Gustav Riedel occurred in [ANSWER]
['Q1366216', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q1366216 property:P20 ?l . ?l rdf:type ontology:Q15617994 }
Görlitz
The demise of Gustav Riedel occurred in Görlitz
Görlitz
action filter_type
action find
entity Gustav Riedel
relation place of death
type designation for an administrative territorial entity
['Gustav Riedel', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Gustav_Riedel property:place_of_death ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4077
P276
Q1190554
USER
Which event is located at that administrative territory ?
(c(Q1190554),P276,Q4077)
action filter_type
action find_reverse
entity Q4077
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q4077']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q4077 . ?f rdf:type ontology:Q1190554 }
Görlitz
action filter_type
action find_reverse
entity Görlitz
relation location
type event
[{'concept': 'event'}, 'location', 'Görlitz']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Görlitz . ?f rdf:type ontology:event }
[]
event
Q663524
SYSTEM
Battle of Moys
Q663524
(c(Q1190554),P276,Q4077)
action filter_type
action find_reverse
entity Q4077
relation P276
type Q1190554
[ANSWER] is located at that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q4077']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q4077 . ?f rdf:type ontology:Q1190554 }
Battle of Moys
Battle of Moys is located at that administrative territory
Battle of Moys
action filter_type
action find_reverse
entity Görlitz
relation location
type event
[{'concept': 'event'}, 'location', 'Görlitz']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Görlitz . ?f rdf:type ontology:event }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q1752346 Q11204 Q15617994
USER
Which administrative territories have exactly 1 assemblies and legislatures as their representative body ?
(c(Q15617994),P194,c(Q1752346)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q11204
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?c ) WHERE { { ?j property:P194 ?q . ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1752346 } UNION { ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q11204 . ?j property:P194 ?q } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
action equal
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?c ) WHERE { { ?j property:legislative_body ?q . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:assembly } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:legislature . ?j property:legislative_body ?q } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
[]
assembly legislature designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q805 Q804 Q801 Q800 Q1462 Q1250 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q189 Q786 Q710 Q717 Q1460 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q4628 Q779011 Q889 Q884 Q958 Q12574 Q1965 Q12761 Q242 Q244 Q33 Q31 Q30 Q37 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q1447 Q1282 Q1284 Q3389 Q236 Q747074 Q72449 Q233 Q238 Q12661 Q20 Q1273 Q28 Q29 Q1279 Q1049 Q783 Q184 Q1458 Q228 Q227 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q17 Q902 Q191 Q697 Q298 Q114 Q754 Q750 Q213 Q211 Q214 Q215 Q218 Q219 Q1210 Q917 Q16110 Q736 Q34020 Q686 Q760 Q574 Q79 Q77 Q1222 Q774 Q811 Q1016 Q27 Q1243 Q1013 Q12626 Q672 Q176 Q1952 Q869 Q1237
(c(Q15617994),P194,c(Q1752346)|c(Q11204))
action equal
action union
action find_tuple_counts
relation P194
type Q15617994
type Q1752346
action find_tuple_counts
relation P194
type Q15617994
type Q11204
value 1
[ANSWERS] have exactly 1 assemblies and legislatures as their representative body
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?c ) WHERE { { ?j property:P194 ?q . ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1752346 } UNION { ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q11204 . ?j property:P194 ?q } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
Yemen Panama Israel Costa Rica Sardinia Friuli–Venezia Giulia Peru India Argentina France Netherlands United Kingdom People's Republic of China Iceland Dominican Republic Kiribati Venezuela Sicily Chad South Africa Portugal Turkey Greece Brazil El Salvador Faroe Islands Principality of Montenegro Afghanistan South Korea South Sudan Loiret New Brunswick Seine-Saint-Denis Belize Barbados Finland Belgium United States of America Lithuania Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Apulia Lazio Abruzzo Finistère Montenegro comune of Italy Roccarainola Malta San Marino Nord Norway Tuscany Hungary Spain Marche Sudan Honduras Belarus Calabria Andorra Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Japan Bangladesh Estonia Nauru Chile Kenya Trinidad and Tobago Bolivia Czech Republic Latvia Slovakia Slovenia Romania Bulgaria Lombardy Bhutan region of Italy Ecuador Niue Vanuatu Saint Lucia East Timor Egypt Uruguay Aosta Valley Guatemala Nicaragua Libya Ireland Veneto Lesotho Meurthe-et-Moselle Tuvalu Quebec Nova Scotia Thailand Trentino-South Tyrol
Italy, Brazil and United States of America have exactly 1 assemblies and legislatures as their representative body
Italy Brazil United States of America
action equal
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type assembly
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?c ) WHERE { { ?j property:legislative_body ?q . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:assembly } UNION { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:legislature . ?j property:legislative_body ?q } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q38 Q155 Q30
P30
Q2221906
USER
Which geographic locations are those administrative territories a part of ?
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2221906 . VALUES ( ?m ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?m property:P30 ?p }
Italy Brazil United States of America
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:geographic_location . VALUES ( ?m ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?m property:continent ?p }
[]
geographic location
Q46 Q18 Q49
SYSTEM
Europe, South America, North America
Q46 Q18 Q538 Q49
(Q38,P30,c(Q2221906)) (Q155,P30,c(Q2221906)) (Q30,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
The [ANSWERS] are those administrative territories a part of
['Q38', 'P30', {'concept': 'Q2221906'}] ['Q155', 'P30', {'concept': 'Q2221906'}] ['Q30', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2221906 . VALUES ( ?m ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . ?m property:P30 ?p }
Europe South America Oceania North America
The Europe, South America and North America are those administrative territories a part of
Europe South America North America
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Italy', 'continent', {'concept': 'geographic location'}] ['Brazil', 'continent', {'concept': 'geographic location'}] ['United States of America', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:geographic_location . VALUES ( ?m ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . ?m property:continent ?p }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q46 Q18 Q49
P361
Q2221906
USER
Which geographic locations are Europe, South America and North America a part of ?
(Q46,P361,c(Q2221906)) (Q18,P361,c(Q2221906)) (Q49,P361,c(Q2221906))
action union
action filter_type
action find
entity Q46
relation P361
type Q2221906
action filter_type
action find
entity Q18
relation P361
type Q2221906
action filter_type
action find
entity Q49
relation P361
type Q2221906
['Q46', 'P361', {'concept': 'Q2221906'}] ['Q18', 'P361', {'concept': 'Q2221906'}] ['Q49', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { { resource:Q46 property:P361 ?x . ?x rdf:type ontology:Q2221906 } UNION { resource:Q18 property:P361 ?x . ?x rdf:type ontology:Q2221906 } }
Europe South America North America
action union
action filter_type
action find
entity Europe
relation part of
type geographic location
action filter_type
action find
entity South America
relation part of
type geographic location
action filter_type
action find
entity North America
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}] ['South America', 'part of', {'concept': 'geographic location'}] ['North America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { { resource:Europe property:part_of ?x . ?x rdf:type ontology:geographic_location } UNION { resource:South_America property:part_of ?x . ?x rdf:type ontology:geographic_location } }
[]
geographic location
Q5401 Q828 Q828
SYSTEM
Eurasia for 1st, Americas for 2nd, 3rd
Q5401 Q828 Q828
(Q46,P361,c(Q2221906)) (Q18,P361,c(Q2221906)) (Q49,P361,c(Q2221906))
action union
action filter_type
action find
entity Q46
relation P361
type Q2221906
action filter_type
action find
entity Q18
relation P361
type Q2221906
action filter_type
action find
entity Q49
relation P361
type Q2221906
[ANSWERS]
['Q46', 'P361', {'concept': 'Q2221906'}] ['Q18', 'P361', {'concept': 'Q2221906'}] ['Q49', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { { resource:Q46 property:P361 ?x . ?x rdf:type ontology:Q2221906 } UNION { resource:Q18 property:P361 ?x . ?x rdf:type ontology:Q2221906 } }
Eurasia Americas Americas
Are Eurasia, Americas and Americas are Europe, South America and North America a part of
Eurasia Americas Americas
action union
action filter_type
action find
entity Europe
relation part of
type geographic location
action filter_type
action find
entity South America
relation part of
type geographic location
action filter_type
action find
entity North America
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}] ['South America', 'part of', {'concept': 'geographic location'}] ['North America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { { resource:Europe property:part_of ?x . ?x rdf:type ontology:geographic_location } UNION { resource:South_America property:part_of ?x . ?x rdf:type ontology:geographic_location } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q828
P706
Q2221906
USER
Which geographic location has its location as Americas ?
(c(Q2221906),P706,Q828)
action filter_type
action find_reverse
entity Q828
relation P706
type Q2221906
[{'concept': 'Q2221906'}, 'P706', 'Q828']
SELECT DISTINCT ?u WHERE { ?u property:P706 resource:Q828 . ?u rdf:type ontology:Q2221906 }
Americas
action filter_type
action find_reverse
entity Americas
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Americas']
SELECT DISTINCT ?u WHERE { ?u property:located_on_terrain_feature resource:Americas . ?u rdf:type ontology:geographic_location }
[]
geographic location
Q27353
SYSTEM
Anglo-America
Q27353
(c(Q2221906),P706,Q828)
action filter_type
action find_reverse
entity Q828
relation P706
type Q2221906
As [ANSWER] has its location as Americas
[{'concept': 'Q2221906'}, 'P706', 'Q828']
SELECT DISTINCT ?u WHERE { ?u property:P706 resource:Q828 . ?u rdf:type ontology:Q2221906 }
Anglo-America
As Anglo-America has its location as Americas
Anglo-America
action filter_type
action find_reverse
entity Americas
relation located on terrain feature
type geographic location
[{'concept': 'geographic location'}, 'located on terrain feature', 'Americas']
SELECT DISTINCT ?u WHERE { ?u property:located_on_terrain_feature resource:Americas . ?u rdf:type ontology:geographic_location }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7244372 Q828
P138
Q502895
USER
Which people are namesakes of Americas or Prince of Wales ?
OR((Q828,P138,c(Q502895)), (Q7244372,P138,c(Q502895)))
action filter_type
action union
action find
entity Q828
relation P138
action find
entity Q7244372
relation P138
type Q502895
{'OR': [['Q828', 'P138', {'concept': 'Q502895'}], ['Q7244372', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q828 property:P138 ?h } UNION { resource:Q7244372 property:P138 ?h } } . ?h rdf:type ontology:Q502895 }
Prince of Wales Americas
action filter_type
action union
action find
entity Americas
relation named after
action find
entity Prince of Wales
relation named after
type common name
{'OR': [['Americas', 'named after', {'concept': 'common name'}], ['Prince of Wales', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Americas property:named_after ?h } UNION { resource:Prince_of_Wales property:named_after ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q47674 Q20875
SYSTEM
Amerigo Vespucci, Edward VII
Q47674 Q20875
OR((Q828,P138,c(Q502895)), (Q7244372,P138,c(Q502895)))
action filter_type
action union
action find
entity Q828
relation P138
action find
entity Q7244372
relation P138
type Q502895
[ANSWERS] are namesakes of Americas or Prince of Wales
{'OR': [['Q828', 'P138', {'concept': 'Q502895'}], ['Q7244372', 'P138', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q828 property:P138 ?h } UNION { resource:Q7244372 property:P138 ?h } } . ?h rdf:type ontology:Q502895 }
Amerigo Vespucci Edward VII
Amerigo Vespucci and Edward VII are namesakes of Americas or Prince of Wales
Amerigo Vespucci Edward VII
action filter_type
action union
action find
entity Americas
relation named after
action find
entity Prince of Wales
relation named after
type common name
{'OR': [['Americas', 'named after', {'concept': 'common name'}], ['Prince of Wales', 'named after', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Americas property:named_after ?h } UNION { resource:Prince_of_Wales property:named_after ?h } } . ?h rdf:type ontology:common_name }
[]