Simple Question (Direct)
Simple Question
Q2318799
P734
Q82799
USER
Who is associated with Seiichi Morimura ?
(Q2318799,P734,c(Q82799))
action filter_type
action find
entity Q2318799
relation P734
type Q82799
['Q2318799', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q2318799 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Seiichi Morimura
action filter_type
action find
entity Seiichi Morimura
relation family name
type name
['Seiichi Morimura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Seiichi_Morimura property:family_name ?x . ?x rdf:type ontology:name }
[]
name
Q6912227
SYSTEM
Morimura
Q6912227
(Q2318799,P734,c(Q82799))
action filter_type
action find
entity Q2318799
relation P734
type Q82799
Is [ANSWER] is associated with Seiichi [ANSWER]
['Q2318799', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { resource:Q2318799 property:P734 ?x . ?x rdf:type ontology:Q82799 }
Morimura
Is Morimura is associated with Seiichi Morimura
Morimura
action filter_type
action find
entity Seiichi Morimura
relation family name
type name
['Seiichi Morimura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { resource:Seiichi_Morimura property:family_name ?x . ?x rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2318799
P27
Q15617994
USER
Which administrative territory is the native country of Seiichi Morimura ?
(Q2318799,P27,c(Q15617994))
action filter_type
action find
entity Q2318799
relation P27
type Q15617994
['Q2318799', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q2318799 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Seiichi Morimura
action filter_type
action find
entity Seiichi Morimura
relation country of citizenship
type designation for an administrative territorial entity
['Seiichi Morimura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Seiichi_Morimura property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q2318799,P27,c(Q15617994))
action filter_type
action find
entity Q2318799
relation P27
type Q15617994
In [ANSWER] is the native country of Seiichi Morimura
['Q2318799', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q2318799 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Japan
In Japan is the native country of Seiichi Morimura
Japan
action filter_type
action find
entity Seiichi Morimura
relation country of citizenship
type designation for an administrative territorial entity
['Seiichi Morimura', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Seiichi_Morimura property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2318799
P21
Q290
USER
What is the sex of that person ?
(Q17,P21,c(Q290))
action filter_type
action find
entity Q2318799
relation P21
type Q290
['Q17', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q2318799 property:P21 ?s . ?s rdf:type ontology:Q290 }
Seiichi Morimura
action filter_type
action find
entity Seiichi Morimura
relation gender
type sex
['Japan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Seiichi_Morimura property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17,P21,c(Q290))
action filter_type
action find
entity Q2318799
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q17', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q2318799 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Seiichi Morimura
relation gender
type sex
['Japan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Seiichi_Morimura property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2318799
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2318799
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q2318799 property:P106 ?v }
Seiichi Morimura
action filter_type
action find
entity Seiichi Morimura
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Seiichi_Morimura property:occupation ?v }
[]
occupation
Q36180 Q6625963
SYSTEM
writer, novelist
Q36180 Q6625963
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q2318799
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q2318799 property:P106 ?v }
writer novelist
The professions of that person are writer and novelist
writer novelist
action filter_type
action find
entity Seiichi Morimura
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Seiichi_Morimura property:occupation ?v }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q9402
P921
Q12737077 Q386724 Q732577
USER
How many occupations were the main subjects in the work less number of works and publications than ninja ?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q9402
relation P921
type Q386724
type Q732577
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?s WHERE { { ?s rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 . ?m property:P921 ?s } UNION { ?m property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P921 resource:Q9402 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q732577 } } } } . FILTER ( ?o < ?b ) }
ninja
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity ninja
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?s WHERE { { ?s rdf:type ontology:occupation . ?m rdf:type ontology:work . ?m property:main_subject ?s } UNION { ?m property:main_subject ?s . ?s rdf:type ontology:occupation . ?m rdf:type ontology:publication } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:main_subject resource:ninja . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:publication } } } } . FILTER ( ?o < ?b ) }
[]
occupation work publication
SYSTEM
95
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q9402
relation P921
type Q386724
type Q732577
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?s WHERE { { ?s rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 . ?m property:P921 ?s } UNION { ?m property:P921 ?s . ?s rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q732577 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:P921 resource:Q9402 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q732577 } } } } . FILTER ( ?o < ?b ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
95
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity ninja
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?s WHERE { { ?s rdf:type ontology:occupation . ?m rdf:type ontology:work . ?m property:main_subject ?s } UNION { ?m property:main_subject ?s . ?s rdf:type ontology:occupation . ?m rdf:type ontology:publication } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { ?t property:main_subject resource:ninja . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:publication } } } } . FILTER ( ?o < ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q15320003
P921
Q12737077 Q386724 Q732577
USER
And how about migrant worker?
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q386724
type Q732577
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?d rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P921 resource:Q15320003 . { { ?s rdf:type ontology:Q386724 } UNION { ?s rdf:type ontology:Q732577 } } } } . FILTER ( ?e < ?i ) }
migrant worker
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:publication ) ( ontology:work ) } . ?d rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:main_subject resource:migrant_worker . { { ?s rdf:type ontology:work } UNION { ?s rdf:type ontology:publication } } } } . FILTER ( ?e < ?i ) }
[]
occupation work publication
SYSTEM
95
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16707842
(c(Q386724)|c(Q732577),P921,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q15320003
relation P921
type Q386724
type Q732577
[ANSWER]
[[{'concept': 'Q386724'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:Q732577 ) ( ontology:Q386724 ) } . ?d rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:P921 resource:Q15320003 . { { ?s rdf:type ontology:Q386724 } UNION { ?s rdf:type ontology:Q732577 } } } } . FILTER ( ?e < ?i ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire Member of Parliament in the United Kingdom
95
action count
action less
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action count
action filter_multi_types
action find_reverse
entity migrant worker
relation main subject
type work
type publication
[[{'concept': 'work'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) ?h WHERE { VALUES ( ?o ) { ( ontology:publication ) ( ontology:work ) } . ?d rdf:type ?o } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) WHERE { ?s property:main_subject resource:migrant_worker . { { ?s rdf:type ontology:work } UNION { ?s rdf:type ontology:publication } } } } . FILTER ( ?e < ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P710
Q198
USER
What event did Japan particiate in ?
(c(Q198),P710,Q17)
action filter_type
action find_reverse
entity Q17
relation P710
type Q198
[{'concept': 'Q198'}, 'P710', 'Q17']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q198 . ?s property:P710 resource:Q17 }
Japan
action filter_type
action find_reverse
entity Japan
relation participant
type war
[{'concept': 'war'}, 'participant', 'Japan']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:war . ?s property:participant resource:Japan }
[]
war
Q362
SYSTEM
World War II
Q362
(c(Q198),P710,Q17)
action filter_type
action find_reverse
entity Q17
relation P710
type Q198
Japan particiated in [ANSWER]
[{'concept': 'Q198'}, 'P710', 'Q17']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q198 . ?s property:P710 resource:Q17 }
World War II
Japan particiated in World War II
World War II
action filter_type
action find_reverse
entity Japan
relation participant
type war
[{'concept': 'war'}, 'participant', 'Japan']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:war . ?s property:participant resource:Japan }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q198 Q350604 Q645883
USER
How many wars are around the same number of armed conflicts and military operations a portion of as that war ?
(c(Q350604)|c(Q645883),P361,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_multi_types
action find_reverse
entity Q362
relation P361
type Q350604
type Q645883
[[{'concept': 'Q350604'}, {'concept': 'Q645883'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?c property:P361 resource:Q362 . { VALUES ( ?w ) { ( ontology:Q350604 ) ( ontology:Q645883 ) } . ?c rdf:type ?w } } } . { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?v property:P361 ?e . ?e rdf:type ontology:Q198 . ?v rdf:type ontology:Q350604 } UNION { ?v property:P361 ?e . ?e rdf:type ontology:Q198 . ?v rdf:type ontology:Q645883 } } GROUP BY ?e } }
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_multi_types
action find_reverse
entity World War II
relation part of
type armed conflict
type military operation
[[{'concept': 'armed conflict'}, {'concept': 'military operation'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?c property:part_of resource:World_War_II . { VALUES ( ?w ) { ( ontology:armed_conflict ) ( ontology:military_operation ) } . ?c rdf:type ?w } } } . { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?v property:part_of ?e . ?e rdf:type ontology:war . ?v rdf:type ontology:armed_conflict } UNION { ?v property:part_of ?e . ?e rdf:type ontology:war . ?v rdf:type ontology:military_operation } } GROUP BY ?e } }
[]
war armed conflict military operation
SYSTEM
4
Q8683 Q3778746 Q362 Q8676
(c(Q350604)|c(Q645883),P361,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q350604
action find_reverse_tuple_counts
relation P361
type Q198
type Q645883
action count
action filter_multi_types
action find_reverse
entity Q362
relation P361
type Q350604
type Q645883
[ANSWER]
[[{'concept': 'Q350604'}, {'concept': 'Q645883'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?c property:P361 resource:Q362 . { VALUES ( ?w ) { ( ontology:Q350604 ) ( ontology:Q645883 ) } . ?c rdf:type ?w } } } . { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?v property:P361 ?e . ?e rdf:type ontology:Q198 . ?v rdf:type ontology:Q350604 } UNION { ?v property:P361 ?e . ?e rdf:type ontology:Q198 . ?v rdf:type ontology:Q645883 } } GROUP BY ?e } }
Cold War Sioux Wars World War II American Civil War
4
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type war
type armed conflict
action find_reverse_tuple_counts
relation part of
type war
type military operation
action count
action filter_multi_types
action find_reverse
entity World War II
relation part of
type armed conflict
type military operation
[[{'concept': 'armed conflict'}, {'concept': 'military operation'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { FILTER ( ?y = ?h ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { ?c property:part_of resource:World_War_II . { VALUES ( ?w ) { ( ontology:armed_conflict ) ( ontology:military_operation ) } . ?c rdf:type ?w } } } . { SELECT DISTINCT ?e ( COUNT ( ?v ) AS ?y ) WHERE { { ?v property:part_of ?e . ?e rdf:type ontology:war . ?v rdf:type ontology:armed_conflict } UNION { ?v property:part_of ?e . ?e rdf:type ontology:war . ?v rdf:type ontology:military_operation } } GROUP BY ?e } }
[]