Simple Question (Direct)
Simple Question
Q5661909
P166
Q618779
USER
Which award was received by Harold O. Messerschmidt ?
(Q5661909,P166,c(Q618779))
action filter_type
action find
entity Q5661909
relation P166
type Q618779
['Q5661909', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q5661909 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Harold O. Messerschmidt
action filter_type
action find
entity Harold O. Messerschmidt
relation award received
type award
['Harold O. Messerschmidt', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Harold_O._Messerschmidt property:award_received ?w . ?w rdf:type ontology:award }
[]
award
Q203535
SYSTEM
Medal of Honor
Q203535
(Q5661909,P166,c(Q618779))
action filter_type
action find
entity Q5661909
relation P166
type Q618779
The [ANSWER] was received by Harold O. Messerschmidt
['Q5661909', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?w WHERE { resource:Q5661909 property:P166 ?w . ?w rdf:type ontology:Q618779 }
Medal of Honor
The Medal of Honor was received by Harold O. Messerschmidt
Medal of Honor
action filter_type
action find
entity Harold O. Messerschmidt
relation award received
type award
['Harold O. Messerschmidt', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?w WHERE { resource:Harold_O._Messerschmidt property:award_received ?w . ?w rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5661909
P21
Q290
USER
Which sex does Harold O. Messerschmidt have ?
(Q5661909,P21,c(Q290))
action filter_type
action find
entity Q5661909
relation P21
type Q290
['Q5661909', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q5661909 property:P21 ?t }
Harold O. Messerschmidt
action filter_type
action find
entity Harold O. Messerschmidt
relation gender
type sex
['Harold O. Messerschmidt', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Harold_O._Messerschmidt property:gender ?t }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5661909,P21,c(Q290))
action filter_type
action find
entity Q5661909
relation P21
type Q290
Harold O. Messerschmidt has one [ANSWER]
['Q5661909', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q5661909 property:P21 ?t }
male
Harold O. Messerschmidt has one male
male
action filter_type
action find
entity Harold O. Messerschmidt
relation gender
type sex
['Harold O. Messerschmidt', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Harold_O._Messerschmidt property:gender ?t }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q16264060
P21
Q502895
USER
Does Nanako Ishido have the gender as that sex ?
(Q16264060,P21,Q6581097)
action is_in
entity Q16264060
action find
entity Q6581097
relation P21
['Q16264060', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q16264060 }
male Nanako Ishido
action is_in
entity Nanako Ishido
action find
entity male
relation gender
['Nanako Ishido', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Nanako_Ishido }
[]
common name
SYSTEM
NO
(Q16264060,P21,Q6581097)
action is_in
entity Q16264060
action find
entity Q6581097
relation P21
[ANSWER]
['Q16264060', 'P21', 'Q6581097']
ASK WHERE { resource:Q6581097 property:P21 resource:Q16264060 }
No
action is_in
entity Nanako Ishido
action find
entity male
relation gender
['Nanako Ishido', 'gender', 'male']
ASK WHERE { resource:male property:gender resource:Nanako_Ishido }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5661909
P241
Q781132
USER
Which military branch contains Harold O. Messerschmidt as its part ?
(Q5661909,P241,c(Q781132))
action filter_type
action find
entity Q5661909
relation P241
type Q781132
['Q5661909', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q5661909 property:P241 ?w . ?w rdf:type ontology:Q781132 }
Harold O. Messerschmidt
action filter_type
action find
entity Harold O. Messerschmidt
relation military branch
type military branch
['Harold O. Messerschmidt', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Harold_O._Messerschmidt property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q5661909,P241,c(Q781132))
action filter_type
action find
entity Q5661909
relation P241
type Q781132
U [ANSWER] contains Harold O. Messerschmidt as its part
['Q5661909', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q5661909 property:P241 ?w . ?w rdf:type ontology:Q781132 }
United States Army
U United States Army contains Harold O. Messerschmidt as its part
United States Army
action filter_type
action find
entity Harold O. Messerschmidt
relation military branch
type military branch
['Harold O. Messerschmidt', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Harold_O._Messerschmidt property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6253127
Q781132
USER
And what about John Pomeroy?
(Q6253127,P241,c(Q781132))
action filter_type
action find
entity Q6253127
relation P241
type Q781132
['Q6253127', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q6253127 property:P241 ?m . ?m rdf:type ontology:Q781132 }
John Pomeroy
action filter_type
action find
entity John Pomeroy
relation military branch
type military branch
['John Pomeroy', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:John_Pomeroy property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q6253127,P241,c(Q781132))
action filter_type
action find
entity Q6253127
relation P241
type Q781132
[ANSWER]
['Q6253127', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q6253127 property:P241 ?m . ?m rdf:type ontology:Q781132 }
British Army
British Army
action filter_type
action find
entity John Pomeroy
relation military branch
type military branch
['John Pomeroy', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:John_Pomeroy property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6253127
P106
Q12737077
USER
What is the profession of that person ?
(Q222595,P106,c(Q12737077))
action filter_type
action find
entity Q6253127
relation P106
type Q12737077
['Q222595', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6253127 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
John Pomeroy
action filter_type
action find
entity John Pomeroy
relation occupation
type occupation
['British Army', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:John_Pomeroy property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q222595,P106,c(Q12737077))
action filter_type
action find
entity Q6253127
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q222595', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q6253127 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
politician
The profession of that person is a politician
politician
action filter_type
action find
entity John Pomeroy
relation occupation
type occupation
['British Army', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:John_Pomeroy property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q781132 Q12737077 Q874405
USER
Which military branches are around 1 occupations and social groups a part of ?
(c(Q12737077)|c(Q874405),P361,c(Q781132))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q12737077
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
value 1
[[{'concept': 'Q12737077'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:P361 ?e . ?e rdf:type ontology:Q781132 . ?s rdf:type ontology:Q874405 } UNION { ?s property:P361 ?e . ?e rdf:type ontology:Q781132 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?e } }
action approx
action union
action find_reverse_tuple_counts
relation part of
type military branch
type occupation
action find_reverse_tuple_counts
relation part of
type military branch
type social group
value 1
[[{'concept': 'occupation'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:part_of ?e . ?e rdf:type ontology:military_branch . ?s rdf:type ontology:social_group } UNION { ?s property:part_of ?e . ?e rdf:type ontology:military_branch . ?s rdf:type ontology:occupation } } GROUP BY ?e } }
[]
military branch occupation social group
Q781360 Q741691 Q1046947
SYSTEM
Australian Army, Royal Australian Navy, Royal Marines
Q222595 Q1046947 Q1067064 Q781360 Q25387 Q741691 Q9212
(c(Q12737077)|c(Q874405),P361,c(Q781132))
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q12737077
action find_reverse_tuple_counts
relation P361
type Q781132
type Q874405
value 1
[ANSWERS] are around 1 occupations and social groups a part of
[[{'concept': 'Q12737077'}, {'concept': 'Q874405'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:P361 ?e . ?e rdf:type ontology:Q781132 . ?s rdf:type ontology:Q874405 } UNION { ?s property:P361 ?e . ?e rdf:type ontology:Q781132 . ?s rdf:type ontology:Q12737077 } } GROUP BY ?e } }
British Army Royal Marines United States Special Operations Command Australian Army Royal Canadian Navy Royal Australian Navy United States Army
Australian Army, Royal Australian Navy and Royal Marines are around 1 occupations and social groups a part of
Australian Army Royal Australian Navy Royal Marines
action approx
action union
action find_reverse_tuple_counts
relation part of
type military branch
type occupation
action find_reverse_tuple_counts
relation part of
type military branch
type social group
value 1
[[{'concept': 'occupation'}, {'concept': 'social group'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?e WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?f ) WHERE { { ?s property:part_of ?e . ?e rdf:type ontology:military_branch . ?s rdf:type ontology:social_group } UNION { ?s property:part_of ?e . ?e rdf:type ontology:military_branch . ?s rdf:type ontology:occupation } } GROUP BY ?e } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q781132 Q2235308 Q895526
USER
Which military branches are atmost 5 ship types and authority organs a portion of ?
(c(Q2235308)|c(Q895526),P361,c(Q781132))
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q2235308
action find_reverse_tuple_counts
relation P361
type Q781132
type Q895526
value 5
[[{'concept': 'Q2235308'}, {'concept': 'Q895526'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?i WHERE { VALUES ( ?r ) { ( ontology:Q2235308 ) ( ontology:Q895526 ) } . ?p rdf:type ?r } GROUP BY ?i } . FILTER ( ?x <= 5 ) }
action atmost
action union
action find_reverse_tuple_counts
relation part of
type military branch
type ship type
action find_reverse_tuple_counts
relation part of
type military branch
type authority organ
value 5
[[{'concept': 'ship type'}, {'concept': 'authority organ'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?i WHERE { VALUES ( ?r ) { ( ontology:ship_type ) ( ontology:authority_organ ) } . ?p rdf:type ?r } GROUP BY ?i } . FILTER ( ?x <= 5 ) }
[]
military branch ship type authority organ
Q276538 Q2862927 Q706042
SYSTEM
Eurocorps, Indonesian Army, Prussian Army
Q16056518 Q23905126 Q222595 Q56015 Q210606 Q1799545 Q2328515 Q483268 Q1114493 Q1815399 Q3068744 Q11220 Q1046947 Q701923 Q1078222 Q2078095 Q676404 Q5555333 Q313422 Q9160892 Q2558747 Q19344622 Q311689 Q248989 Q642932 Q1038047 Q833040 Q4117226 Q217406 Q2575188 Q488756 Q156649 Q1546449 Q1067064 Q889751 Q781360 Q2492012 Q2862927 Q2749588 Q4447359 Q1652708 Q19247539 Q1951484 Q276535 Q1750688 Q276538 Q272110 Q796411 Q56012 Q7275540 Q208711 Q1076619 Q897614 Q6479134 Q11322507 Q2292358 Q151701 Q11218 Q2301347 Q167682 Q2383264 Q18643350 Q465283 Q2384177 Q1124986 Q25436 Q1358152 Q2258261 Q4447363 Q9212 Q355771 Q18129370 Q1753805 Q731647 Q706042 Q2630039 Q219712 Q706996 Q1674702 Q1370395
(c(Q2235308)|c(Q895526),P361,c(Q781132))
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q2235308
action find_reverse_tuple_counts
relation P361
type Q781132
type Q895526
value 5
[ANSWERS] are atmost 5 ship types and authority organs a portion of
[[{'concept': 'Q2235308'}, {'concept': 'Q895526'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?i WHERE { VALUES ( ?r ) { ( ontology:Q2235308 ) ( ontology:Q895526 ) } . ?p rdf:type ?r } GROUP BY ?i } . FILTER ( ?x <= 5 ) }
Nepalese Army Slovak Army British Army German Navy 2nd Marine Division Philippine Army Belize Defence Force Republic of Korea Army Roman army South African Army Syrian Arab Army United States Navy Royal Marines German Army Imperial Russian Army Pakistan Army Spanish Navy Ghana Army German Army fortress artillery Romanian Land Forces naval reserve force Royal Hungarian Army Polish Land Forces Indian Army Irish Army Italian Navy Royal Jordanian Land Force French Navy Royal Danish Army Republic of Korea Navy Imperial German Navy Hellenic Army United States Special Operations Command Japan Ground Self-Defense Force Australian Army Swedish Army Indonesian Army Royal Thai Army Austrian Land Forces South African Navy Ottoman Army Georgian Land Forces Imperial Japanese Army Brazilian Navy Eurocorps Yugoslav People's Army Italian Army German Army RAF Regiment Chilean Navy French Army Iraqi Army Egyptian Army German Army Brazilian Army Kriegsmarine United States Marine Corps Argentine Army rocket artillery Finnish Army Islamic Republic of Iran Ground Force Russian Navy Norwegian Army Confederate States Navy Canadian Army Korean People's Army Ground Force Pakistan Navy Lebanese Ground Forces United States Army Indian Army Philippine Commonwealth Army Croatian Army Japan Maritime Self-Defense Force Prussian Army New Zealand Army Imperial Japanese Navy Southern Expeditionary Army Group GOC Army Headquarters Estonian Land Forces
Eurocorps, Indonesian Army and Prussian Army are atmost 5 ship types and authority organs a portion of
Eurocorps Indonesian Army Prussian Army
action atmost
action union
action find_reverse_tuple_counts
relation part of
type military branch
type ship type
action find_reverse_tuple_counts
relation part of
type military branch
type authority organ
value 5
[[{'concept': 'ship type'}, {'concept': 'authority organ'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) ?i WHERE { VALUES ( ?r ) { ( ontology:ship_type ) ( ontology:authority_organ ) } . ?p rdf:type ?r } GROUP BY ?i } . FILTER ( ?x <= 5 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q178706 Q895526 Q12737077
USER
Which occupations were appointed by max number of institutions and authority organs ?
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?d ) WHERE { { ?c property:P748 ?y . ?y rdf:type ontology:Q178706 . ?c rdf:type ontology:Q12737077 } UNION { ?c property:P748 ?y . ?c rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q895526 } } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?u ) WHERE { { ?i property:P748 ?r . ?i rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q178706 } UNION { ?i rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q895526 . ?i property:P748 ?r } } GROUP BY ?i } . FILTER ( ?u = ?z ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?d ) WHERE { { ?c property:appointed_by ?y . ?y rdf:type ontology:institution . ?c rdf:type ontology:occupation } UNION { ?c property:appointed_by ?y . ?c rdf:type ontology:occupation . ?y rdf:type ontology:authority_organ } } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?u ) WHERE { { ?i property:appointed_by ?r . ?i rdf:type ontology:occupation . ?r rdf:type ontology:institution } UNION { ?i rdf:type ontology:occupation . ?r rdf:type ontology:authority_organ . ?i property:appointed_by ?r } } GROUP BY ?i } . FILTER ( ?u = ?z ) }
[]
institution authority organ occupation
Q81066 Q25863345 Q967750
SYSTEM
United Nations Secretary-General, Secretary of State for International Trade, United States Secretary of Labor
Q2666591 Q1072417 Q2287650 Q5333410 Q261746 Q740126 Q1029955 Q642859 Q967762 Q1161813 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q13645132 Q636207 Q2003296 Q967750 Q8882 Q783785 Q1072415 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q6542448 Q2301213 Q634291 Q735587 Q81066 Q1658460 Q786242 Q1434880
(c(Q12737077),P748,c(Q178706)|c(Q895526))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q895526
[ANSWERS] were appointed by max number of institutions and authority organs
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?d ) WHERE { { ?c property:P748 ?y . ?y rdf:type ontology:Q178706 . ?c rdf:type ontology:Q12737077 } UNION { ?c property:P748 ?y . ?c rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q895526 } } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?u ) WHERE { { ?i property:P748 ?r . ?i rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q178706 } UNION { ?i rdf:type ontology:Q12737077 . ?r rdf:type ontology:Q895526 . ?i property:P748 ?r } } GROUP BY ?i } . FILTER ( ?u = ?z ) }
Chair of the Federal Reserve Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force President of the European Parliament United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education President of the United Nations General Assembly United States Secretary of the Navy United States Secretary of Health and Human Services Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor President of the European Commission Chief of Staff of the United States Army Chief of Naval Operations Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation Librarian of Congress United States Deputy Secretary of State High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General United States Secretary of Veterans Affairs White House Chief of Staff Surgeon General of the United States
United Nations Secretary-General, Secretary of State for International Trade and United States Secretary of Labor were appointed by max number of institutions and authority organs
United Nations Secretary-General Secretary of State for International Trade United States Secretary of Labor
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?z ) { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?d ) WHERE { { ?c property:appointed_by ?y . ?y rdf:type ontology:institution . ?c rdf:type ontology:occupation } UNION { ?c property:appointed_by ?y . ?c rdf:type ontology:occupation . ?y rdf:type ontology:authority_organ } } GROUP BY ?c } } . { SELECT DISTINCT ?i ( COUNT ( ?r ) AS ?u ) WHERE { { ?i property:appointed_by ?r . ?i rdf:type ontology:occupation . ?r rdf:type ontology:institution } UNION { ?i rdf:type ontology:occupation . ?r rdf:type ontology:authority_organ . ?i property:appointed_by ?r } } GROUP BY ?i } . FILTER ( ?u = ?z ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q781132 Q176799 Q781132
USER
Which military branches are exactly 3 military units or military branches a portion of ?
(c(Q176799)|c(Q781132),P361,c(Q781132))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
value 3
[[{'concept': 'Q176799'}, {'concept': 'Q781132'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q781132 ) ( ontology:Q176799 ) } . ?o rdf:type ?k } GROUP BY ?t } }
action equal
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
value 3
[[{'concept': 'military unit'}, {'concept': 'military branch'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?t WHERE { VALUES ( ?k ) { ( ontology:military_branch ) ( ontology:military_unit ) } . ?o rdf:type ?k } GROUP BY ?t } }
[]
military branch military unit military branch
Q701923 Q1750688
SYSTEM
German Army, Brazilian Navy
Q701923 Q1750688
(c(Q176799)|c(Q781132),P361,c(Q781132))
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q781132
type Q176799
action find_reverse_tuple_counts
relation P361
type Q781132
type Q781132
value 3
[ANSWERS] are exactly 3 military units or military branches a portion of
[[{'concept': 'Q176799'}, {'concept': 'Q781132'}], 'P361', {'concept': 'Q781132'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q781132 ) ( ontology:Q176799 ) } . ?o rdf:type ?k } GROUP BY ?t } }
German Army Brazilian Navy
German Army and Brazilian Navy are exactly 3 military units or military branches a portion of
German Army Brazilian Navy
action equal
action union
action find_reverse_tuple_counts
relation part of
type military branch
type military unit
action find_reverse_tuple_counts
relation part of
type military branch
type military branch
value 3
[[{'concept': 'military unit'}, {'concept': 'military branch'}], 'part of', {'concept': 'military branch'}]
SELECT DISTINCT ?t WHERE { FILTER ( ?f = 3 ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?t WHERE { VALUES ( ?k ) { ( ontology:military_branch ) ( ontology:military_unit ) } . ?o rdf:type ?k } GROUP BY ?t } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1750688
P137
Q2235308
USER
How many ship types can be described as facility operator of Brazilian Navy ?
(c(Q2235308),P137,Q1750688)
action count
action filter_type
action find_reverse
entity Q1750688
relation P137
type Q2235308
[{'concept': 'Q2235308'}, 'P137', 'Q1750688']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q property:P137 resource:Q1750688 . ?q rdf:type ontology:Q2235308 }
Brazilian Navy
action count
action filter_type
action find_reverse
entity Brazilian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Brazilian Navy']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q property:operator resource:Brazilian_Navy . ?q rdf:type ontology:ship_type }
[]
ship type
SYSTEM
13
Q9542 Q9560 Q9561 Q4958923 Q2258343 Q3211254 Q3267316 Q2469491 Q922727 Q702128 Q604977 Q10335118 Q666380
(c(Q2235308),P137,Q1750688)
action count
action filter_type
action find_reverse
entity Q1750688
relation P137
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P137', 'Q1750688']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q property:P137 resource:Q1750688 . ?q rdf:type ontology:Q2235308 }
Minas Geraes-class battleship Brazilian battleship Minas Geraes Brazilian battleship São Paulo Brazilian submarine Tikuna Niteroi class frigate Inhaúma-class corvette USS Philadelphia USS Guest Type 22 frigate Newport-class tank landing ship Bahia-class cruiser NPa Maracanã (P-72) HMS Broadsword
13
action count
action filter_type
action find_reverse
entity Brazilian Navy
relation operator
type ship type
[{'concept': 'ship type'}, 'operator', 'Brazilian Navy']
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { ?q property:operator resource:Brazilian_Navy . ?q rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1750688
P69
Q502895
USER
Which person was educated at that military branch ?
action filter_type
action find_reverse
entity Q1750688
relation P69
type Q502895
SELECT DISTINCT ?t WHERE { ?t property:P69 resource:Q1750688 . ?t rdf:type ontology:Q502895 }
Brazilian Navy
action filter_type
action find_reverse
entity Brazilian Navy
relation educated at
type common name
SELECT DISTINCT ?t WHERE { ?t property:educated_at resource:Brazilian_Navy . ?t rdf:type ontology:common_name }
[]
common name
Q928687
SYSTEM
Vicente Ferreira Pastinha
Q928687
action filter_type
action find_reverse
entity Q1750688
relation P69
type Q502895
[ANSWER] was educated at that military branch
SELECT DISTINCT ?t WHERE { ?t property:P69 resource:Q1750688 . ?t rdf:type ontology:Q502895 }
Vicente Ferreira Pastinha
Vicente Ferreira Pastinha was educated at that military branch
Vicente Ferreira Pastinha
action filter_type
action find_reverse
entity Brazilian Navy
relation educated at
type common name
SELECT DISTINCT ?t WHERE { ?t property:educated_at resource:Brazilian_Navy . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1750688
P176
Q2235308
USER
Which ship type was manufactured by Brazilian Navy ?
(c(Q2235308),P176,Q1750688)
action filter_type
action find_reverse
entity Q1750688
relation P176
type Q2235308
[{'concept': 'Q2235308'}, 'P176', 'Q1750688']
SELECT DISTINCT ?l WHERE { ?l property:P176 resource:Q1750688 . ?l rdf:type ontology:Q2235308 }
Brazilian Navy
action filter_type
action find_reverse
entity Brazilian Navy
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Brazilian Navy']
SELECT DISTINCT ?l WHERE { ?l property:manufacturer resource:Brazilian_Navy . ?l rdf:type ontology:ship_type }
[]
ship type
Q4958923
SYSTEM
Brazilian submarine Tikuna
Q4958923
(c(Q2235308),P176,Q1750688)
action filter_type
action find_reverse
entity Q1750688
relation P176
type Q2235308
[ANSWER] was manufactured by Brazilian Navy
[{'concept': 'Q2235308'}, 'P176', 'Q1750688']
SELECT DISTINCT ?l WHERE { ?l property:P176 resource:Q1750688 . ?l rdf:type ontology:Q2235308 }
Brazilian submarine Tikuna
Brazilian submarine Tikuna was manufactured by Brazilian Navy
Brazilian submarine Tikuna
action filter_type
action find_reverse
entity Brazilian Navy
relation manufacturer
type ship type
[{'concept': 'ship type'}, 'manufacturer', 'Brazilian Navy']
SELECT DISTINCT ?l WHERE { ?l property:manufacturer resource:Brazilian_Navy . ?l rdf:type ontology:ship_type }
[]