Simple Question (Direct)
Simple Question
Q2401062
P39
Q12737077
USER
What was the position held by Pierre Charles Dejean ?
(Q2401062,P39,c(Q12737077))
action filter_type
action find
entity Q2401062
relation P39
type Q12737077
['Q2401062', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2401062 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Pierre Charles Dejean
action filter_type
action find
entity Pierre Charles Dejean
relation position held
type occupation
['Pierre Charles Dejean', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Pierre_Charles_Dejean property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q19018174
SYSTEM
Minister of War
Q19018174
(Q2401062,P39,c(Q12737077))
action filter_type
action find
entity Q2401062
relation P39
type Q12737077
The position held by Pierre Charles Dejean was the [ANSWER]
['Q2401062', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q2401062 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Minister of War
The position held by Pierre Charles Dejean was the Minister of War
Minister of War
action filter_type
action find
entity Pierre Charles Dejean
relation position held
type occupation
['Pierre Charles Dejean', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Pierre_Charles_Dejean property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2401062
P410
Q4189293
USER
Which title was the military rank held by that person ?
(Q19018174,P410,c(Q4189293))
action filter_type
action find
entity Q2401062
relation P410
type Q4189293
['Q19018174', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?r WHERE { resource:Q2401062 property:P410 ?r . ?r rdf:type ontology:Q4189293 }
Pierre Charles Dejean
action filter_type
action find
entity Pierre Charles Dejean
relation military rank
type title
['Minister of War', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?r WHERE { resource:Pierre_Charles_Dejean property:military_rank ?r . ?r rdf:type ontology:title }
[]
title
Q2487961
SYSTEM
divisional general
Q2487961
(Q19018174,P410,c(Q4189293))
action filter_type
action find
entity Q2401062
relation P410
type Q4189293
Rank [ANSWER] was the military rank held by that person
['Q19018174', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?r WHERE { resource:Q2401062 property:P410 ?r . ?r rdf:type ontology:Q4189293 }
divisional general
Rank divisional general was the military rank held by that person
divisional general
action filter_type
action find
entity Pierre Charles Dejean
relation military rank
type title
['Minister of War', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?r WHERE { resource:Pierre_Charles_Dejean property:military_rank ?r . ?r rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19018174
P17
Q15617994
USER
Which administrative territory does Minister of War belong to ?
(Q19018174,P17,c(Q15617994))
action filter_type
action find
entity Q19018174
relation P17
type Q15617994
['Q19018174', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q19018174 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Minister of War
action filter_type
action find
entity Minister of War
relation country
type designation for an administrative territorial entity
['Minister of War', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Minister_of_War property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q19018174,P17,c(Q15617994))
action filter_type
action find
entity Q19018174
relation P17
type Q15617994
Minister of War belongs to the [ANSWER]
['Q19018174', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q19018174 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
France
Minister of War belongs to the France
France
action filter_type
action find
entity Minister of War
relation country
type designation for an administrative territorial entity
['Minister of War', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Minister_of_War property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1788615
Q15617994
USER
And how about São Geraldo do Baixio?
(Q1788615,P17,c(Q15617994))
action filter_type
action find
entity Q1788615
relation P17
type Q15617994
['Q1788615', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q1788615 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
São Geraldo do Baixio
action filter_type
action find
entity São Geraldo do Baixio
relation country
type designation for an administrative territorial entity
['São Geraldo do Baixio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:São_Geraldo_do_Baixio property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q1788615,P17,c(Q15617994))
action filter_type
action find
entity Q1788615
relation P17
type Q15617994
[ANSWER]
['Q1788615', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q1788615 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Brazil
Brazil
action filter_type
action find
entity São Geraldo do Baixio
relation country
type designation for an administrative territorial entity
['São Geraldo do Baixio', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:São_Geraldo_do_Baixio property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P276
Q350604
USER
Which armed conflict is situated at that administrative territory ?
(c(Q350604),P276,Q155)
action filter_type
action find_reverse
entity Q155
relation P276
type Q350604
[{'concept': 'Q350604'}, 'P276', 'Q155']
SELECT DISTINCT ?j WHERE { ?j property:P276 resource:Q155 . ?j rdf:type ontology:Q350604 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Brazil']
SELECT DISTINCT ?j WHERE { ?j property:location resource:Brazil . ?j rdf:type ontology:armed_conflict }
[]
armed conflict
Q3042463
SYSTEM
Uruguayan War
Q3042463
(c(Q350604),P276,Q155)
action filter_type
action find_reverse
entity Q155
relation P276
type Q350604
[ANSWER] is situated at that administrative territory
[{'concept': 'Q350604'}, 'P276', 'Q155']
SELECT DISTINCT ?j WHERE { ?j property:P276 resource:Q155 . ?j rdf:type ontology:Q350604 }
Uruguayan War
Uruguayan War is situated at that administrative territory
Uruguayan War
action filter_type
action find_reverse
entity Brazil
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'Brazil']
SELECT DISTINCT ?j WHERE { ?j property:location resource:Brazil . ?j rdf:type ontology:armed_conflict }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P47
Q20667921 Q56061
USER
How many french administrative divisions or administrative territories share border with Brazil ?
(Q155,P47,c(Q20667921)) (Q155,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q20667921
action filter_type
action find
entity Q155
relation P47
type Q56061
['Q155', 'P47', {'concept': 'Q20667921'}] ['Q155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { resource:Q155 property:P47 ?k . ?k rdf:type ontology:Q20667921 } UNION { resource:Q155 property:P47 ?k . ?k rdf:type ontology:Q56061 } }
Brazil
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
['Brazil', 'shares border with', {'concept': 'type of french administrative division'}] ['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { resource:Brazil property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brazil property:shares_border_with ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
type of french administrative division administrative territorial entity
SYSTEM
2
Q458 Q3769
(Q155,P47,c(Q20667921)) (Q155,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q155
relation P47
type Q20667921
action filter_type
action find
entity Q155
relation P47
type Q56061
[ANSWER]
['Q155', 'P47', {'concept': 'Q20667921'}] ['Q155', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { resource:Q155 property:P47 ?k . ?k rdf:type ontology:Q20667921 } UNION { resource:Q155 property:P47 ?k . ?k rdf:type ontology:Q56061 } }
European Union French Guiana
2
action count
action union
action filter_type
action find
entity Brazil
relation shares border with
type type of french administrative division
action filter_type
action find
entity Brazil
relation shares border with
type administrative territorial entity
['Brazil', 'shares border with', {'concept': 'type of french administrative division'}] ['Brazil', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { resource:Brazil property:shares_border_with ?k . ?k rdf:type ontology:type_of_french_administrative_division } UNION { resource:Brazil property:shares_border_with ?k . ?k rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q155
P710
Q476300 Q930933
USER
How many competitions or relationships have Brazil as their participant ?
(c(Q476300),P710,Q155) (c(Q930933),P710,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P710
type Q476300
action filter_type
action find_reverse
entity Q155
relation P710
type Q930933
[{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q476300 ) ( ontology:Q930933 ) } }
Brazil
action count
action union
action filter_type
action find_reverse
entity Brazil
relation participant
type competition
action filter_type
action find_reverse
entity Brazil
relation participant
type relationship
[{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:competition ) ( ontology:relationship ) } }
[]
competition relationship
SYSTEM
2
Q9538 Q4825269
(c(Q476300),P710,Q155) (c(Q930933),P710,Q155)
action count
action union
action filter_type
action find_reverse
entity Q155
relation P710
type Q476300
action filter_type
action find_reverse
entity Q155
relation P710
type Q930933
[ANSWER]
[{'concept': 'Q476300'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q155']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:Q476300 ) ( ontology:Q930933 ) } }
South American dreadnought race Australia–Brazil relations
2
action count
action union
action filter_type
action find_reverse
entity Brazil
relation participant
type competition
action filter_type
action find_reverse
entity Brazil
relation participant
type relationship
[{'concept': 'competition'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Brazil']
SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { ?a rdf:type ?q . VALUES ( ?q ) { ( ontology:competition ) ( ontology:relationship ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q936803
P361
Q49447 Q350604 Q350604
USER
How many armed conflicts are parts of around the same number of world views or armed conflicts as First Syrian War (274–271 BCE) ?
(c(Q350604),P361,c(Q49447)|c(Q350604))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q350604
type Q49447
action find_tuple_counts
relation P361
type Q350604
type Q350604
action count
action filter_multi_types
action find
entity Q936803
relation P361
type Q49447
type Q350604
[{'concept': 'Q350604'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?o WHERE { { ?o property:P361 ?x . ?o rdf:type ontology:Q350604 . ?x rdf:type ontology:Q49447 } UNION { ?o property:P361 ?x . ?o rdf:type ontology:Q350604 . ?x rdf:type ontology:Q350604 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q936803 property:P361 ?f . { VALUES ( ?k ) { ( ontology:Q49447 ) ( ontology:Q350604 ) } . ?f rdf:type ?k } } } . FILTER ( ?r = ?y ) }
First Syrian War (274–271 BCE)
action count
action approx
action union
action find_tuple_counts
relation part of
type armed conflict
type world view
action find_tuple_counts
relation part of
type armed conflict
type armed conflict
action count
action filter_multi_types
action find
entity First Syrian War (274–271 BCE)
relation part of
type world view
type armed conflict
[{'concept': 'armed conflict'}, 'part of', [{'concept': 'world view'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?o WHERE { { ?o property:part_of ?x . ?o rdf:type ontology:armed_conflict . ?x rdf:type ontology:world_view } UNION { ?o property:part_of ?x . ?o rdf:type ontology:armed_conflict . ?x rdf:type ontology:armed_conflict } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:First_Syrian_War_(274–271_BCE) property:part_of ?f . { VALUES ( ?k ) { ( ontology:world_view ) ( ontology:armed_conflict ) } . ?f rdf:type ?k } } } . FILTER ( ?r = ?y ) }
[]
world view armed conflict armed conflict
SYSTEM
66
Q5168559 Q3778613 Q3778618 Q699511 Q1968528 Q2259304 Q18920712 Q976827 Q63863 Q4200795 Q260684 Q617350 Q4065191 Q249232 Q1186260 Q550172 Q21693680 Q1418062 Q233663 Q553184 Q617070 Q2602070 Q3540197 Q170314 Q616846 Q1672808 Q690361 Q1362162 Q1072042 Q1355145 Q2471586 Q17324420 Q3984895 Q748780 Q559181 Q617782 Q4122579 Q1429256 Q233702 Q26690200 Q34103 Q5555632 Q80330 Q372330 Q372338 Q83085 Q154697 Q5452958 Q431001 Q34145 Q877450 Q207318 Q120843 Q4207617 Q6744162 Q3042457 Q168442 Q2075775 Q329203 Q29269 Q170682 Q524272 Q936803 Q220878 Q42937 Q15542964
(c(Q350604),P361,c(Q49447)|c(Q350604))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q350604
type Q49447
action find_tuple_counts
relation P361
type Q350604
type Q350604
action count
action filter_multi_types
action find
entity Q936803
relation P361
type Q49447
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?o WHERE { { ?o property:P361 ?x . ?o rdf:type ontology:Q350604 . ?x rdf:type ontology:Q49447 } UNION { ?o property:P361 ?x . ?o rdf:type ontology:Q350604 . ?x rdf:type ontology:Q350604 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:Q936803 property:P361 ?f . { VALUES ( ?k ) { ( ontology:Q49447 ) ( ontology:Q350604 ) } . ?f rdf:type ?k } } } . FILTER ( ?r = ?y ) }
Cophen Campaign Caroline War Lancastrian War Campaigns of 1796 in the French Revolutionary Wars Operation Black Buck Hundred Years' War War in Afghanistan Carnatic Wars Operation Focus Indian campaign of Alexander the Great Alexander's Balkan campaign Third Anglo-Mysore War Anglo-Spanish War (1796–1808) War of the Third Coalition Creek War War of the Breton Succession conflict between Unitarians and Federalists in the Argentine Civil Wars Fourth Syrian War (219–217 BCE) Second Anglo-Mysore War Gaza–Israel conflict First Anglo-Mysore War Colorado War Third English Civil War Second Sino-Japanese War Anglo-Spanish War (1762–1763) Irish Confederate Wars Long War First Carnatic War War in Somalia (2006-2009) Italian War of 1494–1498 Pomeranian War 2014 Israel–Gaza conflict Third Messenian War First Indochina War First Silesian War Fourth Anglo-Mysore War Arikara War War of the League of Cognac Second Silesian War Rutulian War Second Syrian War (260–253 BCE) First Messenian War English Civil War Fifth Syrian War (202–195 BCE) Sixth Syrian War (170–168 BCE) Soviet–Afghan War French and Indian War First English Civil War, 1642 Spanish–Portuguese War Third Syrian War (246–241 BCE) Laotian Civil War French Revolutionary Wars Second Chechen War Balkan campaign of 1529 Mallian Campaign Platine War Anglo-Spanish War (1625–1630) Second Messenian War First Boer War First Chechen War Gaza War South-East Asian theatre of World War II First Syrian War (274–271 BCE) Titanomachy Trojan War Italian War of 1542–46
66
action count
action approx
action union
action find_tuple_counts
relation part of
type armed conflict
type world view
action find_tuple_counts
relation part of
type armed conflict
type armed conflict
action count
action filter_multi_types
action find
entity First Syrian War (274–271 BCE)
relation part of
type world view
type armed conflict
[{'concept': 'armed conflict'}, 'part of', [{'concept': 'world view'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?o WHERE { { ?o property:part_of ?x . ?o rdf:type ontology:armed_conflict . ?x rdf:type ontology:world_view } UNION { ?o property:part_of ?x . ?o rdf:type ontology:armed_conflict . ?x rdf:type ontology:armed_conflict } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { resource:First_Syrian_War_(274–271_BCE) property:part_of ?f . { VALUES ( ?k ) { ( ontology:world_view ) ( ontology:armed_conflict ) } . ?f rdf:type ?k } } } . FILTER ( ?r = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q553157
P361
Q49447 Q350604 Q350604
USER
And also tell me about Romania during World War I?
(c(Q350604),P361,c(Q49447)|c(Q350604))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q350604
type Q49447
action find_tuple_counts
relation P361
type Q350604
type Q350604
action count
action filter_multi_types
action find
entity Q553157
relation P361
type Q49447
type Q350604
[{'concept': 'Q350604'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?d WHERE { { ?d property:P361 ?f . ?d rdf:type ontology:Q350604 . ?f rdf:type ontology:Q49447 } UNION { ?d property:P361 ?f . ?d rdf:type ontology:Q350604 . ?f rdf:type ontology:Q350604 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Q553157 property:P361 ?a . { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:Q49447 ) ( ontology:Q350604 ) } } } } . FILTER ( ?n = ?u ) }
Romania during World War I
action count
action approx
action union
action find_tuple_counts
relation part of
type armed conflict
type world view
action find_tuple_counts
relation part of
type armed conflict
type armed conflict
action count
action filter_multi_types
action find
entity Romania during World War I
relation part of
type world view
type armed conflict
[{'concept': 'armed conflict'}, 'part of', [{'concept': 'world view'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?d WHERE { { ?d property:part_of ?f . ?d rdf:type ontology:armed_conflict . ?f rdf:type ontology:world_view } UNION { ?d property:part_of ?f . ?d rdf:type ontology:armed_conflict . ?f rdf:type ontology:armed_conflict } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Romania_during_World_War_I property:part_of ?a . { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:world_view ) ( ontology:armed_conflict ) } } } } . FILTER ( ?n = ?u ) }
[]
world view armed conflict armed conflict
SYSTEM
84
Q1044829 Q184425 Q1305130 Q196409 Q68969 Q154940 Q5557072 Q190029 Q6334 Q2373506 Q381375 Q49077 Q430053 Q122100 Q7572892 Q75665 Q2652686 Q58947 Q17272643 Q49097 Q134949 Q989092 Q552373 Q252298 Q2060306 Q317519 Q8740 Q181533 Q18586347 Q4072719 Q233642 Q2576016 Q2667645 Q23403028 Q199955 Q631163 Q8064768 Q6286 Q1851858 Q178687 Q12583 Q16933898 Q322607 Q3042463 Q11942758 Q1249270 Q17126147 Q1891008 Q404517 Q19686631 Q6271 Q2915510 Q418151 Q179250 Q631799 Q2487361 Q3242848 Q598774 Q1967193 Q76118 Q75626 Q16335075 Q189266 Q2523742 Q7210108 Q1249250 Q400465 Q2985977 Q233553 Q8628 Q1074467 Q6254 Q12846172 Q644589 Q74109 Q177918 Q288251 Q1669192 Q553157 Q1262084 Q21900262 Q1757301 Q49100 Q151622
(c(Q350604),P361,c(Q49447)|c(Q350604))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q350604
type Q49447
action find_tuple_counts
relation P361
type Q350604
type Q350604
action count
action filter_multi_types
action find
entity Q553157
relation P361
type Q49447
type Q350604
[ANSWER]
[{'concept': 'Q350604'}, 'P361', [{'concept': 'Q49447'}, {'concept': 'Q350604'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?d WHERE { { ?d property:P361 ?f . ?d rdf:type ontology:Q350604 . ?f rdf:type ontology:Q49447 } UNION { ?d property:P361 ?f . ?d rdf:type ontology:Q350604 . ?f rdf:type ontology:Q350604 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Q553157 property:P361 ?a . { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:Q49447 ) ( ontology:Q350604 ) } } } } . FILTER ( ?n = ?u ) }
Polish–Muscovite War Pacific War War of Saint Sabas Livonian Crusade Croatian War of Independence Lapland War Ghost Dance War Kosovo War Third Punic War Polish–Swedish War (1617-18) Nagorno-Karabakh War Six-Day War Great Sioux War of 1876 Continuation War Spain in the American Revolutionary War Second Macedonian War Kachin conflict War of the Triple Alliance spillover of the Syrian Civil War 1948 Palestine war Winter War First Anglo-Afghan War Fourth Macedonian War Hungarian–Romanian war of 1919 Red Cloud's War Muslim conquest of Egypt Vietnam War Bosnian War First Soviet-Finnish War Afghanistan–Pakistan skirmishes Second Anglo-Maratha War Anastasian War Mongol invasion of Poland Hīt offensive Hundred Days Deluge Zaian War First Punic War Dakota War of 1862 First Sino-Japanese War Spanish–American War Normandy campaigns of 1200–1204 War of Attrition Uruguayan War Ethiopian-Somali border conflict Third Sacred War Arab–Israeli wars Sand War Kargil War Yemeni Civil War Second Punic War 2009 Sudan airstrikes Second Opium War French invasion of Russia Russo-Turkish War Frans van Brederode's rebellion of 1488–1490 First War of Scottish Independence Polish–Swedish War (1600–11) Second conflict in the Goryeo–Khitan War Third Macedonian War First Macedonian War War in Donbass Eastern Front Fourth French War of Religion Polish–Swedish War (1621–25) First Sacred War Little War Polish–Swedish War (1626–29) Second Sacred War War in the Vendée War of Chioggia Kitos War Safavid-Ottoman War (1616-1618) Toyota War Albanian resistance during World War II First Balkan War Cisplatine War Fourth Sacred War Romania during World War I Djiboutian Civil War Bombing of Miskolc submarine warfare Yom Kippur War Israeli–Palestinian conflict
84
action count
action approx
action union
action find_tuple_counts
relation part of
type armed conflict
type world view
action find_tuple_counts
relation part of
type armed conflict
type armed conflict
action count
action filter_multi_types
action find
entity Romania during World War I
relation part of
type world view
type armed conflict
[{'concept': 'armed conflict'}, 'part of', [{'concept': 'world view'}, {'concept': 'armed conflict'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) ?d WHERE { { ?d property:part_of ?f . ?d rdf:type ontology:armed_conflict . ?f rdf:type ontology:world_view } UNION { ?d property:part_of ?f . ?d rdf:type ontology:armed_conflict . ?f rdf:type ontology:armed_conflict } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Romania_during_World_War_I property:part_of ?a . { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:world_view ) ( ontology:armed_conflict ) } } } } . FILTER ( ?n = ?u ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5294080 Q2401062
P19
Q56061
USER
Which administrative territories are the birthplace of Pierre Charles Dejean or Donald Brumfield ?
OR((Q2401062,P19,c(Q56061)), (Q5294080,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2401062
relation P19
action find
entity Q5294080
relation P19
type Q56061
{'OR': [['Q2401062', 'P19', {'concept': 'Q56061'}], ['Q5294080', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . { VALUES ( ?q ) { ( resource:Q2401062 ) ( resource:Q5294080 ) } . ?q property:P19 ?d } }
Donald Brumfield Pierre Charles Dejean
action filter_type
action union
action find
entity Pierre Charles Dejean
relation place of birth
action find
entity Donald Brumfield
relation place of birth
type administrative territorial entity
{'OR': [['Pierre Charles Dejean', 'place of birth', {'concept': 'administrative territorial entity'}], ['Donald Brumfield', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . { VALUES ( ?q ) { ( resource:Pierre_Charles_Dejean ) ( resource:Donald_Brumfield ) } . ?q property:place_of_birth ?d } }
[]
administrative territorial entity
Q90 Q988752
SYSTEM
Paris, Nicholasville
Q90 Q988752
OR((Q2401062,P19,c(Q56061)), (Q5294080,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2401062
relation P19
action find
entity Q5294080
relation P19
type Q56061
[ANSWERS] are the birthplace of Pierre Charles Dejean or Donald Brumfield
{'OR': [['Q2401062', 'P19', {'concept': 'Q56061'}], ['Q5294080', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . { VALUES ( ?q ) { ( resource:Q2401062 ) ( resource:Q5294080 ) } . ?q property:P19 ?d } }
Paris Nicholasville
Paris and Nicholasville are the birthplace of Pierre Charles Dejean or Donald Brumfield
Paris Nicholasville
action filter_type
action union
action find
entity Pierre Charles Dejean
relation place of birth
action find
entity Donald Brumfield
relation place of birth
type administrative territorial entity
{'OR': [['Pierre Charles Dejean', 'place of birth', {'concept': 'administrative territorial entity'}], ['Donald Brumfield', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . { VALUES ( ?q ) { ( resource:Pierre_Charles_Dejean ) ( resource:Donald_Brumfield ) } . ?q property:place_of_birth ?d } }
[]