Simple Question (Direct)
Simple Question
Q106970
P27
Q1048835
USER
Which political territory is Max Föhrenbach a civilian of ?
(Q106970,P27,c(Q1048835))
action filter_type
action find
entity Q106970
relation P27
type Q1048835
['Q106970', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q106970 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Max Föhrenbach
action filter_type
action find
entity Max Föhrenbach
relation country of citizenship
type political territorial entity
['Max Föhrenbach', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Max_Föhrenbach property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q106970,P27,c(Q1048835))
action filter_type
action find
entity Q106970
relation P27
type Q1048835
[ANSWER] is Max Föhrenbach a civilian of
['Q106970', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?d WHERE { resource:Q106970 property:P27 ?d . ?d rdf:type ontology:Q1048835 }
Germany
Germany is Max Föhrenbach a civilian of
Germany
action filter_type
action find
entity Max Föhrenbach
relation country of citizenship
type political territorial entity
['Max Föhrenbach', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Max_Föhrenbach property:country_of_citizenship ?d . ?d rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q106970
P607
Q198
USER
Which war did that person take part in ?
(Q183,P607,c(Q198))
action filter_type
action find
entity Q106970
relation P607
type Q198
['Q183', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q106970 property:P607 ?c . ?c rdf:type ontology:Q198 }
Max Föhrenbach
action filter_type
action find
entity Max Föhrenbach
relation conflict
type war
['Germany', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Max_Föhrenbach property:conflict ?c . ?c rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q183,P607,c(Q198))
action filter_type
action find
entity Q106970
relation P607
type Q198
That person took part in [ANSWER]
['Q183', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?c WHERE { resource:Q106970 property:P607 ?c . ?c rdf:type ontology:Q198 }
World War I
That person took part in World War I
World War I
action filter_type
action find
entity Max Föhrenbach
relation conflict
type war
['Germany', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?c WHERE { resource:Max_Föhrenbach property:conflict ?c . ?c rdf:type ontology:war }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q361
P825
Q4989906 Q860861
USER
How many monuments or sculptures are devoted to World War I ?
(c(Q4989906),P825,Q361) (c(Q860861),P825,Q361)
action count
action union
action filter_type
action find_reverse
entity Q361
relation P825
type Q4989906
action filter_type
action find_reverse
entity Q361
relation P825
type Q860861
[{'concept': 'Q4989906'}, 'P825', 'Q361'] [{'concept': 'Q860861'}, 'P825', 'Q361']
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:Q4989906 ) ( ontology:Q860861 ) } . ?b rdf:type ?p }
World War I
action count
action union
action filter_type
action find_reverse
entity World War I
relation dedicated to
type monument
action filter_type
action find_reverse
entity World War I
relation dedicated to
type sculpture
[{'concept': 'monument'}, 'dedicated to', 'World War I'] [{'concept': 'sculpture'}, 'dedicated to', 'World War I']
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:monument ) ( ontology:sculpture ) } . ?b rdf:type ?p }
[]
monument sculpture
SYSTEM
6
Q17626415 Q17745968 Q17745966 Q17745972 Q17745970 Q18385481
(c(Q4989906),P825,Q361) (c(Q860861),P825,Q361)
action count
action union
action filter_type
action find_reverse
entity Q361
relation P825
type Q4989906
action filter_type
action find_reverse
entity Q361
relation P825
type Q860861
[ANSWER]
[{'concept': 'Q4989906'}, 'P825', 'Q361'] [{'concept': 'Q860861'}, 'P825', 'Q361']
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:Q4989906 ) ( ontology:Q860861 ) } . ?b rdf:type ?p }
monument aux anciens élèves du lycée Clemenceau monument aux Cambodgiens et Laotiens morts pour la France monument au souvenir des soldats de Madagascar monument aux soldats noirs morts pour la France monument aux Indochinois chrétiens morts pour la France Blood Swept Lands and Seas of Red
6
action count
action union
action filter_type
action find_reverse
entity World War I
relation dedicated to
type monument
action filter_type
action find_reverse
entity World War I
relation dedicated to
type sculpture
[{'concept': 'monument'}, 'dedicated to', 'World War I'] [{'concept': 'sculpture'}, 'dedicated to', 'World War I']
SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { VALUES ( ?p ) { ( ontology:monument ) ( ontology:sculpture ) } . ?b rdf:type ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q106970
P21
Q290
USER
Which sex does Max Föhrenbach possess ?
(Q106970,P21,c(Q290))
action filter_type
action find
entity Q106970
relation P21
type Q290
['Q106970', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q106970 property:P21 ?a . ?a rdf:type ontology:Q290 }
Max Föhrenbach
action filter_type
action find
entity Max Föhrenbach
relation gender
type sex
['Max Föhrenbach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Max_Föhrenbach property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q106970,P21,c(Q290))
action filter_type
action find
entity Q106970
relation P21
type Q290
Max Föhrenbach possesses un [ANSWER]
['Q106970', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q106970 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Max Föhrenbach possesses un male
male
action filter_type
action find
entity Max Föhrenbach
relation gender
type sex
['Max Föhrenbach', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Max_Föhrenbach property:gender ?a . ?a rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q11173 Q3977918
USER
How many chemical compounds or mineral supergroupss are the eponym of that sex ?
(c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q3977918
[{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3977918 ) ( ontology:Q11173 ) } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
action filter_type
action find_reverse
entity male
relation named after
type mineral supergroups
[{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:mineral_supergroups ) ( ontology:chemical_compound ) } }
[]
chemical compound mineral supergroups
SYSTEM
2
Q19861994 Q19861203
(c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097) (c(Q11173),P138,Q6581097) (c(Q3977918),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q11173
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q3977918
[ANSWER]
[{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097'] [{'concept': 'Q11173'}, 'P138', 'Q6581097'] [{'concept': 'Q3977918'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:Q3977918 ) ( ontology:Q11173 ) } }
tazzoliite postite
2
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type chemical compound
action filter_type
action find_reverse
entity male
relation named after
type mineral supergroups
[{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male'] [{'concept': 'chemical compound'}, 'named after', 'male'] [{'concept': 'mineral supergroups'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x rdf:type ?y . VALUES ( ?y ) { ( ontology:mineral_supergroups ) ( ontology:chemical_compound ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q781
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with more number of political territories and administrative territories than Antigua and Barbuda ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q781
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?v WHERE { FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q781 property:P530 ?a . { { ?a rdf:type ontology:Q1048835 } UNION { ?a rdf:type ontology:Q15617994 } } } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?q rdf:type ?e } GROUP BY ?v } }
Antigua and Barbuda
action greater
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?v WHERE { FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?a . { { ?a rdf:type ontology:political_territorial_entity } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?v WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?e } GROUP BY ?v } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q781
relation P530
type Q1048835
type Q15617994
[ANSWERS] have ambassadorial relations with more number of political territories and administrative territories than Antigua and Barbuda
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?v WHERE { FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Q781 property:P530 ?a . { { ?a rdf:type ontology:Q1048835 } UNION { ?a rdf:type ontology:Q15617994 } } } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?v WHERE { VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?q rdf:type ?e } GROUP BY ?v } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have ambassadorial relations with more number of political territories and administrative territories than Antigua and Barbuda
Germany Australia Denmark
action greater
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?v WHERE { FILTER ( ?x > ?y ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?a . { { ?a rdf:type ontology:political_territorial_entity } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) ?v WHERE { VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?q rdf:type ?e } GROUP BY ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q16
P530
Q1048835 Q15617994 Q1048835
USER
And what about Canada?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q16
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?z WHERE { ?y rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?z } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q16 property:P530 ?v . { { ?v rdf:type ontology:Q1048835 } UNION { ?v rdf:type ontology:Q15617994 } } } } }
Canada
action greater
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Canada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?z WHERE { ?y rdf:type ?l . VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?z } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?v . { { ?v rdf:type ontology:political_territorial_entity } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find
entity Q16
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?z WHERE { ?y rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?z } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q16 property:P530 ?v . { { ?v rdf:type ontology:Q1048835 } UNION { ?v rdf:type ontology:Q15617994 } } } } }
Germany Australia
Germany Australia
action greater
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Canada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?z WHERE { ?y rdf:type ?l . VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?z } . FILTER ( ?p > ?t ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Canada property:diplomatic_relation ?v . { { ?v rdf:type ontology:political_territorial_entity } UNION { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q106970
P166
Q618779
USER
How many awards were awarded to Max Föhrenbach ?
(Q106970,P166,c(Q618779))
action count
action filter_type
action find
entity Q106970
relation P166
type Q618779
['Q106970', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:Q618779 . resource:Q106970 property:P166 ?e }
Max Föhrenbach
action count
action filter_type
action find
entity Max Föhrenbach
relation award received
type award
['Max Föhrenbach', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:award . resource:Max_Föhrenbach property:award_received ?e }
[]
award
SYSTEM
2
Q18582827 Q684511
(Q106970,P166,c(Q618779))
action count
action filter_type
action find
entity Q106970
relation P166
type Q618779
[ANSWER]
['Q106970', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:Q618779 . resource:Q106970 property:P166 ?e }
Order of the Red Eagle 4th Class Friedrich Order
2
action count
action filter_type
action find
entity Max Föhrenbach
relation award received
type award
['Max Föhrenbach', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { ?e rdf:type ontology:award . resource:Max_Föhrenbach property:award_received ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q106970
P106
Q12737077
USER
What is the job of that person ?
action filter_type
action find
entity Q106970
relation P106
type Q12737077
SELECT DISTINCT ?c WHERE { resource:Q106970 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Max Föhrenbach
action filter_type
action find
entity Max Föhrenbach
relation occupation
type occupation
SELECT DISTINCT ?c WHERE { resource:Max_Föhrenbach property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q189290
SYSTEM
officer
Q189290
action filter_type
action find
entity Q106970
relation P106
type Q12737077
The job of that person is an [ANSWER]
SELECT DISTINCT ?c WHERE { resource:Q106970 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
officer
The job of that person is an officer
officer
action filter_type
action find
entity Max Föhrenbach
relation occupation
type occupation
SELECT DISTINCT ?c WHERE { resource:Max_Föhrenbach property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q1792379 Q3516658
USER
Which occupations are expressed in max number of art genres and heraldic symbols ?
(c(Q1792379)|c(Q3516658),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
[[{'concept': 'Q1792379'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?v WHERE { VALUES ( ?w ) { ( ontology:Q3516658 ) ( ontology:Q1792379 ) } . ?l rdf:type ?w } GROUP BY ?v } } . FILTER ( ?s = ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?z WHERE { { ?g property:P180 ?z . ?z rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q1792379 } UNION { ?g rdf:type ontology:Q3516658 . ?z rdf:type ontology:Q12737077 . ?g property:P180 ?z } } GROUP BY ?z } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'art genre'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?v WHERE { VALUES ( ?w ) { ( ontology:heraldic_symbol ) ( ontology:art_genre ) } . ?l rdf:type ?w } GROUP BY ?v } } . FILTER ( ?s = ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?z WHERE { { ?g property:depicts ?z . ?z rdf:type ontology:occupation . ?g rdf:type ontology:art_genre } UNION { ?g rdf:type ontology:heraldic_symbol . ?z rdf:type ontology:occupation . ?g property:depicts ?z } } GROUP BY ?z } }
[]
occupation art genre heraldic symbol
Q4991371 Q1250916 Q2730732
SYSTEM
soldier, warrior, equestrian
Q2079936 Q1250916 Q4991371 Q2730732
(c(Q1792379)|c(Q3516658),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
The [ANSWERS] are expressed in max number of art genres and heraldic symbols
[[{'concept': 'Q1792379'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?v WHERE { VALUES ( ?w ) { ( ontology:Q3516658 ) ( ontology:Q1792379 ) } . ?l rdf:type ?w } GROUP BY ?v } } . FILTER ( ?s = ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?z WHERE { { ?g property:P180 ?z . ?z rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q1792379 } UNION { ?g rdf:type ontology:Q3516658 . ?z rdf:type ontology:Q12737077 . ?g property:P180 ?z } } GROUP BY ?z } }
king of marksmen warrior soldier equestrian
The soldier, warrior and equestrian are expressed in max number of art genres and heraldic symbols
soldier warrior equestrian
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'art genre'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) ?v WHERE { VALUES ( ?w ) { ( ontology:heraldic_symbol ) ( ontology:art_genre ) } . ?l rdf:type ?w } GROUP BY ?v } } . FILTER ( ?s = ?r ) . { SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) ?z WHERE { { ?g property:depicts ?z . ?z rdf:type ontology:occupation . ?g rdf:type ontology:art_genre } UNION { ?g rdf:type ontology:heraldic_symbol . ?z rdf:type ontology:occupation . ?g property:depicts ?z } } GROUP BY ?z } }
[]