Simple Question (Direct)
Simple Question
Q448689
P19
Q56061
USER
Which administrative territory was Aleksandr Shin born in ?
(Q448689,P19,c(Q56061))
action filter_type
action find
entity Q448689
relation P19
type Q56061
['Q448689', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q448689 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Aleksandr Shin
action filter_type
action find
entity Aleksandr Shin
relation place of birth
type administrative territorial entity
['Aleksandr Shin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Aleksandr_Shin property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q162548
SYSTEM
Oskemen
Q162548
(Q448689,P19,c(Q56061))
action filter_type
action find
entity Q448689
relation P19
type Q56061
Aleksandr Shin was born in [ANSWER]
['Q448689', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q448689 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Oskemen
Aleksandr Shin was born in Oskemen
Oskemen
action filter_type
action find
entity Aleksandr Shin
relation place of birth
type administrative territorial entity
['Aleksandr Shin', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Aleksandr_Shin property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q448689
P641
Q349
USER
Which sport did that person participate in ?
(Q162548,P641,c(Q349))
action filter_type
action find
entity Q448689
relation P641
type Q349
['Q162548', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q448689 property:P641 ?i }
Aleksandr Shin
action filter_type
action find
entity Aleksandr Shin
relation sport
type sport
['Oskemen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Aleksandr_Shin property:sport ?i }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q162548,P641,c(Q349))
action filter_type
action find
entity Q448689
relation P641
type Q349
That person participated in [ANSWER]
['Q162548', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q448689 property:P641 ?i }
ice hockey
That person participated in ice hockey
ice hockey
action filter_type
action find
entity Aleksandr Shin
relation sport
type sport
['Oskemen', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Aleksandr_Shin property:sport ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q448689
P106
Q12737077
USER
What is the job of Aleksandr Shin ?
(Q448689,P106,c(Q12737077))
action filter_type
action find
entity Q448689
relation P106
type Q12737077
['Q448689', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q448689 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Aleksandr Shin
action filter_type
action find
entity Aleksandr Shin
relation occupation
type occupation
['Aleksandr Shin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Aleksandr_Shin property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q11774891
SYSTEM
ice hockey player
Q11774891
(Q448689,P106,c(Q12737077))
action filter_type
action find
entity Q448689
relation P106
type Q12737077
The job of Aleksandr Shin is an [ANSWER]
['Q448689', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q448689 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
ice hockey player
The job of Aleksandr Shin is an ice hockey player
ice hockey player
action filter_type
action find
entity Aleksandr Shin
relation occupation
type occupation
['Aleksandr Shin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Aleksandr_Shin property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q448689
P54
Q12973014
USER
Which sports team is Aleksandr Shin a member of ?
(Q448689,P54,c(Q12973014))
action filter_type
action find
entity Q448689
relation P54
type Q12973014
['Q448689', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?a WHERE { resource:Q448689 property:P54 ?a . ?a rdf:type ontology:Q12973014 }
Aleksandr Shin
action filter_type
action find
entity Aleksandr Shin
relation member of sports team
type sports team
['Aleksandr Shin', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?a WHERE { resource:Aleksandr_Shin property:member_of_sports_team ?a . ?a rdf:type ontology:sports_team }
[]
sports team
Q1735516
SYSTEM
Kazzinc-Torpedo
Q1735516
(Q448689,P54,c(Q12973014))
action filter_type
action find
entity Q448689
relation P54
type Q12973014
[ANSWER] is Aleksandr Shin a member of
['Q448689', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?a WHERE { resource:Q448689 property:P54 ?a . ?a rdf:type ontology:Q12973014 }
Kazzinc-Torpedo
Kazzinc-Torpedo is Aleksandr Shin a member of
Kazzinc-Torpedo
action filter_type
action find
entity Aleksandr Shin
relation member of sports team
type sports team
['Aleksandr Shin', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?a WHERE { resource:Aleksandr_Shin property:member_of_sports_team ?a . ?a rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1735516
P466
Q641226
USER
Which arena is occupied by that sports team ?
(c(Q641226),P466,Q1735516)
action filter_type
action find_reverse
entity Q1735516
relation P466
type Q641226
[{'concept': 'Q641226'}, 'P466', 'Q1735516']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q641226 . ?k property:P466 resource:Q1735516 }
Kazzinc-Torpedo
action filter_type
action find_reverse
entity Kazzinc-Torpedo
relation occupant
type arena
[{'concept': 'arena'}, 'occupant', 'Kazzinc-Torpedo']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:arena . ?k property:occupant resource:Kazzinc-Torpedo }
[]
arena
Q4155968
SYSTEM
Boris Alexandrov Sport Palace
Q4155968
(c(Q641226),P466,Q1735516)
action filter_type
action find_reverse
entity Q1735516
relation P466
type Q641226
[ANSWER] is occupied by that sports team
[{'concept': 'Q641226'}, 'P466', 'Q1735516']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q641226 . ?k property:P466 resource:Q1735516 }
Boris Alexandrov Sport Palace
Boris Alexandrov Sport Palace is occupied by that sports team
Boris Alexandrov Sport Palace
action filter_type
action find_reverse
entity Kazzinc-Torpedo
relation occupant
type arena
[{'concept': 'arena'}, 'occupant', 'Kazzinc-Torpedo']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:arena . ?k property:occupant resource:Kazzinc-Torpedo }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4155968
P127
Q43229
USER
Which organization does that arena belong to ?
(Q4155968,P127,c(Q43229))
action filter_type
action find
entity Q4155968
relation P127
type Q43229
['Q4155968', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?d WHERE { resource:Q4155968 property:P127 ?d . ?d rdf:type ontology:Q43229 }
Boris Alexandrov Sport Palace
action filter_type
action find
entity Boris Alexandrov Sport Palace
relation owned by
type organization
['Boris Alexandrov Sport Palace', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?d WHERE { resource:Boris_Alexandrov_Sport_Palace property:owned_by ?d . ?d rdf:type ontology:organization }
[]
organization
Q1737592
SYSTEM
Kazzinc
Q1737592
(Q4155968,P127,c(Q43229))
action filter_type
action find
entity Q4155968
relation P127
type Q43229
That arena belongs to [ANSWER]
['Q4155968', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?d WHERE { resource:Q4155968 property:P127 ?d . ?d rdf:type ontology:Q43229 }
Kazzinc
That arena belongs to Kazzinc
Kazzinc
action filter_type
action find
entity Boris Alexandrov Sport Palace
relation owned by
type organization
['Boris Alexandrov Sport Palace', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?d WHERE { resource:Boris_Alexandrov_Sport_Palace property:owned_by ?d . ?d rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1737592 Q2035332 Q162548
P159
Q56061
USER
Does Kazzinc have its HQ location at Alfeizerão and Oskemen ?
(Q1737592,P159,Q2035332) (Q1737592,P159,Q162548)
action is_in
entity Q1737592
action intersection
action find_reverse
entity Q2035332
relation P159
action find_reverse
entity Q162548
relation P159
['Q1737592', 'P159', 'Q2035332'] ['Q1737592', 'P159', 'Q162548']
ASK WHERE { resource:Q1737592 property:P159 resource:Q2035332 . resource:Q1737592 property:P159 resource:Q162548 }
Kazzinc Alfeizerão Oskemen
action is_in
entity Kazzinc
action intersection
action find_reverse
entity Alfeizerão
relation headquarters location
action find_reverse
entity Oskemen
relation headquarters location
['Kazzinc', 'headquarters location', 'Alfeizerão'] ['Kazzinc', 'headquarters location', 'Oskemen']
ASK WHERE { resource:Kazzinc property:headquarters_location resource:Alfeizerão . resource:Kazzinc property:headquarters_location resource:Oskemen }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q1737592,P159,Q2035332) (Q1737592,P159,Q162548)
action is_in
entity Q1737592
action intersection
action find_reverse
entity Q2035332
relation P159
action find_reverse
entity Q162548
relation P159
[ANSWER]
['Q1737592', 'P159', 'Q2035332'] ['Q1737592', 'P159', 'Q162548']
ASK WHERE { resource:Q1737592 property:P159 resource:Q2035332 . resource:Q1737592 property:P159 resource:Q162548 }
NO and YES respectively
action is_in
entity Kazzinc
action intersection
action find_reverse
entity Alfeizerão
relation headquarters location
action find_reverse
entity Oskemen
relation headquarters location
['Kazzinc', 'headquarters location', 'Alfeizerão'] ['Kazzinc', 'headquarters location', 'Oskemen']
ASK WHERE { resource:Kazzinc property:headquarters_location resource:Alfeizerão . resource:Kazzinc property:headquarters_location resource:Oskemen }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1737592
P452
Q58778
USER
What industry is that organization a part of ?
action filter_type
action find
entity Q1737592
relation P452
type Q58778
SELECT DISTINCT ?q WHERE { resource:Q1737592 property:P452 ?q . ?q rdf:type ontology:Q58778 }
Kazzinc
action filter_type
action find
entity Kazzinc
relation industry
type system
SELECT DISTINCT ?q WHERE { resource:Kazzinc property:industry ?q . ?q rdf:type ontology:system }
[]
system
Q22704511
SYSTEM
zinc industry
Q22704511
action filter_type
action find
entity Q1737592
relation P452
type Q58778
That organization a part of is the [ANSWER]
SELECT DISTINCT ?q WHERE { resource:Q1737592 property:P452 ?q . ?q rdf:type ontology:Q58778 }
zinc industry
That organization a part of is the zinc industry
zinc industry
action filter_type
action find
entity Kazzinc
relation industry
type system
SELECT DISTINCT ?q WHERE { resource:Kazzinc property:industry ?q . ?q rdf:type ontology:system }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1056
Q8386
USER
How many drugs are made by that system ?
(Q22704511,P1056,c(Q8386))
action count
action filter_type
action find
entity Q22704511
relation P1056
type Q8386
['Q22704511', 'P1056', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q22704511 property:P1056 ?z . ?z rdf:type ontology:Q8386 }
action count
action filter_type
action find
entity zinc industry
relation product
type drug
['zinc industry', 'product', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:zinc_industry property:product ?z . ?z rdf:type ontology:drug }
[]
drug
SYSTEM
1
Q758
(Q22704511,P1056,c(Q8386))
action count
action filter_type
action find
entity Q22704511
relation P1056
type Q8386
[ANSWER]
['Q22704511', 'P1056', {'concept': 'Q8386'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:Q22704511 property:P1056 ?z . ?z rdf:type ontology:Q8386 }
zinc
1
action count
action filter_type
action find
entity zinc industry
relation product
type drug
['zinc industry', 'product', {'concept': 'drug'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { resource:zinc_industry property:product ?z . ?z rdf:type ontology:drug }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P805
Q1047113 Q58778
USER
How many special fields have atmost 1 system as their subject ?
(c(Q58778),P805,c(Q1047113))
action count
action atmost
action find_reverse_tuple_counts
relation P805
type Q1047113
type Q58778
value 1
[{'concept': 'Q58778'}, 'P805', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P805 ?g . ?g rdf:type ontology:Q1047113 . ?j rdf:type ontology:Q58778 } GROUP BY ?g } . FILTER ( ?b <= 1 ) }
action count
action atmost
action find_reverse_tuple_counts
relation subject of
type special field
type system
value 1
[{'concept': 'system'}, 'subject of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:subject_of ?g . ?g rdf:type ontology:special_field . ?j rdf:type ontology:system } GROUP BY ?g } . FILTER ( ?b <= 1 ) }
[]
special field system
SYSTEM
2
Q199655 Q501778
(c(Q58778),P805,c(Q1047113))
action count
action atmost
action find_reverse_tuple_counts
relation P805
type Q1047113
type Q58778
value 1
[ANSWER]
[{'concept': 'Q58778'}, 'P805', {'concept': 'Q1047113'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:P805 ?g . ?g rdf:type ontology:Q1047113 . ?j rdf:type ontology:Q58778 } GROUP BY ?g } . FILTER ( ?b <= 1 ) }
library science translation studies
2
action count
action atmost
action find_reverse_tuple_counts
relation subject of
type special field
type system
value 1
[{'concept': 'system'}, 'subject of', {'concept': 'special field'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?b ) WHERE { ?j property:subject_of ?g . ?g rdf:type ontology:special_field . ?j rdf:type ontology:system } GROUP BY ?g } . FILTER ( ?b <= 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q448689
P21
Q290
USER
What is the sex of Aleksandr Shin ?
(Q448689,P21,c(Q290))
action filter_type
action find
entity Q448689
relation P21
type Q290
['Q448689', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q448689 property:P21 ?r }
Aleksandr Shin
action filter_type
action find
entity Aleksandr Shin
relation gender
type sex
['Aleksandr Shin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Aleksandr_Shin property:gender ?r }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q448689,P21,c(Q290))
action filter_type
action find
entity Q448689
relation P21
type Q290
The sex of Aleksandr Shin is a [ANSWER]
['Q448689', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q448689 property:P21 ?r }
male
The sex of Aleksandr Shin is a male
male
action filter_type
action find
entity Aleksandr Shin
relation gender
type sex
['Aleksandr Shin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Aleksandr_Shin property:gender ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q7052936
P21
Q502895
USER
Is Norman White a that sex ?
(Q7052936,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7052936
relation P21
['Q7052936', 'P21', 'Q6581097']
ASK WHERE { resource:Q7052936 property:P21 resource:Q6581097 }
male Norman White
action is_in
entity male
action find
entity Norman White
relation gender
['Norman White', 'gender', 'male']
ASK WHERE { resource:Norman_White property:gender resource:male }
[]
common name
SYSTEM
YES
(Q7052936,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q7052936
relation P21
[ANSWER]
['Q7052936', 'P21', 'Q6581097']
ASK WHERE { resource:Q7052936 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Norman White
relation gender
['Norman White', 'gender', 'male']
ASK WHERE { resource:Norman_White property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q162548
P17
Q3024240 Q15617994
USER
How many former countries or administrative territories are Oskemen located in ?
(Q162548,P17,c(Q3024240)) (Q162548,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q162548
relation P17
type Q3024240
action filter_type
action find
entity Q162548
relation P17
type Q15617994
['Q162548', 'P17', {'concept': 'Q3024240'}] ['Q162548', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?f ) { ( ontology:Q3024240 ) ( ontology:Q15617994 ) } . ?p rdf:type ?f }
Oskemen
action count
action union
action filter_type
action find
entity Oskemen
relation country
type former country
action filter_type
action find
entity Oskemen
relation country
type designation for an administrative territorial entity
['Oskemen', 'country', {'concept': 'former country'}] ['Oskemen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?f ) { ( ontology:former_country ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?f }
[]
former country designation for an administrative territorial entity
SYSTEM
2
Q34266 Q232
(Q162548,P17,c(Q3024240)) (Q162548,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q162548
relation P17
type Q3024240
action filter_type
action find
entity Q162548
relation P17
type Q15617994
[ANSWER]
['Q162548', 'P17', {'concept': 'Q3024240'}] ['Q162548', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?f ) { ( ontology:Q3024240 ) ( ontology:Q15617994 ) } . ?p rdf:type ?f }
Russian Empire Kazakhstan
2
action count
action union
action filter_type
action find
entity Oskemen
relation country
type former country
action filter_type
action find
entity Oskemen
relation country
type designation for an administrative territorial entity
['Oskemen', 'country', {'concept': 'former country'}] ['Oskemen', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?f ) { ( ontology:former_country ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?f }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q895526 Q192350 Q43229
USER
Which organizations are a portion of max number of authority organs and ministries ?
(c(Q43229),P361,c(Q895526)|c(Q192350))
action argmax
action union
action find_tuple_counts
relation P361
type Q43229
type Q895526
action find_tuple_counts
relation P361
type Q43229
type Q192350
[{'concept': 'Q43229'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?p WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:Q895526 ) ( ontology:Q192350 ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?a WHERE { { ?a property:P361 ?f . ?a rdf:type ontology:Q43229 . ?f rdf:type ontology:Q895526 } UNION { ?a rdf:type ontology:Q43229 . ?f rdf:type ontology:Q192350 . ?a property:P361 ?f } } GROUP BY ?a } . FILTER ( ?g = ?n ) }
action argmax
action union
action find_tuple_counts
relation part of
type organization
type authority organ
action find_tuple_counts
relation part of
type organization
type ministry
[{'concept': 'organization'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'ministry'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?p WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:authority_organ ) ( ontology:ministry ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?a WHERE { { ?a property:part_of ?f . ?a rdf:type ontology:organization . ?f rdf:type ontology:authority_organ } UNION { ?a rdf:type ontology:organization . ?f rdf:type ontology:ministry . ?a property:part_of ?f } } GROUP BY ?a } . FILTER ( ?g = ?n ) }
[]
authority organ ministry organization
Q2355311 Q6954197 Q5888434
SYSTEM
Customs and Excise Department, NHS trust, Home Guard Command
Q2355311 Q6954197 Q5888434
(c(Q43229),P361,c(Q895526)|c(Q192350))
action argmax
action union
action find_tuple_counts
relation P361
type Q43229
type Q895526
action find_tuple_counts
relation P361
type Q43229
type Q192350
[ANSWERS] are a portion of max number of authority organs and ministries
[{'concept': 'Q43229'}, 'P361', [{'concept': 'Q895526'}, {'concept': 'Q192350'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?p WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:Q895526 ) ( ontology:Q192350 ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?a WHERE { { ?a property:P361 ?f . ?a rdf:type ontology:Q43229 . ?f rdf:type ontology:Q895526 } UNION { ?a rdf:type ontology:Q43229 . ?f rdf:type ontology:Q192350 . ?a property:P361 ?f } } GROUP BY ?a } . FILTER ( ?g = ?n ) }
Customs and Excise Department NHS trust Home Guard Command
Customs and Excise Department, NHS trust and Home Guard Command are a portion of max number of authority organs and ministries
Customs and Excise Department NHS trust Home Guard Command
action argmax
action union
action find_tuple_counts
relation part of
type organization
type authority organ
action find_tuple_counts
relation part of
type organization
type ministry
[{'concept': 'organization'}, 'part of', [{'concept': 'authority organ'}, {'concept': 'ministry'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?n ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?r ) ?p WHERE { ?w rdf:type ?q . VALUES ( ?q ) { ( ontology:authority_organ ) ( ontology:ministry ) } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) ?a WHERE { { ?a property:part_of ?f . ?a rdf:type ontology:organization . ?f rdf:type ontology:authority_organ } UNION { ?a rdf:type ontology:organization . ?f rdf:type ontology:ministry . ?a property:part_of ?f } } GROUP BY ?a } . FILTER ( ?g = ?n ) }
[]