Simple Question (Direct)
Simple Question
Q57156
P166
Q618779
USER
What was awarded to Erwin von Witzleben ?
(Q57156,P166,c(Q618779))
action filter_type
action find
entity Q57156
relation P166
type Q618779
['Q57156', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?t WHERE { resource:Q57156 property:P166 ?t . ?t rdf:type ontology:Q618779 }
Erwin von Witzleben
action filter_type
action find
entity Erwin von Witzleben
relation award received
type award
['Erwin von Witzleben', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?t WHERE { resource:Erwin_von_Witzleben property:award_received ?t . ?t rdf:type ontology:award }
[]
award
Q165558
SYSTEM
Knight's Cross of the Iron Cross
Q165558
(Q57156,P166,c(Q618779))
action filter_type
action find
entity Q57156
relation P166
type Q618779
Knight [ANSWER] was awarded to Erwin von Witzleben
['Q57156', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?t WHERE { resource:Q57156 property:P166 ?t . ?t rdf:type ontology:Q618779 }
Knight's Cross of the Iron Cross
Knight Knight's Cross of the Iron Cross was awarded to Erwin von Witzleben
Knight's Cross of the Iron Cross
action filter_type
action find
entity Erwin von Witzleben
relation award received
type award
['Erwin von Witzleben', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?t WHERE { resource:Erwin_von_Witzleben property:award_received ?t . ?t rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57156
P20
Q178706
USER
Where did that person die ?
(Q165558,P20,c(Q178706))
action filter_type
action find
entity Q57156
relation P20
type Q178706
['Q165558', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?q WHERE { resource:Q57156 property:P20 ?q . ?q rdf:type ontology:Q178706 }
Erwin von Witzleben
action filter_type
action find
entity Erwin von Witzleben
relation place of death
type institution
["Knight's Cross of the Iron Cross", 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?q WHERE { resource:Erwin_von_Witzleben property:place_of_death ?q . ?q rdf:type ontology:institution }
[]
institution
Q693653
SYSTEM
Plötzensee Prison
Q693653
(Q165558,P20,c(Q178706))
action filter_type
action find
entity Q57156
relation P20
type Q178706
That person died in [ANSWER]
['Q165558', 'P20', {'concept': 'Q178706'}]
SELECT DISTINCT ?q WHERE { resource:Q57156 property:P20 ?q . ?q rdf:type ontology:Q178706 }
Plötzensee Prison
That person died in Plötzensee Prison
Plötzensee Prison
action filter_type
action find
entity Erwin von Witzleben
relation place of death
type institution
["Knight's Cross of the Iron Cross", 'place of death', {'concept': 'institution'}]
SELECT DISTINCT ?q WHERE { resource:Erwin_von_Witzleben property:place_of_death ?q . ?q rdf:type ontology:institution }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q88764 Q57156
P27
Q1048835
USER
Which political territories are Erwin von Witzleben and Franz Novak an inhabitant of ?
AND((Q57156,P27,c(Q1048835)), (Q88764,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q57156
relation P27
action find
entity Q88764
relation P27
type Q1048835
{'AND': [['Q57156', 'P27', {'concept': 'Q1048835'}], ['Q88764', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { resource:Q57156 property:P27 ?e . resource:Q88764 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Franz Novak Erwin von Witzleben
action filter_type
action intersection
action find
entity Erwin von Witzleben
relation country of citizenship
action find
entity Franz Novak
relation country of citizenship
type political territorial entity
{'AND': [['Erwin von Witzleben', 'country of citizenship', {'concept': 'political territorial entity'}], ['Franz Novak', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Erwin_von_Witzleben property:country_of_citizenship ?e . resource:Franz_Novak property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
AND((Q57156,P27,c(Q1048835)), (Q88764,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q57156
relation P27
action find
entity Q88764
relation P27
type Q1048835
[ANSWER] is Erwin von Witzleben and Franz Novak an inhabitant of
{'AND': [['Q57156', 'P27', {'concept': 'Q1048835'}], ['Q88764', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { resource:Q57156 property:P27 ?e . resource:Q88764 property:P27 ?e . ?e rdf:type ontology:Q1048835 }
Germany
Germany is Erwin von Witzleben and Franz Novak an inhabitant of
Germany
action filter_type
action intersection
action find
entity Erwin von Witzleben
relation country of citizenship
action find
entity Franz Novak
relation country of citizenship
type political territorial entity
{'AND': [['Erwin von Witzleben', 'country of citizenship', {'concept': 'political territorial entity'}], ['Franz Novak', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Erwin_von_Witzleben property:country_of_citizenship ?e . resource:Franz_Novak property:country_of_citizenship ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5591548 Q88764
P27
Q1048835
USER
Which political territories are Franz Novak or Graciela Araya a civilian of ?
OR((Q88764,P27,c(Q1048835)), (Q5591548,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q88764
relation P27
action find
entity Q5591548
relation P27
type Q1048835
{'OR': [['Q88764', 'P27', {'concept': 'Q1048835'}], ['Q5591548', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Q88764 ) ( resource:Q5591548 ) } . ?t property:P27 ?k } . ?k rdf:type ontology:Q1048835 }
Graciela Araya Franz Novak
action filter_type
action union
action find
entity Franz Novak
relation country of citizenship
action find
entity Graciela Araya
relation country of citizenship
type political territorial entity
{'OR': [['Franz Novak', 'country of citizenship', {'concept': 'political territorial entity'}], ['Graciela Araya', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Franz_Novak ) ( resource:Graciela_Araya ) } . ?t property:country_of_citizenship ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q88764,P27,c(Q1048835)), (Q5591548,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q88764
relation P27
action find
entity Q5591548
relation P27
type Q1048835
[ANSWERS] are Franz Novak or Graciela Araya a civilian of
{'OR': [['Q88764', 'P27', {'concept': 'Q1048835'}], ['Q5591548', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Q88764 ) ( resource:Q5591548 ) } . ?t property:P27 ?k } . ?k rdf:type ontology:Q1048835 }
Germany Austria
Germany and Austria are Franz Novak or Graciela Araya a civilian of
Germany Austria
action filter_type
action union
action find
entity Franz Novak
relation country of citizenship
action find
entity Graciela Araya
relation country of citizenship
type political territorial entity
{'OR': [['Franz Novak', 'country of citizenship', {'concept': 'political territorial entity'}], ['Graciela Araya', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?t ) { ( resource:Franz_Novak ) ( resource:Graciela_Araya ) } . ?t property:country_of_citizenship ?k } . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6858031
P495
Q838948
USER
Are those political territories a country of origin of Milk and Money ?
(Q6858031,P495,Q183) (Q6858031,P495,Q40)
action is_in
entity prev_answer
action find
entity Q6858031
relation P495
['Q6858031', 'P495', 'Q183'] ['Q6858031', 'P495', 'Q40']
ASK WHERE { VALUES ( ?h ) { ( resource:Q183 ) ( resource:Q40 ) } . resource:Q6858031 property:P495 ?h }
Milk and Money
action is_in
entity prev_answer
action find
entity Milk and Money
relation country of origin
['Milk and Money', 'country of origin', 'Germany'] ['Milk and Money', 'country of origin', 'Austria']
ASK WHERE { VALUES ( ?h ) { ( resource:Germany ) ( resource:Austria ) } . resource:Milk_and_Money property:country_of_origin ?h }
[]
work of art
SYSTEM
NO
(Q6858031,P495,Q183) (Q6858031,P495,Q40)
action is_in
entity prev_answer
action find
entity Q6858031
relation P495
[ANSWER]
['Q6858031', 'P495', 'Q183'] ['Q6858031', 'P495', 'Q40']
ASK WHERE { VALUES ( ?h ) { ( resource:Q183 ) ( resource:Q40 ) } . resource:Q6858031 property:P495 ?h }
No
action is_in
entity prev_answer
action find
entity Milk and Money
relation country of origin
['Milk and Money', 'country of origin', 'Germany'] ['Milk and Money', 'country of origin', 'Austria']
ASK WHERE { VALUES ( ?h ) { ( resource:Germany ) ( resource:Austria ) } . resource:Milk_and_Money property:country_of_origin ?h }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q693653 Q183
P17
Q1048835
USER
Does Plötzensee Prison belong to Germany ?
(Q693653,P17,Q183)
action is_in
entity Q183
action find
entity Q693653
relation P17
['Q693653', 'P17', 'Q183']
ASK WHERE { resource:Q693653 property:P17 resource:Q183 }
Plötzensee Prison Germany
action is_in
entity Germany
action find
entity Plötzensee Prison
relation country
['Plötzensee Prison', 'country', 'Germany']
ASK WHERE { resource:Plötzensee_Prison property:country resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q693653,P17,Q183)
action is_in
entity Q183
action find
entity Q693653
relation P17
[ANSWER]
['Q693653', 'P17', 'Q183']
ASK WHERE { resource:Q693653 property:P17 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Plötzensee Prison
relation country
['Plötzensee Prison', 'country', 'Germany']
ASK WHERE { resource:Plötzensee_Prison property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q1228889
P530
Q1048835
USER
Does Fuentidueña de Tajo have diplomatic relationships with Germany ?
(Q183,P530,Q1228889)
action is_in
entity Q1228889
action find
entity Q183
relation P530
['Q183', 'P530', 'Q1228889']
ASK WHERE { resource:Q183 property:P530 resource:Q1228889 }
Germany Fuentidueña de Tajo
action is_in
entity Fuentidueña de Tajo
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Fuentidueña de Tajo']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Fuentidueña_de_Tajo }
[]
political territorial entity
SYSTEM
NO
(Q183,P530,Q1228889)
action is_in
entity Q1228889
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q1228889']
ASK WHERE { resource:Q183 property:P530 resource:Q1228889 }
No
action is_in
entity Fuentidueña de Tajo
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Fuentidueña de Tajo']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Fuentidueña_de_Tajo }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q57156 Q183 Q1642492
P27
Q1048835
USER
Is Erwin von Witzleben a native of Germany and Villamayor de Treviño ?
(Q57156,P27,Q183) (Q57156,P27,Q1642492)
action is_in
entity Q57156
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q1642492
relation P27
['Q57156', 'P27', 'Q183'] ['Q57156', 'P27', 'Q1642492']
ASK WHERE { resource:Q57156 property:P27 resource:Q183 . resource:Q57156 property:P27 resource:Q1642492 }
Erwin von Witzleben Germany Villamayor de Treviño
action is_in
entity Erwin von Witzleben
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Villamayor de Treviño
relation country of citizenship
['Erwin von Witzleben', 'country of citizenship', 'Germany'] ['Erwin von Witzleben', 'country of citizenship', 'Villamayor de Treviño']
ASK WHERE { resource:Erwin_von_Witzleben property:country_of_citizenship resource:Germany . resource:Erwin_von_Witzleben property:country_of_citizenship resource:Villamayor_de_Treviño }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q57156,P27,Q183) (Q57156,P27,Q1642492)
action is_in
entity Q57156
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q1642492
relation P27
[ANSWER]
['Q57156', 'P27', 'Q183'] ['Q57156', 'P27', 'Q1642492']
ASK WHERE { resource:Q57156 property:P27 resource:Q183 . resource:Q57156 property:P27 resource:Q1642492 }
YES and NO respectively
action is_in
entity Erwin von Witzleben
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Villamayor de Treviño
relation country of citizenship
['Erwin von Witzleben', 'country of citizenship', 'Germany'] ['Erwin von Witzleben', 'country of citizenship', 'Villamayor de Treviño']
ASK WHERE { resource:Erwin_von_Witzleben property:country_of_citizenship resource:Germany . resource:Erwin_von_Witzleben property:country_of_citizenship resource:Villamayor_de_Treviño }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1443879 Q5591548
P47 P27
Q1048835
USER
Which political territories do Graciela Araya belong to or share border with Anievas ?
OR((Q5591548,P27,c(Q1048835)), (Q1443879,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5591548
relation P27
action find
entity Q1443879
relation P47
type Q1048835
{'OR': [['Q5591548', 'P27', {'concept': 'Q1048835'}], ['Q1443879', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1443879 property:P47 ?t } UNION { resource:Q5591548 property:P27 ?t } } . ?t rdf:type ontology:Q1048835 }
Anievas Graciela Araya
action filter_type
action union
action find
entity Graciela Araya
relation country of citizenship
action find
entity Anievas
relation shares border with
type political territorial entity
{'OR': [['Graciela Araya', 'country of citizenship', {'concept': 'political territorial entity'}], ['Anievas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Anievas property:shares_border_with ?t } UNION { resource:Graciela_Araya property:country_of_citizenship ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q782638 Q1602990 Q40 Q1443867 Q1606038
SYSTEM
Arenas de Iguña, San Felices de Buelna, Austria, Los Corrales de Buelna, Corvera de Toranzo
Q782638 Q1602990 Q40 Q1443867 Q1606038
OR((Q5591548,P27,c(Q1048835)), (Q1443879,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5591548
relation P27
action find
entity Q1443879
relation P47
type Q1048835
Graciela Araya belong to Austria [ANSWERS]
{'OR': [['Q5591548', 'P27', {'concept': 'Q1048835'}], ['Q1443879', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q1443879 property:P47 ?t } UNION { resource:Q5591548 property:P27 ?t } } . ?t rdf:type ontology:Q1048835 }
Arenas de Iguña San Felices de Buelna Austria Los Corrales de Buelna Corvera de Toranzo
Graciela Araya belong to Austria Arenas de Iguña, San Felices de Buelna, Austria, Los Corrales de Buelna and Corvera de Toranzo
Arenas de Iguña San Felices de Buelna Austria Los Corrales de Buelna Corvera de Toranzo
action filter_type
action union
action find
entity Graciela Araya
relation country of citizenship
action find
entity Anievas
relation shares border with
type political territorial entity
{'OR': [['Graciela Araya', 'country of citizenship', {'concept': 'political territorial entity'}], ['Anievas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Anievas property:shares_border_with ?t } UNION { resource:Graciela_Araya property:country_of_citizenship ?t } } . ?t rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q1048835
USER
How many political territories do that political territory share a border with ?
(c(Q1048835),P47,Q1606038)
[{'concept': 'Q1048835'}, 'P47', 'Q1606038']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1606038 . ?z rdf:type ontology:Q1048835 }
[{'concept': 'political territorial entity'}, 'shares border with', 'Corvera de Toranzo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corvera_de_Toranzo . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Quantitative|Count|Single entity type|Clarification
Q1443867
SYSTEM
Did you mean Los Corrales de Buelna ?
(c(Q1048835),P47,Q782638) (c(Q1048835),P47,Q1602990) (c(Q1048835),P47,Q40) (c(Q1048835),P47,Q1443867) (c(Q1048835),P47,Q1606038)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q782638'] [{'concept': 'Q1048835'}, 'P47', 'Q1602990'] [{'concept': 'Q1048835'}, 'P47', 'Q40'] [{'concept': 'Q1048835'}, 'P47', 'Q1443867'] [{'concept': 'Q1048835'}, 'P47', 'Q1606038']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1606038 . ?z rdf:type ontology:Q1048835 }
Did you mean Los Corrales de Buelna ?
Los Corrales de Buelna
[{'concept': 'political territorial entity'}, 'shares border with', 'Arenas de Iguña'] [{'concept': 'political territorial entity'}, 'shares border with', 'San Felices de Buelna'] [{'concept': 'political territorial entity'}, 'shares border with', 'Austria'] [{'concept': 'political territorial entity'}, 'shares border with', 'Los Corrales de Buelna'] [{'concept': 'political territorial entity'}, 'shares border with', 'Corvera de Toranzo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corvera_de_Toranzo . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Corvera de Toranzo. Could you tell me the answer for that?
(c(Q1048835),P47,Q1606038)
Q1606038
[{'concept': 'Q1048835'}, 'P47', 'Q1606038']
[{'concept': 'political territorial entity'}, 'shares border with', 'Corvera de Toranzo']
[]
SYSTEM
3
Q782638 Q1751818 Q1443879
(c(Q1048835),P47,Q1606038)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1606038']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P47 resource:Q1606038 . ?z rdf:type ontology:Q1048835 }
Arenas de Iguña Luena Anievas
3
[{'concept': 'political territorial entity'}, 'shares border with', 'Corvera de Toranzo']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:shares_border_with resource:Corvera_de_Toranzo . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q1048835 Q15416 Q201658
USER
Which political territories are the countries of origin of min number of television programs or film genres ?
(c(Q15416)|c(Q201658),P495,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?n WHERE { { ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q201658 . ?e property:P495 ?n } UNION { ?e property:P495 ?n . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15416 } } GROUP BY ?n } . FILTER ( ?w = ?m ) }
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:television_program ) ( ontology:film_genre ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?n WHERE { { ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:film_genre . ?e property:country_of_origin ?n } UNION { ?e property:country_of_origin ?n . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:television_program } } GROUP BY ?n } . FILTER ( ?w = ?m ) }
[]
political territorial entity television program film genre
Q5705 Q1000 Q769
SYSTEM
Catalonia, Gabon, Grenada
Q1000 Q1747689 Q769 Q763 Q1054923 Q13353 Q781 Q5705 Q1823 Q407199 Q778 Q234 Q2991382 Q9337 Q23635 Q31747 Q129286
(c(Q15416)|c(Q201658),P495,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
[ANSWERS] are the countries of origin of min number of television programs or film genres
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?n WHERE { { ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q201658 . ?e property:P495 ?n } UNION { ?e property:P495 ?n . ?n rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15416 } } GROUP BY ?n } . FILTER ( ?w = ?m ) }
Gabon Ancient Rome Grenada Saint Kitts and Nevis British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Palestinian territories The Bahamas Flemish Region County of Provence Flemish Region Bermuda Irish Free State British Raj
Catalonia, Gabon and Grenada are the countries of origin of min number of television programs or film genres
Catalonia Gabon Grenada
action argmin
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MIN ( ?l ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?h WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:television_program ) ( ontology:film_genre ) } } GROUP BY ?h } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) ?n WHERE { { ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:film_genre . ?e property:country_of_origin ?n } UNION { ?e property:country_of_origin ?n . ?n rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:television_program } } GROUP BY ?n } . FILTER ( ?w = ?m ) }
[]