Simple Question (Direct)
Simple Question
Q5504821
P136
Q1792379
USER
What can be considered as category for Frits and Freddy ?
(Q5504821,P136,c(Q1792379))
action filter_type
action find
entity Q5504821
relation P136
type Q1792379
['Q5504821', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?n WHERE { resource:Q5504821 property:P136 ?n . ?n rdf:type ontology:Q1792379 }
Frits and Freddy
action filter_type
action find
entity Frits and Freddy
relation genre
type art genre
['Frits and Freddy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?n WHERE { resource:Frits_and_Freddy property:genre ?n . ?n rdf:type ontology:art_genre }
[]
art genre
Q157443
SYSTEM
comedy film
Q157443
(Q5504821,P136,c(Q1792379))
action filter_type
action find
entity Q5504821
relation P136
type Q1792379
The [ANSWER] can be considered as category for Frits and Freddy
['Q5504821', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?n WHERE { resource:Q5504821 property:P136 ?n . ?n rdf:type ontology:Q1792379 }
comedy film
The comedy film can be considered as category for Frits and Freddy
comedy film
action filter_type
action find
entity Frits and Freddy
relation genre
type art genre
['Frits and Freddy', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?n WHERE { resource:Frits_and_Freddy property:genre ?n . ?n rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5504821
P57
Q502895
USER
Which person served as the directed of Frits and Freddy ?
(Q5504821,P57,c(Q502895))
action filter_type
action find
entity Q5504821
relation P57
type Q502895
['Q5504821', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q5504821 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Frits and Freddy
action filter_type
action find
entity Frits and Freddy
relation director
type common name
['Frits and Freddy', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Frits_and_Freddy property:director ?y . ?y rdf:type ontology:common_name }
[]
common name
Q15875977
SYSTEM
Guy Goossens
Q15875977
(Q5504821,P57,c(Q502895))
action filter_type
action find
entity Q5504821
relation P57
type Q502895
[ANSWER] served as the directed of Frits and Freddy
['Q5504821', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q5504821 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Guy Goossens
Guy Goossens served as the directed of Frits and Freddy
Guy Goossens
action filter_type
action find
entity Frits and Freddy
relation director
type common name
['Frits and Freddy', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Frits_and_Freddy property:director ?y . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q23925069 Q5504821
P57
Q502895
USER
Or Mapplethorpe: Look at the Pictures?
OR((Q5504821,P57,c(Q502895)), (Q23925069,P57,c(Q502895)))
action filter_type
action union
action find
entity Q5504821
relation P57
action find
entity Q23925069
relation P57
type Q502895
{'OR': [['Q5504821', 'P57', {'concept': 'Q502895'}], ['Q23925069', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { ?d property:P57 ?s . VALUES ( ?d ) { ( resource:Q5504821 ) ( resource:Q23925069 ) } } . ?s rdf:type ontology:Q502895 }
Mapplethorpe: Look at the Pictures Frits and Freddy
action filter_type
action union
action find
entity Frits and Freddy
relation director
action find
entity Mapplethorpe: Look at the Pictures
relation director
type common name
{'OR': [['Frits and Freddy', 'director', {'concept': 'common name'}], ['Mapplethorpe: Look at the Pictures', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { ?d property:director ?s . VALUES ( ?d ) { ( resource:Frits_and_Freddy ) ( resource:Mapplethorpe:_Look_at_the_Pictures ) } } . ?s rdf:type ontology:common_name }
[]
common name
Q24640016 Q15875977 Q24640014
SYSTEM
Randy Barbato, Guy Goossens, Fenton Bailey
Q24640016 Q15875977 Q24640014
OR((Q5504821,P57,c(Q502895)), (Q23925069,P57,c(Q502895)))
action filter_type
action union
action find
entity Q5504821
relation P57
action find
entity Q23925069
relation P57
type Q502895
[ANSWERS]
{'OR': [['Q5504821', 'P57', {'concept': 'Q502895'}], ['Q23925069', 'P57', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?s WHERE { { ?d property:P57 ?s . VALUES ( ?d ) { ( resource:Q5504821 ) ( resource:Q23925069 ) } } . ?s rdf:type ontology:Q502895 }
Randy Barbato Guy Goossens Fenton Bailey
Randy Barbato Guy Goossens Fenton Bailey
action filter_type
action union
action find
entity Frits and Freddy
relation director
action find
entity Mapplethorpe: Look at the Pictures
relation director
type common name
{'OR': [['Frits and Freddy', 'director', {'concept': 'common name'}], ['Mapplethorpe: Look at the Pictures', 'director', {'concept': 'common name'}]]}
SELECT DISTINCT ?s WHERE { { ?d property:director ?s . VALUES ( ?d ) { ( resource:Frits_and_Freddy ) ( resource:Mapplethorpe:_Look_at_the_Pictures ) } } . ?s rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P110
Q502895 Q26971562 Q571
USER
Which people illustrated around 2 comic formats or books ?
(c(Q26971562)|c(Q571),P110,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
value 2
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:P110 ?j . ?s rdf:type ontology:Q26971562 . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . ?s rdf:type ontology:Q571 . ?s property:P110 ?j } } GROUP BY ?j } . FILTER ( ?t = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
value 2
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:illustrator ?j . ?s rdf:type ontology:comic_format . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . ?s rdf:type ontology:book . ?s property:illustrator ?j } } GROUP BY ?j } . FILTER ( ?t = 2 ) }
[]
common name comic format book
Q214565 Q206685 Q378710
SYSTEM
Beatrix Potter, Albert Uderzo, Katsuhiro Otomo
Q378710 Q214565 Q206685 Q16030513
(c(Q26971562)|c(Q571),P110,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P110
type Q502895
type Q26971562
action find_reverse_tuple_counts
relation P110
type Q502895
type Q571
value 2
[ANSWERS] illustrated around 2 comic formats or books
[[{'concept': 'Q26971562'}, {'concept': 'Q571'}], 'P110', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:P110 ?j . ?s rdf:type ontology:Q26971562 . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . ?s rdf:type ontology:Q571 . ?s property:P110 ?j } } GROUP BY ?j } . FILTER ( ?t = 2 ) }
Katsuhiro Otomo Beatrix Potter Albert Uderzo Tommy McRae
Beatrix Potter, Albert Uderzo and Katsuhiro Otomo illustrated around 2 comic formats or books
Beatrix Potter Albert Uderzo Katsuhiro Otomo
action approx
action union
action find_reverse_tuple_counts
relation illustrator
type common name
type comic format
action find_reverse_tuple_counts
relation illustrator
type common name
type book
value 2
[[{'concept': 'comic format'}, {'concept': 'book'}], 'illustrator', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?t ) WHERE { { ?s property:illustrator ?j . ?s rdf:type ontology:comic_format . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . ?s rdf:type ontology:book . ?s property:illustrator ?j } } GROUP BY ?j } . FILTER ( ?t = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26289142 Q5504821
P495 P17
Q15617994
USER
Which administrative territories did Frits and Freddy originate or are 77, High Street a part of ?
OR((Q5504821,P495,c(Q15617994)), (Q26289142,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5504821
relation P495
action find
entity Q26289142
relation P17
type Q15617994
{'OR': [['Q5504821', 'P495', {'concept': 'Q15617994'}], ['Q26289142', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5504821 property:P495 ?t } UNION { resource:Q26289142 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
77, High Street Frits and Freddy
action filter_type
action union
action find
entity Frits and Freddy
relation country of origin
action find
entity 77, High Street
relation country
type designation for an administrative territorial entity
{'OR': [['Frits and Freddy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['77, High Street', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Frits_and_Freddy property:country_of_origin ?t } UNION { resource:77,_High_Street property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q145
SYSTEM
Belgium, United Kingdom
Q31 Q145
OR((Q5504821,P495,c(Q15617994)), (Q26289142,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5504821
relation P495
action find
entity Q26289142
relation P17
type Q15617994
Frits and Freddy originated from [ANSWERS] or are 77 , High Street a part of
{'OR': [['Q5504821', 'P495', {'concept': 'Q15617994'}], ['Q26289142', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5504821 property:P495 ?t } UNION { resource:Q26289142 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Belgium United Kingdom
Frits and Freddy originated from Belgium and United Kingdom or are 77 , High Street a part of
Belgium United Kingdom
action filter_type
action union
action find
entity Frits and Freddy
relation country of origin
action find
entity 77, High Street
relation country
type designation for an administrative territorial entity
{'OR': [['Frits and Freddy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['77, High Street', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Frits_and_Freddy property:country_of_origin ?t } UNION { resource:77,_High_Street property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q378710 Q7843341
P50
Q2342494
USER
How many collectables were written by Katsuhiro Otomo or Triple 8 ?
(c(Q2342494),P50,Q378710) (c(Q2342494),P50,Q7843341)
action count
action union
action filter_type
action find_reverse
entity Q378710
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q7843341
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q378710'] [{'concept': 'Q2342494'}, 'P50', 'Q7843341']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?g ) { ( resource:Q378710 ) ( resource:Q7843341 ) } . ?t property:P50 ?g }
Katsuhiro Otomo Triple 8
action count
action union
action filter_type
action find_reverse
entity Katsuhiro Otomo
relation author
type collectable
action filter_type
action find_reverse
entity Triple 8
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Katsuhiro Otomo'] [{'concept': 'collectable'}, 'author', 'Triple 8']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?g ) { ( resource:Katsuhiro_Otomo ) ( resource:Triple_8 ) } . ?t property:author ?g }
[]
collectable
SYSTEM
2
Q7768677 Q7766082
(c(Q2342494),P50,Q378710) (c(Q2342494),P50,Q7843341)
action count
action union
action filter_type
action find_reverse
entity Q378710
relation P50
type Q2342494
action filter_type
action find_reverse
entity Q7843341
relation P50
type Q2342494
[ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q378710'] [{'concept': 'Q2342494'}, 'P50', 'Q7843341']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?g ) { ( resource:Q378710 ) ( resource:Q7843341 ) } . ?t property:P50 ?g }
The Thief The Spy
2
action count
action union
action filter_type
action find_reverse
entity Katsuhiro Otomo
relation author
type collectable
action filter_type
action find_reverse
entity Triple 8
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Katsuhiro Otomo'] [{'concept': 'collectable'}, 'author', 'Triple 8']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { VALUES ( ?g ) { ( resource:Katsuhiro_Otomo ) ( resource:Triple_8 ) } . ?t property:author ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q56061 Q151885 Q1792379
USER
How many art genres express around 1 administrative territories or concepts ?
(c(Q1792379),P180,c(Q56061)|c(Q151885))
action count
action approx
action union
action find_tuple_counts
relation P180
type Q1792379
type Q56061
action find_tuple_counts
relation P180
type Q1792379
type Q151885
value 1
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } . ?i rdf:type ?u } GROUP BY ?q } . FILTER ( ?n = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation depicts
type art genre
type administrative territorial entity
action find_tuple_counts
relation depicts
type art genre
type concept
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } . ?i rdf:type ?u } GROUP BY ?q } . FILTER ( ?n = 1 ) }
[]
administrative territorial entity concept art genre
SYSTEM
8
Q22677514 Q3362398 Q18661427 Q3687196 Q3900659 Q937330 Q22677825 Q248726
(c(Q1792379),P180,c(Q56061)|c(Q151885))
action count
action approx
action union
action find_tuple_counts
relation P180
type Q1792379
type Q56061
action find_tuple_counts
relation P180
type Q1792379
type Q151885
value 1
[ANSWER]
[{'concept': 'Q1792379'}, 'P180', [{'concept': 'Q56061'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { VALUES ( ?u ) { ( ontology:Q56061 ) ( ontology:Q151885 ) } . ?i rdf:type ?u } GROUP BY ?q } . FILTER ( ?n = 1 ) }
Market place parliament Panorama du Caire Memorial of the people of Pori Christ's Charge to Peter The Miraculous Draught of Fishes kouros Maire-sculpture Venus figurine
8
action count
action approx
action union
action find_tuple_counts
relation depicts
type art genre
type administrative territorial entity
action find_tuple_counts
relation depicts
type art genre
type concept
value 1
[{'concept': 'art genre'}, 'depicts', [{'concept': 'administrative territorial entity'}, {'concept': 'concept'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?n ) WHERE { VALUES ( ?u ) { ( ontology:administrative_territorial_entity ) ( ontology:concept ) } . ?i rdf:type ?u } GROUP BY ?q } . FILTER ( ?n = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10793130 Q26289142
P17
Q15617994
USER
Which administrative territories are 77, High Street or Meung a part of ?
OR((Q26289142,P17,c(Q15617994)), (Q10793130,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26289142
relation P17
action find
entity Q10793130
relation P17
type Q15617994
{'OR': [['Q26289142', 'P17', {'concept': 'Q15617994'}], ['Q10793130', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q26289142 property:P17 ?h } UNION { resource:Q10793130 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Meung 77, High Street
action filter_type
action union
action find
entity 77, High Street
relation country
action find
entity Meung
relation country
type designation for an administrative territorial entity
{'OR': [['77, High Street', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Meung', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:77,_High_Street property:country ?h } UNION { resource:Meung property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q819 Q145
SYSTEM
Laos, United Kingdom
Q819 Q145
OR((Q26289142,P17,c(Q15617994)), (Q10793130,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26289142
relation P17
action find
entity Q10793130
relation P17
type Q15617994
[ANSWERS] are 77, High Street or Meung a part of
{'OR': [['Q26289142', 'P17', {'concept': 'Q15617994'}], ['Q10793130', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q26289142 property:P17 ?h } UNION { resource:Q10793130 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Laos United Kingdom
Laos and United Kingdom are 77, High Street or Meung a part of
Laos United Kingdom
action filter_type
action union
action find
entity 77, High Street
relation country
action find
entity Meung
relation country
type designation for an administrative territorial entity
{'OR': [['77, High Street', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Meung', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:77,_High_Street property:country ?h } UNION { resource:Meung property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q16014270
P88
Q11204 Q874405 Q838948
USER
How many works of art were commisioned by greater number of legislatures and social groups than fontaines de la place des Vosges ?
(c(Q838948),P88,c(Q11204)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P88
type Q838948
type Q11204
action find_tuple_counts
relation P88
type Q838948
type Q874405
action count
action filter_multi_types
action find
entity Q16014270
relation P88
type Q11204
type Q874405
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q11204'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?k ) WHERE { { ?n rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11204 . ?n property:P88 ?d } UNION { ?n property:P88 ?d . ?d rdf:type ontology:Q874405 . ?n rdf:type ontology:Q838948 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:Q16014270 property:P88 ?s . { { ?s rdf:type ontology:Q11204 } UNION { ?s rdf:type ontology:Q874405 } } } } . FILTER ( ?k > ?a ) }
fontaines de la place des Vosges
action count
action greater
action union
action find_tuple_counts
relation commissioned by
type work of art
type legislature
action find_tuple_counts
relation commissioned by
type work of art
type social group
action count
action filter_multi_types
action find
entity fontaines de la place des Vosges
relation commissioned by
type legislature
type social group
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'legislature'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?k ) WHERE { { ?n rdf:type ontology:work_of_art . ?d rdf:type ontology:legislature . ?n property:commissioned_by ?d } UNION { ?n property:commissioned_by ?d . ?d rdf:type ontology:social_group . ?n rdf:type ontology:work_of_art } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:fontaines_de_la_place_des_Vosges property:commissioned_by ?s . { { ?s rdf:type ontology:legislature } UNION { ?s rdf:type ontology:social_group } } } } . FILTER ( ?k > ?a ) }
[]
legislature social group work of art
SYSTEM
3
Q5447226 Q15716339 Q2659575
(c(Q838948),P88,c(Q11204)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P88
type Q838948
type Q11204
action find_tuple_counts
relation P88
type Q838948
type Q874405
action count
action filter_multi_types
action find
entity Q16014270
relation P88
type Q11204
type Q874405
[ANSWER]
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q11204'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?k ) WHERE { { ?n rdf:type ontology:Q838948 . ?d rdf:type ontology:Q11204 . ?n property:P88 ?d } UNION { ?n property:P88 ?d . ?d rdf:type ontology:Q874405 . ?n rdf:type ontology:Q838948 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:Q16014270 property:P88 ?s . { { ?s rdf:type ontology:Q11204 } UNION { ?s rdf:type ontology:Q874405 } } } } . FILTER ( ?k > ?a ) }
Fields of Sacrifice Chaufferie avec cheminée Broken Chair
3
action count
action greater
action union
action find_tuple_counts
relation commissioned by
type work of art
type legislature
action find_tuple_counts
relation commissioned by
type work of art
type social group
action count
action filter_multi_types
action find
entity fontaines de la place des Vosges
relation commissioned by
type legislature
type social group
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'legislature'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?d ) AS ?k ) WHERE { { ?n rdf:type ontology:work_of_art . ?d rdf:type ontology:legislature . ?n property:commissioned_by ?d } UNION { ?n property:commissioned_by ?d . ?d rdf:type ontology:social_group . ?n rdf:type ontology:work_of_art } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) WHERE { resource:fontaines_de_la_place_des_Vosges property:commissioned_by ?s . { { ?s rdf:type ontology:legislature } UNION { ?s rdf:type ontology:social_group } } } } . FILTER ( ?k > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q826947
P88
Q11204 Q874405 Q838948
USER
And what about Bernward Doors?
(c(Q838948),P88,c(Q11204)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P88
type Q838948
type Q11204
action find_tuple_counts
relation P88
type Q838948
type Q874405
action count
action filter_multi_types
action find
entity Q826947
relation P88
type Q11204
type Q874405
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q11204'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?s ) WHERE { VALUES ( ?x ) { ( ontology:Q11204 ) ( ontology:Q874405 ) } . ?i rdf:type ?x } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q826947 property:P88 ?f . { { ?f rdf:type ontology:Q874405 } UNION { ?f rdf:type ontology:Q11204 } } } } . FILTER ( ?s > ?l ) }
Bernward Doors
action count
action greater
action union
action find_tuple_counts
relation commissioned by
type work of art
type legislature
action find_tuple_counts
relation commissioned by
type work of art
type social group
action count
action filter_multi_types
action find
entity Bernward Doors
relation commissioned by
type legislature
type social group
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'legislature'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?s ) WHERE { VALUES ( ?x ) { ( ontology:legislature ) ( ontology:social_group ) } . ?i rdf:type ?x } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Bernward_Doors property:commissioned_by ?f . { { ?f rdf:type ontology:social_group } UNION { ?f rdf:type ontology:legislature } } } } . FILTER ( ?s > ?l ) }
[]
legislature social group work of art
SYSTEM
3
Q5447226 Q15716339 Q2659575
(c(Q838948),P88,c(Q11204)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P88
type Q838948
type Q11204
action find_tuple_counts
relation P88
type Q838948
type Q874405
action count
action filter_multi_types
action find
entity Q826947
relation P88
type Q11204
type Q874405
[ANSWER]
[{'concept': 'Q838948'}, 'P88', [{'concept': 'Q11204'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?s ) WHERE { VALUES ( ?x ) { ( ontology:Q11204 ) ( ontology:Q874405 ) } . ?i rdf:type ?x } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q826947 property:P88 ?f . { { ?f rdf:type ontology:Q874405 } UNION { ?f rdf:type ontology:Q11204 } } } } . FILTER ( ?s > ?l ) }
Fields of Sacrifice Chaufferie avec cheminée Broken Chair
3
action count
action greater
action union
action find_tuple_counts
relation commissioned by
type work of art
type legislature
action find_tuple_counts
relation commissioned by
type work of art
type social group
action count
action filter_multi_types
action find
entity Bernward Doors
relation commissioned by
type legislature
type social group
[{'concept': 'work of art'}, 'commissioned by', [{'concept': 'legislature'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?s ) WHERE { VALUES ( ?x ) { ( ontology:legislature ) ( ontology:social_group ) } . ?i rdf:type ?x } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Bernward_Doors property:commissioned_by ?f . { { ?f rdf:type ontology:social_group } UNION { ?f rdf:type ontology:legislature } } } } . FILTER ( ?s > ?l ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?k ) WHERE { ?w property:P530 ?o . ?w rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?w } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?u ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?k ) WHERE { ?w property:diplomatic_relation ?o . ?w rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?u ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?k ) WHERE { ?w property:P530 ?o . ?w rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?w } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?u ) WHERE { ?m property:P530 ?v . ?m rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q15617994 } GROUP BY ?m } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?q ) { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?k ) WHERE { ?w property:diplomatic_relation ?o . ?w rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } } . FILTER ( ?u = ?q ) . { SELECT DISTINCT ?m ( COUNT ( ?v ) AS ?u ) WHERE { ?m property:diplomatic_relation ?v . ?m rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1652970 Q826947
P17
Q1048835
USER
Which political territories are Bernward Doors or Luther Bridge located in ?
OR((Q826947,P17,c(Q1048835)), (Q1652970,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q826947
relation P17
action find
entity Q1652970
relation P17
type Q1048835
{'OR': [['Q826947', 'P17', {'concept': 'Q1048835'}], ['Q1652970', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q826947 property:P17 ?k } UNION { resource:Q1652970 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Luther Bridge Bernward Doors
action filter_type
action union
action find
entity Bernward Doors
relation country
action find
entity Luther Bridge
relation country
type political territorial entity
{'OR': [['Bernward Doors', 'country', {'concept': 'political territorial entity'}], ['Luther Bridge', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Bernward_Doors property:country ?k } UNION { resource:Luther_Bridge property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q826947,P17,c(Q1048835)), (Q1652970,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q826947
relation P17
action find
entity Q1652970
relation P17
type Q1048835
Which political territories is Bernward Doors or Luther Bridge located in
{'OR': [['Q826947', 'P17', {'concept': 'Q1048835'}], ['Q1652970', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q826947 property:P17 ?k } UNION { resource:Q1652970 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Germany
Which political territories is Bernward Doors or Luther Bridge located in
Germany
action filter_type
action union
action find
entity Bernward Doors
relation country
action find
entity Luther Bridge
relation country
type political territorial entity
{'OR': [['Bernward Doors', 'country', {'concept': 'political territorial entity'}], ['Luther Bridge', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Bernward_Doors property:country ?k } UNION { resource:Luther_Bridge property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q183 Q3035892
P27
Q502895
USER
Is Don Rico a citizen of that political territory ?
(Q3035892,P27,Q183)
action is_in
entity Q3035892
action find
entity Q183
relation P27
['Q3035892', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q3035892 }
Germany Don Rico
action is_in
entity Don Rico
action find
entity Germany
relation country of citizenship
['Don Rico', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Don_Rico }
[]
common name
SYSTEM
NO
(Q3035892,P27,Q183)
action is_in
entity Q3035892
action find
entity Q183
relation P27
[ANSWER]
['Q3035892', 'P27', 'Q183']
ASK WHERE { resource:Q183 property:P27 resource:Q3035892 }
No
action is_in
entity Don Rico
action find
entity Germany
relation country of citizenship
['Don Rico', 'country of citizenship', 'Germany']
ASK WHERE { resource:Germany property:country_of_citizenship resource:Don_Rico }
[]